Professional :: Making Button From XML Dropdown Light Up On Particular Page

Feb 28, 2012

This might be trying to be too tricky, but I have a set of keyframes on the timeline that correspond to the buttons on my xml drop down. When I am on a particular frame, I want the button for that frame and the mainItem button that it drops down from to have some sort of highlight or extra glow. This is meant to be so that a user can see where they are in the project at any time. All the code is included in my previous posts on xml drop down menu..

I can find the buttons by checking if they have certain text on them, so now I want to
1) Set a variable on each keyframe
var a:String="page1";
and then have some code that says 
if(a=="page 1")....[go and get the button] e.currentTarget.menuText.text=="Questions" [and do something to it ]<-- except it wont be the current target it will just be out there with that text on it..

View 7 Replies


Similar Posts:


ActionScript 3.0 :: Making A Button That Will Light Up When Scroll Over It

Jan 24, 2009

So I was working on making a button that will light up when I scroll over it, not instantly but more realisticly. The button starts out gray and when I scroll over it I want it to fade to red.

So I made a new AS3 Flash file and drew a simple gray box, made it a button, and inside the button I made the box a Movie Clip, shape tweened it so that it fades from gray to red in a period of 5 frames.

Now I'm just stuck on the scripting part, I made a new layer inside the movie clip for the script and have this typed in:

Code:
import flash.events.MouseEvent;
rectangle_mc.addEventListener(MouseEvent.MOUSE_OVER, mcOver);
function mcOver(event:MouseEvent)void{
play.rectangle_mc
}

I don't even know what import flash.events.MouseEvent; even means.

But what I'm trying to accomplish here is to make the shape tween Movie Clip only play when the cursor is over the button. So that when I scroll over the button it fades from gray to red. Sounds like a plan, but I can't figure out the function part where it says play.rectangle_mc,

View 2 Replies

ActionScript 3.0 :: Making Xml Buttons Light Up On Certain Frames?

Feb 29, 2012

I have got this menu from intronet and got it working, now am trying to be tricky, I want to have a way to make certain buttons light up when on a particular page, so for example I have got Brian's Vision button taking me to frame 2. How can I get certain buttons to be highlighted on that frame?Basically in my code so far I can listen to a button that is clicked and determine what text it has.. so who can I identify a button with a certain text and make it do something (without clicking on it?)

Code:
ans1.ans1text.text="beans";
ans2.ans1text.text="chicken";
ans3.ans1text.text="rice";

[code]....

View 5 Replies

ActionScript 2.0 :: How To Get Light Hanging From Top Of Page

Jun 12, 2007

I'm trying to get a light that is hanging from the top of the page by a chord to be drag-able and then for them to be able to let go and the light swing back and forth. Right now I've got a pretty cool as that is onLoad it will swing and gradually slows down until it is sitting still, but I'd like to have it have a little more elasticity added to it for them to be have some fun with the hanging light..

View 1 Replies

Professional :: Page : Making Objects Stay?

May 7, 2011

I'm working on a dress up game and I have one problem with it. There are so many items of clothing (which are movie clips with the basic drag and drop code) that I had to create different pages for them. I have buttons (labeled like "dresses", "pants" etc) that when clicked on make that group of items appear. So, great. It's just that once an item has been dragged over to the doll and put in place, I want it to STAY there. But as soon as you click on a different page, that item disappears. Is there any way to make items stay on the doll, even though they're part of a page?

View 1 Replies

Professional :: Making A Swf Wait Until The Rest Of The HTML Page Is Ready?

Jul 2, 2010

I have a site with a common SWF embedded at the top of each page, and then regurlar graphic/text HTML content below it.I was anticipating that the SWF might have a bit of a delay for it to load, and that the rest of the page would be appearing pretty much right away... and that DOES happen from time to time.
 
However, the one thing I wasn't expecting, and don't quite understand, is that sometimes the SWF will appear first and even start playing, yet the rest of the page doesn't appear for a second or two, so I end up with this SWF movie floating in black.
 
