The title kind of says it all, we found some code showing how to do it in Storyline 1, but it doesn't work in Storyline 2. We couldn't find anything about Storyline 2 specifically, any ideas?
On a basic level, we want to be able to have a button in flash change the variable in Storyline which would trigger an action.
Updating or working with the code is not something we'll be able to offer assistance for, so I'll defer to the communitys expertise. In the meantime, you may want to begin by reviewing the Javascript elements here.
Passing variables from JavaScript to Storyline is documented in the Best Practices article Ashley linked to above.
How are you using Flash? Are you talking about passing this message from output that you have created with Adobe Flash? If so, this article may be of interest as it shows how 'you can use a method called ExternalInterface.call() within Flash to execute a JavaScript function.'
Or if you are referring to Storyline's Flash output, then everything you need to know is in the Best Practices document linked above.
Thanks for that update and glad you got it working! You'll always want to take a look at elements like Javascript and web objects in publish vs. preview as certain things may not work as expected. You can review here other elements of previewing that may not be accessible.
6 Replies
Hi Jake,
Updating or working with the code is not something we'll be able to offer assistance for, so I'll defer to the communitys expertise. In the meantime, you may want to begin by reviewing the Javascript elements here.
Passing variables from JavaScript to Storyline is documented in the Best Practices article Ashley linked to above.
How are you using Flash? Are you talking about passing this message from output that you have created with Adobe Flash? If so, this article may be of interest as it shows how 'you can use a method called ExternalInterface.call() within Flash to execute a JavaScript function.'
Or if you are referring to Storyline's Flash output, then everything you need to know is in the Best Practices document linked above.
Hi Jake,
A few years ago, James Kingsley wrote a blog article describing how to do this:
https://elearningenhanced.com/blog/2012/05/24/setget-articulate-storyline-variables-within-your-as3-flash-file
The code I developed based on James' article still works for me in Storyline 2 even though I originally wrote it using Storyline 1.
Thanks, we have it working now.
The code we were using was correct, but apparently it only works correctly when published and not in preview!
So for anyone else trying things like this, make sure you do a full publish to test it.
Thanks
Jake
Glad you got it working Jake.
Hi Jake,
Thanks for that update and glad you got it working! You'll always want to take a look at elements like Javascript and web objects in publish vs. preview as certain things may not work as expected. You can review here other elements of previewing that may not be accessible.