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?
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.
what dbm said. Using external xml files with as3 is piss easy.
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?