PDA

View Full Version : Flash Dropdown


rhosk
08-29-2003, 08:09 AM
I've searched the forum and can't quite find much about this. I've got a simple dropdown made in Flash (component), but I can't get it to work to jump to pages in APMS. The values are set to each page (page1, page2, etc...). The "go" button has the action: <pre>on (release) {
fscommand("jump", "window.getValue ()");
}</pre>
Where "window" is the MC.

In APMS I assign the action:<pre>%Property% = FlashObject[Flash1].GetProperty ["Last FSCommand"]</pre>

but this doesn't seem to work at all. Should I be getting a variable maybe (since there's more than one action in the list)? Or am I doing something completely wrong here. If I get it to work, I'll be happy to supply the source for all to use for a dropdown solution. Thanks in advance.

rhosk
08-31-2003, 05:38 AM
thanks for all the help

Corey
08-31-2003, 06:11 AM
You are getting the last fscommand, but that will be "jump" rght? Just set it to get the LastFSCommand Args instead, that's all... That will give you the command value rather than the command name...

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)

rhosk
08-31-2003, 06:56 AM
Thanks for the response Corey. And sorry for the bump sarcasm. I didn't know if my question was too difficult or the opposite, too easy/simple.

Anyway, I tried "LastFSCommand Args" and that still didn't seem to work, although I will try again. I'm fairly astute with Flash and starting to get more confidence with your software as well; it's correlating the two that's a bit tricky. It just seems that the "go" button should be giving me some sort of feedback and it's like it isn't even there. When you apply actions to a Flash object, does it in fact become a whole button of sorts in APMS? This could be the problem, I don't know. I will try your suggestion, but welcome any others you all may have /ubbthreads/images/icons/smile.gif

Corey
08-31-2003, 07:54 AM
Sarcasm isn't an issue. /ubbthreads/images/icons/smile.gif

Actually it's really super easy, you'll see. The main thing is think of the fscommand as an envelope which Flash can write and AMS can read. You can do two things with that envelope, you can write something on the outside of it and you can put things inside it. Those are the only two options. The outside label if you like is the fscommand and the contents of the envelope is the fscommand args.

So if we have in Flash:

fscommand ("jump", "Page1");

then in AMS our LastFSCommand will be the string "jump" and our last FSCommand args will be the string "Page1". So the envelope says, "jump" on the outside of it and inside is a note saying, "Page1". Using FSCommands in conjunction with IF statements (As well as Flash set variable for two-way communication) allows you to interact freely with Flash any way you like...

it's way easier than you are imagining... /ubbthreads/images/icons/smile.gif

Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)