aidan09
asked on
preloader issue: why doesn't my loadText dynamic text display
any ideas why a loadin swf, that loads into an empty movie clip, won't obey the same code?
have modified it to that below - content_container is the empty clip at _root level
bytes_loaded = Math.round(_root.content_c ontainer.g etBytesLoa ded());
bytes_total = Math.round(_root.content_c ontainer.g etBytesTot al());
getPercent = bytes_loaded/bytes_total;
_root.content_container.lo adBar._wid th = getPercent*100;
_root.content_container.lo adText.tex t = Math.round(getPercent*100) +"%";
if (bytes_loaded == bytes_total) {
_root.content_container.go toAndPlay( 3);
}
thanks
aidan
have modified it to that below - content_container is the empty clip at _root level
bytes_loaded = Math.round(_root.content_c
bytes_total = Math.round(_root.content_c
getPercent = bytes_loaded/bytes_total;
_root.content_container.lo
_root.content_container.lo
if (bytes_loaded == bytes_total) {
_root.content_container.go
}
thanks
aidan
ASKER
doesnt seem to work
the loadBar seems to work ok, but I still don't seem to get the dynamic field working
/??
the loadBar seems to work ok, but I still don't seem to get the dynamic field working
/??
I suggest please upload your source files I will fix it and send back to you
you can use yousendit.com to upload your Files
Rgds
Aneesh
you can use yousendit.com to upload your Files
Rgds
Aneesh
ASKER
thanks Aneesh
have uploaded the files for you.
Aidan
have uploaded the files for you.
Aidan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks aneesh!
much appreciated!
much appreciated!
you have used absolute reference to _root here...
when this swf will be loading inside another swf then _root written in this swf will refer to the _root of _parent swf
a workaround to this is just add following code just above your code:
-----------------------
this._lockroot = true;
-----------------------
above code will lock the swf root in itself and all reference to _root written in this swf will forced to refer to only this root.
Rgds
Aneesh