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




Mouse Event Propagation Question



Hi guys,

Let's say i have a following situation:

I have a "large" movie clip and "small" movie inside a "large" movie clip but on it's let's say upper right corner:


Code:
largeMc.addChild(smallMc);
If i try to catch Mouse.DOWN events on them the following way:


Code:
largeMc.addEventListener(MouseEvent.MOUSE_DOWN, largeClicked);
smallMc.addEventListener(MouseEvent.MOUSE_DOWN, smallClicked);
Then of course both event are captured no matter where i click.

Is it possible to capture independent mouse clicks on both of these two movie clips and if so, how can i do that?

Thanks in advance,
best regards



ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 01-22-2009, 04:00 PM


View Complete Forum Thread with Replies

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

Mouse Event Propagation Question
Hi guys,

Let's say i have a following situation:

I have a "large" movie clip and "small" movie inside a "large" movie clip but on it's let's say upper right corner:


Code:
largeMc.addChild(smallMc);
If i try to catch Mouse.DOWN events on them the following way:


Code:
largeMc.addEventListener(MouseEvent.MOUSE_DOWN, largeClicked);
smallMc.addEventListener(MouseEvent.MOUSE_DOWN, smallClicked);
Then of course both event are captured no matter where i click.

Is it possible to capture independent mouse clicks on both of these two movie clips and if so, how can i do that?

Thanks in advance,
best regards

Mouse Event Propagation Question
Hi guys,

Let's say i have a following situation:

I have a "large" movie clip and "small" movie inside a "large" movie clip but on it's let's say upper right corner:


Code:
largeMc.addChild(smallMc);
If i try to catch Mouse.DOWN events on them the following way:


Code:
largeMc.addEventListener(MouseEvent.MOUSE_DOWN, largeClicked);
smallMc.addEventListener(MouseEvent.MOUSE_DOWN, smallClicked);
Then of course both event are captured no matter where i click.

Is it possible to capture independent mouse clicks on both of these two movie clips and if so, how can i do that?

Thanks in advance,
best regards

Event Propagation Vs. Event Blocking -- Confused, Even After Moock
I thought I understood the AS3 event scheme: capture, target, bubbling. That events (e.g. MouseEvents) travel from stage to the object clicked on and then back again, and all objects in the display chain receive and can check that event. But it's also true, it seems, that Interactive Objects in front of others will block and "absorb" events, and those beneath will never hear of the event (unless mouseEnabled for the blocking object is set to false). I don't understand this (seeming) contradiction.

On the Kirupa forums:

Along with event propagation in ActionScript 3 comes different phases of events with display objects. With propagation, you have events being propagated from display objects to other display objects, such as mouse click events being propagated from children to their parents. This lets clicks within children objects to be recognized by parents (since children make up the contents of their parents, its only natural for the parent to also have those same events). The phases of such an event represent the progression of the event as it makes its way through the parent and child objects.

Events actually start with parent objects (phase 1: capturing), starting with the top most parent (stage) and making its way down to the child where the event originated (phase 2: at target). Then after reaching the child it makes its way back up through all the parents again (phase 3: bubbling).

But also:

Though ActionScript 3 now supports event propagation (capturing, bubbling, etc). Events like mouse events still only occur for one specific target for each individual event. In other words, when you click the mouse button over some objects in a Flash movie, only one of those objects is going to recieve the event even though the mouse is physically over other objects as well.…One important thing to keep in mind is that, in ActionScript 3, mouseEnabled is true by default. This means, without any event handlers or listeners used in a movie, every InteractiveObject instance will capture mouse events and prevent them from reaching any other objects beneath them.

Any clarification much appreciated…

Event Propagation
THis is driving me Nuts. I have movieClip with children and the children may have children as well, I Flash speaks this would look like something like this:

container.children.children

Each child is a clickable area, however the container need to be drag-able. My problem is when ever I drag the container, when ever I release the mouse the children click event gets fired even though I'm stopping the event propation.

