ActionScript 3.0 :: Creating A Color Changing, Number-based Navigation Menu?

Apr 22, 2009

In a nutshell, the swf contains four ads (which link to portions of the site) and each ad uses the Timer element, displaying it for 5 seconds before moving on to the next one. Everything has come together nicely (although I'd like to clean up the code and use classes at a later date - I'm currently taking AS training from Lynda.com).
 
What's giving me trouble right now is the navigation bar. What I want to do is create four numerical buttons that a) change color during a mouse roll over b) change color for a corresponding ad (for example, when the third ad displays, the number "3" changes from white to gray to show that it is active and goes back to white when the fourth ad comes up).
 
Right now, I'm at a loss as to what to do. I've tried making the numbers buttons, but I can't control color changes unless I create two sets of buttons: one with white numbers, one with gray numbers.This also makes for some really bizarre Actionscript coding ideas (ex: after I code the function for the gray nav buttons, I have to code functions that make the white buttons work - but this ends up screwing with the ad cycles). I tried making them as movie clips, but I lose the ability to assign a large hit area like I can with buttons.

View 5 Replies


Similar Posts:


Creating Menu Navigation For Flash Project

Jan 14, 2010

I am an intermediate flash user and need to create navigation for my flash project. Basically what I have is one swf with several scenes and I need a small pop up menu with clickable buttons to jump to different scenes. I know scenes are not generally recommended, but I cannot load separate swfs due to technological constraints at my company. The way my project is set up is like one continuous movie that plays from start to finish. I don't need a player controls or anything. I have divided it into scenes to make it easier to work on the fla.

It starts and plays through to the end, one scene after the next. What I want is a small menu button at the bottom that when clicked pops open a list of buttons that can be clicked to jump to and play a different scene. It never stops or anything, just jumps to and plays the chosen scene. I have created a movieclip with a menu button and the pop up list with buttons. I can get the list to open and close, but it won't jump to a different scene. Is this because it is in a movieclip?

View 2 Replies

ActionScript 2.0 :: Dynamically Changing Color Based On External Info?

May 26, 2004

I read through the random colour tutorial with interest, and wondered to myself if an objects colour could be altered in other ways... such as by a weather feed or stocks feed. I thought it would be interesting if the design of a site could be changed regularly by outside influences.

View 5 Replies

ActionScript 2.0 :: Dynamically Changing Color Based On External(?) Info [renamed]?

May 26, 2004

I read through the random colour tutorial with interest, and wondered to myself if an objects colour could be altered in other ways... such as by a weather feed or stocks feed.I thought it would be interesting if the design of a site could be changed regularly by outside influences.

View 5 Replies

Professional :: Creating Color-based Links In Flash?

May 9, 2011

I have an image with seven distinct colors.  I would like for each color to be linked to a separate html page if clicked.  Can flash link to a page based on the color of the area clicked? 

View 3 Replies

ActionScript 2.0 :: Changing Font Color For Senocular's XML Menu?

Apr 25, 2007

I am going through Senocular's beautiful tutorial on xml driver drill down menu and was trying to change the the font color with rollover effects. I have a function that I can use for this, but I am not able to call it appropriately from the main program.

[Code]...

View 3 Replies

ActionScript 3.0 :: Creating A Photo Gallery From Xml With A Changing Background Color

Feb 7, 2009

I'm creating a photo gallery from xml with a changing background color and description which i've gotten to work fine, however, the border that goes around my image and the image itself are supposed to be centered on stage and they aren't even though i set their x and y to the center of the stage the line after

View 2 Replies

ActionScript 2.0 :: MovieClip Menu - Changing Color Of Text OnMouseOver

May 16, 2004

My menu(code is by scotty)has 3 movieclip buttons, with text. I broke apart the text to change the color onMouseOver. Problem is the button only works when the mouse is pointed over the actual text, so it doesn't work properly, because the text is obviously very small. I can't put a "field" behind it, because it will become part of the MC, and thus will change color.
Here's the example: [URL]
File is here: [URL]

View 2 Replies

ActionScript 3.0 :: Tile Based Game - Creating Multiple Sprites Based On Frames

Nov 17, 2009

