Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Changing The Size Of Multiple Objects In Multiple Keyframes


I have a movie with 10 keyframes is it possible to resize an image in all of the keyframes, without having to select each keyframe individually?

If you use select an highlight all keyframes it only changes the last keyframe to selected.

Thx




ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 11-19-2002, 11:09 PM


View Complete Forum Thread with Replies

Sponsored Links:

Aligning Objects In Multiple Keyframes
Is their anyway to align objects that are in multiple keyframes at once? So, if you import 20 pictures each with their own keyframe is their a way to align them to the center of the movie at once instead of aligning each keyframe individually? Thanks.

View Replies !    View Related
Moving Objects In Multiple Keyframes
Is it possible to move the position of all the objects on the stage in all keyframes without having to go into each keyframe and individually move each item?

For example, I want to move everything up about an inch on my stage. If I do a select all frames and select all and try to move stuff...it only moves the things in the first keyframe. Any way to do it..or do I have a lot of tedious work ahead of me?

View Replies !    View Related
Moving Objects With Multiple Keyframes
I want to move everything on a nav bar about ½" to the right but there are 3 sets of keyframes throughout. Is it possible to select all objects/buttons etc and all the key frames and move the lot as one piece? Or do I you have to delete all the keyframes beyond frame 1, and replace them after the move?

View Replies !    View Related
Changing A Propertie On Multiple Objects ...
i have this code:
for (i=1; i<4; i++) {
for (j=1; j<5; j++) {
createEmptyMovieClip("box" add i add j, 11);
loadMovie(i add j add ".jpg", "box" add i add j);
box = "box" add i add j;
box._x = (i-1)*(68+14.2);
box._y = 23.9+(j-1)*(120+25.2);
}
}
but this part:
box = "box" add i add j;
box._x = (i-1)*(68+14.2);
box._y = 23.9+(j-1)*(120+25.2);
DOESN'T WORK! what did i do wrong??
and writing a line for each object's _x, _y properties isn't a solution
please help..

note: i tried to do this in flash MX

View Replies !    View Related
Help Changing Color For Multiple Objects
I'm coding up a website using Flash and I want to be able to change the site background as well as the button items color all at once via actionscript.

All the buttons are created with instances of the same base item (movie).

What's the easiest way to have all of these items changed with a simple actionscript? I would prefer to avoid having one of these for each item:


Code:
var colorful = new Color("_root.MyItem");
colorful.setRGB(0x336699);
I was thinking perhaps naming each item as a number and just making a loop... any better suggestions?

Thanks!

View Replies !    View Related
Multiple Line Connections Between Multiple Objects
Hi

I have come across a number of flash movies dynamically connecting a line between 2 objects. where if either object is moved the line connection is maintained.

My application area is a circuit board where users wire up a number of instruments to a number of connection points.
What i need to do is recreate the effect above but allow a user to drag connectors from terminals on the instruments and link to a number of connection points on the circuit while maintaining the wire link in between. Effectively wiring up the circuit. When each connector from the instrument is connected to the test point, it remains in position until moved to a new point.

Is this possible

Thanks in advance

View Replies !    View Related
Multiple Keyframes
Hi
How could I insert multiple keyframes in a movie.
I am inserting one at a time and it's driving me mad.
Thanks
Ecinele

View Replies !    View Related
Aligning Multiple Keyframes
I have a fairly large animation sequence on my stage and its consists of many keyframes. I know how to align an object but i have no idea on how to align all of the frames at once, i tried to select all frames and align but it didnt work... what am I doing wrong...

Oh and I want to avoid making it a symbol and aligning it that way cause it slows things down and makes it hard to match things up.

ANY IDEAS????

THX SO MUCH!

View Replies !    View Related
Reposition Multiple Keyframes
Is there a way to reposition the x,y coordinates of elements in multiple keyframes all on one layer containing the same elements all at once? for example i have textboxes in 7 different keyframes and i want to reposition them to a different x,y coordinate all at once instead of going to each keyframe one by one and typing in the coordinates.