Can someone please point me in the right direction. I've tried event propagation which does not seem to work.

Thanks in advanced.

Help / Event Propagation
I'm still pretty new to AS3 and here's one of those problems that i kept avoiding to confront, but I'll finally ask for help.

I'm creating a video player and i want the interface (controls etc) to show up only when you roll over the video. i tried adding an event listener to the video object but ti wont work, so i added a transparent bg. to the controls, made it as big as the video, and added an event listener to that.

It works good except one thing: when i roll over a control, it triggers the MOUSE_OUT event, and the controls hide... i'm guessing it has to do something with event propagation.

Could anyone please help me out?

Very appreciated,
Z

Event Propagation Issue
I need to have the entire stage trigger an event like so


Code:
stage.addEventListener(MouseEvent.MOUSE_OVER, showControls);
that uses the standard built-in tween class to bring up my control bar for my video control functions:


Code:
function showControls(e:MouseEvent):void
{
var myTweenAlpha4:Tween = new Tween(ctrl_container, "alpha", Regular.easeIn, 0, 1, 1, true);

}
Problem is every movie clip on the stage re-triggers the event, I am assuming due to event propagation as everything is a child of the stage in a sense.

Is there a way to suppress this without keeping other mousing functions in the other clips below from working?

Event Propagation Problem
Hello

I am having problems with event propagation. I am creating two object and then adding these into a holder sprite and then adding a click event listener to the holder click. So when user clicks any of the two object inside that holder clip onClick handler is called and in that I am calling a function of the traget object

Here is the sample code:

Code:

var array:Array = new Array();
var holder:Sprite = new Sprite;
array.push("Coldplay The Scientist");
array.push("Black and Gold");
array.push("Rihanna Take a bow")
for(var i:int; i < array.length; i++)
{
var test:Test = new Test();
test.startTest(array[i]);
test.x = i * 200;
holder.addChild(test);
holder.addEventListener(MouseEvent.CLICK, onClick);
addChild(holder);
}
function onClick(event:MouseEvent):void
{
//trace("Current target" + event.currentTarget);
trace("target" + event.target.callFunction());
}

This is giving me the following error
Error #1069: Property video not found on flash.display.sprite and there is no default value.

Can anyone help me with this?

Thanks

Event Propagation Between Classes? [AS3]
Hello,


I've been reading up on Event's in AS3 today, and... I don't grasp it completely... Actually I fail pretty bad . Anyway, is it possible to accomplish event propagation between classes? If it is, say I have a Class called CustomClass and it creates a instance of another Class, CustomSubClass in it, would propagation be possible in such a manner? And if it is, would those custom classes need to extend EventDispatcher or similar?


Thanks for any possible clarification,
Matt

Event Propagation Problem
Hi guys,

I'm having some trouble with events. My application has a class structure similar to below.

-Main (Document Class)
--- BodyContainer
------ BodyTextContainer
------ ImagesContainer
--- ContentsContainer
------ SectionsContainer
------ SubsectionContainer

The App has a list of manuals to be displayed. This is handled by the Main class. When the user clicks on a manual an instance of ContentsContainer is loaded. This lists all the sections in the selected manual. When the user selectes a section to view, the SubsectionsContainer is updated. When they choose a subsection a custom event is dispatched to be received by Main, the ContentsContainer class should be removed and the BodyContainer should be instantiated to display the information in that subsection.

So I want to dispatch an event from SubsectionContainer that is received by Main that removes ContentsContainer and loads BodyContainer.

I can't seem to get Main to respond to the event. Is this possible? It onty seems to work if I add an event listener in Main that is linked directly to the subsection container:

ContentsContainer.SubsectionContainer.addEventList ener(.....)

But obviously I don't want to be hard coding like this in my app. Hope that all makes sense. Anyone got any advice?

Thanks very much!

