Actionscript 3 loading an array of external images
- Started
- Last post
- 1 Response
- CyBrain
I just need an approach that Actionscript will tolerate.
I have an array of 36 thumbnail movie clips on the stage. The array is in a movie clip called projects_mc and I'm trying to load them in with projects_mc's class doc.I just need an approach that Actionscript will tolerate.
I have an array of 36 thumbnail movie clips on the stage. The array is in a movie clip called projects_mc and I'm trying to load them in with projects_mc's class doc.projects_mc's code excerpt here: http://pastebin.com/f660bcd1f
and of course I'm getting
ReferenceError: Error #1069:
Property imgLoader not found on PbtnMC and there is no default value.but of course I do have it set up in my button class PbtnMC here:
PbtnMC code excerpt here: http://pastebin.com/f42334b65I even started to try to calculate which image to load from the button class PbtnMC based on x and y position, but tracing x and y positions only gave me 0.
What would be a feasible way to load these images?
- CyBrain0
Just thought of something.
When I create my array of thumbnails I can pass a number to the button's constructor function so it will know what jpg to load in.
pBtn = new PbtnMC(pBtnNo);So far it traced out correctly from the button class.