• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 179
  • Last Modified:

Abode Flash Menu - Action Script

Hi

I have bought a web template and I want to customise the flash menu. i downloded flash cs5 and tried myself (I am Novice) I clicked went through the menu right clicked->Break Apart and saw the code. All I want to modify is - when I click prifile it opens index-1.html .
when I click work it opens index-2.html
when I click Services it opens index-3.html
when I click contacts it opens index-4.html

Problem 1.

i would like to change it to  profile.html, work.html, services.html and contacts.html. I managed to do this but the date display on top disappeared.

Problem 2.

If you move the mouse on the menu items work and services it starts shaking . I should not. It should work exactly as Home and Contacts button.

Please help.

Please let me know the steps on how to do it so that I can do it as well. I am attaching both fla and swf file here.


menu.swf
0
moon_blue69
Asked:
moon_blue69
  • 10
  • 8
1 Solution
 
moon_blue69Author Commented:
The fla file is here
menu.fla
0
 
conagramanCommented:
i cant open the fla file on the computer im on right now but can you post the as3 for the event listeners?
0
 
moon_blue69Author Commented:
HI

I dont know how to do it. I have flash here and i have the fla file.

sorry for the delay.

Cheers
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
conagramanCommented:
im on my other computer now - ill take a look
0
 
conagramanCommented:
moon

first i should point out the action script is AS2 and i'm more of a as3 guy. i am having a hard time figuring why the buttons are flickering but i can help you with the url.

the "path" to the code which is in the button not in an event listener is
parent/w3/w18/w X the x being a number

so an example is
parent/w3/w18/w7
layer = layer 5
frame1

once you get there you will see the url.
again i'm not sure where the "bug" is for the flicker. ; maybe someone who knows as2 can help you find that bug and get rid of it.  here is the screen shot of the button code. hope it helps.
menu.png
0
 
moon_blue69Author Commented:
Hi conagraman,

Thanks for all your help. I am new to flash. But how ever I managed to do change the URL in the first place, but after that it was not showing date on top.

Could you please detail the steps on how you reached the code?

The way I did was

1. opened the file in flash 5
2. I went to control->play
3. Double clicked in the ctrl box
4. Double clicked in the box again
5. Now I have a box on contacts button.
6. I right click that box ->break apart
7. Then double click again to reacch the blue contacts button.
8. right click the button ->actions and chnage the URL
9. I did this for all buttons. it worked but it stopped showing date on top instead of date its just showing an "r"

How did you reach the code?
After modifying the code were you able to see date?

Please help. I appreciate your help very much.

Cheers
0
 
conagramanCommented:
the steps i took to get to the home button code is
open the file
double click on w3
then double click on w18
then double click on w7     //w7 is where the home button is
then click once on the home button once and then you should be there

im not looking at it right now but the date code was on the main timeline half way through.
you can tell where most of the code is by looking at the frames in the different timelines. if there is a frame with two dots on it there is code there.
i said most code can be found that way but in as2 code was able to be placed in buttons. in as3 that is not possible instead we have to use event Listeners.

the reason the buttons are flickering is probably because there is a stop() action missing somewhere you will have to go through the code and find where it is missing.  i looked but had a hard time following the code. i'm sure if you really look at it you will find it.
0
 
moon_blue69Author Commented:
Hi

Thank you for your help. for some reason reaching home buttons code was straight forward. But none of the other ones are. If you have time could you please check any other button?

Thanks in advance
0
 
conagramanCommented:
its going to be the same almost for all of them

open the file
double click on w3
then double click on w18
at this point you are in the container  holding all of the buttons double click on one of the other buttons
to open up a different button container.
then click once on the same button
then the code should be there
0
 
moon_blue69Author Commented:
Hi

Thanks for the prompt reply. It is true with the case of home button. But for the rest of the button i have to do a break apart for each of them to get to the code. I dont know what this break apart is for though, and I dont know how to join it together again.

Thanks
0
 
conagramanCommented:
you shouldnt need to do a break apart on this.  make sure in the layers there arent any that are hidden / have a red X  i think i remember there being a couple like that on the lines with the buttons.

so..

open the file
double click on w3
then double click on w18
at this point you are in the container  holding all of the buttons double click on one of the other buttons
to open up a different button container.
***now look to see if any of the layers have a X in them if so click on the X to get rid of it then you should be able to access the code
0
 
moon_blue69Author Commented:
Hi

One interesting thing I have noticed is . If I straight away convert the fla file to swf. It is not showing time. So it has to do something with Flash CS5?

Any ideas?


cheers
0
 
conagramanCommented:
here is your file
i added a text field to the stage and the code will add the date to it. i dont know how it was supposed to be displayed but this works.

 i still am not sure why the buttons flicker but i was able to get them to stop by rearranging the order of them and spacing them out a bit. the problem with it though is they dont look quite right when you roll over them.
so its not perfect but it could be with a little bit of studying the code.
menub.fla
0
 
moon_blue69Author Commented:
Hi

No solutuiuions worked so far. I assign 250 points for conagraman for his help.

Cheers
0
 
conagramanCommented:
moon.

i wish i could be more help. to be honest the code/timeline is just hard to follow. it almost seems that the file is not complete. it would seem there are parts of the code or objects from the stage that have been removed. plus its as2 which is different from as3 which im more fluent in. i would point out that this file will not be hard for you to recreate. i know you want to use the swf but instead of focusing on it and its poor structure.  i would try and recreate it in as3.

Having said that perhaps keep the question open or close this one and open another one and hopefully you can get a few other experts on it.

cheers
0
 
moon_blue69Author Commented:
Hi conagraman


Thanks for your help. I appreciate it very much. Thanks very much for your offer.


Regards
0
 
moon_blue69Author Commented:
Nothing really worked. I have contacted the template company for the update. @congraman I appreciate every single second you have spent on this problem.
0
 
moon_blue69Author Commented:
Nothing really worked. I have contacted the template company for the update.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 10
  • 8
Tackle projects and never again get stuck behind a technical roadblock.
Join Now