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




Change Order Of Events?



Last edited by Codemonkey : 2006-06-04 at 05:27.
























Hi,

I have this code on one of my buttons which moves the background mc to certain coordinates, then plays the exit animation of the current swf that is in the container mc, then loads a new swf into the container mc.


ActionScript Code:
on (release) {    newx = -648;    newy = 117;    new mx.transitions.Tween(_root.backGround2,"_x",mx.transitions.easing.Regular.easeOut,_root.backG  round2._x,newx,1,true);    _global.tween = new mx.transitions.Tween(_root.backGround2,"_y",mx.transitions.easing.Regular.easeOut,_root.backG  round2._y,newy,1,true);    _global.tween.onMotionFinished = function () {        if (_root.currMovie == undefined) { _root.currMovie = "news"; container.loadMovie("news.swf"); } else if (_root.currMovie != "news") { if (container._currentframe >= container.midframe) { _root.currMovie = "news"; container.play(); } }}}
It does everything that I want, just not in the order that I want. Here's how I would like it to go: Play exit animation of current swf that is loaded in container mc, then move background mc to certain coordinates, then load the new swf into the container mc. Can someone please tell me how to modify this code to do those things in that order?

Thanks, Matt



Ultrashock Forums > Flash > ActionScript
Posted on: 2006-06-04


View Complete Forum Thread with Replies

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

Change Order Of Events?
Hi,

I have this code on one of my buttons which moves the background mc to certain coordinates, then plays the exit animation of the current swf that is in the container mc, then loads a new swf into the container mc.


Code:
on (release) {
newx = -648;
newy = 117;
new mx.transitions.Tween(_root.backGround2,"_x",mx.transitions.easing.Regular.easeOut,_root.backGround2._x,newx,1,true);
_global.tween = new mx.transitions.Tween(_root.backGround2,"_y",mx.transitions.easing.Regular.easeOut,_root.backGround2._y,newy,1,true);
_global.tween.onMotionFinished = function () {
if (_root.currMovie == undefined) {
_root.currMovie = "news";
container.loadMovie("news.swf");
} else if (_root.currMovie != "news") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "news";
container.play();
}
}
}
}
It does everything that I want, just not in the order that I want. Here's how I would like it to go: Play exit animation of current swf that is loaded in container mc, then move background mc to certain coordinates, then load the new swf into the container mc. Can someone please tell me how to modify this code to do those things in that order?

Thanks, Matt

Change Order Of Events?
Hi,

I have this code on one of my buttons which moves the background mc to certain coordinates, then plays the exit animation of the current swf that is in the container mc, then loads a new swf into the container mc.


Code:
on (release) {
newx = -648;
newy = 117;
new mx.transitions.Tween(_root.backGround2,"_x",mx.transitions.easing.Regular.easeOut,_root.backGround2._x,newx,1,true);
_global.tween = new mx.transitions.Tween(_root.backGround2,"_y",mx.transitions.easing.Regular.easeOut,_root.backGround2._y,newy,1,true);
_global.tween.onMotionFinished = function () {
if (_root.currMovie == undefined) {
_root.currMovie = "news";
container.loadMovie("news.swf");
} else if (_root.currMovie != "news") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "news";
container.play();
}
}
}
}
It does everything that I want, just not in the order that I want. Here's how I would like it to go: Play exit animation of current swf that is loaded in container mc, then move background mc to certain coordinates, then load the new swf into the container mc. Can someone please tell me how to modify this code to do those things in that order?

Thanks, Matt

AddChild() And Order-of-events
Our practice (here at the office) for display objects has been to addChild() to the stage as the last step:


Code:
var clip = new CustomSprite();
clip.x = 200;
clip.y =100;
clip.alpha = .5
clip.draw();
clip.method();
addChild(clip);

But, I am just realizing that in some cases (especially when creating dynamically sized objects) that we need access to the stage before executing methods. This means that we need to say:


Code:
var clip = new CustomSprite();
addChild(clip);
clip.x = 200;
clip.y =100;
clip.alpha = .5
clip.draw();
clip.method();
Does anyone have thoughts or advice on this? I am just wondering what would be the best practice.

