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




Multiple Masking



hi,
i'm new to flash. i know the simple masking that is done. but how do we do multiple layer masking ie mask 3 layer with 1 particular layer



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 04-06-2005, 08:15 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Multiple Masking
I now how to put multiple layers underneath a mask, but is there a possibillity to put several 'masks' upon one layer?
If you go to www.ypu.org, you can see the intro: we're changing the view of the site, but we'd like to have the intro with the types as masks, and a big picture underneath...

possible? or trashcan?

robin

Multiple MASKING
hello,
I want to do something like this ...

http://www.alppraha.cz/intro.htm

I mean the multiple masking effect - I tried to use MovieClip with few layers as a mask but it doesn't work.
can somebody help?
thanks
green_h

Multiple Masking
Hey guys, ive seen this done in front of my eyes by someone else, but for some reason i cant figure it out.

I have an image, and I want to get shapes masking the image as the shapes move along... I know how to mask, but not multiple masking the same image, this is wot i have done so far.


View it here

I will really appreciate the help

thanks heaps

Multiple Masking
hi,
i'm new to flash. i know the simple masking that is done. but how do we do multiple layer masking ie mask 3 layer with 1 particular layer

Multiple Layers Masking....
I have a small clip (50frames) that I'm trying to make. In it there are four layers, all with motion tweens, that need to mask the same background, Each layer starting on the last frame of the previous layer and the background running through all 50 frames I can not get it to work properly. Only the last layer will acctually mask. I'm sure there's a simple answer but I but I've been beating myself up for 2 days trying find it. Can anyone point me in the right direction?

Masking Multiple Records
I'am not able to mask the result of this actionscript.
List generated stay always on top of all layers.
any suggestion???

thanks
manera


// set the initial movie messaggio visibility to 0
depth = -1;
messaggio._visible = 0;
// create the array from the list loaded from DB
ListaIdmessaggio_array = ListaIdmessaggio.split(",");
ListaDataora_array = ListaDataora.split(",");
ListaNickname_array = ListaNickname.split(",");
ListaOggetto_array = ListaOggetto.split(",");
// get the length of the array and loop this many times
array_length = ListaIdmessaggio_array.length;
// set the initial y position of the messaggio
yposition = 72;
// begin looping
for (i=0; i<array_length; i++) {
m = messaggio.duplicateMovieClip("messaggio"+i, depth);
m._y = yposition;
m.ListaIdmessaggio = ListaIdmessaggio_array[i];
m.ListaDataora = ListaDataora_array[i];
m.ListaNickname = ListaNickname_array[i];
m.ListaOggetto = ListaOggetto_array[i];
Lista = new Color(m.listaBg);
Lista.beginFill = 0xCCFF00;
i%2 == 0 ? Lista.setRGB(0x9AA900) : Lista.setRGB(0x6A7600);
delete Lista;
depth--;
yposition = yposition+24;
delete m;
}

stop();

Multi-multiple Masking
Hi- I've created a large movie with many many masks.. there are 648 movies that each mask 6 layers. There is no tweening etc, and there are stop actions preventing anything from playing.

But... my processor is running at 100% in preview mode and when I publish, and nothing works. As its an animation that I would ideally like to see running at 18 fps, this is a really serious problem.

Does this type of masking affect the processor so much? It seems to me that it should only need to calculate the masking once per masked frame, and this is still at 100% if I leave it for 5 minutes, implying a constant calculation, or a loop that forces re-calculation.
I have removed any trace of this and there are no onClipEvents..

Please suggest anything!

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

Masking Multiple Layers
Okay, I figured out my last problem, to anybody that read it...

Heres what I have now.

http://www.geocities.com/azithinkibe/alanpage.swf

Now, what I want done is to have that little 'news' button invisible until the mask comes over it. I'm using a scripted mask from a tutorial I found, it's pretty simple...

onClipEvent(load){
_root.normalpic.setmask(this);
}

This is applied to the user controlled mask hole, and 'normalpic' is what shows through. I would think that I could just add more lines for everything that I want to be hidden, like this...

