Solved

Flash not displaying menu correct

Posted on 2008-10-24
9
148 Views
Last Modified: 2013-11-11
I am editing a template from monster template but cannot seem to get the menu to work correctly. It displays home for all menu items along with them not being clickable. The information is supposed to edited in the 15260-main.html file but haven't been able to figure it out. I have attached the files replace main.txt with main.fla and 15260_main.txt with 15260_main.html. Please help
main.txt
15260-main.txt
15260-pic1.jpg
0
Comment
Question by:techpr0
  • 5
  • 4
9 Comments
 
LVL 39

Expert Comment

by:blue-genie
Comment Utility
i hope you didn't pay for this template.
if you did go back to the ppl you bought it from and either demand a refund or some support.
it's going to require alot of work to make it work, unless there's something hiding there that i don't see.

firstly all the buttons are the same instance with the textfield picking up item1 - hence that all say Home.
secondly the on release code has been placed on the first frame of the clip and then its tweened, then on the last frame there's no code on it.

0
 

Author Comment

by:techpr0
Comment Utility
Thanks for the comment. I did see the textfield picking up item1 but didn't know exactly how to correct any of this information. the only solution for me is to figure this out. Should i ask another question on this or add more points?
0
 
LVL 39

Expert Comment

by:blue-genie
Comment Utility
u don't have to add more points but its alot of work. and if you're a beginner even more so.
it's interesting i've never seen someone load variables from an html file before.


a hack kind of fix for the onrelease
if you see the code on the first frame of the clips - if you move it to the last frame where the tween finishes, that works.
then what you can do is duplicate that current movieclip just copy it x amount of times in the library and give each one a new text variable item1 item2 etc or whatever they were called.that way each button should show its own correct label.
0
 

Author Comment

by:techpr0
Comment Utility
Is there a link to some kind of tutorial to show me how to do this? It's really one of those things where i can't go backwards. I have to work it out until there is a solution.
0
Free Trending Threat Insights Every Day

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.

 

Author Comment

by:techpr0
Comment Utility
or a sample of what i need to do?
0
 
LVL 39

Accepted Solution

by:
blue-genie earned 500 total points
Comment Utility
the moving of the code. simply cut the code out of the frame and put it in the last frame where that item is

duplicate the movieclip.
right click in library, say duplicate, give it a new instance name. do this x amount of times for how many buttons you need.
then go into the file select the second items, click Swap on the properties window and swap it out for one of the new ones you've duplicated. keep doing this for all of them so that you have unique instances for each one.
make sure if there's mulitple frames that you do it at each frame.
then open each clip and change the item1 (or whatever it was) the variable field on the buttons to item1, item2 etc according to your variables in the html.
0
 

Author Comment

by:techpr0
Comment Utility
I was able to get the text right for the buttons doing with you suggested, but still having problems with making the buttons work correctly. I know the pages or correct because when i changed the following line it brought up the exhibition button hightlighted but still with the wrong page, but when i click the privacy button at the bottom of the page and then clicked the x button on that page the exhibition page finally showed up.  I just don't know where to put the code or even what the code should be. Please Help.

_root.link = 3;
this[("item" + _root.link)].gotoAndPlay("s1");


main.txt
0
 
LVL 39

Expert Comment

by:blue-genie
Comment Utility
i'm not sure what you're refering to when you say you're clicking on the privacy button blah blah.
i'm assuming you're refering to the top navigations.

if you open the file and move along until you see the movieclip with the Home button (Symbol 25) - double click that you see a bunch of frame tweens.
if you look at Level 1 Layer, first frame, click on the home movieclip, open the actions panel you'll see a bunch of code there yes.
that on(Release) code needs to be on the final frame of the animation. so go to the end of that frame animation for that object and stick the code on the instance there. then do the same for all the others.
that should then pick up the links from the html.
0
 

Author Comment

by:techpr0
Comment Utility
You are a life saver. Followed your steps and works perfectly now. Thanks!!!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

728 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

10 Experts available now in Live!

Get 1:1 Help Now