TwelvestoneFlash

dynamic arrays


Sign in

  • Waiting for Godot ( 730 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 5.1 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.9 k posts )
    general front end design an...
  • Back End ( 9.7 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
dave_boo
 
2009-01-09

cant seem to wrap my head around this one -

say we have 4 user 'types' (1-4) and 4 swfs (a,b,c,d) called into a container.swf

the parent page will pass this user type as a param value (1-4)

for user type '1', want to deliver swfs b,c & d

for user type '2', swfs a,c & d ... and so on

whats the best strategy for achieving this - bearing in mind that we would like to be able to add additional user types (non-sequential) and swfs w/o having to make major mods to the container.swf?

DontBogartMe
 
2009-01-09

I'd use an external XML file to store the info about what SWFs to load for each user type - container.swf then reads this, gets the param value (1-4) and serve up the SWFs accordingly.

That way you can add a new user type number and some more SWFs and you only have to change the XML file to make it work.

Big Ern
 
2009-01-13

what dbm said. Using external xml files with as3 is piss easy.

JLM
 
2009-01-14

has anyone tried loading comma separated data, like in as2 with onData is it still easy? and whats the general approach, so far I have only used xml - I guess as its easy but sometimes maybe its overheads are overkill?

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

dynamic arrays