muiltiple loads
- Started
- Last post
- 41 Responses
- System-Idle0
Using the 'linkage properties' might also be an option
- MX_OnD0
if(this==patronising) {
trace("sorry");
}someClip.loadMovie("imageURL");
then make a setInterval for this bit:
if(bytesLoaded == bytesTotal) {
someOtherClip.loadMovie("imageUR...
}or similar... sorry a bit rusehd or I'd do a wee mock up..
- JamesEngage0
cheers MX... hopefully want to avoid the multiple calls...
I'm find that when i load a jpg into the movie clip which contains another clip to put it into... it appears fine...
but when I duplicate it, it reverts to what the initial movieclip looks like before I loaded anything into it
- MX_OnD0
timing issue by the sound of things, sounds like you are duplicating before the image is loaded.... one of the shit bits about duplicating is about having code in the movie you duplicate....
the cleaner option would be to use the repeat calls for sure.
- JamesEngage0
hmm! annoying!
the thing is I can see the jpeg appear so I know it has loaded.
think i'm in the wrong business! anyone want to open a bar!
- System-Idle0
How about putting loadMovie ()inside each duplicated mc, but only duplicate them once the original jpg has loaded into the first.
- MX_OnD0
try making a wee test file for yourself,
make a dynamic text box to display % loaded for the JPG
have a button on the stage with an onRelease to duplicate the clip you want....
it could be that the duplicate is firing before you see the JPG... you simply have to manually check to see if it has loaded before calling the duplicate method...
- JamesEngage0
I like your thinking will try that!
- MX_OnD0
won't work System-Idle, we do not reccomend this at all.
The linkage properties would only have effect if using "attachMovie" which in turn would mean having all the JPGS in the library which in turn would result in a larger SWF.... not reccomended either.
Also putting code into movieClips has generally not been a good idea since FlashMX and the conept of code centralisation.
working yet James?
- MX_OnD0
James,
once it has been loaded once it is cached so as long as you wait until it has loaded before trying to get it into the other 4 clips it shouldn't really matter ;)
- rasko40
fnaar fnaar
- MX_OnD0
send me the fla to the address you've got for me...
If I've killed my gf's flatmate in time I'll have a wee scan this evening for ye....
- JamesEngage0
isn't that still going to still cause latency in querying thr server to find the image, and seeing that it is the exact same one...
Sorry to be picky... its just one of those things that keeps me awake at night (particularly at the mo!)
- JamesEngage0
ta!
- gruntt0
this was not what i expected this thread to be about.
- unfittoprint0
for earlier versions
http://www.macromedia.com/suppor…
- unfittoprint0
the way to do it, imo, is to have an interval too check the loading procedure, when bytesloaded == bytestotal. Only then start duplicating the MC. Otherwise it's not possible.
sorry, if it was answered before, not enough patience to read all the posts...
- System-Idle0
If you want to centralise the code just put a function on the _root that checks for the jpg to load. once loaded use a for loop to duplicate the mc's and load the jpg in the mc's on the fly
- MX_OnD0
my thoughts too unfit.