If I remember correctly, when putting Flash into Storyline, you cannot have any Actionscript that calls to the _root level of your movie. In fact I believe any script that you have, needs to be at the _root level of your timeline. Calling _root in your Flash movie in general is not best practice and results can be unexpected.
I would take any code that you have in your Flash movie and bring to the _root level and reference all your objects from there.
Some AS2 "may" work OK. Especially if it uses simple script stops (stop(), gotoAndPlay()). You'll run into problems if you use deprecated or incompatible scripts.
Hi Jeff, I wonder if you can help me with the same issue.
I see your comment of 'cannot have any Actionscript that calls to the _root level' - i'm not sure what that means?
I have been sent a set of swf files and asked to add it to Storyline. Do I have to go back to the SME and ask to re-record or is there anything I can do alter that '_root' script?
I understand your first two paragraphs but not the last one. I have ONE swf file for each demo, where would i go to alter that code? (if at all possible)
My SME used a free app called Jing to record her demos (without audio). Jing saves the recording as swf (one file only). She sent it to me to add prompts (like 'Click the Next button' bla bla) and then publish.
But when i add it to Storyline it doesn't run properly i also get the error message Philip mentioned in his original post '..... contains script with references to '_root' and may not function properly in the published output.'.
12 Replies
If I remember correctly, when putting Flash into Storyline, you cannot have any Actionscript that calls to the _root level of your movie. In fact I believe any script that you have, needs to be at the _root level of your timeline. Calling _root in your Flash movie in general is not best practice and results can be unexpected.
I would take any code that you have in your Flash movie and bring to the _root level and reference all your objects from there.
I hope that helps.
A good resource: http://www.articulate.com/support/kb_article.php?product=st1&id=vw0igndn2njl
You'll want to make sure the movie is published as AS3. AS2 isn't supported in Storyline and may produce surprises and disappointment.
You can include script wherever you want within a movie but need to use absolute references (this, parent, etc.)
I have been using AS2 published SWFs and they seem to be woking fine, should I NOT use them?
Thanks.
Some AS2 "may" work OK. Especially if it uses simple script stops (stop(), gotoAndPlay()). You'll run into problems if you use deprecated or incompatible scripts.
This post was removed by the author
Hi Steve,
I think you meant "you need to use relative references". ;-)
Yep. That's what I meant:)
Hi Jeff, I wonder if you can help me with the same issue.
I see your comment of 'cannot have any Actionscript that calls to the _root level' - i'm not sure what that means?
I have been sent a set of swf files and asked to add it to Storyline. Do I have to go back to the SME and ask to re-record or is there anything I can do alter that '_root' script?
Thank you,
Beata
Hi Beata,
When you load a SWF in Storyline, which itself is a SWF, it will load at "level 1". The Storyline project becomes the root level.
So, if your SWF has scripts like "add blue square at root level", the square might appear within the slide (outside of the SWF).
If you have those sorts of scripts, you need to alter code in the FLA sources.
Thank you Pierre,
I understand your first two paragraphs but not the last one. I have ONE swf file for each demo, where would i go to alter that code? (if at all possible)
Your SWF files are published from FLA source files (demo.swf was generated with demo.fla).
So you need to get those FLA files to alter code (or get it done for you).
But what problems do you get with your SWF?
My SME used a free app called Jing to record her demos (without audio). Jing saves the recording as swf (one file only). She sent it to me to add prompts (like 'Click the Next button' bla bla) and then publish.
But when i add it to Storyline it doesn't run properly i also get the error message Philip mentioned in his original post '..... contains script with references to '_root' and may not function properly in the published output.'.
Is there anything I can do?
This discussion is closed. You can start a new discussion or contact Articulate Support.