Solved

Abode Flash Menu - Action Script

Posted on 2011-03-11
18
161 Views
Last Modified: 2012-05-11
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
Comment
Question by:moon_blue69
  • 10
  • 8
18 Comments
 
LVL 10

Author Comment

by:moon_blue69
Comment Utility
The fla file is here
menu.fla
0
 
LVL 10

Expert Comment

by:conagraman
Comment Utility
i cant open the fla file on the computer im on right now but can you post the as3 for the event listeners?
0
 
LVL 10

Author Comment

by:moon_blue69
Comment Utility
HI

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

sorry for the delay.

Cheers
0
 
LVL 10

Expert Comment

by:conagraman
Comment Utility
im on my other computer now - ill take a look
0
 
LVL 10

Expert Comment

by:conagraman
Comment Utility
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
 
LVL 10

Author Comment

by:moon_blue69
Comment Utility
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
 
LVL 10

Expert Comment

by:conagraman
Comment Utility
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
 
LVL 10

Author Comment

by:moon_blue69
Comment Utility
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
 
LVL 10

Expert Comment

by:conagraman
Comment Utility
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 10

Author Comment

by:moon_blue69
Comment Utility
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
 
LVL 10

Expert Comment

by:conagraman
Comment Utility
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
 
LVL 10

Author Comment

by:moon_blue69
Comment Utility
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
 
LVL 10

Expert Comment

by:conagraman
Comment Utility
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
 
LVL 10

Author Comment

by:moon_blue69
Comment Utility
Hi

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

Cheers
0
 
LVL 10

Expert Comment

by:conagraman
Comment Utility
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
 
LVL 10

Author Comment

by:moon_blue69
Comment Utility
Hi conagraman


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


Regards
0
 
LVL 10

Accepted Solution

by:
moon_blue69 earned 0 total points
Comment Utility
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
 
LVL 10

Author Closing Comment

by:moon_blue69
Comment Utility
Nothing really worked. I have contacted the template company for the update.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
EE introduced a new rating method known as Level, which displays in your avatar as LVL. The new Level is a numeric ranking that is based on your Points. This article discusses the rationale behind the new method and provides the mathematical formula…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now