onClipEvent(load){
_root.normalpic.setmask(this);
_root.newsbutton.setmask(this);
_root.biobutton.setmask(this);
_root.blablabla.setmask(this);

}

But I tried that, and it doesnt work. Does everything need to be on the same layer? Cause with all the buttons, animations and what not, that would get a little messy. Any help?

heres a link to the .fla by the way. No matter what I do, the 'attach' button down there doesnt seem to work.

http://www.geocities.com/azithinkibe/alanpage.fla

thanks in advance guys!


EDIT: and the .fla link never seems to work either...grrrr

Anyway, you should be able to help me out just by looking at the .swf, but if not, ask and i can email you the .fla

Masking Multiple Layers
Okay, I figured out my last problem, to anybody that read it...

Heres what I have now.

http://www.geocities.com/azithinkibe/alanpage.swf

Now, what I want done is to have that little 'news' button invisible until the mask comes over it. I'm using a scripted mask from a tutorial I found, it's pretty simple...

onClipEvent(load){
_root.normalpic.setmask(this);
}

This is applied to the user controlled mask hole, and 'normalpic' is what shows through. I would think that I could just add more lines for everything that I want to be hidden, like this...

onClipEvent(load){
_root.normalpic.setmask(this);
_root.newsbutton.setmask(this);
_root.biobutton.setmask(this);
_root.blablabla.setmask(this);

}

But I tried that, and it doesnt work. Does everything need to be on the same layer? Cause with all the buttons, animations and what not, that would get a little messy. Any help?

heres a link to the .fla by the way. No matter what I do, the 'attach' button down there doesnt seem to work.

http://www.geocities.com/azithinkibe/alanpage.fla

thanks in advance guys!


EDIT: and the .fla link never seems to work either...grrrr

Anyway, you should be able to help me out just by looking at the .swf, but if not, ask and i can email you the .fla

Help - Masking Multiple Layers?
How do I mask several layers at once without having to create a movie clip?

Multiple Random Masking
Hi,
Is it posible to create these random squares but at the same time they mask the picture below? Im trying with no results,
please???

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

Masking With Multiple Graphics
Hello:

I am trying to use a mask layer with two graphics, but when I apply the mask only one of the graphics works. My question is how do I get both of the graphics to mask on this layer. Thank you in advance.

Masking Multiple Layers
Is there any shortcut to creating mask that covers a series of layers? Rather than creating a mask for each layer. Any comments welcome. Thank you.

James

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

[CS3] Multiple Storyline Controlled Via Masking...
I am designing a story in Flash that is composed of multiple storylines that run parallel to the main story. In other words, simultaneously there will be four stories being animated at the same time. Each of these stories will be placed in their own folder which will contain various layers. At any point, the user will be able to select only one of these four stories they would like to watch. All four of these stories will share a timeline, meaning that the timeline on each of these four stories will progress forward at the same time.

I am wondering how I could achieve this in Flash, and if it would be complicated? I was thinking of using a series of Masks (one that would cover up the folders in which each story is contained). Would this work, and how would I go about to accomplish this?

Dynamically Masking Multiple MovieClips
I am trying to create multiple masks to mask multiple movieclips. I have tried a couple of approaches with minimal success. I can get it to mask one movieclip with a mask, but when I try to make it dynamic it doesn't seem to want to work. I have a movieclip called thumbsMC that is a container on the stage. If anyone has any suggestions, I would appreciate them. The code I am trying to use is below.

for (counter = 0; counter < 1; counter++){
_root.thumbsMC.createEmptyMovieClip("thumb"+counte r, _root.thumbsMC.getNextHighestDepth());
_root.thumbsMC["thumb"+counter].createEmptyMovieClip("mask"+counter, _root.thumbsMC["thumb"+counter].getNextHighestDepth());
with(_root.thumbsMC["thumb"+counter].mask){
beginFill(0x000000, 100);
moveTo(0, 0);
lineTo(100, 0);
lineTo(100, 100);
lineTo(0, 100);
lineTo(0, 0);
endFill();
}
_root.thumbsMC["thumb"+counter].setMask(_root.thumbsMC.["thumb"+counter].mask);
}

Masking Multiple Shapes Onto A Sprite
Hi,

This is my first post here as I need a bit of help. I'm using FlashDevelop so I'm purely using AS3 and not the CS3. Also I'm still getting to grips with the whole sprite, bitmap, bitmapdata relationship and how to manage vector data with bitmap data, so apologies if this is a little simplistic - I just can't get my head around a solution.

I have a sprite on which I'm drawing shapes (all vector based)- maybe several hundred. Each time I want to draw one of the shapes, I need it to be masked with another shape (again vector based and different for each shape) - by masked, I mean the drawn shape must be visible where it overlaps the mask shape.

I'll try to explain by example :-
a) Initially, the sprite (100x100) contains a red rectangle in the upper left quarter(0,0-50,50 - x1,y1-x2,y2).
b) I'm then wanting to draw another shape, say a blue rectangle in the right half of the sprite (50,0-100,100).
c) I want this blue rectangle to be masked by yet another rectangle over the bottom half (0,50-100,100).
d) The result then would be a red square in the upper left (0,0-50,50) and blue square in the lower right (50,50-100,100). Give or take few pixels ;-)

I hope that explains the scenario well enough.

My questions on this are :-
1) What's the best way to go about this (the final result needs to be a sprite)?
2) Would I need to use a separate sprite mask for each shape drawn (i'd rather not)- if so, wouldn't this be a huge overhead as this needs to be fast (as is usually the case).
3) Could I use BlendMode.ERASE somehow???

Any ideas/snippets would be greatly appreciated. So, thanks for any help offered.

Greg

-----------------------------------------------------------------
Put high performance 3D on your web pages through JavaScript with
JSAway at http://www.geepers.co.uk
-----------------------------------------------------------------

[Q] Multiple Objects Masking 1 Thing
How can this be achieved?

If i have for example 5 objects on one layer and I want to mask the bottom layer?

Right now only the first object does the masking, the rest doesnt seem to exist

Masking Multiple Copied Clips
I have a bunch of copied movie clips, their names are box1 through box50, each being a copied instance, i wish to mask these with another movie clip

i know individually i would do this "

maskedclip.setMask(box1);

but i dont want to write that for each copied clip, how would i list them all in AS.

thanks guys

Masking Multiple Movie Clip Instances
Hi,
I'm trying to create a grid of square movie clips using the code below and then masking them so the Movie clips will only show thru the shape that I choose. I've got the first part working fine but I can't seem to mask them the way that I need. If i put a mask on layer then the MC's that get added with the attchMovie get put on top of it. I looked into the setMask() method but it didn't seem to work either. Any ideas would be great. Thanks.

Matt


Code:
w = 10;
h = 10;
across = 400/w;
down = 400/h;

for (i=0;i<down;i++){
for(j=0;j<across;j++){
counter = ((i*across)+j);

attachMovie("square", "square"+counter,counter);
mv = _root["square"+counter];

mv._x = j*w;
mv._y = i*h;
}
}

Masking Multiple Clips With SetMask And DuplicateMC
Hi guys. Since setMask can't be used to mask multiple clips (as you can do easily with masking layers), I figured I'd just duplicate the original mask and do an additional setMask. So I thought:


Code:
text_mask_mc.duplicateMovieClip(text_mask2_mc, text_mask_mc.getDepth());
shine_mc.setMask(text_mask_mc);
solid_mc.setMask(text_mask2_mc);
But that does nothing, the maskees just sit there and so does the original mask-to-be.

Maybe I'm just sleepy, but I'm missing something. Thanks for your help!

Masking A Single Image In Multiple Separate Sections
Can anyone tell me if it is possible to reveal two separate sections of one photo at separate times using two different symbols on the same mask? I have tried this but the two symbols seem to be linked to one another and move

Let me explain further, I have two people in a photo. In one set of frames I want to reveal one of the two people from the bottom up. In the next set of frames I want to reveal the other person from the top down.

Is the answer to duplicate the photo to another layer and put the mask for the 2nd person on the second layer?

Many thanks in advance for any assistance.

Andy

Masking A Movie Clip Containing Multiple Dynamic Text Fields
I have a containiner mc with multipe mc's inside. each of these mc's is being used as a button and contains a dynamic text field. all of this is created dynamically. the effect being that i have a list of names loaded from an external file. the user can click on a name and access more info. everything is fine so far but now i'm trying to make this list scrollable. I want the mask so I can define the scroll window area. i have tried using setmask. this makes t so the mc-buttons outside the mask are not functional but they are still visible.

any ideas here? thank you to all who can help.

the following is the script used to make the buttons.

for (this.i = 0; i < directors.length; i++){
while (load_done == false) {
directorname = directors[i];
this.director_name_container.createEmptyMovieClip ("directors"+i, i + 4)
this.director_name_container["directors"+i].createTextField("director",1,0,0,200,20);
this.director_name_container["directors"+i].director.variable = "name";
this.director_name_container["directors"+i].director.border = false;
this.director_name_container["directors"+i].name = directorname;
this.director_name_container["directors"+i].director.setTextFormat(myformat);
this.director_name_container["directors"+i].director._y = 0 + inc_y;
this.director_name_container["directors"+i].director._x = 0;
load_done = true;
_global.numdirectors++;
}

inc_y = inc_y + 20;
load_done = false;
}

Masking Problem - With Multiple Symbol Instances In The Mask Layer
I have two instances of a symbol on a mask layer, and a big shape on the bottom layer which is being masked. And Flash only sees one symbol instance (not both) on the mask layer.

"multiple Animated Masks, Masking One Object"
I am pulling my hair out over this, I want multiple animated masks to increase in size revaling an image. I have seen this done several times, and cant figure out if they shape tween'd on one layer or if they were motion tweens on multiple layers and somehow all linked to the bottom layer. please help before I shoot my self

Masking Issue - Image 'pops' Out Of Masking
ok i been attempting to fix this tiny, but obvious glitch for hours...

3 layers on timeline

bottom layer has 6 different images at regular intervals (every 26 frames).

middle layer is masking the bottom layer. it contains a movie clip of animation of a square shrinking to basically nothing then expanding again (with a 3 frame pause before it expanding again). Basically like a shutter closing then opening.

the top layer is empty except for the action script calls in key frames at intervals to start the animation of the mask. just uses gotoAndPlay('label') to the movie clip in middle/mask layer.

PROBLEM:
The change of pictures if offset in the timeline so the change occurs during the closing of the shutter (mask hiding all of the image).
so the mask movie clip is in layer 2 frame 1.
the first image is in layer 3 frame 7.

for some reason the very first image just pops over the closed shutter i.e. it is visible even though it should hidden. The subsequent 5 image changes behave as they are supposed to.

whiskey tango foxtrot....

edit note:
this movie clips is then placed on the main time line and itself one of a few a masked layers.

Masking Tricks And Masking Designs
Hi,

I am wondering if someone could direct me to any Flash technique websites that focus solely on a variety of masking tricks and techniques. My vision is to create Flash animations that employ the same design effects as Adobe After Effects..and I've seen plenty of that on TV commercials.

So far I'm checking out Kirupa.com www.kirupa.com

Thanks! I have Flash MX

Masking Not Completely Masking
i'm masking stuff but there are some artifacts. here's a screen shot:

http://filebox.vt.edu/users/jizietz/seethroughmask.jpg

i drew red arrows pointing to the artifacts. i've got a mask over the rectangle on the left, and things are scrolling into view from right to left. unfortunately, things are showing up outside of the mask. is this because my background color isn't white? any ideas here?

Masking On Masking - A Dynamic Jpg
Hi Fk'ers.
I've got a problem.. I want to mask a a dynamic jpg, but I can't seem to make it happen.
Please help me.. Quite desperate!

Masking On Masking - Dynamic Jpg.
Hi Fk'ers.
I've got a problem.. I want to mask a a dynamic jpg, but I can't seem to make it happen.
Please help me.. Quite desperate!
I've attached the file, so it's easier to see what I mean.

