I'm working on a project and my main timeline is 24fps but then I have movieclip where I want the fps to be 15. Can you type any code to play the movieclip at 15 fps instead of 24?
how i could change the movieclip border around a circular object/movieclip.cuz know my my hitTestObject will also test on the corner of the movieClip and not the actual see able object like i show down here how coud i change this border to the second image?
I am building an RPG type game in flash and have hit upon my first problem.I have created a character out of various different body parts (upper arm, lower arm, hand, head, etc..) I would like to make it possible to change the look of each of these body parts (different types of armor / clothing) whilst maintaining the whole body animations.I'm becoming confused about how many things are inside each other! Rather than recreate a whole new set of animations for every conceivable combination of armor and clothing it should be possible to simply change one of the graphics within the movieclip that is the character.
So the structure I have thought of is like this:Whole body > Changeable graphic > Base Body Part (bare arm for instance)What is a sensible way to go about doing this? I'd like to have a solution that is easily scalable and won't require notably more work if there are 10 different types of changeable graphic or 1000.I think that I need use the event that triggers the armor / clothing to change for that body part, to run a script that either somehow changes which graphic it is displaying, possibly inside the Base Body Part movieclip.
I'm currently making something in flash and I require a code to change the fps of a movieclip(to 20fps) without effecting the rest of the movie(24fps).
I need the '_root.newXpos = 0000' to tell the movieclip to stay in the X position it is currently in (it will be different each time as the user can move the movieclip via buttons, so a simple Xpos = 0000 won't do)Alternatively, I've tried adding -
on (press) { _root.newYpos = 476.2; if (_root.Ypos =476.2); gotoAndPlay ("Pxcotos", 1); }
on a button but the scene changes before the movieclip has a chance to slide out.
I've made an image slider in flash and need it to slide out at it's current position before changing scenes. The code i'm using is -
[Code]...
on a button but the scene changes before the movieclip has a chance to slide out. Is there anyway of telling the actionscript to wait before jumping scenes between the code?
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 am trying to change the color of my movieclip, but am having alot of trouble targetting it. Its within a button, that is within another movieclip, its path looks something like:
root.fullgrid.b1x1.planetfill fullgrid is movieclip b1x1 is button planetfill is movieclip <---this is the one I'm trying to change color. function change color(e:Event):void { var colorTransform:ColorTransform = target.transform.colorTransform; colorTransform.color = 0xFF0000; target.transform.colorTransform = colorTransform; }
I am able to change the color of a movieclip on the stage, so I know the code works, its just a targetting issue.
I have 4 movieclip in the stage. Its instance names are mc_1, mc_2, mc_3, mc_4. To change the x position of this movieclip I can use the below AS 2.0 code. It is working fine.
for (i=1; i<=4; i++) { eval("mc_"+i)._x += 10 }
I like to know how to write this statement in AS 3.0.
Basically, I want to change the alpha value on my movieclip. I start my mc with an alpha of .08 (8%). mc.alpha = .08; What I then want to do is increment it to .9 (90%) and when it hits that, decrement it back to .08, and then when it hits that, increment it again to .9 etc.
I have tried if(mc.alpha==.9){ mc.alpha -= .01; }else{ mc.alpha += .01; }
Im trying to change the depth or index of a movieclip when its click. And bring it to the top of everything. The problem is that the movie clip is not added by addChild, but nested in a frame.
so if i try and use any of these:
anyMC.parent.setChildIndex(anyMC, anyMC.parent.numChildren-1); or public function bringMCToFront($mc:MovieClip){ $mc.parent.setChildIndex($mc, $mc.parent.numChildren-1);}
by it gives me this error: Error #1065: Variable setChildIndex is not defined.
i want to change my frameRate without changing another instances.Basically stage frameRate should be same but my movieClip frameRate has to be changed as per my choice ?
Using the deco tool Ive created a simple fire animation. The problem with this tool is that it wont let me set the speed above 200%. So my idea to solve this was to create a movie clip, use the deco tool there and somehow speed up the playback of this MovieClip.
Stage.frameRate = X works but it changes the frame rate of everything. fire_mc.frameRate = X doesnt work unfortunately.I dont need to it be precise. I just want this MovieClip to play 5 times faster that it plays now.
this is a movieClip with a textField placed over it. I would like to change the movie clips color when clicked, but not the text color.
var myColorTransform = new ColorTransform(); myColorTransform.color = 0xFFFFFF; mc.transform.colorTransform = myColorTransform;
When I try the code above it changes the whole movie clip color, text included. Is there a way to just change the background movieclip color and keep the text un changed?
is there an easy way in flash as3 to change the movieclip image? how do i go about this? can i control wat image from its frames are shown? gotoandplay() ? and how do the stop it at that frame>
Happy New Year 2010 everyone :) Just getting back into the Flash groove, and having a simple question.I have a movie(video player) where the color of the buttons changes. I've already drawn out the buttons and created a 1 color box(movieClip) that will be the background of all the buttons.
I've used ColorTransform to change the color of a rectangle that I used code to create, but what is the simplest way to go about changing a color in a movieClip containing a graphic that you physically have drawn out. Path to movieClip that I need to change the HEX value of: controls.btn_Sound.colorChip
I have 4 movieclips. MC_flag MC_flag2 MC_flag3 MC_flag4
I have a enemy. (Not programmed yet ) And MC_dude, the player.
When I move MC_dude on top of MC_flag1,2,3, or 4, I want the flag to change to a different Movieclip (An american flag that I have already made.) after 5 seconds. I would also like to know how to make it go to the next level after you cap all the flags. Also, If the enemy captures the flag, it displays a lost screen.
Ok. I am new again so I hope I am describing this correctly. I don't know the best way to do this but this is what I've dreamed up so far: I have a number of movie clips on my screen, all thumbnail sized images, each with an instance name (ex: tw_lifeoftheparty, tw_xmen, tw_xfiles, tw_diehard, etc.).
In each movieclip there are 2 layers: the thumbnail image(bottom layer) and a black border(top layer). The black border is an object named wk_border and isin each of the thumbnail movieclips.
I have given wk_border the same instance name in each thumbnail movieclip "border"
the question is a bit more involed. I have a dynamic text box, which I've put inside a movieclip. I hae a number of movieclips that I bring in using attachMovie, but my movieclip which contains my text box is underneath all the other movieclips.
I would like to know how I can tell my movie to display above all the other?
I have a blank movie clip that is loaded into my program 40 times. I have several different buttons that when clicked are supposed to change the graphic on these 40 objects to various different things. How do I code a button press to change the graphic in an object like that?
I'm trying to do something fairly simple. I have a movieclip that when clicked with change it's alpha = 0.This is the script I'm using for the movie clip: