Problems with call-Function - Flash and Lectora
January 3, 2011 12:00 AM
Hi there,
I really hope that you can help me:
First - We do most of our contents with flash, thus we have to use a preloader, to prevent that the user has to sit in front of a white screen with nothing happening. That means that we create a preloader and a second movie with all of our contents and tell flash to include the second flash-movie. That works fine in Lectora.
Second - Because of our design, we cant include the buttons for the navigation in flash, thus we have to use the "Call-Function" Action for the communication between our buttons in Lectora an the Flash-Movie.
Problem: Since we've started using a preloader lectora ignors the button-action. It simply doesn't go to the next step in the Flash-Movie.
Here is an example for the function we use in flash to tell lectora what to do:
function nextTake(dummy:String):void {
switch (goto) {
case "T1":
gotoAndPlay("...")
break;
case "T2":
gotoAndPlay("...")
...
}
}
ExternalInterface.addCallback("nextTake", nextTake);
In Lectora we add an action to the button:
action: flash-command
target: preloader
Befehl(don't know the english word): Call-Function
Name: nextTake
value(Wert):
Has anyone of you an idea? Where is our mistake? Without the preloader everything worked fine.
Thanks a lot and - Happy new Year to all of you :-)
Julie
********************Solved**********************
Yeha - found my mistake - it took ages because it was one stupid brace but I finally made it.
Discussions have been disabled for this post