ActionScript 2.0 :: Movieclip Button With Smaller Hover State?

Mar 23, 2010

anyone who takes the time to read and answer this post. I'm having an issue on a file that I'm working on at work. The basis of the project is that its an image of a map, with windmills on certain cities. When you rollover the windmill various things happen. The turbine starts to spin, information about the project in that city shows up in dynamic text boxes, etc.

Anyway, I have one movie clip for the windmill with actionscript (that makes the things mentioned above happen) on the actual symbol, so I do not have to create different movieclips for each city. However, due the way this works, when your mouse touches one of the blades of the windmill turbines, the turbine spinning animation stutters. This happens because when the turbine moves it causes your mouse to rollOut of and rollOn to the windmill rapidly.

It seems that I need to create a hit state for the windmill that is smaller than the bounding box for the entire movieclip. I'm unsure how to do this since the on(rollOver) and on(rollOut) states of the movieclip prevent me from being able to place that type of actionscript on the actual hit state (which would be inside of the movieclip). I could easily just take the actionscript on the main movieclip symbol and put it on JUST the hit state inside, however, I would need 60 different movieclips of the windmill for each city if I did it this way.

Is there any way that I can define a hit state that is smaller than the bounding box of my movieclip button, so that I do not have to create 60 different movieclips? I forgot to mention: Unfortunately since I'm doing this for a client at work, I can not post my file up anywhere to show. So if you need any more information or I was not specific enough please let me know. Also, I can post my code if need be.

View 3 Replies


Similar Posts:


ActionScript 2.0 :: CS4 Using Hover State Of One Button To Simultaneously Activate Another

May 19, 2010

I have flash which contains the map of the United States. Each state is a separate button. When each state is in hover mode, it changes the look/size of that state and adds names of the cities in white on the particular state.I would actually like to add 2 things to this flash.

1) When the state is hovered over, not only will the state change, but the cities belonging to that state (in the list to the right, will highlight)

2) I would like the city names in the list, when hovered over to highlight and to activate the hover mode of that particular state. In addition, that cityName button in the list and the state button should be able to direct to a URL upon hit.

I currently have each state as a button with each state's hover mode changes.I will be changing the cityNames into buttons (they are currently MCs).Once I change the CityNames into Buttons, then modify their hover modes to look like a highlight, then I know to do the following for the URL direct:[code]One of these will go on each text cityname button. But how do I tell the button to also activate the NewYorkState_btn into hover mode?I will also need each State image button to automatically arrange to the front when they are hovered so that they will not be overlapped by other states.Also, What do I do to get each state to hover and simultaneously highlight the appropriate CityName button(s) in the list?I have included an image below (FLashMapHover.jpg) so that it is a bit more clear what I am trying to do.

View 5 Replies

ActionScript 3.0 :: Add Button With Dynamic Text And Hover State?

Mar 14, 2011

Add Button with dynamic text and hover state

I haven't used flash for a bit but I'm really stuck on something that should be simple.

I want to add buttons or MoiveClip to make a navigation.

Each button will have different text on it and they need a hover state that changes the color of the text.

I have done this to add the buttons with text. This works but I do get an error message.

How can I change the color of the text when I hover over the button ? How can I stop the error message ?

Quote:

TypeError: Error #2007: Parameter text must be non-null.
at flash.text::TextField/set text()
at Doc()

[Code]....

View 3 Replies

ActionScript 3.0 :: Maintain The Hover State Of A Button While It Is In It's Current Page?

Aug 8, 2010

I have this code about navigation using movieclip buttons. I just made the currently selected button disabled when it is in the current page but I just cant figure out on how to maintain it in its hover state (It keeps on returning to its normal state).

Here's the code I've written on the first frame on the main timeline(scene1), I have 4 buttons namely mcButton1, mcButton2, mcButton3, mcButton4 and 4 labeled frames, page1, page2, page3 and page4.: 

var page:String; 
var btnArray:Array = [mcButton1, mcButton2, mcButton3, mcButton4];var pageArray:Array = ["page1", "page2", "page3", "page4"];

[Code].....

View 3 Replies

Flex :: Manually Trigger A Buttons Hover State?

Jul 29, 2010

I need to trigger the hover state of a Flex button programatically, so that it looks like the user is hovering over it. There is a flex page about "Manually dispatching events":

[URL]

