Flash Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignFlash Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 26th, 2007, 06:28 PM
chadbryant5 chadbryant5 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 1 chadbryant5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 m 3 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old May 16th, 2007, 11:01 PM
blitz01 blitz01 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 7 blitz01 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 19 m 52 sec
Reputation Power: 0
Quote:
Originally Posted by chadbryant5
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.


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

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignFlash Development > Dynamically load a flash movie


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway