|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Dynamically load a flash movie
Hi,
I have not done a whole lot with flash. I'm developing an ASP.Net site using AJAX. I would like to have a page that when I clicked a button to load a list (could take a bit of time) a flash would open and load on the page while the request was processing on the server to load the list. Here is what I envision: 1. Button click event fires on client (javascript) 2. javascript loads a flash movie that plays immediately (should be a randomly selected flash movie retrieved from the server and the information the user has entered to this point will determine what category of flash is played so it will have to go to the server to get the flash movie and then play it) 3. The server is then contacted via an AJAX call to get the data to load the list 4. The server finishes loading the list and the loaded listbox displays on the page and the flash movie stops and goes away. I can handle all of this except dynamically getting the flash movie. Nevermind the logic on the server that figures out what should be retrieved, I just need to know how to go get a flash movie that isn't statically linked in the page and dynamically start playing it and then how to stop it from playing at some point and hide it so it is not visible to the user anymore. Is this possible with Flash? Thanks. |
|
#2
|
|||
|
|||
|
Quote:
There is more than one way to skin a cat. no matter what you going to need a data source. wether it be a list of variables, a database, an xml file whatever. you could give each movie clip a number. generate a random number (with ASP.NET, Javascript or Flash ActionScript) load in a movie from a folder based on that number. 1 = myfirstMovieclip.swf 2 = my2ndMoveclip.swf 3 = whatever.swf then you load in the URL http://www.mydoman.com/myclipfolder/RANDOM#VAR you could embed the movies transparent.. a movie clip could load a movie clip and so on.. hope that helps or better yet: just name all the movies a number then you don't need anydata to call it: 1.swf , 2.swf etc.. then myRandNumber .swf to call it |
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Flash Development > Dynamically load a flash movie |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|