Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / September 2006



Tip: Looking for answers? Try searching our database.

Variable URL in "flashobject" function call.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
adgomez65 - 07 Sep 2006 19:52 GMT
This would be the code to call a movie:
--------------------------
var fo = new FlashObject( "Movie1_controller.swf", "Movie1_controller.swf",
"591", "480", "7", "#FFFFFF", false, "best" );
--------------------------

Is there a way to modify that call (maybe using ASP Javascript) so you can
call different movies calling the same page with different parameters?. I
haven't been able to get this working. It seems to be that the "FlashObject"
call cannot have any variables on it.

This is the way I'm trying it:

1. The call to the page would be:
---------------------
http://....../my_movie_page.asp?Movie_File=Movie1
--------------------

2. Add javascript to get value passed:
--------------------
<%
Movie_File=Request.QueryString("Movie_File");
Controller=Movie_File+"_controller.swf";
%>
--------------------

3. Call of object with variable "Controller"
------------------------
var fo = new FlashObject
( Controller, Controller, "591", "480", "7", "#FFFFFF", false, "best" );
--------------------------

It just doesn't work. The FlashObject.js doesn't seem to like that call. Any
ideas?
Thanks a lot.
Motion Maker - 11 Sep 2006 00:39 GMT
Use a shell Movie and inside of that communicate with the server for the
parameters. Depending on the design, you may need the shell Movie to load
external movie or movies to achieve the goal.

Signature

Lon Hosford
www.lonhosford.com
Flash, Actionscript and Flash Media Server examples:
http://flashexamples.hosfordusa.com
May many happy bits flow your way!

> This would be the code to call a movie:
> --------------------------
[quoted text clipped - 34 lines]
> ideas?
> Thanks a lot.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.