This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > February 2004 > XMLsocket scripting





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author XMLsocket scripting
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



IRISH_HYPE webforumsuser@macromedia.com

2004-02-03, 5:34 pm

no ides huh?


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews