[CS3] Grouping
Grouping in Photoshop is very different than Flash grouping, in Photoshop it works more like a mask but masks aren't the same either, is there a way to do something similar to Photoshop grouping in Flash?
FlashKit > Flash Help > Flash General Help
Posted on: 03-20-2008, 12:34 PM
View Complete Forum Thread with Replies
Sponsored Links:
Grouping MC's
Hi,
I was wondering if it is possible to dynamically group MC's during runtime, or if there is a way to make several dynamically placed MC's obey the same timeline.
The movie gets some XML, parses it, and draws X number of radio buttons. (pulls the same radio button out of the library X number of times and places it on the stage).
THE PROBLEM:
Radio buttons have to be a group, or obey the same timeline to interact with eachother (only being able to clikc 1 at a time).
I never know how many buttons to draw, as the array can change over time.
Any ideas????
Thanks in advance!!!!!!!!!!!!
View Replies !
View Related
Grouping MCs?
hey, is it possible to create a variable or sth that contains the names of different MC and then apply a property to the variable that will consequently be applied to all the MCS???
I mean sth like this:
having 5 separate MCs with different names (mc1; mc2; mc3...)
set a variable something like: group=_root.mc1,_root.mc2...
then in a button: On press set property alfa 50 to "group"
and mc1 mc2 mc3... should all be set alfa 50
hehe maybe Im just making things up
View Replies !
View Related
Grouping MCs
Howdy Geniuses,
How do I group movieclips so that I can make changes (setPropery) to the whole group without having to apply the changes to each individual mc?
something like _global.myMovieClip_group = [mc1,mc2,mc3...]
then I can setProperty(myMovieClip_group, _visible, 0);
Thanks
John
View Replies !
View Related
Grouping....
hiyas again ok still on the same game.... me and a mate want it to work really badly.... is there any way that i can like.... group the arm/hand in an differant mc so that they move in the same way? as in from _root they are both differant mcs but when one is moved they both move!
View Replies !
View Related
Grouping Mc's
is it possible to dynamically select multiple mc's and group them together? like in my program where the user loads a bunch of mc's and each can be dragged but is there a way to group them and move them as one without moving the unselected mc's. also after i have created that group is it possible to load that group again???
View Replies !
View Related
Grouping?
i have a logo i've animated. there are several moving pieces, a few of which i want to fade out towards the middle. the remaining visible pieces i want in one moveable/resizable object. i think i'd want it grouped? but if the object are on different layers, is this possible? or can someone recommend another technique?
View Replies !
View Related
Buttons Grouping In A Mc?
Who can help me! Site temporary http://www.atriumbv.nl~xeertwegh/intro.html
The buttons in the mc(scroll right side of the main-page)must link to another page, but I don`t get them activated.
I don`t know an other way.
Wha I`m doing wrong?
View Replies !
View Related
Problem With Grouping
Once I create a group how do I reselect that group in it's entirety again at a later date or is it just on a one time basis? Shouldn't there be a menu of all available Groups or something? Help!
View Replies !
View Related
Grouping Objects To A VAR
Hi all
have a question here, is it possible to group objects to one Variable
I have a group of movieclips on stage and I wrote a function and I want to avoid having to write out each MC instance name in the function and I'm not sure if you can assign more than one object to a VAR, I tried using an array but that didnt work, I also tried writing it like this
var myGroup = mcOne,mcTwo,mcThree; and that didnt do squat,
anyone have any idea on how to assign multiple instances to a variable?
D-Wiz
View Replies !
View Related
Grouping/ungrouping Using AS2
Does anyone know if there's a way that you can group/ungroup using AS2?
For example:
Let's say that I want to have two instances of the same MovieClip appear on the stage, but grouped (so when the user presses the right key, left key, rotate, etc., they move as one unit). But, when one of the instances "hits" something while moving, the instances "ungroup," and the one that made contact with the obstacle freezes, while the other instance is still controllable by the user.
I thought about parent/child, embedding one inside the other, moving the registration points so they overlap, etc., but I keep seeing problems before I even get to the coding aspect.
Any help is greatly appreciated; thanks!
Matt
View Replies !
View Related
Problems With Grouping
Helo,
I have problem with grouping image and scrolling text (marquee).
I create blank movie, then load image from external file into it, but I need it to be grouped with that scrolling text. And then I need to make simple motion tween with this group.
If I put image from external file, flash don't read text from external *.txt file and if I read text from file I can't see image.
Maybe is some way to make it with action script?
Please help somebody
View Replies !
View Related
Grouping Objects
Hi, i was wondering if there was a way in flash to group a set of objects, e.g a load of buttons, so that you can apply a single AS function to control them, rather than having to create a separate function for each button.
ill give you an example, i want to apply the same tween to 5 different buttons, but i don't want to write
button1... = function
button2... = function
i would just like to go
group_of_buttons... = function
Thanks for your help
Edited: 02/11/2008 at 03:49:21 AM by Woz Records
View Replies !
View Related
Question Regarding Grouping With AS...
Is there anyway to group ojects with AS
like
Code:
var Hat:MovieClip = attachMovie("Hat","MyHat",1)
var Head:MovieClip = attachMovie("Head","myHead",2)
//place head in middle of screen
Head._x = 300
Head._y = 300
//place hat on head
Hat._x = Head._x - 15
Hat._y = Head._y - 30
//this is what i need help with
createGoup("myHead","MyHat") // forms a group of the two objects
now when i do
Code:
_root.myHead._rotation = 45
would it rotate myHat so that its always on myHead?
View Replies !
View Related
Grouping MC's Together For AS Command
Hi there!
I have four buttons, with instances of:
press_mc
design_mc
menemail_mc
general_mc
When I click my map_mc button - I want ALL four MC's to have an alpha of 0.
But what I want to know is whether I can have a group name for these 4 MC's.
For eg: menubuttons
thus:
map_mc.onRelease = function(){
menubuttons._alpha = 0;
}
How would I do this somehow???
This would be super handy.
I know that I could include them all inside one movie clip.. But I dont want to go about it that way ....
Thanks!
View Replies !
View Related
Grouping Symbols
Here's my problem:
When i make some navigation buttons (home, news, bio, etc), i can setup actions to tell them to go to another frame in the timeline or to do some other function. What I can't figure out is, that when I have all these individual button symbols and then make them a group so they can move or fade together it makes them a new tween symbol.
Then when clicking on any of the buttons it won't perform the action assigned to it. The rollovers still act as they should though.
Any thoughts???
View Replies !
View Related
Grouping In IF Commands (flash MX)
Hi,
I am having trouble with the IF command:
On the first frame:
this.tempNum = Number((this.tempNum)+1);
play();
On the second frame:
if ((SO.data.fileP+this.tempNum) == this.path) {
// do action...
}
SO.data.fileP is a shared ojbect which has a number with it
eg: SO.data.fileP1, SO.data.fileP2, etc...
So I have made counter to add the number to it, but the IF command wont "group" the two varibles together.
Is there a way of grouping them?
just incase:
SO.data.fileP1 = "hard drive"
this.path = "hard drive"
any help please
View Replies !
View Related
Grouping Stuff Across Layers?
Imagine I had a drawing of a head with no mouth, and a couple mouth symbols on another layer above it. I want to be able to move the head and have the mouths follow. How do I do this?
I tried putting the mouths on the same layer as the head, but then I can't swap them to lip-sync. They HAVE to be on a different level, but they also have to be anchored to the head so they don't slide all around when the head moves.
In my mind I'm thinking of the way that Photoshop can link layers, so when you move one, the others go along with it. Anything like that in Flash?
-P
View Replies !
View Related
Grouping Or Rotating The Scene
Is it possible to group objects in actionscript.
Basicly I create 12 pie slices in frame 1, then I want to rotate them in frame 2 (like a wheel spinning).
I don't want to have to work out complicated functions to budge all 12 slices individuly one by one.
My thinking if I can group the slice movieclips and give them an instance name, I could then set _rotate for that grouped object.
Does this make sence?
Or can I just rotate the stage?
All comments welcomed.
View Replies !
View Related
Grouping Several Fla's Under A Single Interface
I have got a few flash projector files (.exe's) that i want to be able to run from one single file. The worse solution it would be to do this components again in a single script. But this is a little bit complicated. I have tried loadMovie with the swf’s. But the problem appears when playing on a computer that hasn’t got Flash. Then i can’t hear the sounds and also can't load the interface once the subfile finished. I have tried also the fscommand(“exec”,”filename.exe”); variant but didn’t get anything, though the exe files were in the current directory.
What else can i try? What's your opinion?
Thanks.
Iulia
View Replies !
View Related
Grouping Numerical Instances
Hi,
I'm making a flash game, where one of the components is to make a set of movieclips move to the left.
Each movieclip is named platform0, platform1, platform2 etc etc but it's inefficient to use:
_root.platform0._x -= 10;
_root.platform1._x -= 10;
_root.platform2._x -= 10;
For each movieclip. I was wondering if there was any way to make every movieclip that has platform# as its instance name do the same thing.
Thanks a lot,
Matt
Ps. Just remembered, this is for flash 5/actionscript 1
View Replies !
View Related
Problem With Auto-Grouping
Hi all,
I'm new to Flash and it seems every time I draw something using, let's say, the oval tool, it automatically groups the shape when I release the mouse. Does anyone know if there's a function key or something that I may have accidentally hit to cause this grouping feature to be automatic?
Thanks!!
Casper
View Replies !
View Related
Grouping Movie Clips
Is there any way you can group a number of movie clip instance names into just one name.
For example, if I have a movie clip of instance name "Hello" and another of instance name "Hello2" and I want to give them both the action "play();", but I want to do this without manually typing in "Hello.play(); Hello2.play();" and instead want to group the two and then have the code as "Thegroupname.play();", how could I do this??
EDIT - doesn't matter. I have found my answer
// How many there are
total = 5;
for(i=0;i<=total;i++) {
_root["Hello"+i].play();
}
//Will play Hello1, Hello2, Hello3, Hello4, and Hello5.
View Replies !
View Related
Grouping External AS Files
Hi:
I'm planning to use several external .as files in my project, but once the project is closed the next time I have to open those .as files separately. In light of this I'm wondering is there any way to set up Adobe Flash CS3 to open all the external .as files with the main .fla file?
View Replies !
View Related
Grouping Movieclipss Dynamically
Hi
I wonder, wether it is possible to group several dynamically created mcs. I have the following situation: On main movie I have a mc called "drawingpane" to that mc the user can attach several mcs which he can scale or move. For printing (and scaling) I would like to duplicate the drawingpane with all its attached mcs to a position off stage. Does anyone have an idea how I could do that, without copying every attached mc separately.
Thanks in advance
View Replies !
View Related
Re: My Line Tool Is Grouping
It is called Object Drawing Mode and can be turned off easily by clicking the ODM sub-selection
button when the line tool is selected.
Chris Georgenes
Adobe Community Expert
mudbubble.com
keyframer.com
howtocheatinflash.com
plecoguy wrote:
> Everytime I draw a line using the line tool it groups. Is there any way to reverse or stop this from happening?
>
> Thank you,
>
> Richard
View Replies !
View Related
Grouping Symbols Programmatically
Hello,
I am drawing a graph that can be panned through a mask layer. I need to drag icons into the graph, and have the icons move with the graph when it is panned. So I guess I need a way to have the newly created a icons be incorporated into the graph and act as a group.
Thanks.
View Replies !
View Related
Grouping Array Elements
I have a problem kind of lost it..how to grouping the elements in array into 2 section/or put in 2 new array...
Ok the scenario is :I have several data retrieve from dtbase like in this as code
ActionScript Code:
stop();
var getCusDt:LoadVars = new LoadVars();
var receCusDt:LoadVars = new LoadVars();
receCusDt.onLoad = loadCusDt;
loadBtn.onPress = function () {
getCusDt.usr_name = usrname.text;
getCusDt.sendAndLoad("http://localhost/finalecard/finalecard/getcus.php",receCusDt,"POST");
}
//////////////////////////////////////
function loadCusDt(success:Boolean){
if(success){
info.text = this.message;
for (var i = 0; i<this.items; i++) {
dtCustomize = this["datacustomize"+i];
plotting(dtCustomize);
usrname.text = "";
}
}else{
info.text = this.message;
}
}
////////////////plotting part////////////
function plotting(dt:String){
//trace(dt);
var descriptor:Array = [];
//insert into array..
descriptor = dt.split("|");
//okay the problem is here...how to separate the dt to become 2 section 1 for mymc* and for another 1 is for textholder section...meaning that I can separate into 2 section...
trace(descriptor);
//output --> ,textholder0*29*26*100*100*fifin04*courier new*oxcc0000*18,mymc0*80*101*241*243
}
It means I will get the long string like this from the database
Code:
|textholder0*29*26*100*100*fifin04*courier new*oxcc0000*18|mymc0*80*101*241*243
so my question is how to grouping it just like this
Code:
mcArr = [mymc0*80*101*241*243,mymc1*80*101*241*243]
textArr = [textholder0*29*26*100*100*fifin04*courier new*oxcc0000*18,textholder1*29*26*100*100*fifin04*courier new*oxcc0000*18]
from the long string...
View Replies !
View Related
Grouping Similar Items In AS2
Alright this may be a stupid question but I could use the answer. I want to be able to group all my enemies into one variable. So I could say
if (this.hitTest(enemys)) {
enemyhealth -= 1
}
instead of having to type the script out for each enemy.
I think I have to use an array but I not sure. All the array tutorials didn't seem to have what I wanted.
View Replies !
View Related
Problem With Grouping Variables
Hi all
Im guessing this is a really simple problem but can anyone help me with this issue. Basically i have a number of variables on stage labeled Q_lvl_1 through to 17. Basically what i want to do is to group these variables togather and turn the hand cursor off all these variables...
rather than having to individually turn off the hand cursor for each variable.
this is the code i have so far:
Hand_off = new Array();
Qag_rooms = "Q_gal_";
for (var i = 1; i<18; i++) {
var currFocus = eval(Qag_rooms+i);
if (currFocus == undefined) {
break;
} else {
Hand_off.push(currFocus);
}
}
for (var j = 0; j<Hand_off.length; j++) {
//These variables are nested in 2 movie clips//
QFloor.Q_lvl_1.Hand_off [s].useHandCursor = false;
};
any help would be greatfully appreciated!!!
Cheers
Clinton
View Replies !
View Related
Grouping Objects Under One Common Name
Yello!
How can i do the grouping? I have 3 objects that repeats themself and i want to access them like that:
ActionScript Code:
group_name1.text_bar.text = "Yey its text";
group_name1.button_tool.onPress = function(){
getURL(str1);
}
group_name2.text_bar.text = "its another text"; // will be shown in differnt place
So i could easly load array and loop it in to the stage. I was going to generate its through PHP but thought to ask some pro's first.
Thanks,
[n00b]Baltzar.
View Replies !
View Related
Grouping Similar Instances In Actionscript
I'm pretty sure you can do this, but for some reason, I can't find it for the life of me. I'm trying to find a way to group similar instances together in actionscript. For example, let's say that I have a bunch of similar buttons that execute a function when pressed, is the there a better way to code this?
myButton1.onRelease = function(){
myButtonAction();
}
myButton2.onRelease = function(){
myButtonAction();
}
myButton3.onRelease = function(){
myButtonAction();
}
myButton4.onRelease = function(){
myButtonAction();
}
myButton5.onRelease = function(){
myButtonAction();
}
I just used buttons as an example, but this also goes for dynamic text boxes and movie clips. Can anyone point in the right direction for this? Thanks!
View Replies !
View Related
To Moagrius:grouping Array Elements
Hi..
Moagrius ..thanks for ur help and I just play with ur code ..if u test with this string it will push the number into letters array as well..if u don't believe u can try this..
Code:
string="A|1|B|C|2|D|E|3";
string=string.split("|");
numbers=[];
letters=[];
for(var i=0;i<string.length;i++)([letters,numbers][i%2]).push(string[i]);
trace(numbers);
trace(letters);
//it will trace like this
for number --> 1,C,D,3
for letters --> A,B,2,E
suppose to
numbers = [1,2,3];
letters = [A,B,C,D,E];
anyway thanks for ur time mate..
View Replies !
View Related
[F8] Grouping / Ungrouping Movie Clips
Hello, I am trying to figure out how to bring in a group of 4 separate movie clips and have them behave as a single clip, and then allow the viewer to "ungroup" the clips so that their properties will be accessible individually. I can do the first part, it's the second part that is giving me fits. Initially, I want the viewer to be able to move things around on the stage. I've entered the following script in frame one of my timeline:
this.createEmptyMovieClip("bigBox_mc", 1);
bigBox_mc._x = 75;
bigBox_mc._y = 75;
bigBox_mc.createEmptyMovieClip("red_mc", bigBox_mc.getNextHighestDepth());
bigBox_mc.createEmptyMovieClip("blue_mc", bigBox_mc.getNextHighestDepth());
bigBox_mc.createEmptyMovieClip("yellow_mc", bigBox_mc.getNextHighestDepth());
bigBox_mc.createEmptyMovieClip("green_mc", bigBox_mc.getNextHighestDepth());
loadMovie("red.swf", bigBox_mc.red_mc);
loadMovie("blue.swf", bigBox_mc.blue_mc);
loadMovie("yellow.swf", bigBox_mc.yellow_mc);
loadMovie("green.swf", bigBox_mc.green_mc);
bigBox_mc.blue_mc._x=100;
bigBox_mc.yellow_mc._y=100;
bigBox_mc.green_mc._x=100;
bigBox_mc.green_mc._y=100;
bigBox_mc.onPress = function() {
this.startDrag();
}
bigBox_mc.onRelease = function() {
stopDrag();
}
release_mc.onRelease = function() {
bigBox_mc.onPress = null;
}
The above loads 4 clips, arranges them in a square, and allows the viewer to drag all 4 around the stage as if they were one clip. Clicking the release_mc instance disables the startDrag action, but I don't know how to add a startDrag to the other clips that is enabled with the same user action.
Relevant files attached...except for the .swfs that are to be loaded. Apparently, those are invalid file types.
View Replies !
View Related
Grouping Elements In Movieclip And Call Them
Hi,
i have a very simple fla with some elements textbox mainly, i want to group them into a movieclip and from a button in the stage (out of the movieclip) i want update the values of the textboxes. vice versa by click on the movieclip i want to update some values of textbox into the stage.
basically i dont'know how to pass value from internal movieclip to the stage
is can attach a simple fla.
hope in some helps
thanks
View Replies !
View Related
Grouping/ungrouping Movie Clips
Hello, I am trying to figure out how to bring in a group of 4 separate movie clips and have them behave as a single clip, and then allow the viewer to "ungroup" the clips so that their properties will be accessible individually. I can do the first part, it's the second part that is giving me fits. Initially, I want the viewer to be able to move things around on the stage. I've entered the attached script in frame one of my timeline.
The script loads 4 clips, arranges them in a square, and allows the viewer to drag all 4 around the stage as if they were one clip. Clicking the release_mc instance disables the startDrag action, but I don't know how to add a startDrag to the other clips that is enabled with the same user action.
Attach Code
this.createEmptyMovieClip("bigBox_mc", 1);
bigBox_mc._x = 75;
bigBox_mc._y = 75;
bigBox_mc.createEmptyMovieClip("red_mc", bigBox_mc.getNextHighestDepth());
bigBox_mc.createEmptyMovieClip("blue_mc", bigBox_mc.getNextHighestDepth());
bigBox_mc.createEmptyMovieClip("yellow_mc", bigBox_mc.getNextHighestDepth());
bigBox_mc.createEmptyMovieClip("green_mc", bigBox_mc.getNextHighestDepth());
loadMovie("red.swf", bigBox_mc.red_mc);
loadMovie("blue.swf", bigBox_mc.blue_mc);
loadMovie("yellow.swf", bigBox_mc.yellow_mc);
loadMovie("green.swf", bigBox_mc.green_mc);
bigBox_mc.blue_mc._x=100;
bigBox_mc.yellow_mc._y=100;
bigBox_mc.green_mc._x=100;
bigBox_mc.green_mc._y=100;
bigBox_mc.onPress = function() {
this.startDrag();
}
bigBox_mc.onRelease = function() {
stopDrag();
}
release_mc.onRelease = function() {
bigBox_mc.onPress = null;
}
View Replies !
View Related
My Variables Arent Adding But Grouping
Hey,
i have some code that SHOULD be taking variable one and adding to variable two...
ex. 45+45 = 90..
however the variable ends up equaling 45 (just the first variable) or 4545 when i switch around some brackets and stuff...
subTotal1 = (t18552n)+(t18853n);
is what Im using.
Any suggestions?
~~ Seretha
View Replies !
View Related
My Variables Arent Adding But Grouping
Hey,
i have some code that SHOULD be taking variable one and adding to variable two...
ex. 45+45 = 90..
however the variable ends up equaling 45 (just the first variable) or 4545 when i switch around some brackets and stuff...
subTotal1 = (t18552n)+(t18853n);
is what Im using.
Any suggestions?
~~ Seretha
View Replies !
View Related
Grouping MovieClips With Dinamically With Actioncsript
hi there,
Imagine a set of MCs that have to be moved as a group.
Normally, I would create these movie clips inside a contiainer movieclip (becoming their _parent movie clip)... I would then be able to rotate, fade, move [and so on] all nested movie clips as they inherit their parent's coordinate system and some properties.
Now, here's the problem:
There are some scenarios where I need an MC (a thumbnail for instance) to be part of a collection and also able to become "dettached" of the container (when clicked...) and into the global coordinate space for a special animation or manipulation.
The best solution would be to be able to move nested movieclips from one parent to another... however, I don't think Flash supports this.
And doing it by hand is not trivial... deleting and re-creating a new MC and mapping properties is possible, but sometimes in the process you would have to re-instantiate the symbol (or class), and that is not always possible to do without loosing state.
I have built a couple of helper classes (MovieClipGroup and MovieClipMonitor and other attempts) that Bind properties and allow for a collection of movieclips to be scaled, moved, and faded as one unit... not so hard to achieve with a little math and onEnterFrames. However, when it comes to rotation things stop being that straightforward.
(defining a registration point and doing some nasty math :P )
Does anyone have any ideas?
View Replies !
View Related
Grouping What Displays In Browser Preview
I have a lengthy movie built in Flash and now have to add more content to the end. Is there anyway that I can avoid having to view the entire movie when I preview it in the browser window? I need to preview the new material, but sitting/clicking through the existing 15 mins each time isn't a good thing... looking for some kind of way to designate where preview begins maybe?
Thx!
View Replies !
View Related
Grouping Several Projector Files Under A Single Interface
Hello.
I have got a few flash projector files (.exe's) that i want to be able to run from one single file. The worse solution it would be to do this components again in a single script. But this is a little bit complicated. I have tried loadMovieNum with the swf’s. But the problem appears when playing on a computer that hasn’t got Flash. Then i can’t hear the sounds and also can't load the interface once the subfile finished. I have tried also the
Code:
fscommand(“exec”,”filename.exe”);
variant but didn’t get anything, though the exe files were in the current directory.
What else can i try? What's your opinion?
Or maybe an easier way of copying movie clips between two fla files?
Thanks.
View Replies !
View Related
|