Rollover/Rollout Events Fire Out Of Order
I have three adjacent movieclips with rollover/rollout events on them. However, when the user rolls directly from one movieclip to another the rollover event for the second movieclip fires before the rollout event on the other movieclip. I don't see how this is possible cause the user has to rollout of the first movieclip before it can roll on to the next movieclip. Is there a way I can force it fire in the order Rollout -> Rollover?

Button Handling Multiple Events In Order?
I have a button inside a movieclip that controls the main timeline.

Now I want that same movieclip to load an external movie clip after it has performed its initial task.

Is this possible?

I tried this.

on (release) {
_root.gotoAndPlay("GOUT");
_root.staging.loadMovie("aboutus.swf", _root.staging);
}

It didn't work.


Please help.

Thanks.

Sequential Order Of Menu Interface Events, Howto?
Hello,

i am working on a flash-based website with lots of slide in/slide out menus. Basically there are 3 panels for the menu: the main menu panel, the submenu panel and a content panel. I have used a listener/broadcaster structure. Basically i need menu panels to slide in and/or out in a sequential order, f.e.:

when someone moves over the site logo, the main menu slides out, when clicking on a menu option the submenu panel slides out, when selecting a submenu option the content-panel slides out. Now, when the user selects a different submenu-option the content-panel should slide in again, and after it's finished the new content panel should slide out. But if someone clicks a new main-menu option, first the content panel should slide in, then the submenu panel slides in, and then the submenu panel should slide out again....

what's the best way to program this kind of behaviour when certain scripts have to wait for certain events to finish? Right now i tried to work with listener events that set a flag when a certain panel is displayed or not, and use a :

while(contentdisplayed==1){
//do nothing
}
slideinsubmenupanel();

but this doesn't seem to work as the movie just slows down to a halt and than doesn't run anymore...

the difficult part for me is that i cannot use a setinterval event, because sometimes both the content and submenu panel should slide in, but sometimes only the content or submenu panel should slide in...this means i have to program setinterval events for every possible combination..it seems to me there should be an nicer way to solve this?

cheers! Olaf

Sequential Order Of Menu Interface Events, Howto?
Hello,

i am working on a flash-based website with lots of slide in/slide out menus. Basically there are 3 panels for the menu: the main menu panel, the submenu panel and a content panel. I have used a listener/broadcaster structure. Basically i need menu panels to slide in and/or out in a sequential order, f.e.:

when someone moves over the site logo, the main menu slides out, when clicking on a menu option the submenu panel slides out, when selecting a submenu option the content-panel slides out. Now, when the user selects a different submenu-option the content-panel should slide in again, and after it's finished the new content panel should slide out. But if someone clicks a new main-menu option, first the content panel should slide in, then the submenu panel slides in, and then the submenu panel should slide out again....

what's the best way to program this kind of behaviour when certain scripts have to wait for certain events to finish? Right now i tried to work with listener events that set a flag when a certain panel is displayed or not, and use a :

while(contentdisplayed==1){
//do nothing
}
slideinsubmenupanel();

but this doesn't seem to work as the movie just slows down to a halt and than doesn't run anymore...

the difficult part for me is that i cannot use a setinterval event, because sometimes both the content and submenu panel should slide in, but sometimes only the content or submenu panel should slide in...this means i have to program setinterval events for every possible combination..it seems to me there should be an nicer way to solve this?

cheers! Olaf

Fire Order Re: Setting Vars, Contingent Events, And Depth
will buttonB play if it has a higher zindex?

buttonA - width200,height200 at 0,0

Code:
on (rollOut) {
junetojuly=true;
}
buttonB- width200,height200 at 100,100

Code:
on (rollOver) {
if (junetojuly) {
play();
}
}

Change Order Of MCs?
OK i am making a storyboard with flash for my uni application.

I am having 12 thumbnails of each of the slides in the storyboard, and I want it so when you rollover each one it enlarges.

I know how to do this, apart from the fact that some of the slides (movieclips) are behind each other. For example, I can make the 12th slide enlarge onRollover, but it is behind all of the previous slides...

Is there a way to dynamically change the order of movieclips?

I hope this makes sense, i found it hard to describe the problem well...

Change The Order Of The Scenes
I accidentally drew what I wanted as scene 1 on scene 3 and what I wanted as scene 3 on scene one. Is there some way to flip-flop them so they're correct without starting over?

