Hi All,
I read an article which explained that
"data passed into flash (into dynamic variable textbox) using SetVariable javascript, may not come in time. we need to put the dynamic variable textbox inside movieclip and use onClipEvent(data) to capture the "data came in" event."
So, here i try:
1. In main timeline, keyframe 1, i put actionscript:
_root.movie1.dynamictext.text=""; fscommand("LMSGetValue", "cmi.suspend_data,_root.movie1.dynamictext"); |
2. Choose the movieclip movie1, and put the actionscript:
onClipEvent(data){ fscommand("msgbox", "Data arrived. you are at movie1 clip w value =" + movie1.dynamictext.text); if (movie1.dynamictext.text.length>0){ fscommand("msgbox", movie1.dynamictext.text); gotoAndStop(movie1.dynamictext.text); } } |

Expected Result: When the data is successfully passed into the dynamic textbox, a message box shall appears..saying "Data arrived..." ..
Actual Result: No message box appear, it means the data never pass in.
What Var i shall put?
Hope someone can help.
From LiangEH