View Replies !    View Related
Moving Multiple Keyframes
I am trying to move multiple keyframes across multiple layers all at once. If I select all the keyframes and all the layers in the timeline it only moves the keyframes in the first or last frame of the movie. If I select all from stage-same result depending on where the playhead is in the timeline. The animation is made of keyframes not TWEENS.

Essentially I am trying to shift the graphics that make up an animation that takes place across 25 frames closer to the top of the stage to allow more space underneath without having to go in and move every keyframe individually.

Or can a Timeline Effect of "Blur" be reversed without converting the Blur effect to keyframes. It does not allow the effect to be reversed in the "Modify Timeline- reverse Frames"

Thanks for any help
Erek

View Replies !    View Related
Aligning Multiple Keyframes
Hello all. Is this a way with multiple keyframes to align all of them at once? I know this is possible with symbols, but multiple keyframes?

Thanks,

Tiasis

View Replies !    View Related
Can You Set The Ease Of An Object Across Multiple Keyframes?
Ok, you have a box, you want it to move across the screen and ease in (at 100) over 20 frames.

but, you want it to fade from say 10% alpha to 100% alpha over the first 5 frames.

how do you do this?

View Replies !    View Related
Pasting Keyframes Over Multiple Frames
Hi:

I have a keyframe with a stop Ascript in it. I want to paste this over the next 100 keyframes. Is there a way I can do this fast...

I have tried CTRL+ALT+W.. it works but I want to do it over all 100 frames at once..

Any input will be greatly appreciated.

Thanks

View Replies !    View Related
Symbol Swapping Through Multiple Keyframes
I have a layer in my timeline with one symbol which goes through several alpha and tint variations using multiple keyframes (about 10). Is there a way I can swap all the symbols at once instead of 1 by 1?

View Replies !    View Related
Symbol Swapping Through Multiple Keyframes
I have a layer in my timeline with one symbol which goes through several alpha and tint variations using multiple keyframes (about 10). Is there a way I can swap all the symbols at once instead of 1 by 1?

View Replies !    View Related
Altering Symbols On Multiple Keyframes In One Go?
Hi Chaps

say youve got a timeline with 10 keyframes on it
you've got 1 symbol on each keyframe and you want all those symbols aligned in the same way

Is there a way to align them all in one go rather than having to click on each seperate key frame, then the symbol, then the aligning?

This isnt a major problem but something annoying and niggly that keeps on rearing its ugly head.

Many thanks for your insightful suggestions.

View Replies !    View Related
Importing Multiple Keyframes To Stage
Hey all. just been trying to find a better way

when importing a bunch of keyframes to the stage.. they always wanna paste automatically on frame 1 in the timeline.. how come flash won't paste into my current blank keyframe?? its annoying to have to copy/paste them all everytime..

thanx if anyone knows!

View Replies !    View Related
Adjusting A Symbol's Properties In Multiple Keyframes
I figure there has to be an easier way to do this. Here's the situation: I created a movieclip, placed in on the stage and then animated it (it alpha's up and grows larger, then alpha's down while shrinking). After I thought it was perfect, I then decided that I wanted the clip moved up on the screen 100 pixels. Isn't there an easier way to do this than to go to each of the 4 keyframes and adjust the Y value up 100? Isn't there a way I can adjust the y value once and then have the clip move up in every keyframe?

Any help is much appreciated

Mike

View Replies !    View Related
Keeping Class Instances Over Multiple Keyframes
Hi Everyone

Sorry if the title is a little vague. I currently have a movieclip with a class attached to it called "textInput". The Class saves all data entered into a variable which can be used later. The movieclip is visible only on certain pages, not every frame.

The problem I have is that when I place the clip on a different keyframe (with the same instance name) the text is lost. I belive this is because a new instance of the class is being created even though there is already an instance in memory.

Is there a way to have movieclips with attached scripts to maintain their variables and state over different keyframes in a movie?

Thanks

Matthew

View Replies !    View Related
Pleae Help ...adding Multiple Symbols As Individual Keyframes To Timeline
I have lots of bitmaps (about 70 images in thelibrary) that need to be added to the timeline so each of the bitmaps will be placed one by one on the timeline. So they will play back as a nice animation.
I don't want to place and position each of them one by one. Is there a shortcut to select all and put them on the timeline in a sequence?
thank you in advance for help

