| IRISH_HYPE webforumsuser@macromedia.com 2004-02-03, 8:28 am |
| hi, this is probably very simple. I am using cycling74's MAX/MSP to send messages to flash to control videos with commands like play, stop FF, RW etc.
At the moment I can get flash to recive messages which appear in a text box through a XMLsocket.
what I'm looking for flash to read this tex box (which can be set to any message, as i'm broadcasting it from MAX/MSP) and use this information to control the videos.
I've tried a little scripting but i'm useless at it lol.
what i understand so far is i'm setting varibles to these messages
starting with something like
set message = ();
as there is no starting message
then something like
set message = (play);
i tried this and used
trace(message);
to see how it appears
and this was the message i got:
**Error** Symbol=msgbox, layer=Layer 1, frame=1:Line 1: Syntax error.
set message = ();
**Error** Symbol=msgbox, layer=Layer 1, frame=1:Line 2: ')' expected
set message = (play;);
the message box is in a movie symbol, so i think i need to put this information somewhere in the script.
any help would be great, a few scripts if possable, if there is something i haven't explain please ask,
I'm using Flash MX Pro 04, on a G5 under OS 10.3
cheers,
Shane
|