Event Propagation Problem
Hello

I am having problems with event propagation. I am creating two object and then adding these into a holder sprite and then adding a click event listener to the holder click. So when user clicks any of the two object inside that holder clip onClick handler is called and in that I am calling a function of the traget object

Here is the sample code:

Code:
var array:Array = new Array();
var holder:Sprite = new Sprite;
array.push("Coldplay The Scientist");
array.push("Black and Gold");
array.push("Rihanna Take a bow")
for(var i:int; i < array.length; i++)
{
var test:Test = new Test();
test.startTest(array[i]);
test.x = i * 200;
holder.addChild(test);
holder.addEventListener(MouseEvent.CLICK, onClick);
addChild(holder);
}
function onClick(event:MouseEvent):void
{
//trace("Current target" + event.currentTarget);
trace("target" + event.target.callFunction());
This is giving me the following error
Error #1069: Property video not found on flash.display.sprite and there is no default value.

Can anyone help me with this?

Thanks

Event Propagation Problem
Hello

I am having problems with event propagation. I am creating two object and then adding these into a holder sprite and then adding a click event listener to the holder click. So when user clicks any of the two object inside that holder clip onClick handler is called and in that I am calling a function of the traget object

Here is the sample code:
Code:

var array:Array = new Array();
var holder:Sprite = new Sprite;
array.push("Coldplay The Scientist");
array.push("Black and Gold");
array.push("Rihanna Take a bow")
for(var i:int; i < array.length; i++)
{
var test:Test = new Test();
test.startTest(array[i]);
test.x = i * 200;
holder.addChild(test);
holder.addEventListener(MouseEvent.CLICK, onClick);
addChild(holder);
}
function onClick(event:MouseEvent):void
{
//trace("Current target" + event.currentTarget);
trace("target" + event.target.callFunction());
}


This is giving me the following error
Error #1069: Property video not found on flash.display.sprite and there is no default value.

Can anyone help me with this?

Thanks

Trouble With Event Propagation (hierarchy?) In AS2.0
I'm attempting to rewrite a program thats I wrote when I first learned AS. Its basically a set of nodes, with 1 parent node at the head, and it has a # of children at that first level. Clicking on a level 1 child will create its number of children at level2, and so on. When you click a node earlier in the hierarchy (a level1 lets say), and a different node has already spawned to level 4, I want level 4 to 'unspawn', followed by level3, then level2, until it reaches that sibling clicked level1, then its children can spawn. (I hope this is making sense )

The first time I did it was by making the parent node the head event broadcaster. Each of its children is a listener (and a broadcaster if it has children). I would broadcast the level of the clicked childNode from the parent, cascading through the children. If your level was <= to the passed level var, the node would still exist. Otherwise I did a removeClip & removeListener and then spawned the new nodes.

This way seemed inefficient. The code was pretty messy (I was new at this though). Does anyone have another idea? The only event code I used was from the AsBroadcaster object. Any tips or ideas would be greatly appreciated, I have nobody to brainstorm with

I know AS3 has event phases and propagation which will probably solve my problem. I can't wait to get my hands on AS3, but unfortunately I have to do this in AS2. Thanks!

[as3] Event Propagation Issue On Stage
Lets say I have two sprites on the stage added with:

DisplayObjectContainer( root ).addChild( sprite1 );
DisplayObjectContainer( root ).addChild( sprite2 );

If I dispatch an event within sprite1, sprite2 doesn't receive it. Am I missing something obvious here? I've read all I can find on AS3 event propagation (including senocalars excelent posts) but cant find a solution.

I understand that events always start at the stage and propagate down to the originator and then back up, but I need it to go back down to the other sprite.

Making sprite2 a child of sprite1 obviously solves the problem by creates a tight coupling.

Ideas?

Help: Custom Event Propagation Through Loader
Hello all,

I use a custom event with public message vars to send messages and triggers in AS3. It's great, however, I cannot get it to propagate an event from a loaded SWF via Loader to my main objects. Below is pcode for the problem case:


Code:
new Loader();
Loader.addEventListener(GENERAL_EVENT,handleGeneral);
or
Loader.content.addEventListener(GENERAL_EVENT,handleGeneral);
or
Loader.contentLoaderInfo.addEventListener(GENERAL_EVENT,handleGeneral);
Loader.load("mySwf.swf");
... then mySwf.swf dispatches a GeneralEvent


Code:
function handleGeneral(e:GeneralEvent) {
trace("HEARD GENERAL EVENT") // NEVER HEARS IT
}
I never hear the event. It's as if there is a event "firewall" between a loaded SWF and Loader's parent. The GeneralEvent class works great in all other cases where the objects are not Loaders.

Any ideas?


Thanks,
dseeley

Event Propagation/bubbling Question
i can't doubleclick on an mc with mc's init...the main container mc won't register doubleclick events(it does so with single clicks)...is this a propagation issue and what can be done?(some property or method)...and i cant wrap my head around event bubbling(phases and such)...i guess this and the doubleclick hick up are connected , no?...many thanx for any replies

AS3 Event Propagation Thru Alpha Channel Mask?
Ok, in AS2 I had a bitmap with an alpha-channel that made a transparent hole (mask) in front of external, loaded .swf files (aka rounded corners of an old tv). In AS2, events went thru the hole just fine and the swfs behind handled their events. After converting to AS3, and getting the swfs loaded again, the events do NOT reach the swfs playing behind the 'mask'. Am I missing something or is this a major bug? Moving the external swfs to a higher level works, not the end of the world (I lose my rounded corners) but it proves the events don't get to the layer that worked in AS2.

Event Listener Mouse Event Click - Obstructions
This is an oversimplification of my problem.

I have an event listener on a sprite.
I then have portions of this sprite covered with other sprites or moveclips.

If I click a movieclip, it blocks my eventlistener on the sprite underneath it.

Is it possible to listen to the even click 'through' a movieclip. I dont want interaction with them, but I dont want them as bitmap data onto the base sprite either...

Mouse Event, Event.target Vs Movieclip Name
Hi -

Can anyone help me with a mouse event issue, i'm truly baffled. There's a timer event that loads 4 movieclips (named 'serviceType'), each containing an instance of 2 objects (named 'btn' and 'thumbs'). When clicking on the MC (servicetype) it triggers a mouse event. I'm trying to reference child 'thumbs' of the serviceType MC but in the mouse event function, event.target traces no children, but serviceType traces the 2 children. BUT serviceType only refers to the last instance of serviceType that was loaded in the timer event. Why wouldn't event.target work??

Here's the code, and thanks for the help!!

ActionScript Code:
function loadServices(event:TimerEvent):void {
     count = event.target.currentCount -1;
     serviceType = new MovieClip;
     addChild(serviceType);
     btn = new Btn(serviceList, count);
     thumbs = new ThumbContainer(count);
     serviceType.addChild(btn);
     serviceType.addChild(thumbs);
     serviceType.addEventListener(MouseEvent.CLICK,loadThumbs);
}
           
function loadThumbs (event:MouseEvent):void {
     trace(serviceType.numChildren); /// Displays 2 (but refers to the last instance loaded)
     trace(event.target.numChildren);// Displays 0, why??
}

Mouse Event Add Event Listener?
sorry, could not think of a better title!
anyway,
I downloaded a class that perfectly works for me,
it's basically a cube that rotates depending on mouse movement,
the way it does it is with the following line:

spBoard.addEventListener(MouseEvent.MOUSE_MOVE,boa rdMove);


what this does is, whenever the mouse moves the cube moves
the boardMove function does the movement based on the mouse's current position

but what i want to do is the keep the cube moving, if the mouse is on its left, it keeps rotating left, and on its rght, keep rotating right...and preferably to have the speed increase/decrease depending on how far/close mouse is to the center of the cube

any suggestions?
firstly is there an event listener that keeps calling the function just for the mouse 'being there' ? i tried rollover, didn't work

or maybe the boardMove function should be modified? i have no idea how though, totally new to AS3, here's the boardMove function for refrence:


ActionScript Code:
private function boardMove(e:MouseEvent):void {
        
                var locX:Number=prevX;
               
               
       
                if(doRotate){
               
               
                prevX=spBoard.mouseX;
                               
               
               
               
                               
                curTheta+=(prevX-locX);
                                   
               
               
                renderView(curTheta);
               
                e.updateAfterEvent();
               
                }
    }

Mouse Event Handler Vs. Mouse Listeners?
I found an example use of the onMouseDown, onMouseMove, and onMouseUp event listeners in the ActionScript help files. The example used a listener to listen for the mouse events and draw boxes when the user clicks and drags. I removed the listener and the SWF still seems to work just fine. (See the mouseEventTest.fla.) I don't understand why someone would want to use a mouse event listener if it's not necessary to detect onMouseDown, onMouseMove and onMouseUp. Can someone explain this?

Maybe I'm just not understanding the difference between the listeners used with the top-level Mouse class and the onMouseDown event handlers that work with movie clips. Does my mouseEventTest.fla work without the listener because it's treating the onMouseDown as though it's a movie clip event handler associated with _root?

How To Prevent CLICK Propagation?
Hey all!

Ok I have a INPUT text field nested in a movie clip that on a "CLICK" event collapses and hides the input text field.

My issue is that when I want to enter some text in the input text field by clicking on it the parent movieclip receives the click event and collapses straight away.

How do I prevent that?

Thanks!!!

Help Solving A Propagation Problem
Hi everyone,

I started AS3 a week or two ago and I'm trying to make a simple tower defense game to practice. Here's the problem I'm having:

I have a tower, and a larger circle around the tower that represents the range. I have a tower class and a range class, and I added the range as a child to the tower class. Here's an image (the object with the '1' is a tower, the outer circle is the range):



What I want to happen is that when the tower is hovered over, the range appears, and when the tower is hovered out, the range disappears. But what's happening now is that the mouseover is triggering whenever the range is mouse-overed. I don't want anything to be triggered until the mouse reaches the actual tower, not when it reaches the range.

Here's my event listeners (in the tower class):

addEventListener(MouseEvent.MOUSE_OVER, showInfo, false, 0, true);
addEventListener(MouseEvent.MOUSE_OUT, stopInfo, false, 0, true);

Another problem that I can see myself having is that when I place multiple towers, I want to check to make sure they do not overlap towers, but overlapping ranges is okay - but the way it is now, I believe I won't be able to differentiate range from the tower.

Thanks!

On Mouse Event
This shold be simple. I want a Movie Clip to start over when you click it. I found the action script, but the OnMouseEvent is greyed out. Any ideas?


Russell

On Mouse Event
I would like to replace a movie clip with another one on a mouse event but I I can't get it to work.I have tried to call it with a tell target but it dosen't work.



Thanks
Shawn

On Mouse Event
I have created a button, and when I go to select "On Mouse Event", it is greyed out and not active.

How do you activate this action?

Mouse Event
Am doing a mouse over to load a movie..everything is fine..would like to have movie dissapear when mouse is off button, could someone please help....thanks

On Mouse Event
I am having problems with this event handler.
i have 2 movieclips. each one has an on mousedown event handler attached to it. each one has a different specific geturl action if a mousedown is detected. for some strange reason, once one movie clip is pressed, it triggers the geturl action in the other movie clip as well, opening both url's - the one clicked and the one not clicked.the evnt handler is not on the movieclip that contains both movie clips. any ideas? any other time iv'e done this it was as simple as it sounds - not this time....thanx

Mouse Event
I am new to flash and I have both version 5 and MX. I am trying to add an action to some text in my movie. What I want is when someone clicks on this test they are taken to another frame. I am trying to add this action but the 'mouse event' selection is greyed out. Can someone help me?

Thanks
Michael

On Mouse Event
i am trying to follow tutorial but it says to add the "on mouse event" action and i cannot find it in MX. Does MX not do that anymore?

Mouse Event
Right is it possible to insert an image where u click the mouse? so say i click on the centre of the screen the imported image will appear there?

tnx
bbb

Mouse Event
ok well i have this nav bar right... each link you roll over there is a little effect, the links cover the entire swf.

here lies the problem:
:::::::::::::::::::::::::::::::::::::::::::

on a layer below the links, there is a little movie clip
there are 2 frames 1 - 2 with stop on both...

what i want to do is this:

when the mouse is present on the swf it plays 2.
when the mouse is not on the swf it plays 1.

how can i accomplsh this?
:::::::::::::::::::::::::::::::::::::::::::::
any help is welcomed!
thanks guys

Mouse Event
How do u do a script similar to the media player function when you move the mouse a list appear with a play list ? in other word a mouser listener so when i move the mouse in flash the player appears any one got a link or script ?

//RaZorCleaN

[CS3] Help With Mouse Over Event Please :)
Hi
I'm making a menu that is made up of two rows of images,3 at the top and 3 at the bottom. I have got to the point where i have all images in place and an actionscript has been applied so that the images increase in scale when the mouse moves over them. The only problem is that when you move the mouse over some of the images, they increase in scale but are behind some of the images which have not been enlarged. Can someone please help me?
Kind Regards
Jerum