Which would work, but what I'd really like to do is change the style of the button without having to throw an event. How can I do this?

View 1 Replies

Flex :: Change State When Hover On Another Spark Element?

Sep 5, 2010

How to set a hover state (upSkin) when hover on another element? This example is not working on spark:

[URL]

Would like to do something like this:

<s:Button id="but1"/>
<s:Button label="change" mouseOver="button2_mouseOverHandler(event)"/>
protected function button2_mouseOverHandler(event:MouseEvent):void{
//make but1 look like I'm hovering it
}

View 1 Replies

Html :: When Hover AddFunctionBarContainer The AddFunctionBarButton State Should Be Hovered?

Sep 6, 2010

I've some flex structure:

<s:BorderContainer id="addFunctionBarContainer" width="100%" height="50"
mouseOver="addFunctionBar_hover(event)">
<s:Button id="addFunctionBarButton" width="20" height="20"[code]..

Explain: when I hover addFunctionBarContainer the addFunctionBarButton state should be hovered.

View 1 Replies

ActionScript 3.0 :: Dynamic Content Scroller (from XML) With Hover State

Oct 23, 2009

I was able to get the links working as they should but i can find no way to get the hover effect (not even the doopingTextArea class) I have content coming in through XML (a list of words and link)... I'm trying to create a menu where when you rollover the word the entire background area of that menu item changes color. Just like a CSS menu that creates a hover state that fills the entire background area of that item. Since the content is dynamic, it would need to have a scrollbar that expands/contracts etc.

View 2 Replies

ActionScript 1/2 :: Button MovieClip - Roll On / Off State

Mar 11, 2011

I have a button (movieclip button) that expands and displays extra things like a box next to it with pictures in. I have roll on and roll off code for the button so it glows and then returns to normal.

intelbtn.onRollOver = function(){
intelbtn.gotoAndPlay('over');}
This is the code for the roll on state.^

When I click it goes to and plays 'click' which is an animation that expands and such. If I take my mouse off the area which expands out of the button or the button it removes the information and plays the roll off state, if I put it back in the area it plays the roll on state and flickers alot. How do I stop this (with out disabling the mouse completely because I have a close button which I want to click to close and return to original button state)

View 9 Replies

Actionscript 3 :: Adding A Rollover State To A Spark Button When State Is Disabled?

Apr 14, 2011

I need to add a rollover effect to the disabled state of a Spark button. This way, users can rollover the button and know why the button is disabled.I think I would have to override ButtonBase's getCurrentSkinState. Is there anyway to test if a mouse cursor is over a disabled button?

View 1 Replies

ActionScript 2.0 :: Photo Gallery - Make The Image Window Smaller And The Overall Movie Smaller?

Jun 25, 2004

I found this really neat photo gallery on flashkit but there is no support or readme included. how to size this thing.. the AS code does have comments but I am not a coder.I'd like to make the image window smaller and the overall movie smaller. 325x325 or so

View 10 Replies

Professional :: Button "Over" State Not Working Within Visible MovieClip?

Jan 28, 2010

My button states aren't working right, and I'm pulling my hair out:The desired behavior is under the "Design...  button--notice how when you mouseover the "Our Philosophy" link it turns blue? Why isn't this happening for the "What We Can Do For You" and "Our Process" buttons in the other movieclips?The document is structured as follows:

MovieClip 1: Design: Your Silent Salesperson
---Text
---Images

[code].....

View 9 Replies

Professional :: Nested Movieclip Become Smaller ?

Nov 27, 2011

I created a stage size 960 by 640, than i create a movieclip exactly the same size as the stage, but when i double click to get into the movieclip everything get smaller an object with 960 by 640 has reduce to 184by 140??? How do I get it back to the original size?

View 2 Replies

ActionScript 2.0 :: Nav Button States - Button To Stay In It's Active State Until Another Button Is Clicked

Dec 17, 2004

I have a menu with five nav buttons (atcually MovieClips). Each has three frame labels: "on", "stay", and "off". The rollover and rollout animations play flawlessly, but I'm at a loss as to how to give each button a sticky "active" state. I'd like the button to stay in it's active state until another button is clicked, then I would like it to play it's "off" animation. Each MC has this code:

[Code]...

View 2 Replies

ActionScript 2.0 :: HitBoxes Inside MovieClip Scale Smaller Than Parent

Jun 7, 2005

