Solved

Flash not displaying menu correct

Posted on 2008-10-24
9
152 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 39

Expert Comment

by:blue-genie
ID: 22802189
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
ID: 22803668
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
ID: 22804006
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:techpr0
ID: 22809855
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
 

Author Comment

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

Accepted Solution

by:
blue-genie earned 500 total points
ID: 22810557
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
ID: 22814789
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
ID: 22819454
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
ID: 22821775
You are a life saver. Followed your steps and works perfectly now. Thanks!!!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
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 use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

696 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