OK guys (and gals) here is the situation.
There are appx 5000 objects on the server side (graphics, text and such), in the UI the user clicks on a link in the MC to access assets from the server for that particular link and display them in another empty MC in the same interface.
At this time the “geniuses” that originally created this app are having flash load all of the items! as you might guess it is blowing up the app.
My task is to create an event in the flash MC that basically only brings down “x” amount of objects at a time (probably placing the items into an array to display in an empty MC) then use a “next” button to bring down the next “x” amount of items replacing the first displayed items with the new ones.
The kicker is that i have to use a “back” button as well to display previous items.
So is there any way to do this with minimal drain the client side, possibly using pointers or such (i have no idea at this time how to do that).
The next problem is that at this time the rest of the team does not know how the assets on the server are being stored (info to come later).
I am fairly new to such exteme actionscripting and am on a tight deadline to get this accomplished.
You guys have always been a GREAT help in the past I hope you can help this time.
If you need to you can email me the info direct at: kenny@mpactdesigns.com.
HELP AM DESPERATE!
Thanks,
Kenny
The problem is that you can’t use a “priority” external library. And it’s pissing me off! A possibillity is to devide all assets over numerous libraries that you then dynamically load. Or you create a swf for every movieclip that you have. Then you can load them in any specific order you wish.
It’s a darn problem, I know. I really hope Macromedia will handle it in a future version.
Thanks that was what i was afraid of.
The scenerio is for instance 10 different categories each contain possibly 16 assets.
I need to just bring down one category and only 8 assets at a time to display in a MC container.
Can i use arrays to do this?
What else is better?
just calling to the server and getting a handle on the folder containing the assets for category and pulling just 8 at a time.
Thanks again,
Kenny
Use array’s? Sure why not! But what’s the advantage?
They’re no magical objects that let you load external stuff.
Just create a external library per categorie and load it when needed.
Or if you will, create pre-made swf’s per categorie in the same application, and switch applications per visited section of your app.
I agree, easiest to just create libraries containing the objects and then just call them down as needed.
The problem is that the client needs to load the assets into the folders and i just need to call down “x” number at a time.
The easiest way is just to house them in their own swf and just load them in as needed.
The idiots who built this app before had no business even using flash it’s like they got the software and then one book and said “hey cool look what you can do” and then proceeded to try EVERYTHING in the book.
Thanks again for your help,
Kenny
I know what you mean. It’s a typical “user can’t do anything” sort of problem that you’d really like to solve with a nice dynamic bit of code. But it just can’t be done. Clients can’t just upload mc’s to a central library from whitch you get data and can then dynamically load all assets in any amount and any order you like. Darn… wouldn’t that be great if Macromedia would include that in a next release?
No joke would be nice.
Oh well need to break the bad news to the other members of the team, and maybe we can come up with a different solution.
Thanks