This content has been marked as final.
Show 7 replies
-
1. Re: pass multiple varibles from flash to authorware
Newsgroup_User Oct 27, 2006 4:46 AM (in response to deerowbear)How does EventLastMatched[#args] appear in Authorware after you click
the button in flash? In what format? Is there a delimiter of some sort.
Mark
deerowbear wrote:
> Hi there,
>
> if I have a button in flash and want it to send a string of varibales to
> authorware:
> --example code--
> ///flash code///
> on(release){
> fscommand("varibles", "var1, var2, var3, var4")
> }
> ///authorware code ///
> EvalAssign(EventLastMatched[#command]^ ":=EventLastMatched[#args]")
> Trace(EventLastMatched[#args])
> ActionFuntion(EventLastMatched[#args])
> Quit()
>
> In the authorware file I want to take that string and breakit up in authorware
> and apply it to the ActionFuntion.
>
> Please help.
>
> Thanks daniel
>
--
------------------------------------------------------
Authorware Media Synchronization Command:
www.authorwarextras.co.uk --> Commands
Media Synchronization made easy !
EuroTAAC eLearning 2007
www.eurotaac.com
www.AuthorwareXtras.co.uk
www.freelists.org/list/flashelearning -
2. Re: pass multiple varibles from flash to authorware
deerowbear Oct 27, 2006 5:12 AM (in response to Newsgroup_User)It is a single text string variable. I want to break that variable up into smaller variables. The flash string
(var1, var2, var3, var4) needs to be broken up into single variables.
Also, the ActionFuntion resides in an event icon on the main interaction icon.
thanks daniel -
3. Re: pass multiple varibles from flash to authorware
Newsgroup_User Oct 27, 2006 5:22 AM (in response to Newsgroup_User)That's not what I am asking. Ok, so what does
Trace(EventLastMatched[#args]) show in the trace window exactlty.
What parameters does the function ActionFunction() take? Is this an
externally loaded function?
Mark
deerowbear wrote:
> It is a single text string variable. I want to break that variable up into
> smaller variables. The flash string
> (var1, var2, var3, var4) needs to be broken up into single variables.
>
> Also, the ActionFuntion resides in an event icon on the main interaction icon.
>
> thanks daniel
>
--
------------------------------------------------------
Authorware Media Synchronization Command:
www.authorwarextras.co.uk --> Commands
Media Synchronization made easy !
EuroTAAC eLearning 2007
www.eurotaac.com
www.AuthorwareXtras.co.uk
www.freelists.org/list/flashelearning -
4. Re: pass multiple varibles from flash to authorware
deerowbear Oct 27, 2006 5:46 AM (in response to Newsgroup_User)Sorry I misunderstood. When I Trace(EventLastMatched[#args]) in authorware I get var1, var2, var3, var4. The function calls an external dll that pass those variables off and a ActionFunction to a dll file.
thanks daniel
-
5. Re: pass multiple varibles from flash to authorware
Newsgroup_User Oct 27, 2006 6:08 AM (in response to Newsgroup_User)So you have a string "var1, var2, var3, var4" that you want to get each
element out of?
repeat with i:= 1 to LineCount(EventLastMatched[#args], ",")
lines :=GetLine(EventLastMatched[#args], i, i, ",")
end repeat
Should put each element of the sting into a separate list item in the
lines linear list. I am not really understanding what you are tying to
do, so I have use a list here for demonstration purpose, but maybe you
want to substitute the second line with :
ActionFunction(GetLine(EventLastMatched[#args], i, i, ","))
Which will call ActionFunction each time the loop runs and send it the
next element from the string. In your case it will call..
ActionFunction("var1")
ActionFunction("var2")
ActionFunction("var3")
ActionFunction("var4")
Is that what you are trying to achieve?
Mark
deerowbear wrote:
> Sorry I misunderstood. When I Trace(EventLastMatched[#args]) in authorware I
> get var1, var2, var3, var4. The function calls an external dll that pass those
> variables off and a ActionFunction to a dll file.
>
> thanks daniel
>
>
>
>
--
------------------------------------------------------
Authorware Media Synchronization Command:
www.authorwarextras.co.uk --> Commands
Media Synchronization made easy !
EuroTAAC eLearning 2007
www.eurotaac.com
www.AuthorwareXtras.co.uk
www.freelists.org/list/flashelearning -
6. Re: pass multiple varibles from flash to authorware
deerowbear Oct 27, 2006 7:01 AM (in response to Newsgroup_User)I believe this will work. Thank you sooooo much. When I finish it I will close this question. Again thank you very much. -
7. Re: pass multiple varibles from flash to authorware
deerowbear Oct 27, 2006 7:21 AM (in response to deerowbear)Thank you...Thank you...very much for your help. It worked. : )