Mouse Over Event
hi, made a small moviclip of a line that moves.

how do i get it to move only on mouse over?

thank you

On Mouse Event
Hi , tornado here,
I am looking for some help with an onmouse event. I want my images to slide right when my mouse is over them to the right , and then move left when i move my mouse to the left. Can anyone please help me with this problem. I have seached for tutorials and if anybody knows of one , please let me know
cheers
tornado

Mouse Event Nothing
Hi there,

I think i have a very simple question:

Is there any way to let a movieclip do something when the mouse isnt over it.

for exaple:
on (nothing) {
gotoAndStop(1);
}

or is there any way to get this effect?

Greets,
Fregl K

Child Propagation/bubbling Problem?
I'm in one heck of a pickle. I informed a client that i could build them this nifty little flash menu expecting that I would be able to figure out the process fairly easily. I'm passed the deadline, but bought myself time until tomorrow. Any help here would be oh-so awesome.

my fla is here: http://www.d-w-t.com/pom5.fla

If you test it, you can roll over 'about us' and a menu slides down. The problem is, this menu is completely non-functional. The item you roll over is supposed to turn black and take you to a link when you click on it. I havn't even gotten to turning it black because the actual link never works (currently, only 'our story' is set up). According to the rules of child propagation and bubbling, I think it should work - but I am, alas, a noob and obviously don't have a full understanding. The reason I feel it should work is because the on(rollOver) of the 'about us' works and that's in the same movie clip as the on(press) (and go to a url) button... so why would one work and not the other if the rules of child propagation/bubbling are preventing it...?