Multiple Flash VM Instances Running With Multiple Swfs On The Single Webpage
Hi all,

I am developing a webpage having multiple swfs interacting with eachother. Not when I load many swfs, is it the case that multiple flash VM instances are running on my machine? Is there any way to check this.

The project I am doing has one of the requirements that only one flash VM should be running.

Please help me in this.

Multiple Flash VM Instances Running With Multiple Swfs On The Single Webpage
Hi all,

I am developing a webpage having multiple swfs interacting with eachother. Not when I load many swfs, is it the case that multiple flash VM instances are running on my machine? Is there any way to check this.

The project I am doing has one of the requirements that only one flash VM should be running.

To summarize my question is:

how to check whether multiple flash VM instances are running on the system when multiple swfs are loaded on the page?

Please help me in this.

[CS3] Issues Creating Multiple MC From Multiple Variable Data Arrays.
I have had some great help with this from some very kind FlashKit members. However I have played with the code extensively and am having an issue getting multiple MC's from the global variable arrays "V_1", "V_2" and "V_3".

Right now I have the code set to build up a scalable graph for array V_1. I have not had it working "properly" to show the other values in graphs side by side for V_2 and V_3. I have had some weird Frankenstein looking results that led me to believe I was on the right track, but only to find that I could not figure it out. I have a g_seperator variable that I was hoping to use to determine the space between each column of data.

Can anyone out there help me please?

Thank you.

here is my code reprinted here, since my flavor of Flash may not export to a version compatible with some of your working versions.



Code:
stop();
//BAR ATTRIBUTES
_global.g_x = 240;// chart starting x position
_global.g_seperator = 130;// distance between bars
_global.g_width = 50;// graph segments width
_global.g_base = 450;// graph starting Y position
_global.g_alpha = 40;
//BOX VALUES
_global.v_1 = new Array(20, 40, 1, 10, 12, 10, 20, 15, 5, 21, 31, 50, 20, 10, 20);
_global.v_2 = new Array(60, 70, 1, 10, 42, 10, 50, 15, 30, 21, 31, 10, 20, 10, 20);
_global.v_3 = new Array(20, 70, 1, 10, 12, 10, 20, 25, 10, 31, 31, 10, 20, 10, 20);
_global.color_set = new Array(0x000099, 0x00FF00, 0xddddd, 0xcccccc, 0x990000d, 0xff9900, 0x99eeee, 0x99cccc, 0xf21000, 0xffdddddd, 0x005900, 0xff00ff, 0x0ff000, 0xff9999, 0xf2f321);
_global.pos_name = new Array("Site3", "Site5", "Site7");

var home = this;

draw1NPositions("mc_pos"+[p],pos_name[p],g_seperator);

function draw1NPositions(mc_pos, positionName, gap) {
this.createEmptyMovieClip(mc_pos,1000);
for (i=0; i<v_1.length; ++i) {
makeBox(i,g_x,g_base,g_width,v_1[i],color_set[i]);
}
}
function drawBox(mc, w, h, color) {
mc.beginFill(color);
mc.lineStyle(0,color,100);
mc.moveTo(0,0);
mc.lineTo(0,-h);
mc.lineTo(w,-h);
mc.lineTo(w,0);
mc.lineTo(0,0);
mc.endFill();
}
function makeBox(num, posX, posY, wide, tall, color) {
var myBox = home.createEmptyMovieClip("box_mc"+num, num);
myBox._x = posX;
myBox._y = posY;
myBox.num = num;
myBox.dragging = false;
drawBox(myBox,wide,tall,color);
myBox.onMouseUp = function() {
this.dragging = false;
};
myBox.onMouseDown = function() {
if (this.hitTest(_xmouse, _ymouse) && !this.dragging) {
this.startY = _ymouse;
this.startX = _xmouse;
this.startH = this._height;
this.dragging = true;
}
};
myBox.onEnterFrame = function() {
for (var i = 1; i<v_1.length; i++) {
boxes[i-1].y = home["box_mc"+(i-1)]._y=home["box_mc"+i]._y-home["box_mc"+i]._height;
}
};
myBox.onMouseMove = function() {
if (this.dragging) {
dist = this.startH-(_ymouse-this.startY);
boxes[this.num].h = this._height=(dist>1) ? dist : 1;
_root.boxValue.text = this._height;
}
};
Mouse.addListener(myBox);
}

