ActionScript 3.0 :: MouseChildren = False Not Working?
Jan 2, 2012
I want to separate event handling from a container and it child. So as you can see, my source code is very simple :
Code:
package {
import flash.display.Sprite;
import flash.display.*;[code].....
When I roll over the container object, I've got the trace (OK for me).BUT When I roll over the decor object, I've got the trace too (not what I want).I just want the container to be triggered by the mouse event, not it child.So what's happened to my mouseChildren = false....?
View 5 Replies
Similar Posts:
May 31, 2010
I've found that if I use the CursorManager to set a cursor ursorManager.setBusyCursor() — then set stage.mouseChildren = false, the cursor set by CursorManager is replaced by the "default" mouse cursor the next time the mouse is moved. I'm setting stage.mouseChildren = false so that, while the mouse is being dragged, other "stuff" on the stage won't get mouse events (eg, so that mouse-over affordances aren't triggered if I'm in the middle of a drag).
View 1 Replies
Jul 30, 2009
how could I have a clickable html link inside a movieClip which has mouseChildren set to false? probably nohow but I still got to ask
View 1 Replies
Dec 17, 2009
I'm trying to have a hand cursor over a movie clip that contains dynamic texts. I tried:
[Code]...
The problem is that this movie clip has a roll_over on the children, so when I put the second line of code my roll_over doesn't work anymore.
View 1 Replies
Aug 23, 2010
Here is what I want:
1) a sprite with a rollover/out tween, going from alpha 0 to 1 on rollover, and back to 0 on rollout (let's call it "containerSprite"). That part is cake.
2) another sprite within the container (let's call it "closeButton"), that goes along for the ride (i.e., its alpha gets tweened along with the container). That's easy enough to do by making it a child of "container". When I say it is "within" the container I mean in terms of x/y.
3) when I move the mouse within containerSprite and onto closeButton, I want the container to stay visible (easy enough by setting mouseEnabled or mouseChildren to false). But I want closeButton to respond to mouseDown events, so I can't set it to mouseEnabled=false, nor can I set containerSprite.mouseChildren=false.
4) there will be several other sprites within the x/y of containerSprite, each with their own rollover/out tween. The catch is, when the mouse is within containerSprite and rolls onto one of them, the alpha of containerSprite SHOULD tween out (unlike when rolling onto closeButton).
For the life of me, I cannot get it all to work. I can get the desired behaviour in (4) easily enough, either by making the other sprites (mouseEnabled) children of containerSprite, or by making them siblings of containerSprite but higher in the display list. But the desired behaviour in (2) and (3) is vexing me: if closeButton is a child of containerSprite then its alpha tweens along with containerSprite (desired), but because it must be mouseEnabled, moving the cursor onto it triggers containerSprite's rollout event (undesired). If instead it is a higher sibling of containerSprite rather than a child, it has the same problem: if it is mouseEnabled, moving onto it counts as a rollOut event for the container. It seems like the solution ought to be easy, and I'm just missing something that is in plain sight.
View 1 Replies
Mar 29, 2011
I have a movie clip that has contains some dynamic text fields and over these some movieclips that serve as buttons. The issue I'm having is, that while the movieclips have buttonMode set to true, and mouseChildren set to false, when testing in a browser, after a few seconds of rolling over them, the cursor starts to flicker, as thought there is a conflict between the text fields trying to fight the button for focus. I have tried adding ROLL_OVER states to the buttons (thought they are not needed) in an effort to monopolise focus, while I'm not 100% sure, its seems as though this is a textfield issue.
View 6 Replies
Dec 8, 2004
Im trying to hide components and other stuff using either the
._alpha = 0;
or .visible = false;
although when its on a flash component it wont hide?
View 1 Replies
Oct 10, 2009
i have made a navigation banner in flash for a blog site, but the banner is giving me trouble in Internet Explorer. The Flash file has two buttons, one for "Log In" and one for "Log Out", that are supposed to be visible/invisible depending on whether or not the user is logged in to the blog or not. To achieve this, I have set up a Param tag that checks to see if the user is logged in or not, and then reports this true or false data to the Flash movie as being either "1" or "0" in the form of a variable. The Actionscript in Flash then uses this data to make one button visible, and the other not visible.This is working perfectly in Firefox, but for some reason in Internet Explorer (tested in IEv8) both buttons are visible at all times. Both Firefox and Internet Explorer are running the same version of FlashPlayer (v10).[Code]...
View 5 Replies
Dec 8, 2004
Im trying to hide components and other stuff using either the
._alpha = 0;
or .visible = false;
although when its on a flash component it wont hide?
View 1 Replies
Feb 4, 2009
I am unable to get useHandCursor = false; to work on a button script. I need to have it on the button script, not in a timeline function (as the swf I am working on has many buttons and none have names on their instance, nor on the movies containing them). Is it possible to do this? I have also tried, this.useHandCursor = false; but also not working. By the way, this page isn't working in IE7. It is showing blank under the "Post New Thread" bar.
View 10 Replies
Jan 27, 2011
So i have my index.swf file with an mc called "loadingspace" (as instance) who appears on a 10 frame animation.
At the 10th frame i have placed this code:
Code:
var my_loader:Loader = new Loader();
my_loader.load(new URLRequest("http://www.mysite.com/preload/preloader.swf"));
addChild(my_loader);
[Code]......
View 3 Replies
Mar 3, 2006
sound.loadSound("1.mp3",false)where 1.mp3 is residing in my current folder (as the swf).However, the sound does not get played. It is only played when I say:sound.loadSound("1.mp3",true) //(hence a streaming sound)I want the first one to work, in order to be able to use the onSoundComplete event
View 11 Replies
Mar 26, 2009
I'm trying to build a Flash projector using AS3 which contains an FLV playback component. When the function below is called, my entire screen goes black. The fullScreenTakeOver parameter I am trying to set to "false" seems to be ignored. how to disable fullScreenTakover?
[Code]....
View 1 Replies
Jul 26, 2011
I have a doubt regarding MouseChildren in Flash as3, i am having a movieclip named as containermc and a button named as clickbtn inside containermc, Here i want to addEvent Listeners for both the movieclip and button! I used containermc.mouseChildren = false; to add click event listener to the containermc then i was not able to click the button, then i gave containermc.mouseChildren = true; then i was not able to click the containermc, and also i need to enable doubleclick to containermc movieclip.
View 2 Replies
Oct 5, 2009
Through getChildByName is it possible to access the mouseChildren property of a Sprite? I'm guessing no, but before I go about changing something I want to make sure it's necessary and that I'm not just doing something wrong..
ex:
Code:
STAGE.getChildByName('container').mouseChildren = false;
Would give me an error. I see this is because getChildByName returns a DisplayObject object. So I guess my question is: Is it possible to get the actual Object (Sprite in my case)?
View 2 Replies
Feb 2, 2010
for(var l:int=0; l<anXML.length(); l++){
[Code]....
Currently building a dynamic menu system, with 3 levels of navigation. Currently when mouse children is set to 'true' it doesn't want to remember the name of the menu item created. it spits out, 'instance263' or whatever the number is when I trace it out with my onClick event. With mouseChildren set to 'false' my 3rd tier of navigation ceases to work.
The Goal here is to have the menu items retain an instance name so I can relate back to them and set active states for the current active module. UPDATE: Here is where the problem arises
[Code]....
View 1 Replies
Jan 15, 2008
Simple example.
ActionScript Code:
import flash.events.*;
clip.addEventListener( MouseEvent.ROLL_OVER, function( event:Event )
{
trace( "over " );
[Code]....
Even though mouseEnabled is set to false, still ROLL_OUT is cought. Its propably cause mouse GOES out of the object, but I dont think it should be like this.
View 9 Replies
Aug 25, 2011
I am trying to display database details in a Flex datagrid and connected using HTTP Service. It was able to display details without any issue when I was working in the FlashBuilder 4.5, however, I deployed the bin-debug part in the Tomcat webserver to access it globally.
I am experiencing this error message when I am trying to access the swf file "HTTP request error Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://localhost:8084/UA/details.jsp"
I tried to create the crossdomain.xml file and deployed in the root directory but still experiencing the same error.Here is my crossdomain.xml :
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>[code].....
View 1 Replies
Jul 26, 2011
I have a doubt regarding MouseChildren in Flash as3, i am having a movieclip named as containermc and a button named as clickbtn inside containermc, Here i want to addEventListeners for both the movieclip and button! I used containermc.mouseChildren = false; to add click event listener to the containermc then i was not able to click the button, then i gave containermc.mouseChildren = true; then i was not able to click the containermc, and also i need to enable doubleclick to containermc movieclip.
View 0 Replies
Aug 28, 2010
Selectedcolor, true to the text true or false is false text into print.colorPicker component in, I select Export to a selected color, the color value myMC texte into summer, but accuracy can not control.
var myColorPicker:ColorPicker = new ColorPicker();myColorPicker.editable = false;myColorPicker.visible = false;myMC.visible= false;myColorPicker.addEventListener(MouseEvent.CLICK, clickHandler);myColorPicker.addEventListener(ColorPickerEvent.CHANGE, changeHandler);[code].........
View 1 Replies
Apr 4, 2010
I am working in flex and I am just setting a variable to false. It doesnt do anything in the program but everything breaks when I put this line of code in:
somevar = false;
View 1 Replies
May 28, 2007
how to describe this without confusing everyone but basically, i have:
prevslot = "jslot"+historynum+"full";
historynum is a dynamically gathered number from another part of my code. it will be like 1 or 2 or 3 etc.
The problem is that i want to like set the value of that variable to false, so for example if historynum was equal to 1, the value of prevslot would be jslot1full. I need to set the value of prevslot to false, i tried prevslot = false; but obviously that just sets prevslot to false, not the value of prevslot. Is there any way to set the value of prevslot to false?
View 4 Replies
Nov 24, 2007
How would i do stage.showMenu=false in as3 iv looked on google found nothing just some fullscreen flash stuff im not interested with at the moment and iv searched this site but got nothing.so as2 code:
stage.showMenu=false;
As3 code:
View 9 Replies
Nov 3, 2009
I have a webpage with a video component (swf file) with a separate .flv file and skin. The .flv file is intended to progressively load from the webserver.
In the swf file I have set autoplay=false to stop the move playing when the page is loaded. This works fine.
However, the problem is that the movie still downloads in the background. i.e. Each time the page is loaded, the .flv file is being loaded.
Is there a way to stop the .flv file being loaded until the Play button is pressed in the player?
View 6 Replies
Nov 4, 2009
Basically what i have is three buttons which can be pressed in a maximum of 7 different combinations. Each of these buttons has a movieclip underneath that advances to the next frame when the button is pressed. Each clip has two frames with actions, frame 1 has:
stop();
var option1:Boolean = false;
and then frame 2 has:
stop();
var option1:Boolean = true;
So when you press a button you have true, and false when the button is pushed again.
i already have a constant loop between frames 2 and 4. At frame 4 i think i need to have some code that detects which state the 3 boolean statements are in and then load a movie depending on which statements are true and which are false.
View 6 Replies
Oct 5, 2010
So, I'm getting this error when trying to load a URL with HTTPService.
[FaultEvent fault=[RPC Fault faultString="A URL must be specified with useProxy set to false." faultCode="Client.URLRequired" faultDetail="null"] messageId=null type="fault" bubbles=false cancelable=true eventPhase=2]
[code].....
View 1 Replies
Jan 30, 2009
how do i test if a hittest is false
View 1 Replies
Sep 20, 2006
I'm triyng to get the browsers back-button to work with my flash site. The general principle is this:There is an index.html page containing an (not yet) hidden Iframe and the flash movie.The Iframe contains page A, which starts with JavaScript calling a BACK-function on the index-page.The BACK-function triggers an AS-function in the flash-movie that activates its own back-button, and then changes the URL of the Iframe to Page B. This causes a new History to be added to the browser.The flash movie now contains 5 frames (labeled in the middle of the stage) and two navigation buttons: back (Terug) and forward (Verder). Those buttons do exactly what you'd expect them to do (prevFrame and nextFrame).On a PC (IE) this seems to work pretty well. But on a mac nothing seems to work propperly.Here's the code I have on the first frame.
stop();
_root.terug.onRelease = function(){
prevFrame();
[code].....
View 2 Replies
Apr 25, 2007
I never get the hang of these.'
Code:
_global.web_link_activate = (wArray[this.id]);
if (_global.web_link_active == "no"){
_root.load_area.zoomer.enabled = false;
_root.load_area.zoomer._alpha = 20;
[Code] .....
That should work but it does not. it always says "yes" wArray is a drawn from an xml document.
XML is
Code:
weblink="yes"
Can I set vars like true and false in xml kinda like weblink=false??
View 6 Replies
Dec 23, 2008
I'm a little bit stuck as to why gotoURL would return false and does nothing. Does anyone know what could possibly cause gotoURL to return false? submit is a MC. The trace works fine. It's just the gotoURL doesn't take you any where.
Code:
submit.onPress = function()
{
[code].....
View 1 Replies