View Replies !    View Related
Multiple Objects
Hi all,

Sorry for the naive question but there's so much to learn! I want to use a function to create multiple objects (movieclips) and set some basic properties based on arguments I send to the function. Here's the basics:


Code:
function CreateMC(MCname,arg2,arg3,etc)
{
_root.createEmptyMovieClip(MCname,10);
with (_root.MCname){
//set properties
}
}
I'd like to call:
CreateMC("mc1",arg2,arg3,etc)
CreateMC("mc2",arg2,arg3,etc), etc.

The above code appears to create a movieclip named "mc1" but the 'with' statement isn't referencing the right object. What is the correct way to create multiple objects using a function?

Thanks!!!

View Replies !    View Related
Colour Objects Associated With Multiple Mc's
can i associate one colour object to many mc's?


eg:

b1colour = new color (b1 , s1 )

seems logical?

View Replies !    View Related
Dragging Multiple Objects
I am having a problem converting the symbols so that I can drag multiple objects? What is the correct order to accomplish this? Does each object have to be on a different layer or is one layer ok?
Thanks to those who can help.

View Replies !    View Related
Multiple Objects As Mask?
Hi, stupid question time. I am pretty much an amatuer when it comes to Flash, but I know my way around somewhat.

My question is this. I want to create a mask using several independent objects, but I cannot figure out how. For example: Say I want the mask to be 3 letters (A,B,and C)and I would would like to have them on different layers, animated separately. They will all mask the same background layer, so that simplifies it. I tried to figure this out last night, but I could only use one layer as a mask.

I hope this is a clear question, help if you can.... I am using Flash MX

thanks,
MJJ

View Replies !    View Related
Functions For Multiple Objects
I was wondering how I could give multiple object the same actions/functions. I think I may need to learn more about OOP and prototypes. As a small test I have just made a few balls all with the same actions just with different speeds.

Thanks.

View Replies !    View Related
Alpha Changes For Multiple Objects [MX]
I posted this earlier but recieved no response, probably because of the time i posted it at(hopefully)

please help! i've been struggling over this for awhile:

i have 1 button, a text field MC and the main MC

what i've accomplished so far is text that appears in text field when you rollover the button and disappears on rollout. button release goes to frame with main MC.

what i'm TRYING to accomplish (entirely in AS) is having the button and text fade in on rollover, fadeout on rollout, and also have the main MC fadein on button release and then fade out on other button release. all at a controlled, somewhat fast speed.