Multiple Movie Clips On Multiple Layers (Playing Problem)
Hi dears,

I am also new in flash users. I have created some movie clips and want to play in “mcmovie”. All movie clips are on different layers i.e. movie clips are as follows:

1.mccommercial
2.mccorporate
3.mcenvirnomental…etc

I placed these MCs in on layer1 frame1 mccommercial, on layer2 frame2 mccorporate, on layer3 frame3 mcenvironmental and so on.

I want to play all movies’ clips one by one i.e. mccorporate should be played after completing mccommercial and playing last movie clip, it should be start from beginning.

I will appreciate, if somebody could do me a favor in this regards.

Thank you,


Yasin

AS3: Load Multiple Variables Into Multiple Dynamic Text Fields
I have a php file that makes this list


Code:
Cid1=3
&Lid1=22
&Title1=amazing
&Date1=1212128413
&Ext1=jpg
&Hits1=129
&Rate1=9.5000
&Cid2=1
&Lid2=22
&Title2=cool
&Date2=1212128413
&Ext2=jpg
&Hits2=129
&Rate2=8.5000
Now, I want to load the 7 bits of data into 7 dynamic text boxes.

I have to code to load a movieclip as a button onto the stage.

When I click that button I want the data to load.

I can kind of load all the data as a string into one dynamic field but don't know how to get each variable into a different text box. Any help would be great.

Regards,

Glen Charles Rowell

This is some working code for loading one variable but I need help with the rest please.


Code:
var url:String = "http://www.secretcanttellsorry.php?cid=3&orderby=ratingD&guid=on";
var Cid1:URLLoader = new URLLoader();
Cid1.addEventListener(Event.COMPLETE, completeHandler);
Cid1.load(new URLRequest(url));

function completeHandler(event:Event):void {
poptext.text = event.target.data as String;
}

How To Sync Multiple Flash Players On Multiple Networked Computers
I want to play, stop or start simultaneously the same flash movie (presentation) installed on multiple computers connected to a LAN. Do you have any idea how to do this?

Mutliple Swfs, Multiple XMLs, Multiple Root Problems
I'm new to these forums and for a good reason, i'm not as smart as you all and i want you to rub off on me

i have a problem i hope you can help me with. I have a Swf that opens other swfs such as:

_root.this.swf
opens
>_root.folder1 hat.swf
>_root.folder2 hus.swf