Change The Order Of Execution
I have this AS which reads the content of a XML file:

var xml:XML = new XML();
var XMLLoader:URLLoader = new URLLoader();
XMLLoader.load(new URLRequest("values.xml"));
XMLLoader.addEventListener(Event.COMPLETE,XMLLoade d)

function XMLLoaded(event:Event):void
{
xml = XML(event.target.data);
trace(xml.toString()); // This line traces the XML
}

trace(xml.toString()); // This line traces blank

The problem is that the second trace executes somehow before the function XMLLoaded. Can someone help me change the order of execution, i'll change everything if necesary just to see that xml trace outside of any function. In AS 2.0 this could be done using _global variable, but in AS 3.0 those are gone. (i miss them already)

To give you a quick description:

I have some values saved in a XML file, and I need to import those values at runtime, so my flash MovieClip can use them and start behaving acording to them. Strangely enough everything else loads before those XML values.

Please help me ..... i've been looking for an answer for almoust 3 days now

Change Order Of Items
Hi !
I am trying to create the list of tasks where users can change the order. Like this one:

http://www.surfmind.com/lab/table_reorder.cfm

I am creating this for Flash only though, can't be combined with any server script.

Any help will be greatly appreciated. Many thanks in advanced!!

How To Change Image Order . . ..
. . in a Flash .fla file? I don't have access to the original images, just the ones within the library. There are 8 images and I'd like to move them around and it appears, that I need to point to the originals in order to do so.

May possibly be my lack of Flash knowledge if there's another way.

Any helps would be appreciated.

Ciao,
HiTekMom

Change Order Of Object In Layer?
I know it must be somewhere, but I just can't find it!!

Somebody please tell me how to change the order (so by clicking on an object it comes to the top of the layer).

What I'm trying to do is to have multiciple windows on one screen, and by clicking on the window you want to see, it comes above everybody else.

What's the actionscripting for it?

Can I Dynamically Change Layer Order?
I am creating a virtual lab. I need a custom cursor (determined by a movie clip on one layer) to be able to move under one layer while moving over another layer. The cursor moves behind a transparent object. The cursor must move to the front when accessing another layer (a drop down menu displaying chemicals they can select). In essence, I am asking the cursor to be 3D moving through layers.
I could solve the problem if there is some actionscript method that will basically bring the cursor to the front (topmost layer) when the user moves the mouse into certain areas of the stage.
Has anyone else struggled with this problem?
Thanks for any help!

Change Layer Order With Scripts?
Is there a way to change the order of the layers using scripting?

I want some objects in front at certain times and in the back at others.

Having different movies in differnet levels wouldn't work for what i'm trying to do.

Thanks

Help Me Change The Order Of Guestbook Entries...
Hi all,

