Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml command to flash 2

Status
Not open for further replies.

bubu

Programmer
Mar 3, 2002
463
RO
Hello guys!

I have made a menu in flash and on top of it some animations...coresponting to the menu options.

I have: -main_mc wich contains the menu buttons.
-6 movies for each menu option
-1 wipe_mc

How the menu works: when you press a button the wipe movie is called and this one loads the movie clip that is set to menu_selection (each button sets this variable with a value).

When the main_mc runs first the menu_selection is set to option1.

The page is made in html..only the menu is made in flash.
THE PROBLEM: in the html page there are several links. Let's say that i have the menu set on option1 wich is "flights" and in the html page is a link that coresponds to the third menu option "destinations". ????????? How can i change the menu option from flash when a link from the html page is activate ??????????

Maybe if i send a variable from xml to flash...but how can i do this?

Regards,
Dragos. Regards,
Dragos.

dragos.jpg

 
Thanks alot for the reply!
I will send you the .fla tomorrow (now i am at home) to take a closer look.

As i have wrote in the other thread the variable that choses the menu option is menu_selection.

In the link from macromedia the variable can be this one?...how can i combine them?...give me a start point....but maybe after you will see the fla everything will b emore clear.

I will upload it on my ftp tomorrow and post the link.

Regards,
Dragos.

dragos.jpg

 
Thanks a lot oldnewbie!

In that javascript you are using:
document.flashfile.GotoFrame(n);

but let's say that i want to go to: _root.movie1.frame(15)
the sintax will be: dosument.flashfile._root.movie1.GotoFrame(15) ?



Regards,
Dragos.

dragos.jpg

 
I have did it!
But what is strange is that : on frame 2 the movie1 should be loaded(animations,etc). I have added GotoFrame(2) in the Javascript, but the movie2 is loaded.......i have checked the files and everything is ok.....i don't know why is happening this.....but i can live with this :) Regards,
Dragos.

dragos.jpg

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top