Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Dynamic loading

This is a discussion on Dynamic loading within the PHP | mySQL | Flash CS3 forums, part of the Flash CS3 eng category; Heres the example: Three buttons have appeared "Pizza", "Fish Finger Sandwich" and "Soup". When the button for Pizza is pressed ...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Flash CS3 eng > PHP | mySQL | Flash CS3

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 14-04-08, 14:08
Junior Member
 
Join Date: Mar 2008
Posts: 1
Rep Power: 0
BeechyBoy is on a distinguished road
Dynamic loading

Heres the example: Three buttons have appeared "Pizza", "Fish Finger Sandwich" and "Soup". When the button for Pizza is pressed then a Pizza MovieClip appears (driven by Papervision3D *.DAE file) and is then unloaded once the "Fish Finger Sandwich" button or "Soup" is selected. These buttons will be dynamic and run on XML data grabbed from a database. The XML contains data that I want to correspond to a visual element (Pizza.as, Pizza.DAE and textures, etc...) in another allocated directory like: com.food.recipes.Pizza.
This means that if the XML creates a button that says "Recipe Title = Pie" then the main.swf actionscript will look for "Pie.as" and then load all it's attributes once clicked.

Is it possible to do this and how would I get the main SWF and AS file to recognise just how many Recipe classes there are in the com.food.recipes." directory?

Does this make sense, and does this mean I will need to have fla's for each 'Recipe' MovieClip's visual elements?
I'm pulling my hair out! If this is badly explained or something isn't clear, please let me know.
Thanks,
BeechyBoy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 14-05-08, 13:53
Junior Member
 
Join Date: Mar 2008
Posts: 3
Rep Power: 0
Math is on a distinguished road
Re: Dynamic loading

with php you can count the contents of a dir. that value you can then store in a variable and send to flash to use. It's possible.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Actionscript 2 Trying to change the color of Dynamic text Dakart Flash CS3 eng 0 18-07-08 20:49
Actionscript 3 autoscroll dynamic text. AnaRitaSilva advanced Actionscript 3.0 0 30-06-08 11:32
Loading Dynamic Content Onto Scrollpane jimbosun advanced Actionscript 3.0 0 02-04-08 05:23
Dynamic Assignment of XML Text Pherankh advanced Actionscript 3.0 4 28-03-08 20:44
URL DYNAMIC importa condivisione runtime loris.dassie Flash CS3 generale 0 21-02-08 11:44


All times are GMT. The time now is 05:22.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406