I'm creating a simple navigation for a portfolio site. On my main (root stage) I have one movie clip. Inside this movie clip I have all the elements of my website. I'm doing this so the user can scale and move the navigational elements around. This is accomplished by simply placing actionscript on frame 1 on the main (root stage).

Code:
nav._xscale = 60;
nav._yxcale = 60;

Eventually I will but a slider on the main stage so the user can scale to whatever size. My problem is that everything scales fine, however, the hitboxes become extremely small, and don't scale with the rest of the elements.

Code:
onClipEvent (load) {
this._x = 8;
this._y = 25;
speed = 2;
} onClipEvent (enterFrame) {
[Code] .....

View 1 Replies

ActionScript 3.0 :: MovieClip - Scale Up / Down On Hover

Aug 24, 2011

This is a test I'm doing, where I have movieclips inside my movieclip holder that scale up as I hover over and scale down when I'm no longer hovering. Here is the code for that:

ActionScript Code:
import flash.events.MouseEvent;
import flash.display.MovieClip;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.events.Event;
[Code] .....

This works great. The only problem I'm having is that if you hover over each of the items quick enough, they don't scale back down.

View 3 Replies

ActionScript 3.0 :: MovieClip To Disappear On Hover

Mar 24, 2010

How do I make a movie clip disappear once the cursor hovers over it?

View 6 Replies

ActionScript 3.0 :: Flash Senocular's TransformTool - MovieClip Is Relocated Much Smaller Than Its Original Size ?

Jul 5, 2010

I see a number of cool sites and examples using Senocular's TransformTool. Most of them look and function really well. I've downloaded and reviewed the code for a number of different examples.I can see how everyone else's works.I'm having difficulty with 2 points:

1. When I select a movieClip, the TransformTool appears in the correct spot and in the correct dimensions. But the movieClip itself is relocated much above the TransformTool and is MUCH smaller than its original size and the current (and correct) dimensions of the TransformTool. Selecting one of the handles and dragging stretches the movieClip but does not make it the same dimensions as the TransformTool

2. Releasing one of the handles seems to cause the handle to behave in the same way the movieClip did -- you can resize and move the handle.

View 4 Replies

Flash :: Image To Pan Just When The Mouse Is Hover Some Movieclip Instead Of The Whole Stage

May 16, 2011

I'm developing a project in Actionscript 2.0. I have an image that pans. I followed this tutorial: [URL] Now I want the image to pan just when the mouse is hover some movieclip instead of the whole stage. When the mouse is hover of the left limit of the movieclip, the image pans to that limit. Like this one (except I don't want vertical panning): [URL]

View 1 Replies

Hover Flash Over Html Activated By Button

Jul 8, 2009

I am trying to have a link on a web page open up a flash video that appears to hover over the html. I have read web pages explaining parts of this but I cannot get it all to work together.

I am using swfobject to embed the flash object into the web page. I think I need to use javascript to handle the event of clicking on the button and then use z-index to have it appear to hover. Ideally the flash would center itself in the middle of the browser

View 1 Replies

Button Hover - Stroke Enlarges When Transformed?

Dec 7, 2009

I have a button that I use universally to show a hover state, so that the user knows the item is clickable. The hover state is a simple black stroke. Because the buttons with the timeline are of different sizes, I stretch the button to encapsulate the entire area I want to be linked. However, the stoke of the hover state is stretched too, so it's get thicker the bigger I make it. Is there any way to ensure the stroke is always the same weight?

View 4 Replies

Professional :: Make The Calender Appear On Hover Of The Button?

Aug 14, 2010

i have a flash form and i have a calender and want to make the calender appear on hover of the button - the problem is i did not make the calender I only have the SWF file so i have to do a load event and then make the output on the calender go into the "date" section of the contact form.

View 31 Replies

Flash :: Restrict/reset The Scale Proportions Only In Special Case That The StageWidth/Height Are Smaller Than The Movieclip?

Feb 1, 2010

I'm trying to make a movieclip scale proportionally only if the item is being resize smaller than the current.Obviously I can use the ScaleX/Y values like so:

if (cont.scaleX < cont.scaleY ) { cont.scaleY = cont.scaleX; } else { cont.scaleX = cont.scaleY; }

I need to restrict/reset the scale proportions only in special case that the stageWidth/Height are smaller than the movieclip.

View 1 Replies

