Copy link to clipboard
Copied
Hi All,
Have others found that sending a value (stored in a variable) from a parent (main timeline) to a child (movie clip) fails some of the time but only when the movie is running as a .swf (it never fails when testing in authoring)?
My main timeline's actionscript has:
XYZ_ChildMC.variableA = false; //parent talks to child movie clip
In the child MC script:
import fl.video.*;
var variableA;
function completeHandler(e: fl.video.VideoEvent): void{
if (variableA == false)
{
myFLV.seek(0);
myFLV..play();
}
}
This seems to fail about 5% of the time when running/rerunning the .swf in a browser.
Anyone have a similar experience?
Thanks
Copy link to clipboard
Copied
never had that problem. most likely you have a timing issue.
use the trace function or textfield to determine if completeHandler is executing before variableA is assigned.
Copy link to clipboard
Copied
I'll test that
Thanks Kglad.
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now