here's a link to the mac/MX .fla file - hopefully it'll help give you a better idea (i'm just working with the lower left corner button for now)

thanks in advance!

View Replies !    View Related
Creating Multiple Objects
In my movie i have 3 movieClips called _parent.allelements.level_1, _parent.allelements.level_2
_parent.allelements.level_3

within each of these their is a set of 3 more movieClips named _parent.allelements.level_1.select1, _parent.allelements.level_1.select2, etc

i used the following code to create a color object for each of the second level movieClips

for (m=0; m<3; m++) {
for (n=0; n<3; n++) {
_parent['colour'+m+"_"+n] = new Color(_parent.allelements['level_'+m]['select'+n]);
}
}
Then later on i used the following code to select only a certain number of the second level movieClips and alter their color using set transform.

for (m=0; m<3; m++) {
for (w=0; w<3; w++) {
if (_parent.allelements['level_'+m]['select'+w].isnotselected == 2) {
_parent['colour'+m+"_"+w].setTransform({ra:100, ga:100, ba:100, rb:_parent.allelements['level_'+m].zpos*multipl, gb:_parent.allelements['level_'+m].zpos*multipl, bb:_parent.allelements['level_'+m].zpos*multipl, aa:100, ab:100});
}
}
}

For some reason this code only works on Clips
_parent.allelements.level_1.select1, _parent.allelements.level_1.select2
_parent.allelements.level_1.select3
in other words only the clips inside the first movieClip _parent.allelements.level_1. I'm sure the if statement is working correctly. Idouble checked that. But i can't see what else i am doing wrong any input would be very mch appreciated

View Replies !    View Related
HitTest() With Multiple Objects
If I have a say, 50 boxes and I want them to explode when they hit eachother, what would be the best way to script it? Is there a way for me to name them something like box01, box02, box03 etc.. and then have the hitTest work with every object containing the word "box" in the name?

View Replies !    View Related
HitTest() With Multiple Objects
I posted this in the General Help forum, but I think I might have better luck here...

If I have a say, 50 boxes and I want them to explode when they hit eachother, what would be the best way to script it? Is there a way for me to name them something like box01, box02, box03 etc.. and then have the hitTest() work with every object containing the word "box" in the name?

View Replies !    View Related
Multiple Objects On Your Mouse?
i posted before about this but my post disappeared :|

onClipEvent (enterFrame) {
startDrag(this, true);
}

the above actionscript works perfect, but when i try add the 'onrelease' command to buttons i keep getting errors.

how do i attach several objects to my mouse?

View Replies !    View Related
Using One Broadcaster Across Multiple Objects
I want to try and use one broadcasting object that several other objects will isten to, and I'm not quite sure how to set it up in my AS2 classes.

I know the first thing I would do is write a class that initialized itself with EventDispatcher, and then instantiate that class, but then how do I refer to that object from within the different classes?

View Replies !    View Related
Masking Multiple Objects
ok this would save me some time if someone could point me in the right direction. how do i mask objects that are already masked. the swf i've provided shows that i want the blue area to be masked as well as have another color in the backround. but the main idea is that the blue area revels the entire movie. Please help

View Replies !    View Related
Create Multiple Objects?
I need a way to create multiple objects. I thought the way to do this was a class, and if it is please tell me. I need links to tutorials, or your help. Don't just tell me: "you'd need to use classes."

I want specifically, the creation of a few objects (clouds), they glide across the screen, delete themselves once they are not visible anymore. I need a way to track their coordinates as i will need another class to create objects that will fall out of the cloud objects.

View Replies !    View Related
Multiple CSS Objects Problem
OO programming is relatively new to me, so this might seem like an odd question, nevertheless here is comes:

How do I create CSS objects with a 'dynamic' or 'variable' name?

myCSS = new TextField.StyleSheet();

is no problem, but what if i need 25 different 'myCSS'es ?

How would i go about say looping through this and just add an increment to the CSSobject's name? myCSS1, myCSS2, etc.

I tried to use arrays, but Flash doesn't seem to like:
myCSS[1] = new TextField.StyleSheet();

any help appreciated...

View Replies !    View Related
Multiple Objects With Same Instance Name...
I have 3 movie clips that I want to treat as "Walls" in my game. Well, whenever I name them all the same, only one works. Is there any option or ANYTHING in flash that can make them multiply work?

View Replies !    View Related
HitTest Multiple Objects
Hi,

I am currently creating a small game, and I want to do the following:
There is one main character. Whenever the character hits a mc (for instance: block001 or block002 or block003 etc.) then it must gotoAndPlay("dead");
My current script is:

Code:
onClipEvent(enterFrame) {
if(this.hitTest(_root.block001)) {
this.gotoAndPlay("dead");
}
if(this.hitTest(_root.block002)) {
this.gotoAndPlay("dead");
}
if(this.hitTest(_root.block003)) {
this.gotoAndPlay("dead");
}
}
And I could go on for some time (because there are many blocks)...
Isn't there an easier way to do this. I thought of something using the var i. and then with something like i++.

But then it only checks one block (either block001 or block002, etc.) per frame. I want it to check all the hits for every frame. Is this possible with a shorter script then writing out every hitTest for every block?

Thanks,
Death

View Replies !    View Related
Targeting Multiple Objects
Hi everyone.

Using Actionscript 2, I have 16 buttons with instance names "but_1", "but_2" "but_3", "but_4" etc. I need to disable them all at a specific time, and rather than disabling them all individually in code, I'm sure there must be a single line of code which says "Anything on this timeline with the instance name "but_" + 'something' disable.

Please help!

Cheers for reading.
Chris

View Replies !    View Related
[F8] Tween With Multiple Objects?
Okay, so i figured out how to motion tween, simple enough. My only problem now is doing it with more than one object. for instance, i have a ball which has moved across the screen: now i want a sort of laser thing to pop out of the side and scan a wall. S o made the pooping out in frame by frame cuz i could, but when i try to make the laser scan the wall, it does, but the ball dissapears...

what do i do?








separate question:
when i made the laser pop out, i just did it fbf. however, i want to be able to use a tween for that. the laser's "gun" is sorta like this:

ball Gun

O C

so, yea, its like part of the ball that comes out. I want to have it just rotate, with its point of rotation being on the circles outer line, but that didnt work. what do i do?

View Replies !    View Related
[MX] Multiple Objects HitTest
Hi,

I'm trying to break bubbles by shooting bullets, both generated by duplicateMovieClip(). Everytime I create a bubble, I push it into an array, then on my bullets level, I go through the array, see if I hit anything in there. Here's what I have now:


Code:
onClipEvent (enterFrame) {
var b = _root.bubbles.length;
for (i = 0; i < b; i++)
{
var bubble = _root.bubbles[i];

// We've hit the bubble
if (_root.bubble.hitTest(this))
{
trace("touched: " + bubble);
_root.score_txt.text += _root.scoreplus;
}
}
}


bubbles[] is my array containing the name of all my bubbles (bubbles0, bubbles1, bubbles2..) but for some reason my if condition is never true. On my 'actions' layer, frame 1, I have the following:


Code:
bubbles.push("circle0");
for (i = 1; i < tmi; i++)
{
circle0.duplicateMovieClip("circle" + i, i);
bubbles.push("circle" + i);
}


'tmi' is a variable that changes depending on how many bubbles I want for this level.

Anyone sees what's wrong with this? Other than the fact that it's probably not the best wat of doing it? time is a bit limited and I'm far from being a pro, and this is all I could come up with.

Thanks a lot!

EDIT: Might as well post it here. I have another little problem. When a bubble hits the character, I want to go to the scene called 'Dead', so on my main circle I have the following code:


Code:
onEnterFrame = function () {
if (_root.char_mc.hitTest(this)) {
trace("You die.");
gotoAndStop("Dead", 1);
}
};


The trace works, but the gotoAndStop() doesn't. I'm sure the scene exists, and I have the exact same code on my first scene (Intro -> Game -> Dead)

View Replies !    View Related
One Variable For Multiple Objects?
I've got a variable I'm using to determine the speed for one object.

Speed for 'player' = 'speed'

However, I want that same speed to apply to another object as well, so they move at the same speed. How do I do that?

-On a side note, I know that when you use:


Code:
if (Key.isDown(KEY.LEFT))

You enter the word 'Left' for the LEFT key. What if I want to use the 'a' key?

View Replies !    View Related
Objects With Multiple Name References
Hey all. I'm working on a script that converts XML into objects. Currently, it makes it so that XML can easily be hailed using, for example, xml[0][0][1][2][0] instead of the tedious firstChild, lastNode, nextSibling etc. syntax.

Using numbers is very useful because then you can loop through the data, but I wonder if it wouldn't also be possible to refer to it by a name as well. Sure, I can make it so that the objects solely use a name for reference (e.g. xml["xmlobject"]["recipe"]["ingredient"]["location"]) but then I wouldn't be able to loop through it anymore.

So is it possible for me to refer to an object with two different names, so that I can, for example, use


Code:
for (var a = 0; a < xml[0]._length; a++) {
trace(xml[0][a]["ingredient"]._value); // Traces "tomato"
trace(xml[0][a][0]._value); // Traces "tomato"
}
Thanks!

View Replies !    View Related
HitTest With Multiple Objects
heres my fla, I want the hitTest to detect a collision with each wall, but it only works on the first wall, the one below the ball, Is this possible? I know its possible with a for loop and naming each wall wall1, wall2... but Is it possible with just one name?

BTW why doesn't an actionscript based forum allow you to upload .fla files???

View Replies !    View Related
Multiple Color Objects
I need to create an effect where I can change the color of two objects. I can get one object to change color when a button is clicked, using this code

the button carries this:

on (release) {
myColor.setRGB(0xB5DC10);
}


and the first frame of flash carries this:

myColor = new Color(_root.mywallpaper);

Where mywallpaper is the instance (movie clip) I want to change.

I have another instance (mybackground) that I want to change to a different color, but can't see how I can get Flash to understand which instance I want changed when each button is clicked. Can I still use this simple code, but maybe modify or move the code that is in the first frame so it is more specific to each instance or does it become much more complex when you are trying to control the color of more than one item at a time.

As you might be able to tell I am not very familiar with all this and was pretty impressed that I got one bit to change color and now don't know where to go at all, any help would be really appreciated.

Thanks

View Replies !    View Related
How Do I Rotate Multiple Objects?
Hello.

My problem seemed simple but has become more complex. I have to be able to click on one of these balls and have all 5 of them rotate in the circle that they live and have them stop when the ball that is clicked reaches the top. My problem is taht I need the text in each ball to remain horizontal as all the ball rotate.

Please help!

View Replies !    View Related
Dragging Multiple Objects At Once
Putting

Code:
onClipEvent (enterFrame) {
startDrag(this, true)
}
on to one movie clip makes that movie clip follow the mouse (drag). Putting that code on two movie clips (that are on separate layers) only makes one of them drag.

Is it a limitation of Flash or is it possible to drag multiple objects at once?

View Replies !    View Related
One Mask For Multiple Objects
Is it possible to setMask one object to multiple dynamic objects? Like a series of objects in rows, and using an existing large mc for a mask for all of them?

View Replies !    View Related
Multiple Sound Objects
I am loading two different sounds and playing them at different volumes. The problem is that they both play at the same volume. As if one inherits the others volume. Anyone else have this problem?


Code:
var sound1:Sound = new Sound();
sound1.attachSound("loop");
sound1.setVolume(100);
sound1.start();

var sound2:Sound = new Sound();
sound2.attachSound("loop2");
sound2.setVolume(20);
sound2.start();

View Replies !    View Related
Throwing Multiple Objects? AS 3.0
Hi Masters

I've got a character and he need throw objects to another one with a mouse click event.
I put this in the mouse handler:

private function onMouseClick(e:MouseEvent):void{
ice = new IceCube();
ice.x = mega1.x; <--mega1 is the character
ice.y = mega1.y;
addChild(ice);
oneIce = true; <-- oneIce is a flag to know that exists at least one ice object to throw
}

In my ENTER_FRAME handles y put this in order to move the object only in the y axis:

private function onEnterFRAME(e:Event):void{
...
ice.y -= iceSpeed;
}

And well, I clicked and one ice cube objects is created and moved in the correct way...but if I clicked again the first ice cube stopped and the new begin to moves and click again a new cube is created and the last one is stopped, and on and on.

I'm trying with an Array called "ices" but maybe is not so useful here.... What do you think about it?

Thank you for take a time to reading this one.

View Replies !    View Related
Multiple PV3D Objects..
I wish to add 5 - 10 Cubes, of size 50px x 50px x 50px, across the middle of the page...easy enough

However I wish for each of them to be dead straight looking at the screen, ie I dont want to be able to see the sides of them, AT ALL...

The million dollar questions is how...

View Replies !    View Related
Masking Multiple Objects
i'm trying to set a gradient radial mask on the stage that only applies to 5 movieclip objects so that the further away from the center, the less visible they get. i can't quite get it, no matter what i do, i can only seem to mask one object at a time and it's driving me crazy ! any insight would be greatly appreciated, thanks

View Replies !    View Related
Creating Multiple Objects: Can Ya?
There are 10 sets of data with four variables each. I want to loop through the data and create 10 objects and add the four pieces of data.

This is what I was trying in a for loop:

module[i] = new Object();
module[i].ppt = ecPath+"_"+num+".jpg";
module[i].toc = toc;
module[i].txt = txt;
module[i].voc = ecPath+"_"+num+".voc";

Then trace, but I get undefined.

trace(module[i].ppt);
trace(module[i].voc);
trace(module[i].toc);
trace(module[i].txt);

I know I'm doing this wrong. Please offer any guidance or better way of methodology. Appreciate the expertise in this community...

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved