ActionScript 2.0 :: Disable Button Depending On AttachMovie Status?

Mar 30, 2006

how to use attachMovie to load a movieclip in to my main stage, drag it around and include a close button. I then added a variable (x) that would control which clip would on top depending on which was clicked last.

The question bit... I've managed to do this (...sort of), but was wondering if anyone could hint me with the code to disable the button if the clip is loaded, and enable it as soon as the clip has been closed so that it may be opened once again?

I'm using this to load the clip where x is the variable;

Code:

on (release) {
attachMovie("new", "newname1", x);
newname1._x=200;

[Code]....

View 3 Replies


Similar Posts:


IDE :: Flash Buttons - Cant Set The Status Of The Button?

Dec 11, 2009

I can create buttons using flash. and i have change buttons colors when the mouse over status of the button. but the problem is i cant set the status of the button.as a example in above site if the user click the FAN Club button button will change in to a different color ( ash rectangle).

View 5 Replies

ActionScript 2.0 :: Changing The Function Of A Button Depending On Previous Button Press?

Mar 14, 2007

I'm loading in 5 jpegs from an external file using "loadMovie" and i have 5 corresponding buttons (1-5) to load them with.

I want to change the jpeg the button loads in depending whether a separate navigation button has been pressed -

i.e.

navigation buttons:

-motorbike pics
-car pics
-lorry pics

If a user clicked on "car pics" then the loading buttons 1 to 5 would load "car1.jpg", "car2.jpg" and so on...

similarly if the user clicked on "lorry pics", the same loading buttons 1 to 5 would load "lorry1.jpg" and "lorry2.jpg"

View 1 Replies

ActionScript 2.0 :: CS3 Button Rollover Visited Status?

Apr 17, 2009

I Have rollover buttons in Flash cs3 using actionscript 2 and i need to have a "visited" status.Every visited button would stay on the rollover image and indicate to the viewer that he's been there.

View 3 Replies

ActionScript 1/2 :: Change Button's Status In Tree Menu

Feb 17, 2010

well i had a tree menu which contain about 15 and under each of it about 3 or four sub the problem is when i press one of the sub it should gives specific status and when i press anther button from anywhere ,the 1st button should B initialized as it was i made to var to dedicate which i 've jst pressed.[code]

View 3 Replies

ActionScript 2.0 :: Make A Button Made With AttachMovie Function As A Button?

Sep 6, 2011

I created a button using the following code,

Code:
on(release) {
attachMovie ("my_btn", "my_btn", _root.getNextHighestDepth(),{_x:34, _y:158});
}

Now I am trying to make the button gotoAndStop on a scene on release. I tried this code,

Code:
onEnterFrame
my_btn.onRelease = function() {
gotoAndStop ("SettingsPanel")
}

View 9 Replies

ActionScript 2.0 :: Button Status After Movie Loaded - Enabled / False

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

ActionScript 3.0 :: Load Different Swf Files Depending On Button?

Apr 13, 2009

im starting to get the hang of 3.0 now.. but i have a little problem loading different swf files related to witch button i click..
 
everything works just fine. when clicking on a button the movie plays and its listening for the end of each video playing.. but i cant get it to load different swfs depending on witch button is clicked. is it possible to do this using the same loader as i do now?
 
heres my code:
 
var compact:String = "axesse_mc.swf";var compactreq:URLRequest = new URLRequest("axesse_mc.swf"); 
var loader:Loader = new Loader();loader.load(compactreq);

[Code].....

View 3 Replies

ActionScript 2.0 :: Button That Will Pop In And Out Depending On The Rollover And Roll-out?

Aug 26, 2004

Im having some trouble with this code. I have a button that will pop in and out depending on the rollover and rollout. but then i want it to get and external swf when released. this is all done with smartclips if that matters.

[code]...

View 1 Replies

ActionScript 3.0 :: Code A Button With Actions Depending On Timeline?

Jul 28, 2009

I am like a new-born-newbie when it comes to Action Script 3.0 (or any other version for that matter). I've been trying to learn it by myself for the past week and a half using manuals and other sources but it's not so easy as there are many concepts that take some getting used to (I've never done programming before). So I ask of anyone who is kind enough to give me a hint or point me in the right direction. I am sure this will seem like a very easy and probably stupid question for the well-informed but it has been eluding me for the past 4 days.

I am making a website (I should say it's pretty much finished except for this one detail) it's simple and short. Nothing very fancy. There are 8 buttons in total for the main navigation (4 buttons in English and 4 in Chinese, each language group in their own set of frames)

the button that serves as a link to the Chinese translated version of the site is supposed to go to a particular page, depending on which page the user is in at the moment (example: if it is in the portfolio page in English, when clicking on the Chinese button it should go to the portfolio page in Chinese and so on). Likewise with the English button in the Chinese version pages.[code]...

View 4 Replies

ActionScript 3.0 :: Moving A Scroll Button Depending On Content.y?

Jun 8, 2011

I have a fully functioning scrollbar (MOUSE_DOWN and MOUSE_MOVE) and a fully functioning mouse wheel scroll. But I would like some code to move the scroll button according to my contents y position, when using the mouse wheel scroll.My scroll bar code:

ActionScript Code:
thumb.buttonMode = true;
thumb.visible = false

[code].......

View 0 Replies

ActionScript 2.0 :: Change The Frame Depending On Which Button Was Pressed?

May 1, 2003

The first prob I had was when i used the load movie command the swf file was loading in the wrong position, it kept loading down and across the page. I had

PHP Code:

_root.myemp.loadMovie("banner.swf", 0); 

I dont know why this is happening but I just fixed this by doing:

_root.myemp._x = 0
_root.myemp._y = 0

The next problem Im having is that I want to change the frame depending on which button was pressed. If button two was pressed I wanted to load "banner.swf" and gotoAndStop("pg2"), If button three is pressed gotoAndStop("pg3")Ive tried some things but cant get this part right such as:

_root.myemp.gotoAndStop("pg2")
"banner.swf".gotoAndPlay

I just dont know the syntax...

View 2 Replies

ActionScript 2.0 :: Assign GetUrl To Button In AttachMovie?

Mar 1, 2011

I'm working with some XML-supplied data, with a variable number of elements. I'm using a loop to add instances of a symbol for each element via attachMovie. But something is preventing my URL action from getting properly assigned.

When I do this:

ActionScript Code:
itemY = 0;
urls = [];

[Code].....

View 5 Replies

ActionScript 2.0 :: Content Not Overlapping A Button(attachMovie)

Apr 25, 2007

I have two movieclips. 1.a button, 2.the content.

When i load both using the attachMovie. The content is loaded over the button but, you can still click on the button even thought there is something over it.

The same problem happens when using the loadMovie. Even thought the content is overlapping the button its still possbile to click on it.I also notice that you can also select dynamic text. I know you can use the disable button function but using this i will need to disable every button on stage. Or without the need of unloading the movieclip too

View 14 Replies

ActionScript 2.0 :: Set The _alpha Property Of MC1 And MC2 Depending On The Location Of The Button On The Slider

Mar 27, 2004

In the library, I have a movie clip - DraggableButton that has OnPress with StartDrag with parameters and OnRelase with StopDrag. I have a slider with this Draggable button and a bar to slide the button on. I also have two movie clips Clip1 and Clip2. In my main movie I have two instances MC1 and MC2 of Clip1 an Clip2. I have an instance of the Slider. I want to set the _alpha property of MC1 and MC2 depending on the location of the button on the slider.

I think I need to save the location (_x) of the button on the slider in a variable in the OnRelease even of DraggableButton and use this variable in the SetProperty method. I need to know in which event and which object's event should I use the SetProperty method. Or if what I am thinking is not correct what do I need to do?

View 4 Replies

ActionScript 2.0 :: Code Does Not Work When Button Is Clicked To AttachMovie

Jul 5, 2004

I'm having some issues with my attach movie. I've made a button that attaches a movie when pressed.[code]My main loads this movie into an empty movie clip called "emptyMC". When I go to test the above code does not work when the button is clicked to attachMovie.I've tried switching _root to this and that didn't work, and I tried switching _root to _parent and that didn't work.What is the code for attaching a movie that is nested in an empty MC in my main movie.

View 7 Replies

ActionScript 2.0 :: AttachMovie - Loading MovieClip When Button Pressed

Apr 11, 2008

Adobe Flash CS3
publishing as Flash 8, AS 2.0
I have a movieclip named menu (instance name = mainmenu). Inside of that there is a button named btn_about (instance name = about). On the main stage there is an empty movieclip named empty_mc (instance name = mcholder, linkage id = empty). I want a user to press the button which causes a movieclip in the library named tesst (Linkage name = testid) to load into the empty movieclip (mc_holder).

Here is the code on the button:
on (release) {
this._parent.mcholder.attachMovie("testid", "tesst1", this.getNextHighestDepth());
}
It does not work.

View 2 Replies

ActionScript 2.0 :: Disable A Button After It Is Click And Then Enable It Once Another Button Is Clicked?

Sep 8, 2009

I'm trying to figure out how to disable a button after it is click and then enable it once another button is clicked. I'm stuck on how to enable the button.

on (rollOver) {
this.gotoAndPlay("s1");
_root.slideshow.gotoAndPlay("s4");

[code].....

View 1 Replies

ActionScript 3.0 :: Call A Function And Run It With Specific Properties Depending On Which Button Is Clicked?

Nov 25, 2008

How would I do this in AS3? I want to call a function and run it with specific properties depending on which button is clicked.So how do the "_this" statement work in as3? in as2 I would write something like this and "this" would stand for the instance name:

View 2 Replies

ActionScript 3.0 :: Play A Certain Part Of MovieClips Timeline Depending On The Button Pressed

Nov 22, 2010

Right I only want to play a certain part of my MovieClips Timeline depending on the button pressed.

ActionScript Code:
stop();
CircleLineMC.KingsCross.addEventListener(MouseEvent.MOUSE_DOWN, KingsCrossBtn);
function KingsCrossBtn(event:MouseEvent):void {
BigSquare_MC.gotoAndPlay(1);
}

But I want it to play only up to frame 50 and then stop there and then loop instead of playing the whole timeline, does anyone know How to do that.

View 6 Replies

ActionScript 2.0 :: Refer To The Button Inside The Movieclip After Attach It Onto The Stage Using AttachMovie?

Nov 17, 2003

I had a movieclip which contained a button in it exported as "mc". Then I attach this movie clip onto the stage using: _root.attachMovie("mc", "link1", 1); But i couldn't find it with AS. I mean, how can i refer to the button inside the movieclip after I attach it onto the stage using attachMovie?

View 2 Replies

ActionScript 2.0 :: Disable Button By On Press Another Button

Dec 1, 2010

I have a button which on press will go to next frame. I want to disable this button by on press another button.[code]

View 2 Replies

ActionScript 2.0 :: Disable Button And Renable Button?

Oct 27, 2004

I have a button that is disabled after opening an external loaded movie. if that movie is unloaded, how do i re-enable that original button?

Senario:
Button "A" is pressed
Movie "A" is loaded
Button "A" is disabled.

Button "B" is pressed
Movie "A" is unloaded.
How can Button "A" become enabled again.

View 14 Replies

ActionScript 2.0 :: Disable A Button Using Another Button?

May 10, 2003

is there a way to disable a button using another button with action script flash MX .

View 3 Replies

ActionScript 3.0 :: Disable The Esc Button?

Aug 4, 2010

can some one fullscreen and how to disable the esc button?

View 2 Replies

Button Un-highlight On Disable?

Sep 17, 2009

In my code, when a user clicks on a button, I set the alpha of the button to 50 and set enabled=0. This works to essentially disable and grey out the button. The problem is that even though the button has been disabled, it still sits in the over state until the user moves the cursor off the hit area... Funny, no?
 
Since you can't tell a button what frame to go to, how do I get it to go back to its up state (without recreating all my buttons as movieclips and doing the whole thing manually)?

View 3 Replies

ActionScript 2.0 :: Possible To Disable Button?

Jul 25, 2009

[url]...

if you click on the middle Character a popup window will open at that time i want all other buttons disable so that we cant see the small box on mouseover.[url]...

View 1 Replies

ActionScript 3.0 :: How To Disable A Button

Dec 6, 2009

I have some code similar to the following:

ActionScript Code:
//
//
var box = new Sprite();
box.graphics.lineStyle(10, 0xFF0000);

[code]...

If you click the box, its alpha is set to 1 rather than .1 because of an errant MOUSE_OUT event.What is the right way to fully disable this button when it is clicked?I'd rather not remove the event listeners because I have a bunch of different MOUSE_OVER functions on many different buttons and keeping track of which function is with which button and whether or not the listeners are already assigned seems like way too much work just to properly disable a button.

View 9 Replies

Disable Certain Button Function?

Mar 15, 2010

I have a button that when you roll over it a big window pops up, but then when you click on it, it pops the window up again, now its not a problem but i would like to know if i can disable the click function somehow. so that only the roll over works.

I know you can probably use a movie clip and just tell it with actionscript to load when rolled over, but i don't know how

View 2 Replies

ActionScript 2.0 :: How To Disable A Button

Nov 6, 2004

I have some buttons that play an external swf inside an empty movie clip on the main timeline. I was wondering what Actionscript I need to disable the button when it is pressed. I want the button to still have roll over functionality and everything, but I just want the swf to load once when the button is pressed. Below is the script I am using right now.

on (release) {
//load Movie Behavior
if(this.content == Number(this.content)){

[code].....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved