ActionScript 3.0 :: Enabled Movie Clip Not Getting Disable
Jun 11, 2010
What will my movie clips not disable here. They are still clickable? I get my trace 24 times. what am i doing wrong. I have 24 cards all named card0_mc - card23_mc
code:
function disableCards() {
for (i=0; i<24; i++) {
trace("in here");
this["card"+i+"_mc"].enabled=false;
}
}
View 1 Replies
Similar Posts:
Apr 16, 2010
I have an AdvancedDataGrid for which I would like to allow multiple selection. Do to several constraints, I want to disallow selecting items that are next to each other (Basically, you can't select multiple items with the same parent and parents are handled differently from children). My preference would be to stop event propagation when the shift modifier is present on the mouseDown or click event. I tried using event.stopImmediatePropagation(), but the selection has already occurred (I tried stopping mouseDown, click, itemClick, and change).
I am guessing I will need to extend the ADG and override some functions. Does anyone have any ideas to stop this before it modifies the selectedItems array without having to create my own ADG class? Or can anyone point me in the right direction (read: which functions do I need to override in ADG) if I do need to extend ADG?
View 2 Replies
Jun 22, 2009
I have a movie clip instance ("mc1") on the Stage. When the .fla file is run I want the movie clip to do something when it is clicked, so I put in the following code:
function handlemc1(event:MouseEvent):void
{
// do something here
}
mc1.addEventListener(MouseEvent.CLICK, handlemc1);
This code works fine. Now, there are times when I will want to disable "mc1" so that it doesn't respond to a click. So I execute this code in those circumstances:
mc1.enabled=false;
But this seems to do nothing. When the user clicks "mc1" the code inside "handlemc1" is executed. I even put a trace inside "handlemc1" which prints out the value of mc1.enabled. The value that is printed to the output window is "false".
I would be grateful if someone could tell me why setting "mc1.enabled=false;" did not stop "mc1" from responding to the click event. Also, is there another way to disable "mc1"?
View 3 Replies
Mar 26, 2004
disable a moive clip example i use arrow key to rotate a clip then when i process i want the clip to be station at there when moving again when i use arrow key again i know use the enable but i tried many time and it fail me my coding was
_root.mymoiveclip.enable= false;
View 2 Replies
Sep 4, 2009
I have a screen with transparency that pops up over a movieclip full of buttons.I need to disable the movie clip and/or buttons so they don't function when the pop up comes up.Can't get it to work with this code:
myMC._enabled=false;
or
myMC.myBTN._enabled=false;
[code].....
View 11 Replies
Apr 12, 2011
I have some buttons, and above them a movie clip with a 20% transparency which I use for some graphic effects in my page. But the buttons can't be accessed (they are not working) because the layer covers them.I have used the following code to disable the graphic layer:overlay_mc.buttonMode = false;overlay_mc.enabled = false;overlay_mc.mouseEnabled = false;but none of these solves the problem. The buttons are still covered and inactive.
View 3 Replies
Jan 18, 2010
i have about 40 buttons in one movie clip called showmcall i have a massive movie clip that covers all of the movie clips , i've tried disabling the buttons by disabling the movie clip :
ActionScript Code:
showmcall.enabled = false ;
but that didnt disable the buttons.
View 3 Replies
Oct 11, 2010
i have make a movie clip button and function it if i roll over ,my object will fellow my mouse, Roll out my object will go away
movie Clip Name(Rb)
and mouse up my object will
object.x+=10
object.y+=10
but my movie clip button still work ! if i accidents Roll over the movie clip button ,my object will fellow my mouse again
i wanted to disable my moiveClip button,any can teach me how ? like
var Rb=true
function objectMoving(event:Event):void{
Rb=false
object.x+=10
object.y+=10
}
View 2 Replies
Jan 22, 2010
I am attempting to disable buttons that lay under my movie that loads. This code works all the way up until I close my exit button and then the buttons do not enable again.
on(press) {
align_callout.gotoAndPlay(2);
(stop);
[code].....
View 6 Replies
Apr 24, 2010
I have an swf with several movie clips set up to work as navigation buttons (using _up, _over and _down frame labels). The same navigation swf is used by several different HTML pages and navigates between them.
I want to pass the swf a variable with FlashVars in the object/embed script that will disable the movie clip button for the page the user is currently on.
In AS3 myClip.enabled = false; only removes the rollover behavior of the clip, but does not prevent the clip from receiving mouse events.
How can I disable the clip completely so that it does not respond to events?
View 2 Replies
May 26, 2003
if i wanted to disable something like a movie clip from being clickbale (i have already linked it to a function) if i want to diable the movie clip form being clicked unless something else has been pushed how would i do this and where would i put it? also if its not too much trouble could you explain the code a little bit
View 3 Replies
Jul 10, 2010
I have been having some trouble with a movie clip basically designed to act as a button for a store front for a website.This movie clip has, stored as the front of the movie (i.e. before you click in to edit the movie) the following code:
on(rollOver){
gotoAndPlay("Over");
}[code]..........
This gives the movie the hover over and out effect and animates the button so as once pressed the button expands to give a 'Product Details' view.However, when clicked the info shows up as it should but the hit area which I put into the Movie Clip is still on the info area so none of the contents on this new window are accessible and when the cursor leaves the designated info area the movie clip returns to its first stage as it would appear at the start of the animation.Is there any simple way to disable the HitArea on specific frames within a Movie Clip?
View 16 Replies
Jul 29, 2010
I am using Greensock to tween and during a rollOver I need to disable some buttons. I am pretty sure the code is right but the buttons do NOT disable?
code:
import com.greensock.*;
btn_skins.addEventListener(MouseEvent.CLICK,
function() {
TweenLite.to(mtvOrange, .25, {y:0});
[Code].....
View 1 Replies
Oct 12, 2009
In datagrid i shows number of checkbox for example 20 checkboz ,in 20 checkbox if i select any 15 checkboxs then remining checkboxs will be disable (enabled="false" But 15 selected checkbox accessable ?
How can i do that . i tried
<mx:DataGrid id="dg" width="100%" height="100%" rowCount="5"
dataProvider="{dp}">
<mx:columns>[code]...
View 1 Replies
Jul 5, 2011
Based on this guide, I have enabled debug level logging and also enabled date, time, level and category logging.
This works great, except now I am seeing all my data that's returned being logged. Is there a way to disable this? I would still like to see the calls logged. I've tried info level, but that turns off request logging.
View 1 Replies
Feb 28, 2004
I tried the following code and it works great.
on (release) {
loadMovieNum("main.swf", 1);
main.enabled = false;
}
How would I go about resetting the the button's status after another movie is loaded? Do I have to manually code for each movie loaded or is there an easier way using loops perhaps?
View 14 Replies
May 9, 2010
Im able to link to a movieclip inside a movieclipUnfortunately one of the movieclips now are a scrollbar and scroll. Now the actionscript isnt working?cal.onPress = function() {gotoAndPlay(2);message1.contentMain.message.total = unit1;
View 17 Replies
Jun 24, 2010
I am pretty new to ActionScript 3 and Flash. I don't want my movie clip to play unless the person's mouse curser is on the movie clip for more than a second. If the person just runs their curser over the movie clips really quickly, then it should do nothing. It must be more than a second. How do I code that?
[Code]...
View 17 Replies
Jan 11, 2010
I'm creating a small drag & drop activity, and I want to be able to check and see if the dragged movie clip is completely within the bounds of another movie clip (or at least in the bounds of a certain x/y zone on the main stage. I can't use dropTest because it returns true if any tiny bit of the movie clip overlaps with the dropTest movie clip.
I also thought of something that just checks the x/y coordinates of the dragged movie clip, but I'd need this to reflect a range of values rather than one coordinate. For instance, I'd want to return true if the movie clip's x is between 50-60 AND the y is between 50-60. I'm attaching a small graphic to illustrate in case my explanation isn't clear enough [URL]
View 3 Replies
Feb 21, 2010
I have created a flash website, each button is a movie clip with an invisible button over it containing the following script
on (rollOver) {
_root.mouse_over_profile_btn = true;
}
on (rollOut) {
[Code]....
each page is also a movie clip and on release of a button its played. the problem is that when i press another button to play another movie clip 'page' the old content is still there.
Is there a way of reversing the page transition i have used to bring out the movie clip and then bring in the next movie clip.
View 0 Replies
Jun 22, 2005
i am making a pacman game, and i need to know how to make it go to a certain scence when a movie clip collides with another movie clip.
View 2 Replies
Nov 5, 2010
There is a bad gap in my knowledge with Event Dispatch and Event architecture, and this problem proves it. I've been getting nowhere on this problem for two days, I've posted everything to my Flash site. Go here, please: [URL] Click on "Flash Banners" The two thumbnails represent two different classes. Each class is identical. Both are "extends Movie Clip" classes. Tweeners of various types control the hover and click methods. URL Loaders load the thumnails which I then wrap in MC's and make them buttonMode = true, etc. Hover and click to load the Banners on the thumbnails.
I can't send an event from the Eagle movie clip or the T2D movie clip to tell the other to fade out. Both Banner classes are instantiated through a separate Base class. I'm sure this has to be an Event Dispatch from one MC to another and that it can't be done by the Base class. how I can send an Event or Event Dispatch and what the code structure is so one movie clip can in one class can tell the other movie clip in the other class to disappear while it's neighbour is playing. I'm happy to post code or explain / clarify anything that's not clear.
View 1 Replies
Feb 23, 2011
I've got a main timeline .swf file called "blank.swf" which contains nothing but two blank movie clips one called called "pproduct", the other called "ppalette". In the script frame of this main timeline I use the simple "Loader = new Loader();" method to load a URL of an .swf file into the "ppalette" movie clip. The "ppalette" movie clip contains several color chip buttons, each of which use the same Loader method above to load an external .swf into a clip. Here's what I want to do: let those color chip buttons, when the "blank.swf" file loads, be used to load an .swf movie into the "pproduct" clip on the main timeline. I'm wanting to be able to swap depths with various movie clips which will take out the movie which has the palette, but I want whatever that palette has loaded in the original "pproduct" clip to stay there.
[Code]...
View 3 Replies
Dec 13, 2010
I have developed a rolling credits style movieclip in Flash using Actionscript 2. Text is loaded from an XML file and parsed into a dynamic textfield. This text includes hyperlinks to webpages defined by a url node in the xml so Flash can add the appropriate a href to the dynamic text field and make the link clickable.
In my first attempts to do this the textfield stayed still and all the links worked fine both testing locally and when I run it in a browser on my website.Then I wanted to make things move ... which I achieved easily enough and tested locally (from within Flash Professional) and the links remained clickable, a browser window opened and the webpage i was expecting to see opened... great
However, when I export the swf, upload it and run it from my website suddenly the links are not working. So I tried to test the movie in a browser from Flash Pro - same problem, it must be something to do with Flash Player and the moving dynamic textfield.
a couple of observations - the cursor will change to a hand icon when over the links as you would expect, and if I right click on the link and click open in a new window the link works ok, just not when I left click. If I stop the scrolling then the links become clickable again, it is only when the textfield is moving... actually its not technically scrolling, im moving the whole textfield.
View 1 Replies
Oct 23, 2010
it seems simple enough but i have no idea on how i could get a movie clip to slowly move to the coordinates of another existing movie clip
View 5 Replies
Apr 8, 2012
I created a movie clip which plays ok. But when it ends there is a slight jump, if you will, when it goes back to frame 1 to begin playing again. Does anyone know how to make the transition unnoticeable from the last frame of a movie clip to the first frame of a movie clip?
View 4 Replies
Sep 7, 2010
iam tring to make a new project , i just wants to know how to make a movie clip ( constant speed ) follows anther movie clip <--- "which can be moved by the user "
<<<>>>> i believe that this idea is good , that i records the X and Y postion of the User's movie clip and just make the other movie clip points at this postion and move toward it ,
how to make the other Movie clip (( which is a car ! .. so it have acceleration , speed , steering , etc )) go to this position or let us say try to??
View 9 Replies
Mar 26, 2006
Q1) The registration point of a created clip is top left - my question is how can I dynamically change it's registration point - say to center center?
(I am trying to attach a movie clip to a created clip and I wanted it to be centered inside the container - a related sub-question, how can I find the x-y coordinates of the attached movie clip within the created movie clip?)
Q2)When I tried to create two different movie clips, I found I had to create them at different depths, else the first would load and the second would not. Why would that be so? I'm on MX 2004 Pro.
View 4 Replies
May 15, 2009
I have a very simple problem but I can't find the very simple solution to it. I've create an animated menu with animated movie clips inside to work as buttons. All the main buttons work perfectely but I've got just on button with a sub-menu. On this sub-menu I've placed an invisible hitarea button in order to place some gotoAndStop action. The thing is, it seems to me like this submenu hitarea are underneath something else (even though is the seccond layers right about the actions layers). I've placed a simple trace action whenever the mouse rolls over this area but I get nothing... Am I doing something really wrong? I'm losing all my hair already.
View 2 Replies
May 27, 2009
i am trying to use the Tween class to change the size of movie clip to certain height.the code works for me but when resizing the parent, it effects the child.i tried the height and scaleY property for the thum, but does not work.
ActionScript Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
[code]....
View 6 Replies