Please help. I'm desperate. Thanks.

Child Propagation/bubbling Problem?
I'm in one heck of a pickle. I informed a client that i could build them this nifty little flash menu expecting that I would be able to figure out the process fairly easily. I'm passed the deadline, but bought myself time until tomorrow. Any help here would be oh-so awesome.

my fla is here: http://www.d-w-t.com/pom5.fla

If you test it, you can roll over 'about us' and a menu slides down. The problem is, this menu is completely non-functional. The item you roll over is supposed to turn black and take you to a link when you click on it. I havn't even gotten to turning it black because the actual link never works (currently, only 'our story' is set up). According to the rules of child propagation and bubbling, I think it should work - but I am, alas, a noob and obviously don't have a full understanding. The reason I feel it should work is because the on(rollOver) of the 'about us' works and that's in the same movie clip as the on(press) (and go to a url) button... so why would one work and not the other if the rules of child propagation/bubbling are preventing it...?

Please help. I'm desperate. Thanks.

On Mouse Event Greyed Out... Why?
Hi all!

I'm trying to make a skip intro button and I've used one of the default common library buttons (VCR Black) and I've placed a text symbol called "skip intro" over the top of it. But for some reason when I try and add the action command "On mouse event", it won't let me. It is greyed out as if I cannot select it. Can anyone tell me what could have caused this?

