Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Flash Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Flash Discussion Forum Flash design presents a limitless number of possibilities for your sites and designs. Discuss your Flash ideas, questions and issues here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-22-2004, 01:23 PM
WebProWorld Member
 

Join Date: Jul 2004
Posts: 36
Touseef RepRank 0
Default Load Movie ('swf file for which user clicked on an html page

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!
Reply With Quote
  #2 (permalink)  
Old 07-22-2004, 04:00 PM
mtheory's Avatar
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Connecticut, US
Posts: 643
mtheory RepRank 1
Default PHP Code

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
Reply With Quote
  #3 (permalink)  
Old 07-22-2004, 04:36 PM
WebProWorld Member
 

Join Date: Jul 2004
Posts: 36
Touseef RepRank 0
Default

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.
Reply With Quote
  #4 (permalink)  
Old 07-23-2004, 11:54 AM
WebProWorld Member
 

Join Date: Jul 2004
Posts: 36
Touseef RepRank 0
Default



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!
Reply With Quote
Reply

  WebProWorld > Site Design > Flash Discussion Forum
Tags: , , , , , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0