|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Flash Discussion Forum Flash design presents a limitless number of possibilities for your sites and designs. Discuss your Flash ideas, questions and issues here. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
How can we load a movie inside another movie for which we do not know the name. Only thing we know that user has clicked on a link from an html page.
which is like this. http://www.yourdomain.com/create.php?file_id=15 where 'file_id=15' is 'welcome.swf' User have so many links on the html page and can click any link and each link has a different 'file_id' associated to a different 'swf' file. I mean how we can replace the "movie_name.swf" in 'Load_movie' command of flash with some kind of dynamic text to load the file for which the user has clicked on html page. Is there any way? Thanks for your help! |
|
||||
|
On the Flash movie side I would create an empty movie with a load movie script to load the variable movie based on the variable in the http string.
Here is the code to get the variable from the string: <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH=100% HEIGHT=100%> <PARAM NAME=movie VALUE="url.swf?<? echo $QUERY_STRING;?>"> <PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#669966> <EMBED src="url.swf?<? echo $QUERY_STRING;?>" quality=high bgcolor=#669966 WIDTH=100% HEIGHT=100% TYPE="application/x-shockwave-flash"></EMBED></OBJECT> http://mtheoryit.com http://imageselect.us |
|
|||
|
Thanks for your help. But Actualy this is not what I am looking for. These are three files. preloader is acting as a container and loading the intro and content file. content files are in hundereds and will be clicked from outside the flash envoirnment most probably a php or html page. I need it to be done with loadmovie function in the preloader of flash by giving the generic 'url string' instead of a specific url. That 'generic url string' must contain the 'specific url' of the clicked swf file.
May be a load varibale functon can load the variables of the called php file containing the link of swf file. and I only put the variable name instead of the url. I dont know much about programming and I am so much confused. please help me out. |
|
|||
|
I have attached an image to explain the exact problem. All the image links on the main page are calling an other html file which has the preloader movie. now that preloader movie should check which file is actually required and load it accordingly. So my questions are; 1) Is it possible using simple html? 2) If not, then I think the code will be somethin glike you lready explained. i.e. http://www.yourdomain.com/file.php?"+file_id; am I right? 3) In the preloader I will have to use load variable command to get file_id like this. loadVariablesNum ("http://www.yourdomain.com/file.php?\"+file_id; ", 1, "GET"); right? 4) loadMovieNum ("file_id", 1); ok? Please let me know if I am on right direction. Thanks! |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |