Hi there,
I am testing out some features using an Opus Flex Publication (Pro XE 5.5). I am trying to mirror some functionality that is available in FlashMX.
The basic issue is this, i created an Opus Flex Publication (named flexHello.swf)with just a display variable (called "text") and published it as a swf with inline html.
On the html I added a function call in javascript to set a variable in the swf object . i added the following to the header
Code:
<script language = "JavaScript"><!--
function PassFlash(){
flexHello.SetVariable("text", "Hello World");
}
//--></script>
After the embedded object i created a simple link that calls the PassFlash function.
Code:
<a href="#" onClick="PassFlash();return false;">click me</a>
When i click the link, nothing happens, when it should be displaying "Hello World" in the swf file. I double checked that i was doing this correctly by creating a similar flash object using FlashMX. The function and linked worked correctly.
I have not been able to successfully implement SetVariable in a flex file and i cannot find any information on it in help or by searching these forums. Has anyone done something similar to this in the past? Do i need to add some opus script to recieve the variable from the html file?