Thanks for your help pros!



-Airswift-

Mouse Rollout Event
What exactly does the mouse event (rollout) do?

I know what it is supposed to do (when moving mouse out of the button area with it on it should do something that you call when rollout occurs?) but I have never got it working!

Usually I make an invisible button that has a rollover and this acts as the rollout but I can't do it in this case as there is a button directly underneath which stops this from working.

Thanks!

Capturing Mouse Event?
hy,
is there any way for a button action to happen if the mouse pointer, while the button being depressed, mooves in and out of the hit area. (something like paintbrush).

drag out and drag over don't do the thing that I want cause the button action hapens if the mouse button is depressed while in the hit area.


thanx in advance.

On Mouse Event Dbl Click?
Hello

How can i made a buton that will activate on dbl click mouse event ??? Is that posible?

thanx

Right Mouse Click Event
How do I disable the right mouse click on my movie... or something similar to that? Maybe... concider the right click to be left click? I don't know.. I only know some action script, please help

On Mouse Event Troubles?
I am having a hard time accessing the on mouseevent action. Whenever i highlight my button and get up the actions palette, all the basic actions work and i am able to select them but the on mouseover action doesnt work at all? It wont let me select it for my buttons. I have gotten this to work before but cannot figure out how to get it to work again. I have tried several methods but with no success. What am i missing?