I'm relatively new to AS3. There's one thing that I don't quite understand about Sprites. I'm making a tile based game, and all the tile graphics for a level are inside one movie clip in each frame. Would I be able to go about creating multiple sprites based on the frames in said movieclip's timeline I would I have to go through and make a separate library graphic for each.

View 2 Replies

ActionScript 2.0 :: Changing Color Objects - Stay The Same Color That User Selected After Going To Another Scene?

Aug 5, 2004

i'm doing a school project of mine and i am having trouble doing the changing color objects. here is an axample of the script that i;m using:

on (rollOver) {
var colorful = new Color("_root.shapes");
colorful.setRGB(0x003366);
}

For this script it does change color, but how do i make it to stay the same color that user selected after going to another scene?

View 2 Replies

Flex :: Changing The Background Color And Border Color On Selection On A Tilelist?

Apr 23, 2010

I am using a tilelist I want to change the border color and the background color of the tile on selection.

View 1 Replies

ActionScript 2.0 :: Changing Lots Of Movieclips Color And Border Color Separately?

Dec 23, 2008

I am in the making of a isometric level editor, and I have about 15 movie clips with more to come. I want to let people change the color of tiles to what they want from a list of colors, so how can I let them change the color of a tile dinamicly with actionscript so that it changes a tile's color while preserving changes of "shadows"? I mean I have let's say a cube and to make it look 3D I need to change each face to make a feeling of 3D and not a flat one.

View 1 Replies

ActionScript 2.0 :: Interactive Coloring Book - Large Blank Box At The Top Of The Color Pallet Isnt Changing Color?

Apr 27, 2009

i have been doing this tutorial http:[url]..but i am stuck on PART 8, i have done everything the tutorial has said so far (although my image and the colors used are different) but the large blank box at the top of the color pallet isnt changing color when i click on any color from the pallet.

Also this tutorial doesnt say what version of flash and actionscript is best suited for this.Currently i am using CS4 & Action Script 2.0 but i don't know if this is correct. below there is a link to the fla. file that Coloring_Book.fla.

View 1 Replies

ActionScript 2.0 :: Way To Change The Color Of An Object WITHOUT Changing The Color Of A Glow?

Sep 22, 2011

I have a few movie clips that change color when they are rolled over and rolled out of which is great and works correctly but now I have add glows to those buttons to serve as borders or a stroke and when you roll over the buttons the color and the filter color changes.

View 3 Replies

ActionScript 2.0 :: Dynamic Changing Movieclip Color And Text Color?

Jul 28, 2009

I have a movie clip where it contains an instance of text

I able to change the movie clip and text color individually

but when i try to change both at once the text color is same as movie clip color

ActionScript Code:
myColor = new Color(myMovieClip);
myTextColor= new Color(myMovieClip.myText);

[Code].....

View 3 Replies

ActionScript 3.0 :: Changing Text Color & HTML Background Color

Jun 18, 2009

So i'm working on this website and I want to be able to switch out the entire color scheme on the website everytime a button is pressed, I've stepped away from flash for awhile and actionscript 3 is new me. Plus I haven't quite found any truely useful stuff on forums yet.
 
What i can't figure out is when a button is pressed the HTML background color changes to one of 5 preselected colors (that alternate ever time the button is pressed). Then for each background change the text changes too as it is part of a entire new color scheme.
 
What I've managed so far is to change the color of the background thats within the Flash file. What i did was to make a movie clip that plays to a next frame and stop everytime the button is pressed. Now i just need to also get to change the HTML color and the font colors.
 
//"homeText" being the name of dynamic text field and "Button" the name of the button and "background" being the movie clip that is the background within the flash file.
  
Button.addEventListener(MouseEvent.CLICK, Button_CLICK);
function Button_CLICK(e:MouseEvent):void{
background.play();    homeText.TextFormat(color "0x000000");}
  
I'm not sure if my code is just sloppy or if i'm completely going the wrong route here.

View 1 Replies

Flex :: Color Of Icon When Changing Color Of Button?

Sep 16, 2011

I have a button with an icon. I want to have the button in gray so I change the chromeColor but when I do that, the icon became darker.On the left the button without changing the color, on the right, the gray button with and darker icon.How can I have a gray button without changing the icon color?

View 2 Replies

ActionScript 1/2 :: Changing The Color Of MC Changes The Color Of The Text?