ActionScript 3.0 :: Having A Song Play When User Hover Over My Button?

Nov 25, 2010

I am creating a project and I want the user when they hover over my button to have a song play, when the user leaves the over state, the song stops, I can't seem to get it to work. Here is what I am doing, I have my button, inside the button on the over state I nest a Movie Clip, inside of that I bring in the song, in the properties I set it to "Start" and "Repeat x 0".

When I load the SWF it automatically plays.I've tried adding some AS3 to it but I can't seem to get it to work. like "stop();" which did nothing.I did some googling and found "SoundMixer.stopAll();" which does stop the song from loading on start.

ActionScript Code:
stop();
SoundMixer.stopAll();[code].....

View 2 Replies

ActionScript 2.0 :: Mouse Cursor Changing When Hover Over Button

Jul 12, 2004

I've made a custom mouse cursor but the cliente wants that little hand when the mouse is over a button and/or links. Is that possible?

View 2 Replies

ActionScript 2.0 :: Movie Clip Button Up-state, Stay Up Until Clicked On Other Button?

Feb 23, 2006

how to keep a Movieclip Btn 'Over State' to stay in the over position until another button is clicked?

View 1 Replies

ActionScript 2.0 :: FLASH 8 - Toggle Button/released State/pressed Button

May 18, 2007

I have a series of buttons inside an array. I am trying to get the buttons so that once they are pressed, they remain in the over state. Which is a darker color than the up state. So that people know which button they have pressed. Is there an easy way to do this for buttons?

View 1 Replies

Professional :: Movie Clip Button Over State Triggers Another Button?

Apr 13, 2010

I have two buttons that are movie clips in Flash CS4 and when button 1 is on Over stage, I want the button 2 stop movie clip at the certain frame.

View 8 Replies

ActionScript 2.0 :: Movive Clip Button To Have A Hit State Like A Normal Button?

Feb 16, 2008

Is there a way of telling a MC button to have a hit state like a normal button? I have some text popping up away from my MC button that is included in the hit state. When I roll over the main button the text pops up. But also, when I roll over where the text pops up it also triggers the pop up animation.

View 2 Replies

ActionScript 3.0 :: Dynamic Button Hover Tooltips / Descriptions And Linking?

Apr 7, 2011

I am busy converting my online digital portfolio from AS2 to AS3. I have made a new .fla and placed within it only the elements that relate to my question, to greatly simplify things so it is easy to see what I want to do.Lets say I have 3 movieclip buttons, which do three things when hovered over :

1. play a shine animation

2. move slightly

3. cause a tooltip description to appear / fade in, somewhere else on screen.

When mouse moves off, the above 3 things revert to normal and the description fades out.These buttons serve to show a description of the relevant project in my projects folder (project1.html, peoject2.html and project3.html, for demonstration purposes), and to link to them when clicked. The point is that I am trying to do this dynamically, so I have one movieclip(called descriptions) that contains all the descriptions each on its own frame, and use something like

//pseudocode
when button 1 is hovered over, descriptions.goToAndStop(1);

It is difficult for me to explain - but if you just run my swf and also take a quick look at my code (its not a lot) you will know exactly what I am trying to do.

In summary: Basically if you run my swf, you will see 3 buttons. When you hover over each, they are all saying Description 1, but I want button 1 to show description 1 and button 2 to show description 2 etc.Key items / code to look at inside the .fla are :

1. the first frame on the main timeline, actionscript layer - the code

2. the descriptionsHolder movieclip on the descriptions layer

3. the projectDescriptions movieclip inside the descriptionsHolder movieclip

4. the dynamic button (double click any of the buttons) - this is the idea I want for the descriptions too, its a reusable button that has the label 'button1' on all 3 buttons but with some code - the labels change at runtime to button1, button2 and button3.

5. the code inside the dynamic button movieclip on frame 1, actionscript layer.

6. note the buttonLabel movieclip inside the button movieclip, same thing I want done for the descriptions.

6. Also to please note, my code for linking each button to a project (not working)- that I also want to be a reusable function, for assigning a variable to contain the link for the dynamic button, depending on which instance of it is clicked -> go to either project1.html, project2,html or project3.html. I am trying to 'think like a programmer' and use modular, dynamic stuff, but it seems I am having trouble assigning variables or individual frames at runtime to multiple instances of the same dynamic movieclip.

View 3 Replies







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