On (mouse Event) Not Working
hi.
i'm creating a drop down menu through flash 5 but whenever i try and put and action script: on (roll over) etc... i cant because it's not highlighted in the "basic" list and won't let me make the action. can anyone help me out
thanks.
PS. also, the onclipevent isn't highlighted aswell.

Xml - Flash, Mouse Event ?
hi,

we have dynamic text being pulled from an xml file.
(we have that much working)

the nodes are something like
name (or category)
person
url

what we want to do is if the text has a url value,
i would like it to mouse over a highlight (behind it).

i am guessing that it would be something
like if it has a url then load this symbol...

????

i have no idea what the action script would be or where it should go?

can someone help a first time poster??

thanks a bunch,
panda

Conditional On Mouse Event
I have a movie clip which is basically a "popup" in the middle of the screen, but when it comes up I want to disable all the buttons that are on the main timeline. Is there a way to achieve this?

I tried putting a conditional on a button outside of the movie clip, something like:

if (movie_clip_is_showing == false) {
on (rollOver) {...}
}

but I got scripting errors.

I would be interested in some kind of Flash 4 or Flash 5 solution.

Playing MC On Mouse Event
Hi everyone,


This is what I'm trying to do. I have a movie clip that is long horizontally. I have 2 buttons (left & right) that I want to use to scroll the movie clip with the mouse press and release events.

I have the following code so far:

on (press) {
do {
pics.nextFrame();
} while (pics._currentFrame <> 40);
}

on (release, releaseOutside) {
pics.stop();
}


now, this is not working properly because I'm guessing it does the loop too fast. I tried placing a for loop in the do while to kinda force a pause, but that didn't work.


Anyone have any ideas??

Thanks,
Tony

AS Code For A Mouse Event
What is the AS if I want the movie to play a sound, then get_url on a mouse click?

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