ActionScript 2.0 :: Change Movie Clip Height For More Then 220 Hairline Gets Thick
Aug 19, 2004
Check out "Attach Files".. I want to make a cube motion where my hairline will stay skinny.. (left cube) but if I change movie clip height for more then 220 my hairline gets thick! (right cube)
The movie clip is a scroller which I download a while back (I can't remember where from now) The contents of the scroller which i want to scroll is a seperate movie clip which loads it's contents from a .txt file. The problems I am having are:
1 - I cannot seem to change the height of the text box movie, I can change it in flash, but when i publish and play it just appears at a set size.
2 - the last link in the contents jumps like crazy when I hoover over it.
3 - when there is less content than the size of the text box I would like the scroller to disapear.
4 - If I add a mask around the text box, the contents disapear, i have in place a custom mask for the mean time but this will have to go.
I am trying to get the loaded movie "GB.swf" to scale/change width and height onResize. And yes I do want to be loading into a level, not into a mc, with loadMovieNum. Here is the code:
stop(); var depth = 5, x = ((Stage.width/10)*2)+10, y = 160; var widthscale = ((Stage.width/10)*6)-20; var heightscale = (Stage.height-170); _root.onEnterFrame = function() { this["_level"+depth]._x = x; this["_level"+depth]._y = y; [Code] .....
So I'm trying to set the width and height of a movie clip symbol. Initially, on the stage the movie clip is set to w = 400, h = 350. Whenever I load a 400x350 image on the clip (from a button), it looks way too wide. So I tried to fix this by adding setproperties for width and height on the action for the button.
I am trying to test it. I am loading swf's into movie clip with XML stacking each other vertically. I found out that after movie clip is reached the height of 65000 px the other loaded swfs will not be loaded correctly. They are loaded from the 0 point again overlap previously loaded swfs.
I am trying to test it. I am loading swf's into movie clip with XML stacking each other vertically. I found out that after movie clip is reached the height of 65000 px the other loaded swfs will not be loaded correctly. They are loaded from the 0 point again overlap previously loaded swfs.
I would like to use a movieclip to load a flv video. The problem I have is that I want to change the video dimensions. I've tried several software to change the video dimensions but as far as it seems all of them keep the same height-width ratio than in the original video. Is there any software that would allow me to change the height and width without keeping the same height/width ratio as in the original video file?
I'm using a tweening engine and I need to be able to base the _yscale % of a movie clip off the height of a dynamic text field that is slightly smaller contained within the movie clip. 52 pixels smaller to be exact.I'm very poor at math but I'm guessing so far that some variable needs to be declared to factor the percentage based off the height of the dynamic text field. And I just can't think of how to do that.What I know so far:movie clip height at 100% _yscale = 396 the 'buffer' space above and below the dynamic field = 52.So if my dynamic text field height = 0, my movie clip would be 52 pixels in height. And that percentage in _yscale is 13.1%.I just can't figure out the math for this and how to translate it into ActionScript.
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 am resizing a movie clips height automatically to match the height of some dynamic text that is displayed above it (will eventually be loading it from xml ). is there a way to keep a safe margin top and bottom? this is my code so far Text_Box_Graphic.height = Text_Box.height;
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