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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

controlling timeline from a php

Status
Not open for further replies.

xrsixturbo

IS-IT--Management
Jul 8, 2007
2
AU
Hey guys this one has been baking my noodle all day (as I’m not that good at scripting)

I am creating a php site and a flash menu at the top.

The menu fields have a submenu and on rollover they appear. something like this

products Services
car | boat | house cleaning | hair cut | washing

now what i want is that when you are on a page of a certain top menu the appropriate submenu is automatically displayed for example if I click car it takes me to car.php and then the submenu for products is automatically displayed (as car is within products)

the submenus are time line based to products fade in on frame 15 services fade in on frame 25 and so forth.

I can create 5 different flash files and have something like this at the start of the timeline

gotoAndStop(15)

in the second one it would be

gotoAndStop(25)

and so forth although instead of having a preset number it would be great if this number could come from the php so when embedded it could possibly be something like

menu.swf?menu=services

in the flash i have

if (menu==profile) {
gotoAndStop(15)
}
if (menu==services) {
gotoAndStop(25)
}
if (menu==projects) {
gotoAndStop(35)
}

but it is not working - it just goes to the last one on the list (projects)

Any ideas guys?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top