but in the secondary folders each have an xml file that has to be called upon by the second swf. Instead of trying to open _root.folder2 ext.xml it tries to open >_root.text.xml is there anyway in flash mx(not '04) that i can change the _root for each secondary swf? If you need more explaination just ask.. Its hard to explain confused:

thanx,
jambo

Mutliple Swfs, Multiple XMLs, Multiple Root Problems
I'm new to these forums and for a good reason, i'm not as smart as you all and i want you to rub off on me

i have a problem i hope you can help me with. I have a Swf that opens other swfs such as:

_root.this.swf
opens
>_root.folder1 hat.swf
>_root.folder2 hus.swf

but in the secondary folders each have an xml file that has to be called upon by the second swf. Instead of trying to open _root.folder2 ext.xml it tries to open >_root.text.xml is there anyway in flash mx(not '04) that i can change the _root for each secondary swf? If you need more explaination just ask.. Its hard to explain confused:

thanx,
jambo

Mutliple Swfs, Multiple XMLs, Multiple Root Problems
I have a Swf that opens other swfs such as

_root.this.swf
opens
>_root.folder1 hat.swf
>_root.folder2 hus.swf

but in the secondary folders each have an xml file that has to be called upon by the second swf. Instead of trying to open _root.folder2 ext.xml it tries to open >_root.text.xml is there anyway in flash mx(not '04) that i can change the _root for each secondary swf? If you need more explaination just ask.. Its hard to explain confused:

thanx

Single Button, Multiple Action/Multiple Targets
I originally posted this on the MX board but I think it should be here. It's a difficult one to describe.

I want to assign two separate events to a single action, but I want one event to follow the other. Both targets are MovieClips nested within the same external swf, which has been imported into the main timeline. Follow me?

on (release) {
_root.loadMovieMC.FallMan.gotoAndPlay("end");
}
on (release) {
_root.loadMovieMC.gotoAndPlay("FishGirl");
}


Problem is that once the button is clicked it runs straight to "FishGirl" without playing FallMan("end"). If I take out the second expression, it will play FallMan okay, but not the two together.

I'm in over my head here, Can anyone please help?

[MX] Drag And Drop Multiple Targets Multiple Drags
I have a drag and drop that has six dragable items to six potential targets. Only three of the targets are correct. Any of the six dragable items can hit a correct target. What I am having issues with is let's say after target 1 is hit, I don't want it to be able to get hit again. My code looks like this. But trying to do the enabled false does not work. Any idea how I can disable target 1 below assuming that it was just hit for the first time so it can't be hit again? Thanks.

but1_mc.onRelease = function() {
stopDrag();
if (this.hitTest(target1_mc) || this.hitTest(target2_mc) || this.hitTest(target3_mc)) {
if (this.hitTest(eval("target1_mc"))) {
target1_mc.enabled = false;
}

correct = correct+1;
}

Listener - Multiple Btns Trigger Multiple Actions
Having trouble wrapping my head around this. Here's the sequence:
There are 5 btns (btn1, btn2, btn3, btn4, btn5). When a btn is clicked a short animation plays (animation_mc), then depending on which btn was clicked, play that section mc.

ie. user clicks on "btn1", animation_mc plays, at last frame of animation_mc, play btn1_mc. If btn2 was click, play same animation_mc then at last frame play btn2_mc.

How would this be done?

Using Text Format For Multiple Fields In Multiple Frames
I'm trying to use Text Format to format all of my dynamic text fields in my movie. My code looks like this:


Code:
var content_fmt:TextFormat = new TextFormat();
content_fmt.color = 0x666666;
content_fmt.font = "Arial";
content_fmt.size = 12;
course_txt.setTextFormat(content_fmt);
I put it on the first frame of my movie. Unfortunately with setTextFormat, it needs to be set for every instance of text field. I don't want to have to copy and paste this code into keyframes across my whole movie. Is there a way to have it check for the field in each frame and apply the colors? Maybe with a for loop?

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

Organizing Multiple Nodes From Multiple Webservice Calls
I have a web service that I need to call that returns a bunch of nodes, each of which contain numbers that need to be sent to other web services to get the detailed info, and then reassembled with the first bunch of nodes data then presented in the flash movie.

I am confused on the best method to organize and manipulate this data. Any suggestions?

Since I am doing multiple URLLoaders and having to wait for multiple Event Listeners to fire, I dunno how to keep everything that is related organized with each other...

Any ideas would be much appreciated!

Thanks so much!

Multiple Users = Multiple File Checks (Log In Stuff)
Code:

on (release) {
//success is true if the file exists
fileExists=new LoadVars();
fileExists.onLoad=function(success) {
if (success && user eq "USER1" && password eq "USER1_PASSWORD_HERE"){
gotoAndPlay ("logging_in");
}
else {
gotoAndStop ("error");
}
}
//initiate the test
fileExists.load("http://www.somewhere.com/Users/USER1FOLDER/FILE_TO_CHECK_FOR.txt");
}



That's the script i've come up with for "USER 1".
See at the bottom is checks for a file so "user 1" can gain access. I'd like to put multiple users in there, and have the code check the specified users "check file", and not the other users files.

User 1 script checks for User 1 File
User 2 script checks for User 2 File
User 3 script checks for User 3 File

...and so forth.

Aside from that, i would like to know if i can have a script that constantly reloads an external .swf file in level 1.

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

Copyright © 2005-08 www.BigResource.com, All rights reserved