PDA

View Full Version : How can I do it?


MariaClaudia
08-14-2005, 11:00 AM
Hi:
I new in the forum. Please sorry my grammar. I make a flash movie, a menu movie. I use static text in all the menu options, and I use the URL link properties to make a jump to one web site (by example). I understand that in a flash botom I can use fscommand("name_of_the_page"); and I set the flash objet to recibe it. Ok, but, how can I this with a simple text, not a buttom?

I wonder that I make clear. Again, sorry my grammar.

Thanks a lot!

yosik
08-14-2005, 04:00 PM
Hi,
I hope I understood you correctly.
The FSCommand is available to you in flash as an actionscript that you can use with buttons or movieclip alike. So if you have a text in flash, just make it a movieclip and attach a FSCommand to it.
AMS will be able to use the same way as for buttons.

Hope that helped.

Yossi

MariaClaudia
08-14-2005, 04:44 PM
Thanks a lot my friend. But I'm a begginer. Please, tell me....
I inlcude the fscommand in my flash movie. First I convert the text in a movieclip. What command that I need to include?. I mean, fscommand("what_name");..... by example I put this:

fscommand("catalogo");

The same thing in AMS. By example, I understand that this is one way:

if e_FSCommand == "catalogo" then
Page.Jump("Menu Principal");
end

I need that any opcion of my flash menu make a jump to an specific page in my AMS presentation.

I wonder if I explain right. Thanks a lot again!!!!!!!!

longedge
08-14-2005, 05:28 PM
When your flash object sends an fsCommand you can just use that to jump to a page.

The attached example might help. Look at the "ON FSCommand" action for the flash objects on each page. If you send the page name as an FSCommand from your swf then -

Page.Jump(e_FSCommand);

is all you need.

MariaClaudia
08-14-2005, 07:26 PM
Thanks a lot...... but..... snif!
I use Macromedia Flash MX. I convert the text to a button objetc and put this command:

on (release) {
fscommand("Productos");
}

or

on (press) {
fscommand("Productos");
}


I put your code in my AMS presentation. But when I access the page with the flash menu, it jumps automatic to the name I put in the fscommand. I do not understand so much flash, sorry....... would you be good enough to send me the fla files of your example?........

Thanks again a lot!!!!!!!!!!

eric_darling
08-14-2005, 07:41 PM
Where did you put the code in AMS, Maria? Make sure it goes onto the Flash Object's On FSCommand event handler.

MariaClaudia
08-14-2005, 08:11 PM
My friend....... finally I make it work!!!!!!...... thanks a lot for your help!!!!!

eric_darling
08-14-2005, 08:17 PM
My pleasure. :)

Best of luck with the rest of the project.

Corey
08-14-2005, 08:18 PM
Nice one longedge! :yes