I downloaded this open source guestbook (http://www.flashkit.com/movies/Inter...8439/index.php) and had a fiddle around with it.

It's very easy to use, and works like a charm. I definately recommend it. But I do have one little thing that I can't figure out (not having the greatest php knowledge in the world)...

How can I make the newest entry into the guestbook be at the top?

Thanx in advance for any help given.


PHP Code:



<?
    if (!isset($name) || !isset($email) || !isset($message) || empty($name) || empty($email) || empty($message)) {
         print "&result=Fail";
         print "&errorMsg=" . urlencode("Input required for all fields.");
         exit;
    }

    $email = strtolower($email);

    addentry($name, $email, $message);

function addentry($name, $email, $message) {

    $posted = strftime("%D %I:%M %p");

    $message = stripslashes($message);

    $file = fopen('entry.txt', 'a+');

    if (!$file) {
         print "&result=Fail";
         print "&errorMsg=" . urlencode("Could not open entry.txt file. Change CHMOD levels to 766.");
         exit;
    }

    fputs($file, "<font color="#000000">Name:</font> $name
<font color="#000000">Email:</font> <font color="#ab9367"><u><A href="mailto:$email">$email</A></u></font><br>
<font color="#000000">Posted:</font> $posted
<font color="#000000">Message:</font> $message

");
    fclose($file);

    // Send admin an email when new entry occurs
    // mailAdmin($name, $email);
}

function mailAdmin($name, $email) {
    $mailTo = "Your Name <your@email.com>";
    $mailFrom = "From: Guestbook <noreply@email.com>";
    $mailSubject = "New Guestbook Entry";
    $mailBody = "$name ($email) has just posted in your guestbook.";
    mail($mailTo, $mailSubject, $mailBody, $mailFrom);
}

print "&result=okay";
exit;

?>

How Do I Change Layer Order Of Buttons?
I have read forum posts on and downloaded Flash files showing how to change the layer order of Movie Clips when clicked on or dragged, etc.

However, I haven't gotten these scripts to work with Buttons.

Basically, my design has a group of buttons arranged so that it looks like some are below or above others. What I want is that when the user rolls over a button (not just clicking on), it should pop to the foreground, i.e. its layer jumps to the top.

I can't find anything on the web about how to do this. Is it very complex or a basic function that I'm missing??

I have Flash 2004 pro btw, in case that's important. Please help somebody!

thanks

Help Me Change The Order Of Guestbook Entries...
Hi all,

I downloaded this open source guestbook (http://www.flashkit.com/movies/Inter...8439/index.php) and had a fiddle around with it.

It's very easy to use, and works like a charm. I definately recommend it. But I do have one little thing that I can't figure out (not having the greatest php knowledge in the world)...

How can I make the newest entry into the guestbook be at the top?

Thanx in advance for any help given.


PHP Code:



<?
    if (!isset($name) || !isset($email) || !isset($message) || empty($name) || empty($email) || empty($message)) {
         print "&result=Fail";
         print "&errorMsg=" . urlencode("Input required for all fields.");
         exit;
    }

    $email = strtolower($email);

    addentry($name, $email, $message);

function addentry($name, $email, $message) {

    $posted = strftime("%D %I:%M %p");

    $message = stripslashes($message);

    $file = fopen('entry.txt', 'a+');

    if (!$file) {
         print "&result=Fail";
         print "&errorMsg=" . urlencode("Could not open entry.txt file. Change CHMOD levels to 766.");
         exit;
    }

    fputs($file, "<font color="#000000">Name:</font> $name
<font color="#000000">Email:</font> <font color="#ab9367"><u><A href="mailto:$email">$email</A></u></font><br>
<font color="#000000">Posted:</font> $posted
<font color="#000000">Message:</font> $message

");
    fclose($file);

    // Send admin an email when new entry occurs
    // mailAdmin($name, $email);
}

function mailAdmin($name, $email) {
    $mailTo = "Your Name <your@email.com>";
    $mailFrom = "From: Guestbook <noreply@email.com>";
    $mailSubject = "New Guestbook Entry";
    $mailBody = "$name ($email) has just posted in your guestbook.";
    mail($mailTo, $mailSubject, $mailBody, $mailFrom);
}

print "&result=okay";
exit;

?>

Change Order Of Movie Clips
I have flash document with 4 movie clips. I want the user (not on the web) to be able to rearrange the order of the clips by dragging the thumbnails in play order from left to right. They would then be able to save the document for playing later. The next time they play the movie, they could rearrange the movies and save the order for playing at a future time. Can anyone point me in the right direction for tutorials to read that might help me accomplish this? I know how to drag objects, but having those objects control the play order and the saving of the play order is what I don't know how to do. I have seen this done before though. Thanks, Rich

Change Layer Order By Script
I have a bunch of embedded movies that are controlled by hidden buttons. I would like to be able to adjust the stacking order or z-depth of the layers by scripts to solve a design problem. What I've ended up with is if you roll over button 3 the #3 movie zooms up to it's desired position on the screen and plays. If you then roll over button 1 the #3 movie continues to play until the end then zooms or scales down to it's place holder size while movie 1 is scaling up and moving into position to play. The problem is that Movie 3 is above Movie 1 so while 3 is continuing to the end and one is moving into position you can't see movie 1 because it's covered by movie 3 until movie 3 scales back down and moves to it's proper position.

What I'd like to do is to force whatever movie I've currently over to move to the top layer. Something like:
if (rollOver button1 ) {this movie on top} else {this movie in original order}

Is this possible? Spent hours with the help files and searching tutorials with no success.





























Edited: 04/24/2007 at 03:07:33 PM by nu guy

Dynamic List Order Change
Hi,

I have a list of 8 items. I want to move items up or down the list by clicking on the up or down arrows next to each item. I just can't figure this out. Each item is a movie clip with 8 frames, each frame has one of the 8 items on it. IE frame 1 = item 1.

This is what the list looks like, those are 8 movieclips
http://xs127.xs.to/xs127/08223/listitems393.png

This is what I have inside my movieclips
http://xs127.xs.to/xs127/08223/mcframes159.png


It sounds simpler than it is. Obviously the clips need to rearrange themselves according to the positions(keyFrames) of the others.


Thanks in advance

Change Stacking Order (swapDepths)
Hi, I was reading an old article about swapDepths and was wondering if you could explain how you'd increase a second panel relative to the panel being dragged.


Quote:




If I want another panel to increase its stacking order in relation to this panel, I can blindly increase the stacking position of that panel, or, I can increase a variable stored on the main timeline by a certain value so all movie clips are in sync.




To describe my project, I have 4 nav movieclips that I want to swap depths on rollover and also bring a movieclip of a opacity fade-in up to one depth below the mc the mouse is over.

So basically I'm looking for this when I rollover MC1:
[MC1]
[OPACITY_MC]
[MC2]
[MC3]
[MC4]

Any help would be sweet. Thanks.
Scott

How To Change Order Of Layers During Animation
Newbie here - idiot instructions PLEASE!

I am working on my first flash document and I have two layers - each layer containing a text object. I have one of text object of layer1 dropping down and bouncing back up above the text object of layer2. On the way down, I want the text object of layer1 behind layer2 but on the way back up, I want it in front of layer2. How do I change the arrangment (order) of layers midway during animation. (FYI - the animation is done with motion tweens).

Thanks

Randomly Change Order Of Array Elements
Hi,

I'm using AS1, Flash MX2004.

I was wondering if it's possible to change the order of elements of an array, everytime the array is executed.
So, after loading data and populating the array, the array is ["blue","red","green"], I would like it to be for example:
["red","green","blue"], or ["blue","green","red"].

Thanx for your help!

[CS3] How Do You Get Vertical Menu Buttons To Change Order?
How can you get a clicked menu button move to top while the other make way. An example of what I'm getting at ishere. http://www.moma.org/exhibitions/2007/seurat/seurat.html.
Any help would be greatly appreciated.

Drag And Drop Change Order Of Film Clips Being Played,
Hi all,

I'm a newbie who's trying to do a very ambitious flash project...
Basically - i have filmed 6 scenes and i am making a website where the users almost edit them together for themselves.
I want to have the clips looping and playing and the ability for the user to drag and drop them into an order at the bottom of the page and then they play in that order top right...
can anyone point me in the right direction as i'm totally lost...
i know bits of code but i dont really know where to start with arrays...and the user being able to change the order of the clips playing.

Thanks a lot,
Rachel

The Order Of Swf Sliding Images Change Once The Html Page Is Reoaded
Does any 1 have any idea?
I do have a set of images (lets say 1,2,3,4 and 5) in an html page. what I want is once the html page is reloaded, the order of the sliding should change randomly (from 1,2,3,4 and 5) to (4,5,3,4,5...)for example.

Thanks a lot

Change The Order Of The Movie Clip In Flash ( Flash MX Zip Files Attached)
Dear Sir,



I have created a movie where there are buttons I am calling the movie clip from the library by clicking the the button . Each movie clip is high in file size due to its large graphics. So, I have put a preloader into the first frame of each movie clip. The problem is, how can I change the order of the moive clip that is called inside the movie. Also I need to change the transparency of the layer I am hereby sending you the fla files also. I need your kind help sir.

Reagrds

Rajesh

Change The Order Of The Movie Clip In Flash ( Flash MX Zip Files Attached)
Dear Sir,



I have created a movie where there are buttons I am calling the movie clip from the library by clicking the the button . Each movie clip is high in file size due to its large graphics. So, I have put a preloader into the first frame of each movie clip. The problem is, how can I change the order of the moive clip that is called inside the movie. Also I need to change the transparency of the layer I am hereby sending you the fla files also. I need your kind help sir.

Reagrds

Rajesh

Change The Order Of The Movie Clip In Flash ( Flash MX Zip Files Attached)
Dear Sir,



I have created a movie where there are buttons I am calling the movie clip from the library by clicking the the button . Each movie clip is high in file size due to its large graphics. So, I have put a preloader into the first frame of each movie clip. The problem is, how can I change the order of the moive clip that is called inside the movie. Also I need to change the transparency of the layer I am hereby sending you the fla files also. I need your kind help sir.

Reagrds

Rajesh

Change The Order Of The Movie Clip In Flash ( Flash MX Zip Files Attached)
Dear Sir,



I have created a movie where there are buttons I am calling the movie clip from the library by clicking the the button . Each movie clip is high in file size due to its large graphics. So, I have put a preloader into the first frame of each movie clip. The problem is, how can I change the order of the moive clip that is called inside the movie. Also I need to change the transparency of the layer I am hereby sending you the fla files also. I need your kind help sir.

Reagrds

Rajesh

Change The Order Of The Movie Clip In Flash ( Flash MX Zip Files Attached)
Dear Sir,



I have created a movie where there are buttons I am calling the movie clip from the library by clicking the the button . Each movie clip is high in file size due to its large graphics. So, I have put a preloader into the first frame of each movie clip. The problem is, how can I change the order of the moive clip that is called inside the movie. Also I need to change the transparency of the layer I am hereby sending you the fla files also. I need your kind help sir.

Reagrds

Rajesh

Change The Order Of The Movie Clip In Flash ( Flash MX Zip Files Attached)
Dear Sir,



I have created a movie where there are buttons I am calling the movie clip from the library by clicking the the button . Each movie clip is high in file size due to its large graphics. So, I have put a preloader into the first frame of each movie clip. The problem is, how can I change the order of the moive clip that is called inside the movie. Also I need to change the transparency of the layer I am hereby sending you the fla files also. I need your kind help sir.

Reagrds

Rajesh

Change The Order Of The Movie Clip In Flash ( Flash MX Zip Files Attached)
Dear Sir,



I have created a movie where there are buttons I am calling the movie clip from the library by clicking the the button . Each movie clip is high in file size due to its large graphics. So, I have put a preloader into the first frame of each movie clip. The problem is, how can I change the order of the moive clip that is called inside the movie. Also I need to change the transparency of the layer I am hereby sending you the fla files also. I need your kind help sir.

Reagrds

Rajesh

Order Form - Order Fields?
hi,

i just donīt get how to make the input fields become in a secuencial order when you press the tab button,
i mean give them the order i want,

and also, if you use the sendmail.asp in the server,
there also are very disorganisated,
with no specific order,

do any of you solve this deal ????

ok thanks

Register Classes - Mc Events Vs Button Events
I'm experimenting with register classes today, and wasn't careful typing the code with only button events for my custom movie clip class.
First I wrote

Code:
CustomClass.prototype.onMouseDown = function(){
this.gotoAndStop("blue");
}// end onMouseDown
Then all the mc-buttons in my movie went to the blue state. (.fla provided)
When I realised the error, I corrected it, and now it works.
I just don't understand what happened.
Do Movie Clip events turn out to be class methods (don't know what to call it in Java script, only used to Java), while button events stay instance events??
Hope somebody have the time - it's not about life and death, but it would be really nice to know how these things work.

Drawing Order / Z-order
I've noticed that AS provides some functionality for setting the render ordering of sprites/objects onscreen, but it doesn't seem a very easy system. It kind of looks like you haveto know the index of every item to be able to do anything?

2 Examples I need to control this:

1)I load a pre-created SWF representing a game level. There is a background image and then a few things in front of the background. Now I dynamically ad sprites to the level. The sprites should always be shown in front of the background, but behind the other pieces of scenery.

2)I have many sprites on screen moving around. I want the drawing order to be that sprites lower down the screen are "nearer" than those higher up, so the drawing order should be to draw sprites in order of decreasing y-coordinates. Obviously sprites are moving around so the ordering needs to change often.

Can anyone tell me the kind of thing I need to do to make these situations work? There doesn't seem to be an easy way to just say "put this item behind that one", unless I plain misunderstood the docs?

Thankyou

Respond To Mouse Events Inside A Movieclip That Has Mouse Events...
I have a main MC that has a couple of mouse events associated with it (onPress mainly). There are also MC's inside this main MC that have Mouse events associated to them (onPress, onMouseMove, onRelease). The child MCs don't seem to get the mouse events (which makes sense, the parent is taking over the event)...how can I make this work? I don't want to have to delete and recreate the event handlers like 900 times as its not efficient...there has to be a better way.

Can Events Trigger Other Events?
Hello brothers and sisters of the Nets most helpful community!

I am going insane in the membrane trying to get my custom cursor to work in my scene. I have successfully completed many tutorials about how to do this in AS3 (the danielmclaren.net solution was particularly helpful) and have scoured this forum a bit for info, and (gasp) also read through a bunch of stuff on live docs. But, alas, I cannot understand why I cannot get the custom mouse (cursor) to work in my file. It works like a charm until I try hammering it into my scene.

I believe that the problem has something to do with with too many events being fired off at the same time and (possibly) my not removing them at opportune times. Or, maybe my coding style is not so elegant? Anyway, the FLA (with easy-to-read structure and commenting) can be downloaded here since I am not certain which part of my code is causing the custom cursor not to work. With all the comments, it should not be too difficult (I hope) to see what it is I am trying to do.

Any feedback would, as always, be most appreciated.

Download_FLA

Regards,

-john

Load Order, Force Load Order
I was wondering if there is a way to force the load order of graphics, movie clips, buttons. I am most interested in force a paticular graphic in my swf file to load before everything else.

Thanks

How To Change Stacking Of Buttons (or How To Change Play To Pause Button)?
My problem is I want to have one button for play and pause music playing in Flash.

Music starts automaticaly, so Pause button is visible. When user presses Pause button, I want to show him Play button on the top of Pause button.

Shortly: Music is playing = visible Pause button
Music is paused = visible Play button

Is anywhere tutorial or explanation.

THX very much for hints

Jan

Button Change Color On Select, Then Change Back
I have 3 buttons, named but,but2,but3. What I want is if you click a button it changes color to show what page your on. But when you click a different button now that one is highlighted and the original one goes back to the original color. Here's the code.
but3.onPress = function () {
_root.createEmptyMovieClip("container", 1);
loadMovie("banner3.swf", "container");
container._x = 0;
container._y = 0 ;

I figure I have to add some kind of if statement?
}

I Change The Size Of A Bitmap In Frame 1. Now How To Change The Others?
I have a 30 frame TGA. I import it on the stage. GREAT! I take frame one and shrink down the image. Now how do I shrink the rest of them without manually having to goto each frame and move and shrink them ?

How To Change The Website Position With Resolution Change
Hello
Well i just finished my 100% flash based website...the problem im having is that when i view it in 800 x 600 resolution it is postioned at the center of IE 6 browser. But when i view it in 1024 x 768 resolution it is positioned at top left hand corner...i want it in center in 1024 x 768 resolution...plzzz help quickly as i finished evrthing n im stuck with this...thnx...

also you can better understand what im saying if you visit: http://www.playersclubrestaurant.com/

their site position changes with resolution change

I Want To Change Button Into MC --> Actions Change Too?
Hi there,

Maybe this is very easy but I am just this NOOB!

OK, problem: I have a button that loads a movie into a contentclip.

This action in the script on a frame on the timeline not the button itself:

but1.onRelease = function() {
_root.box.gotoAndPlay(2);
_root.targetx = _root.but1._x;
window._alpha = 100;
window.widthNew = 390;
window.heightNew = 200;
window.xposNew = 14;
window.yposNew = 120;
loadMovie("aboutus.swf", "window.screen");
};

My desire is the make a more 'moving and actionlike' button (fade in and out and so on). So the button 'area' will be in a MC. How to call that action so the movie gets loaded!?

The whole fla I am using is a resize window tutorial.

Eric

Color Change (heavy Change)
Hey everybody,

i dont know if this is possible, but it sure would be nice! I need to change all the elements in my movie that have the color X and change their color to color Y.
Is it possible to have this in AS? like, if i press one button all the elements that have the color black (graphic, text, background, etc) change their color to yellow?

thanks for any thoughts!!

cheers

Tab Order
How do you change the tab order in a form? Or how does it work? Is it the first field you put down the first one?

Tab Key Order
Is there a way to make a tab key order. So you can only have it go to certain text boxes only on a movie clip and in a certain order that you decide?
Thanks in advance
deadsam

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