ActionScript 2.0 :: Change Something That Is In One Moive With Another Movie?
Sep 13, 2004I would like to make it so that the viewer can change the color of a movie using a button which is placed in another movie.
View 1 RepliesI would like to make it so that the viewer can change the color of a movie using a button which is placed in another movie.
View 1 Repliessrry dekete post
View 0 RepliesI am trying to attachMovie from array.
Here it goes like this:
var __reg3 = new Array ("1", "2", "3", "4");
_root.p1.attachMovie(__reg3[0] + 1, "run1", 1); -- Not working
Then I tried using string:
[Code]...
How can i make it that i change 2 or more movie clips change color. At the moment i can only do one?
View 2 Repliesi 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:
Code:
mcButtonParametri.onRelease = function():Void{
addWindow("mcPar");
}
[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 need to change all the elements in my movie that have the color X and change their color to color Y. Is it possible to have this in AS? like, if i press one button all the elements that have the color black (graphic, text, background, etc) change their color to yellow?
View 1 RepliesI would like to make it so that the viewer can change the color of a movie using a button which is placed in another movie.
View 1 RepliesI have created a small user interface that will just sit and play a video in a store as well as show an RSS feed and Randomly rotate through pictures. what I need to be able to do is change the video that is playing by uploading a new one to the url that the flash program is looking at.
View 1 RepliesI 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].....
View 1 RepliesI am as new as a flash newbie can be and I was editing a template for a flash intro. My company wants to use a different soundtrack for the intro which would necessitate changing the timing of the intro. What I mean is that I want certain scenes to display slightly longer than they are now.
View 2 RepliesI made a movie that has two scenes. It is an intro for a website. I want Scene 1 to play through once, stop for a few seconds, and then transition into Scene 2. Scene 1 is like a cute little "loading" sequence that takes only about 2 seconds to run. I would like Scene 1 to then make a slow-er, smooth transition into Scene 2. I would then like the movie to stay on Scene 2 and continue looping only Scene 2 until the user presses the "Click to Enter" button.
View 1 RepliesI have a flash movie, which I want to use as a header for a website. When I play the movie, I have 5 different buttons on it. When I open through Flash the .fla file it shows me that there is one button copied 5 times.How do I change the name in one of the buttons in the movie, I want when I play the movie, to have a different name on the button, but I don't understand from where do I change the name, if all the buttons I have in the .fla file has the About me name, I suggest the name is the same because all the buttons does the same effect when you go over them.
View 2 Repliesi 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.
View 1 RepliesI 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.
I have just made a flash game for a college project, and to finish the project we need to do error testing, while bashing the keyboard I found that > and < change the frame your on when the movie is playing.
View 2 Repliesi'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.
theBtn1.addEventListener(MouseEvent.CLICK, adjustText1);theBtn2.addEventListener(MouseEvent.CLICK, adjustText2);function adjustText1(e:MouseEvent):void{ textField1.text = "Foo"; // this works}function adjustText2(e:MouseEvent):void{ theMC.getChildByName("textField2").text = "Bar"; // this doesn't}
It throws this error:
1119: Access of possibly undefined property text through a reference with static type flash.display:DisplayObject.
Greetings! iam trying to change color of a movie clip in AS3 using transform command and the following code:
import flash.geom.ColorTransform;var newColorTransform:ColorTransform = box.transform.colorTransform;
newColorTransform.color = 34171200;box.transform.colorTransform = newColorTransform;
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 created a flash movie(Interactive Map) for my company and I have been asked to print out the file with our company Icon instead of regular flash icon.
View 2 RepliesHere I want to ask how to change the loaded movie from child?
Here is my working code, but it doesn't works...
Root:
var contentMovie:MovieClip = new mcMain;contentMovie.name="content_mc";addChild(contentMovie);
[Code]....
So, I have a site, and I want it to play an intro movie when you load the index page. I have it as LoadMovieNum (videos.htm), but I want it to play the video on that page, which is about 30 sec. long, and then redirect to another .swf page entitled index.swf.
View 3 RepliesI 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.
It it posible to change the movie clip name with code.Something likemc1._name = 'mc2';
View 2 Repliesi'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
[code]......
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].....
How do you change a Simplebutton or movieclip frame from as3 in the main actionscript?
gotoAndStop does not work with an instance--I get a compiler error when trying something like star1.gotoAndStop(1) where star1 is my instance of a button or movieclip.[code]...
I am new to actionscript forums and also actionscript 3. I have some questions related to AS3.
I have made a simple square in flash cs4 converted it to a movieclip.Is it possible to fill the square using AS3 ?
I am making a program that tells the shortest value required from one end of a maze to the other. How can i animate this in flash using as3 ?
I wanted to know if there's any command that let's you bring in front target Movie clip or Move it at the end...
Also Is there any command that pauses the proccess of the script and another that let's you continue?
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
View 1 RepliesIs it at all possible to change the frame rate of a movie with AS?
View 3 Replies