xrsixturbo
IS-IT--Management
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?
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?