I am trying to load a jpeg or swf file into a movie clip (Pic) on my stage.
_root.cont.Pic & root.cont.fail - "Pic" for Movie Clip that I load a jpeg/swf file into, "fail" to show that the movie has loaded/failed to load
On the movieclip code i have:
When I load a swf file, this code works once onClipEvent(data) is called, but when I load a jpeg file: 1. debugging does not work, 2. "this" command works but "_parent" and everything else is undefined...
when I define (code located in: _root.cont)
Once I load anything into Pic - that code is no functioning (at all)
Is there any way that i can check the result of the loadMovie without using onClipEvent(data), onData
How should I correctly use onClipEvent(data) or onData so it works?
.fla files would be really helpful!
I appreciate any suggestions...
Sincerely,
Simon
_root.cont.Pic & root.cont.fail - "Pic" for Movie Clip that I load a jpeg/swf file into, "fail" to show that the movie has loaded/failed to load
On the movieclip code i have:
Code:
onClipEvent(data) {
trace(this);
trace(_parent);
_parent.fail._visible = false;
}
when I define (code located in: _root.cont)
Code:
Pic.onData = function () {
trace(Pic);
trace(this);
trace(_parent);
_parent.fail._visible = false;
}
Is there any way that i can check the result of the loadMovie without using onClipEvent(data), onData
How should I correctly use onClipEvent(data) or onData so it works?
.fla files would be really helpful!
I appreciate any suggestions...
Sincerely,
Simon