Not entirely sure what is holding the page back, since most of the graphics are shared/common on each page.  There are some embedded videos (with poster frames, so they shouldn't take too long to load) on some pages, which are probably the culprits.
 
What I don't get (besides how to further optimize the pages), is why the SWF appears and plays, if it is an element within the table that contains all the content of the page.  I thought that tables only display once EVERYTHING in it is loaded... So, why would the SWF appear before the other elements are ready?  I'm assuming the other (non-common) elements are not finished downloading... although I'm starting to suspect that maybe they are, and the delay is something else... like the embedded QT's 'initializing' or something?

View 2 Replies

Professional :: Cant Stop Flash Page From Flashing Repeatedly (making Website)

Nov 20, 2011

Well first off here is my script so far on the page:
 
[URL]
 
Using Pastie to keep amount of text on thread low to make things easier to read.
 
Here are the errors I get everytime I try to debug or Test Movie:
 
[URL]
 
Also maybe if you can help a bit with it heres the check list that this is graded on. Also no I am not trying to make you guys do my work for me its just he gave us this project but I have been at work (17) and unable to finish it at all. Please help I dont want  a bad GPA this ending semester.[URL]

View 1 Replies

ActionScript 3.0 :: Dropdown Menu - Making Every Item Clicked Only Once

Apr 7, 2009

I made a drop down menu based on xml file and some simple summation after each click of the item. This drop down menu code is based on the xml driven menu. What I need is how to make every item can only be clicked once, so once clicked, it should not be able to be clicked any more.

View 2 Replies

Professional :: Keep The Light On After (onClick)?

Apr 8, 2011

I have a 6 button menu system: when user clicks on a main menu link it will highlight red and light up a light right to the left of the link letting them know they have clicked successfully. After the initial click it will bring down a sub menu with links. However, after they release the mouse button, the little green indicator light goes off. I want that little green light to stay on until they move the mouse outside of the slide panel with the sublinks. how do I keep that light on until user moves mouse outside of the bounding area of the sub-panel with sub links? what code do I need to insert?SECOND:When I go to publish in html, my slide panel which contains the sublinks is chopped off. How do make it were the submenu goes over and on top of my webpage contents right below it instead of increasing the size of my table.

Here is a copy of my code. I will be posting an image in about 30 minutes or less:
// ON CLICK EFFECT - The main menu's sub-menus will slide down once user clicks on a button.// The sub-menu will raise up and disapper once the user's mouse leaves the sub-panel area.

import fl.transitions.Tween;import fl.transitions.easing.Regular;import fl.transitions.easing.Elastic;
stop();

[code].....

View 22 Replies

ActionScript 2.0 :: Button To Switch Light On / Off

Nov 19, 2003

I am really new to Flash n Actionscript and have been dropped in to make a switch that will make a light come on in the first click and off on the second, on on the third and off on the forth etc... I have created the switch as a button and the light on/off as two movie clips....
What coding would i be looking to add to make this switch work...

Previously I have been given this... but its not working
//this is for the button (switch)
on(release) {
if (_root.light_on:active == 1) {
setProperty("_root.light on", _visible, "1");
_root.light_on:active = "0";
} else {
_root.light_on:active = "1";
setProperty("_root.light_on", _visible, "0");
}}

//This is for the light on
onClipEvent (load) {
active = "1";
setProperty("_root.light_on", _visible, "0");
}

View 7 Replies

ActionScript 2.0 :: Button Switch's Light On/off?

Nov 19, 2003

n Actionscript and have been dropped in to make a switch that will make a light come on in the first click and off on the second, on on the third and off on the forth etc... etc...

i have created the switch as a button and the light on/off as two movie clips... what coding would i be looking to add to make this switch work...

previously i have been given this... but its not working
//this is for the button (switch)
on(release) {
if (_root.light_on:active == 1) {

[Code]....

View 7 Replies

Professional :: Make A Orbiting 3d Light Trail Like 2advanced?

Feb 22, 2012

I'm just re-learning Flash after a 12 year break. How can I make the 3d orbiting light trails that appear on the 2advanced video on YouTube? Here's the link: [URL] Is it simply a case of making a single trail and then animating a mask along the trail to give the effect of movement?

View 1 Replies

ActionScript 3.0 :: Code To Make A Button Light Up On Roll Over Of A Mouse?

Dec 1, 2010

I have a home page thing. all the buttlons fly in and such all i need is so when a mouse hovers over a button it lights up or the brightness increases and when you remove the mouse from the button it goes back to normal
please help me out.

View 5 Replies

Professional :: Making Button On Imported PSD

Aug 12, 2010

It seemed like a simple process but I cant seem to get this right... I got a button there, but the URL wont go, i.e., the click does nothing. I imported a PSD layered image to Flash CS3, into a new blank layer. I need basically an area of this PSD to be "image mapped" so what I did was create a rectangle with the rect tool, over the area I needed the hot spot. Here I tried to do a transparent box and border (alpha 0) but the outline is still there even though the box is "empty." (I did select the transparent box, no color, and tried alpha, both same result). I made that into a symbol, then I double clicked into there to fill in the key pts for the over, hit, etc., states.... I don't have any effects here btw, as simple as we can get.

After that I right clicked on the button and entered the action script ("reserve" is the name of my button symbol)
reserve.onRelease=function(){getURL("[URL]");}
Which gave no errors on validation. When I preview in Flash, everything looks good except the thin black border and the fact that when the button is pressed, nothing happens.

View 4 Replies

Professional :: Making A Button In Flash?

Jan 23, 2011

i need to create an ebook where the scenes are linked via buttons.

View 1 Replies

ActionScript 2.0 :: Create A Dropdown Menu From The Top Of Home Page For Navigation?

Apr 30, 2009

I am trying to create a dropdown menu from the top of my home page for navigation similar to this site.I'm just having a little difficulty on the correct process.Not sure if I make a movie clip for the bar to drop down when rolled over and how to place the text buttons so they appear when the bar drops down.

View 1 Replies

Professional :: Making A Button Go To A Specific Frame?

Aug 30, 2010

I have a button on frame #1.  On that frame, I used the following code I found on the web (which I tried using both AS2 and AS3):

stop();function buttonClick(event:MouseEvent);void{gotoAndPlay(2);

I get errors of varying sorts. What should I use?  AS2 or AS3? And what code should I assign to the button (or that button's frame?) to get it to go to frame 2 once clicked?

View 5 Replies

Professional :: Making A Back Button Work?

May 18, 2011

Flash CS5 on Windows 7 I have a problem with a project I am creating. I have created 3 buttons which when clicked open other movieclips for each button. On each of the movieclips that the buttons send them to, all have a back button to return them back to the original view.
 
This back button works fine apart from once they are back at the original view, the 3 buttons stop working.

View 4 Replies

Professional :: Making Items Appear On Stage Only When Button Is Clicked?

Nov 27, 2010

In CS5, I want to have a frame with buttons that when clicked, reveal different graphic symbols or movie clips (I'm not sure what to use?). The symbols will reveal text information and graphics, and might fade in when clicked, though will not move or do anything else.
 
1. Is it better to make these text and graphcis into movie clips or graphic symbols?
 
2. How do they get hidden on the stage until a user clicks on a button to reveal it?
 
3. Using Code snippets, which option will make this work?

View 7 Replies

Making A New Page Popout From An Existing Html Page

Sep 9, 2009

I want to build function on my site where I click on the link, and a new page (background opacity maybe at like 50%)  - which consists of a video in the center and a link or two - floats on top of the already existing html page. I've seen this done a few times and I think it's a really cool function.

View 1 Replies

Professional :: Possible To Turn On Selectable Text When Making Link / Button

Jun 14, 2010

Is it not possible to have selectable text turned on when you are making a link or button?

View 2 Replies

Professional :: Making A Button With A Mouse Event - Error: Call To Possibly Undefined Method

Feb 1, 2012

I am in the process of making a button (a very stubborn button) with a mouse event in the actions for a frame. Here is the full error: Error: Call to possibly undefined method addEventListener through a reference of static type Class. And here is the code for the listener:

[Code]...

View 1 Replies

Professional :: Cross Site Page Mute Button?

Jul 16, 2010

I have a flash animated logo with sound on all of the pages of my website. My goal is to make a mute button which when clicked will work on cookie base or php session (?) and will mute the sound of the logo on all pages for the given period of cookie.

View 1 Replies

Professional :: Flipping Book Component Page Turning Button?

Mar 24, 2011

I have a flipping book component. It come with the basic page turning function where the user can turn each page manually. Because there are many chapters,I created buttons under the pages so that the user can navigate directly to specific pages. I can not find and create the codeto attach to each button to make the pages flip directly to the indicated page? The component uses AS2,Here is main code that appears at frame 1.

import mx.containers.Window;
// Popup size
popup_width = 900;

[code]......

View 3 Replies

Professional :: Add Skip Intro Button To Open Home Page ?

Apr 24, 2011

I make two flash project and I export it swf

1- intro

2- home page
 
I want to add skip intro button to open home page otherwise I want the intro jump to home page when finish.so i add button on intro (skip intro) and write the following:
 
this.createEmptyMovieClip("homee",1); by the way i cant understand what this number meanhomee.loadMovie("home.swf");but what happened is that the intro still looping in home page

View 1 Replies

Professional :: Photoshop CS4 - Make The Menu Items To Light Up When The Pointer Is Touching The Menu Icon

Jul 4, 2010

I am working on a DVD User Interface for my final project in Photoshop. For extra credit points I am trying to figure out how to make the menu items to light up when the pointer is touching the menu icon.

View 1 Replies

Professional :: Flash Dropdown Menu?

Apr 21, 2010

I was looking for some information before proceeding with the work, I was looking to create a navigation bar in Flash with drop down menus coming form some of the links.  Now will this require the visitor to have JavaScript enabled, I'm just a little cautious as I want the links in the drop down to be available to everyone, and if they do need Javascript enabled how do i get round this.....

View 3 Replies

Button Dropdown Stops Working In Timeline

Feb 23, 2010

When creating a dropdown for a button, I noticed the dropdown will stop working if the button does not run the entire length of the timeline. i.e.: if you navigate to a page that is out of that button's "range" it will stop working unless reset by returning to the root page. Nesting the problematic button in a movie, however, solves this problem...

View 3 Replies

ActionScript 2.0 :: Linking Dropdown Button To Scene

Mar 6, 2006

I've got a dropdown menu in which i need to link to another scene on my site. The actionscript on the button i'm using is working if i put the link on the button on the main timeline, but when i nest the button inside the movieclip dropdown menu the actionscript on the button doesn't seem to work.url...The dropdown menu is on the left side, (actually a drop right menu,lol).And, also, the rest of the site still needs a lot of work so please don't comment on that.

View 14 Replies

Professional :: Menu Dropdown And Frequently Get Hang Up

Feb 14, 2010

In the attached file, for some reason, when the menus drop down, they frequently get hung up. (stay down, slow to move back up into the hidden position, etc.)
Attachments: Main_Working_Current.zip (223.9 K)

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved