ActionScript 2.0 :: Change The Scales Of Movie Clip
Feb 15, 2005
i have a problem with flash mx 2004! I have 2 scenes.At first scene i have one button1 into in one movie clip1 and at second scene i have only one movie clip!!!Now, i want when i press the button (at first scene) i can to change the scales of movie clip2 (at second scene)! My code is this and i can go to scene 2 but i don't change the _scales!
I have a website which im designing exclusively in flash. The project size is 1000x500. The video which im using is 320x150. On the stage ive set the player to 320x150. The stage size is 1000x500 (thats the size and span of the website). When the page works from the internet. It expands to fill the screen of the viewing computer. Which is what i want anyway since Ive set my publish settings to get this. But the video player gets scaled along with the page that scales to occupy the viewing screen. So when the player becomes a little larger than its orginal size the video looks low quality. Is there a way that the player alone could be set to maintain its orginal size of 320x150 and not scale because this is causing the video to get distorted and pixellated ?
i would like to show my flash movie in a browser window so that it fills width and height as good as possible without distorting the movie. when i use the width and height attribute to the object/embed tags it only scales the width but not the height.
I am just learning actionscript 3.0 and am hoping someone can help me with a little problem. My code seems correct but only works half the time when I preview it. All I am trying to do is when a button is pressed, the content movie moves down to the right and scales down to 50%. The code works perfectly for the first few times I push the buttons but then starts to move some of the way and stop and I have to press the button at least one more time to get it to complete! Sorry this is so long winded but I don't know how to phrase it!
i wanna change color of mc. I have buttom Test and Parametri. In Test is movie testing.swf in Parametri you can change color of movie clips. in file starttesting is make like this:
in layer1 is mcPlayer. In this mcPlayer are three layers, action, container and buttoms. in action layer is this code:
How can I change color of mcOksid(testing.fla), but color will be change when i push a upload buttom? WHen i push reset buttom, the color will come back to default.
Second problem, in testing.fla in layer OKSID, i have mcOksid and mcOksid2. Know if i change color of mcOksid to blue, mcOksid2 has to be blue too.
I have a looping movie clip and want it to speed up when the mouse rolls over one of the ends. Is there and action script that will do this? Or a different way to get it done? I faked it by making two movies with different number of frames but when you load that movie it starts over and it looks stupid. I have the scrolling animation on the site but want to put that effect on it. Click the first box after the intro to see the animation at the bottom(line of trucks) http:[url].....
i want to change frame rate of movie clip during run time on button click.....i have 3 movie clips...and i want to control the frame rate on button click...am using attachMovies to play the movieclips.
I have a movie clip to display a clock and a datagrid for showing my schedule. I want my flash to alarm with sound when the time from the clock match one time on the schedule. Here is my actionscript:
Code: clock_mc.onEnterFrame = function() { if (_root.timer[i]==_root.clock_mc.clock_txt.text.substr(0,5)) { alertSound = new Sound(alertSoundMc);
[Code]....
As you can see, I use onEnterFrame to listen and check matching between time on clock and schedule but it will check all the time and when it alarmed it produced sound all the time while the time is matched. I would like my flash to alarm only one or few times.
I want to have my character walk around in a faux 3-d space using the arrow keys on the keyboard. When the character walks away it becomes smaller and when it walks closer it becomes larger. I have put together a script that pretty much does what I want - except the ratio of the height and width of the MovieClip do not stay the same. It becomes fatter as it walks away and skinner as it comes closer. Here is my main script:
[Code]...
I think the problem is with the operator here: ratio = this._height/this._width; The slash between "height" and "this" seems to be what is giving me trouble. Maybe I should be writing some other script entirely? I am not very good at script writing.
hw can i find the color number? newColorTransform.color = 34171200; previously i use in AS2 like 0xff0000 for red i will find it from the color palete..
I have movie clips which I made act as buttons, (Previous, Pause/Play, Next).[code]...
The button is a non-filled circle with the proper symbol in the center.
I am going to add themes to my application, where people can choose a pre-selected theme, which will load all info through a xml file (background-image, button colors, scrubber colors, etc).
How would I change the colors of the buttons in my movie clip? They are pre drawn images, that are stored in my library.
i'm trying to replace text in a dynamic text field within a movie clip, and it seems as if it's treating it like static text. Is there a way around this?
theBtn1.addEventListener(MouseEvent.CLICK, adjustText1);theBtn2.addEventListener(MouseEvent.CLICK, adjustText2);function adjustText1(e:MouseEvent):void{ textField1.text = "Foo"; // this works}function
I am creating a green circle with a white arrow inside it and want arrow to change from white to green and the circle to change from green to white when user mouses over it.My function is the following:
ActionScript Code: private function DrawSliderPrevBtn():void { SliderPrevBtnMc.graphics.clear();[code].....
I am creating a flash presentation for school. I am unable to solve this problem, that keeps on pestering me.The problem is:I am trying to create a touch screen calibration movie clip. The only problem i keep running into is, when i click the calibration touch screen cross, what is the script that allows the change in position of the cross after it has been clicked on?Example:The original cross is orientated on the top left of the screen, after it has been clicked i need it to move to the top right of the screen, then clicked again - bottom right, and again bottom left and finally clicked again to be displayed in the centre
-movieheight is a variable in the movie which has been loaded into level1. -project is a movie clip (I made sure I named it properly). -mytext is a text box in the main timeline of the movie in level1. (I set the variable to mytext for this box too). I have tried to use eval("_root._level1.project.height"), but nothing works - the movie's height never shows up in the text box. Debug > List Variables tells me that movieheight is "undefined".
Here's the code from a button that controls a movie clip on the main page[code]...
The code works fine when the button is on the main timeline. However, I have a new complicated rollover button which is no longer on the main timeline. How do I change the path to the "container" movie clip?
just wondering if there is a script that could let me change the way that a movie clip behaves, for example, I have movie clip "a" and in a certain frame I have the function;
a.onRollOver = function (){ gotoAndPlay ("that"); }
can I later have a script that removes the onRollOver property so that the movie clip is once again JUST a movie clip and not a movie clip button?
How can I change what movie clip an object is contained in after it has been added to the stage? I want a movie clip to start out in the main stage but them move into another movie clip so that when I move the containing movie clip the sub clip moves as well.
This is probably super easy, but it's kind of hard to search for...Basically, I'm working on a site... http:[url]....
index.swf is the navigation, which by default calls forth index2.swf in the movie clip
var l = new Loader(); page.addChild(l); l.load(new URLRequest("index2.swf"));
I want to be able change what external swf is loaded in the movie clip via the URL.So index.swf?url=media would load index.swf with media.swf in the movie clip.
I'm writing a simple game with Flash and I need to change the scene from inside a movie clip instance. I know how to change scenes with a button, but I can't seem to get the scene to change when certain criteria are met. For example inside a movie clip object I have this:
seems a little complicated for replacing an image in a movieclip with something else. It seems like a hack actually. Is it really so hard to switch a png (maybe of a different size) in a movieclip with something else? It also appears the livedocs at this time, are down. If it gets any harder I might switch to silverlight if it's not based off hack(ECMA)script
I just start to give the firsts steps in Flash5 ActionScript, then I would like a pacient help, because I can't to do this.I have an intro (Instance Name: logo) and another movieclip (InstanceName: back).The intro starts(logotipo), on the middle they calls the other movie clip(back in tell target "go"). This movie (back) that would to be the background of the all scene and of the "logo" too.First problem. I want to invert the levels of the movieclips because I want the mclip(logo) always on stage and the "back" on _level0.That can be possible?! How??On the end of the MovieClip(back) I' ve got the action:loadMovie("menu.swf", _level20).The "menu.swf" is a menu bar with the buttons. When I press a button is to change the action of the movieclipe(back) on the _level0.
The bits highlighted in red bold above is the section where I've got stuck.. I have tried code: var bgdcolour:uint = Countdown.@bgdcolour; , but no luck and all I get is '16777215' in the output panel..
I've got a looping slideshow. I'd like to place a sliding menu at the bottom of the screen. The problem is I've created the slideshow dynamically, and the images being loaded all inherit a depth greater than 0.
how I can place the sliding menu at the very top of the presentation when it's already on the stage?