| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Can anyone tell me how to load a movie based on a variable within the asp page?
For example, my asp page pre-defines a variable called "page". If the page=demo1 then I want to load "demo1.swf" as an action in the first frame of my main movie: Current: stop(); loadMovie("demo1.swf",target_mc); I need something like: stop(); loadVariables(page); loadMovie(page & ".swf",target_mc); There are about 10 different movies and the variable is already defined before the page loads the swf. The "page" name will correspond with the name of the .swf. Thanks in advance, GG |
|
#2
|
|||
|
|||
|
I've worked it out...
Add variable to SWFObject in ASP page: so.addVariable("pageid", "<%=page%>.swf"); Note: When user clicks on a navigation link the 'page' value is set by calling the querystring. This is then used to load the correct movie within the flash movie player. Add this to first frame action: stop(); movieLoad = _root.pageid; loadMovie(pageid,target_mc); I hope that clear and helps others who are looking for a similar thing. GG |
![]() |
| Viewing: ASP Free Forums > Web Design > Multimedia > Load movie based on ASP variable |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|