This is a discussion on "Loading specific flash movies for specific pages" within the Flash & Multimedia Forum section. This forum, and the thread "Loading specific flash movies for specific pages are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Loading specific flash movies for specific pages
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Loading specific flash movies for specific pages
Hi! Here's what I'm trying to achieve - I want a single flash movie to load other specific flash movies with a specific page of my Web site loads. For example, train.swf would load when train.html loaded, and car.swf would load when car.html loaded.
Is this possible? I'm trying to avoid just place seperate movies on the seperate pages as I want this to function in a template. Any help is appreciated! Thank you! |
|
|
|
|||
|
Re: Loading specific flash movies for specific pages
Yes it is possible. Give me a few minutes to find you a resource. About to go to lunch and I am hungry!
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
|||
|
Re: Loading specific flash movies for specific pages
Thank you for your reply! Take your time!
|
|
|||
|
Re: Loading specific flash movies for specific pages
Alright, you ready for this? I built something like this for our company website that dynamically loads in different skylines depending on which or our markets sites the user goes to(the asp in the actual renderring of the page sets the variable)...but we can force the variable on the page. This same concept will work with .swf's but I will explain on drawback that I am not sure how to fix on your end.
First the HTML/Embed information: You need to declare the FlashVars on your page, and set the value of a variable.(which we will define and call later in the actual flash file. Here it is:
Now in the flash file. There will need to be an empty movieclip named let's say "test_mc". Actionscript will look like this:
There you have it! Drawbacks - I'm not sure if you will have this issue but internet browsers cache flash files fairly hard, so what might happen is that since the flash file is actualy the "same" file with just a peice of the file being loaded externally. It may cache the first page you go to(home) with that specific .swf and any other page you go to may load that exact same .swf since it is cached...make sense? You'll have to test it out and let me know.
Last Blog Entry: Yay!? (Oct 8th, 2007)
Last edited by Sgaspar11; May 22nd, 2007 at 17:26. |
![]() |
| Tags |
| movie loading |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Get value from specific cells | yuenli | JavaScript Forum | 0 | Jun 27th, 2007 09:12 |
| Loading external movies | typeofdoug | Flash & Multimedia Forum | 4 | Mar 7th, 2007 19:43 |
| Resolution specific delivery | Mike Henson | JavaScript Forum | 9 | May 15th, 2006 11:36 |
| Specific Linking | daygon | Web Page Design | 4 | Apr 29th, 2006 20:03 |
| css div percentages and loading content in specific divs | antonyx | Web Page Design | 3 | Dec 24th, 2005 15:45 |