ActionScript 3.0 :: Change The Scale Of Some Buttons
Sep 18, 2010
i made it flash. in the actionscript code i use many tweens also to change the scale of some buttons. so when i click button A that loads section A all the other buttons get scaled to 0. then when i click the home button i want those buttons to reappear and function. but my problem is that when i scale them up again they don't function. so in the actionscript of the button A i use a eventlistener for click and then the graphics and the buttons all scale down to 0, then a uiLoader loads some text and i make the home button appear. But when i click the home button and everything reappears, the buttons that once where there don't function any more. Is this normal? how can i fix it. Sorry but i am very new in flash and actionscript.
The scale is from 0 to 1200 and the problem I have is that the value I want to show is usually so small that it looks like it's stuck next to zero all the time. So, what I need is change the scale to logarithmic so the values from 1 to 10 take up as much space as those from 10 to 100 etc. and the small values show fluctuation. In thefollowing image you see on the left how it behaves now and on the right how I need it to become (both show a visualization of a small value, something around 7 or 8).
In flash if I change scale of parent movieclip, scale of all child inside the parent was changed too. Now I look for the best way to fix child scale while parent scale is changing. I mean the way with minimum listener and cpu usage. In my project I have a map (as parent) and many icons on map (as childs). map has zoom in and zoom out button and pan while dragging.
I have the following script that takes a number and visualizes it on a circular shape much like an odometer/speed meter that a car dashboard has.[code]...
The scale is from 0 to 1200 and the problem I have is that the value I want to show is usually so small that it looks like it's stuck next to zero all the time. So, what I need is change the scale to logarithmic so the values from 1 to 10 take up as much space as those from 10 to 100 etc. and the small values show fluctuation. In the attached image you'll see on the left how it behaves now and on the right how I need it to become (both show a visualization of a small value, something around 7 or 8).
I'm trying work out how I can resize movieclips with actionscript.
The plan is to have lets say 10 movieclips on my stage. You click on one of them and it grows smoothly to 200%, where as the other movie clips all shrink down to 10%.
If you then clicked on another MC (currently 10%) this one will begins to grow to 200%. The previous (currently 200%) will shrink to 10% and the MCs that are already 10% remain how they are.
I have the following script that takes a number and visualizes it on a circular shape much like an odometer/speed meter that a car dashboard has.[code]The scale is from 0 to 1200 and the problem I have is that the value I want to show is usually so small that it looks like it's stuck next to zero all the time. So, what I need is change the scale to logarithmic so the values from 1 to 10 take up as much space as those from 10 to 100 etc. and the small values show fluctuation. In the attached image you'll see on the left how it behaves now and on the right how I need it to become (both show a visualization of a small value, something around 7 or 8).
I'm developing a Zoom tool in my Flex App, so I'm using scaleX and scaleY property to simulate this behaviour.But when I scale my Canvas, its size change as well (obviously). The problem is that I have this Canvas inside another Canvas, so the first Canvas can't be smaller than the second one.Here is an image before and after apply zoom changing scale property in both axis:At the left, the original Canvas. At the right, Canvas after update its scale (red rectangle is the original size at 1:1, and green is after resize).I need to extend the Canvas to take up the red rectangle (not the green).
The selector mark is suposed to "mark" the selection on the menu after a selection is pressed. But Im having problems with the X and y coordinates and scales of the MC and when I click on the option, the MC gets smaller and then bigger to the size I want. Its suposed change scale and position but its not working like it is suposed to work. Im not sure either if Iļæ½m setting the Mc on the initial x and y coordinates.
Have small thumbnails that will enlarge when the mouse is over them and shrink when it's not. For some reason sometimes only the X or Y will scale or the buttons won't work correctly. The animation will pop and I don't know how to fix it. The only reason I drop the opacity on all the others is because sometimes other images will get in the way.
i have loaded a colorful image. when i rollover this image, then the image has to change in grey scale.i think it can be done with filter adjust color, but i want to do this with scripts.
i have loaded a colorful image. when i rollover this image, then the image has to change in grey scale.i think it can be done with filter adjust color, but i want to do this with scripts.
When you load a object through flash, you can set the rotational/scale point, but when you load it as a loader object or sprite, how do you change this point?
In this instance, I want to change the height of a sprite that is filled with a rectangle so that it shrinks down, not up.
Right now:
var colored_bar:Sprite = new Sprite(); with (colored_bar.graphics) { beginFill(0x9e1819, 1);
[Code]....
The way I am doing it currently is moving the y position everytime I take away soem of the height, so it looks like it's moving down, but I'd think moving the orientation point at the beginning would be faster
I'm a bit of a newbie, wondering how this scaling effect is possible. See www.sagmeister.com - when you scale your browser window, the entire site interactively shrinks or enlarges to fit. How is this done with Flash MX? Is it a publishing option or an actionscript or what?
I'm looking to create a rotating set of images, simulated to look 3D... that can rotate either left or right, reactive to someones mouse location.
The path of the images would look like a flat oval, and as the images came to the forefront, they would be at full scale, have the lowest position (high _y), have the highest depth (appear in front of everything else) and be dead center _x.
As they slide left or right, they would reduce everything by a relative 50% to the final shift (scale, _y, and depth) until they got to the end, moving in an upward arc following the oval path. When they got to the end, and kept rotating beyond (move in the opposite _x. but appear to follow the flow of the arc), continuing to decrease in scale, _y, and depth.
Scenario: main moveiclip with 4 other clips in it. I want the rolledover clip to scale up and all the others to scale down and blur.
Question: What is the most effiecent way to code this. Would it be a "for in loop"? I am trying to minimize the code and would rather not use a whole bunch of if then statements.
How can I convert the current scale of the instance to 100% so I can easily "visualize" and manage the instance when I modify its scale? Here's the actionscript, it works, but I just want the temp._xscale and temp._yscale to be in percentages, not real numbers.
Code: USflag.onMouseDown = function () { var temp = USflag; onEnterFrame = function ()
[code]....
One last thing, what's the tag you have to put that is designed for boxing actionscripts? I'm suing [ code ][ /code ]
My Flash image will not scale.if you zoom in, it gets chopped up. if you zoom out, it has a big blank area.What should I change in order to have this Flash image scale just like the rest of the site? [URL]It is the Flash in the center.
On the bottom layer of the scene, I have the background art and logos.On a second layer, I want to put graphics associated with the button selection of the user.On a third layer I will have the buttons. I want to be able to switch the buttons to another language when a user clicks on a flag at the bottom of the art board, but no matter what language is showing, I want the buttons to call up the related material on the second layer. For instance, I will have one "Install Software" button that will switch to "Software Installieren" when clicking on the German flag and "Installation du logiciel" when French is selected.
I am wondering if there is an easy way to allow the user to change the background image on the stage by clicking a button. I have several different background images (they are just different colors, each on its own layer) and I want to have small buttons of each color that can be clicked to change the background to that color.
How can I make a button that, when pressed, changes a textfield (with a scrollbar) to a different textfield (with a scrollbar) in the same place? Essentially (I think), using a button to swap an element and make it fade in or out.
I have been using Flash for years by the skin of my teeth. I like the asthetics so I can seem to stop using it. Anyway. I just threw this website together using a flash menu at the top and an iframe in the center to change the content. I know I could just re-do the whole site and make it work but I think that I am probably missing a really simple code fix in Flash to make Firefox load the pages in the iFrame. The website is www.greathousefarm.com and I am on a mac so I did it checking Safari and it worked perfect. Than my husband checked it in Firefox and it kept opening a new window instead of loading into the frame. [code]...
Is there a simple code addition I can use to tell Firefox to target the frame?
How can I make that when I press one of the button arrays then a movie clip loads in the frame where it sends me? for example on the company. And then the movie clip unloads and another loads when I click on tutorials? forexample.i just want that clicking a specific array button triggers the appearance of my movieclip in only the frame where the button sends me.ere's the code for the menu:
Caurina.Transitions.Tweener import; var menu_label: Array = new Array ("Home", "The Company", "Online Store" "Service Center", "tutorials", "Contact");
I created an animated button and copied this six times. i would like to chane the colour of each individual button, but when i do this it changes the colours of all the buttons. how can i do this so it changes the individual the colour of a single button.i need to know how to do this as also later i want to apply different sounds to each button.
I started using Flash again after a "brief" hiatus (the last time I used it, Flash was on it's MX version ).I am trying to create an animation in which I can move across the stage a simple object (a circle, a square or a star, for example) using buttons (left, right, up and down)This was fairly simple using AS 1, even when I was no expert. The thing is that those simple ways are no longer working with AS 3.I spent a few hours doing some research until I found this nice tutorial on this same site:
Code: http:[url]....
I followed the tutorial, and all was working nicely, but when I attempted to do the animation from scratch, it simply didn't work .I even used the same names for all the objects and instances, but still nothiing.
I want to populate a series of buttons from and external text file but unsure of how to do so. Lets say I have 5 buttons. Each one with a Var (Target1, Target2, Target3, etc.). How do I change the text on those buttons from and external text file?
iv been trying for awhile now to get a few of the buttons im using on a site to change dimensions when i hover
basically i would like the button background to change dimensions and extend length wise to the other end of the web page whenever the mouseover appears the lenght of the botton extends smoothly and also goes back to its original size smoothly without snapping back
iv read lots of tutorials (got adobe flash cs4 book) but its all about moving images and so forth not really dimensions
if anyone can point out a tutorial or knows how to resolve this