Dec 16, 2009

My buttonMC is build of:

1. shape (a rectangle gray color) converted to MC named = Bar

2. (on top of 1) DynamicText named = buttonText converted to MC named = buttText in order to change the color of the shape I decleard a veriable
 
cButton = new Color(this.Bar);
 
I then add actionscript onRollOver
 
cButton.setRGB(nRed << 16 | nGreen << 8 | nBlue);
 
but it also changed the color of the text so I added a veriable for the text field
 
tButton = new Color(this.buttText.buttonText);
tButton.setRGB(0xFFFFFF);but that didnt help

this is bad becuse the text on the screen is unseen.

View 5 Replies

ActionScript 3.0 :: Keyboard-based Interface Navigation?

Sep 27, 2011

I want to create an interface navigatable through keyboard. The interface is somewhat like nested DVD menus, and it is not known in advance how many buttons there will be or where they will be placed. So for example you would be on button 1, if you press right, the closest button to the right would be selected. how would I go about enabling this? The purpose is to enable keyboard navigation for complex management screens for a game I am doing;

I would like this to be as independant and reusable as possible, which means I would like it to work with any clickable object, not just buttons, and certainly not my own custom class of buttons. This also means the buttons might be placed through the flash IDE and so placing them on a grid is not an option (I'd like this to be easy to use for non-techies).

My thinking goes like this: add all buttons to a manager, then select the first one, then on keypress, triangulate and select the closest in an angle of (+45degrees,-45degrees) of direction pressed. But it seems overkill to me, and I guess in some edge cases, some buttons will be forever unselectable.

View 2 Replies

ActionScript 3.0 :: Grid-based Keyboard Navigation

Jul 7, 2009

A 3*3 grid, consisting of 9 squares (0-0, 0-1, 0-2, 1-0, 1-1, 1-2, 2-0, 2-1, 2-2). I want to be able to navigate the grid using a keyboard by going up, down, left and right. If I hit the edge of the grid, I would like to "wrap" to the other side. This kind of menu is seen on games, mobile devices etc.

Does anyone have a good implementation of navigation algorithm (does not to be in AS3), rather something I can refer to?

View 3 Replies

ActionScript 2.0 :: Sliding Menu - Create A Menu With The Number Of Rows Dynamic?

Mar 29, 2007

I have created a sliding menu. But that is static( the number of rows are fixed). i want to create a menu with the number of rows dynamic.I have attached the fla file here.

View 10 Replies

Professional :: Changing Links For Navigation Bar?

Jul 27, 2011

I have purchase this template http:[url].....html for a friend of mine and have changed everything they need and the last thing . changing the links in the navagation bar/Menu bar I have changed the links in Obj_36copy and it didn't work so I know I am surposed to do something else but can figure it out here is the fla file [url]...

View 1 Replies

AS :: Web Development - Use Web Navigation In Order To Create Flash-based Websites

Dec 11, 2009

I'm a web designer. In a effort to make Flash-based sites for my clients I have gone over stacks of AS books now for months. I just don't get any of it--and I've tried. Moreover, the books all give abstract examples to do just about anything with AE. My needs are very limited: I need to use AS for web navigation in order to create Flash-based websites. Here's an example of what I'd like my websites to do: [URL]

Can anybody point me to Flash templates, demos, tutorials, AS libraries, websites, videos, classes, that focus on Flash navigation, with specific examples of real life websites? Or blocks of code where all I have to do is replace some lines with my own stuff? Or an AS library comparable to jQuery? I know this has to be doable. I don't know any JavaScript either, but I'm perfectly able to fulfill all my web design needs with jQuery.

View 2 Replies

ActionScript 3.0 :: Creating A Menu With Three Movieclip Buttons On A Main Menu?

Nov 12, 2008

I am looking at creating a menu with three movieclip buttons on a main menu. I want to keep these buttons on the top of the screen at all times. I am opening different swf's and I want to make sure that the buttons are still showing. I know there is something with changing or swapping the depth of the movie clip when it loads the new swf's in, but I have not found anything that is seeming to work.

View 4 Replies

ActionScript 2.0 :: Changing Navigation Options With Movie Clip?

Jan 15, 2010

I am trying to create a site where the menu section will expand with sub-sections when certain buttons are clicked. I have created a main page with navigation, and a movie clip which holds the content for each page. The navigation from buttons on the main page works fine and leads to correct sections [labelled frames] within the MC. I have placed an additional button on the movie clip, it is revealed when one of the main buttons is clicked. However when this button on the MC is clicked, nothing happens.

I want to be able to move some buttons down and slot additional ones in between the existing buttons so that sub-sections are only revealed when looking at the relevant main section. I have tried to do this using the movie clip, however buttons below are not blocked and those above do not work.Here is the code I have used for the buttons - I have tried putting the sub-button code on both the scene and the MC - neither has worked.

ActionScript Code:
btn_home.onRelease = function () {
content_mc.gotoAndStop ("home");

[code].....

View 1 Replies

ActionScript 3.0 :: Three Buttons - Changing Page For User Navigation

Apr 4, 2011

I have 2 versions of the same code, both to make 3 simple buttons work to move the timeline to a keyframe to change the page for user navigation. What is the difference? Is one way better than the other?

HTML Code:
stop();
var button1:SimpleButton;
var button2:SimpleButton;
var button3:SimpleButton;
function handleCLICK( pEvent:MouseEvent):void {
[Code] .....

View 2 Replies

ActionScript 1/2 :: Changing HTML Content With A Persistent (always Loaded) Navigation SWF?

Oct 23, 2009

I need to develop a site with a navigation SWF file that changes the content of an HTML page, WITHOUT reloading itself and thus losing its current state. What I think I need to do to have smooth transitions, is keep the same swf file loaded, while having it change the page content below it.
 
I have some complex html content to include in the pages that is not supported by the tags available in Flash's dynamic text boxes. I have considered the idea of iframes, but I don't know how to load iframes using flash, or how to use them without refreshing the page.

View 1 Replies

IDE :: Menu Navigation Class?

Feb 16, 2009

I want to build a flash based website and place there 4 button MovieClip instances. Once the user clicks a button, all the EventListeners the button attached to (Mouse_OVER, Mouse_OUT, CLICK) are removed until you click another one. Then the previous button gets these listeners back again. One button is always active at a time, so you can't turn on/off buttons.I thought it would be easier to write a ButtonClass and link the button MovieClip to it. But I had to realize that I can't listen that previous button from that class, because it only listens itself obviously. I'm trying to use "dispatchEvent" but I can't get it to work.In the flash movie I have only one frame, 'cause I'm trying to do this without the timeline. I want to use Classes and this and that to practice but I'm stuck with this problem.

View 3 Replies

CS3 Hyperlink Text Animation Navigation Change Color

Apr 7, 2009

I have CS4 and have (it has taken over a month) created a banner with moving clouds (912 x 74). To the left is our company name and all I want to do is have a navigation menu across the bottom. I did not want buttons, but text with a dignified mouse over effect or color change. The links would be to .php pages and the would read Requirements, Samples, Pricing, FAQs and Contact. The dev site is at [URL] where you can see what I have already done.

View 5 Replies

ActionScript 2.0 :: Preloading XML Thumbnail Navigation Bar & Color Effects

Apr 22, 2010

I've created this thumbnail navigation bar that uses XML to get an external image, title, and link information. It then uses attachMovie() and a for loop to generate the listing. It all works like it's supposed to!

However I am now having two problems. The first, since I am loading in an image I would like to have a preloader appear in all the thumbnail containers before the thumbnail image loads in. I have a simple circle preloader in each thumbnail module that I would like to hide it once the image loads in.

The second issues and perhaps the more important one is that the site is color coded meaning once you click on a navigation button the site color scheme changes to a different color. I put all the instance names of the site elements into an array and then created a color change function with a switch statement to had the color change. However I cant seen to include the newly attached thumbnails into this array so they don't change color along with everything else on the website. I'm completely suck on this and have no idea how to go about making this color change happen. I'm frustrate and I need help.

Here is my code:

First this is how I loaded the XML data and attach the thumbnails:

Code:
var linkItem:Array = new Array();
var instanceNames:Array = new Array();
function loadHomeBar() {

[Code]....

I'm also attaching the zip file with everything I have coded so far fla, image, and xml files are included.

View 3 Replies







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