ActionScript 1/2 :: Get Movable Button To Stop Activating?

May 18, 2009

I'm trying to get my movable button to stop activating. It's looping (up/over/down/hit).
 
loupe_mc.onPress=function() {
this.startDrag();
};
loupe_mc.onRelease=function() {
this.stopDrag();
};

View 3 Replies


Similar Posts:


Professional :: Re -activating Script After Stop

Jan 10, 2010

How do I stop a script from running, or remove it from a swf at a specific frame, (on its own layer "actions") and then start it again, or script it again on another frame further down the timeline?If I try and put the same script on another layer, past the stop(); or anywhere for that matter, flash gives me a duplicate function definition error.Lets say my swf is embedded in an html and its url is abc.com. When you navigate to that url the swf plays, all scripts work, buttons work to link to frame anchors back and forth within the swf and all is fine. As long as you remain at abc.com and link with a gotoAndPlay(frame), or gotoAndStop(frame) function from the script internally in the swf.However lets say one of those buttons goes to dce.com (urlRequest... dce.com...) essentially navigating away from the swf, .and at dce.com there is a link to go back to abc.com/index.html#frame, when you choose to navigate back to that frame in the swf, it does, but the script no longer works.

The script is on all anchor frames, and works intially in the swf when you play the movie for the first time, the movie stops (stop();) at a specific frame, and continues to navigate around to specific frame anchors and back and forth, the script continues to work as long as you are within the movie so to speak. However if you decide to go to dce.com, essentially leaving the movie and then at dce.com there is a link back to a specific frame, when I link back to the swf, from dce.com, the script no longer functions?I cannot imagine this is not something that quite a few people use, a combination of flash pages and html pages and interlinking them back and forth, I just cannot find ANY info searching exhaustively on why the script will not work after returning to a swf frame after navigating away to anywhere else and then back to the swf frame needed.

View 4 Replies

ActionScript 2.0 :: Activating And De-activating Loaded Movies?

Jan 7, 2009

Am working on a flash AS 2.0 project where am loading movies from the same folder. my code goes like

on (release) {
loadMovie("HAD.swf",2);
}

problem is the swf loads infront of the main movie but the main movie's links are still active.

View 4 Replies

CS3 : Keep Button From Activating Until After Mc Plays?

Jul 17, 2009

I have a simple movie clip of fading in text displaying on page with a sound. also have a button that allows user to go to the next frame. It is an exercise for students that basically goes like this: object presented in each frame, spelling (text) for that object fades in on mc with sound attached to mc, then button activates to let them move on to next. Since they are trigger happy, I don't want the button that allows to move on to activate on the frame until AFTER the movieclip and it's sound have played out (which is like 2 seconds so not a long wait) - otherwise, they would just keep clicking next and not listen to the material presented (it's very young children).

How do I set this up? I knew it's likely very simple, but I'm a newbie. Of course, I could always just do it on the timeline, but I have a ton of material, so am trying to use actionscript to be more efficient. for even younger kids, am considering setting this up so they can move to next frame through any keypress. I know how to set up a certain key, but not ANY key.

View 2 Replies

ActionScript 1/2 :: Activating/de-activating Buttons?

Mar 9, 2009

I want to create some AS to disable and enable a button.Let's call this ButtonX. I want this button to appear disabled at first, and then allow the user the option of enabling this button(ButtonX) by clicking another button. Let's call this ButtonY. I cannot get this to work. I am attaching the code I am trying. I have this AS added to ButtonY and ButtonX is the instance name for the button I want to de-activate-activate.

View 7 Replies

ActionScript 3.0 :: Activating Buttons With A Controller Button?

Feb 24, 2009

I have a row of movie clips which act as buttons with an inactive state, active state, selected state etc. What I am seeking is kind of like a controller button which when clicked will activate or de-activate this row when clicked. I thought the best way might be to set frame labels and add a goto sript for the controller button to make each button go to the activate frame when the controller button is clicked.

View 4 Replies

ActionScript 2.0 :: Button Activating Movie Clips?

Mar 11, 2004

Ok so, I have a button called btnEnter and its instance name is enter. Then, I have a movie clip called mcRotatingDot and its instance name is center. These two work so that when the mouse is over the button, the dot blinks. When the mouse is no longer over the button there is a fade in from alpha 0 to 60 of the dot. It all works fine, here is the code that I am using on the movie clip:

onClipEvent (load) {
//this sets the initial properties of our clip
this._xscale = 75;
this._yscale = 75;[code]...........

1)How can I make the movie clip blink with pure action script? And not having to do a stupid tween on the movie clip's timeline.

2)Can a button activate more than one movie clip? Because I am also trying to make the same button (aka. btnEnter, instance name enter) to change the rotation speed of another movie clip to spin faster. Here is the code for the other movie clip called mcRotatingCircle instance name outter:

onClipEvent (load) {
//this sets the initial properties of our clip
this._xscale = 1000;[code]............

Yet the movie clip will not spin faster on roll over. The only thing that I thought could go wrong is that there is another instance of the same movie clip mcRotatingCircle, named middle on the stage. I tried absolute addressing the outter instance, but it just won't work.

View 2 Replies

ActionScript 2.0 :: Button Activating Movie Clips?

Mar 11, 2004

Ok so, I have a button called btnEnter and its instance name is enter. Then, I have a movie clip called mcRotatingDot and its instance name is center. These two work so that when the mouse is over the button, the dot blinks. When the mouse is no longer over the button there is a fade in from alpha 0 to 60 of the dot. It all works fine, here is the code that I am using on the movie clip:

onClipEvent (load) {
//this sets the initial properties of our clip
this._xscale = 75;

[code]....

View 2 Replies

Advanced Button Usage - Activating Two Separate Areas

Apr 14, 2011

Basically I am trying to link two buttons so that two separate areas activate as one button including with rollovers etc. I am creating a flash application that features a series of tabs along the top of the page that when rolled over, will light up. When clicked on, these tabs will take the user to a different page. My problem is that I have an image on the left hand side of the application that features areas of the image that will take the user to the same place. I wish to link the button rollovers so that when the user rolls over the tab, the image will light up and vice versa. I have been unable to find a solution to this myself - the closest I came was making the area one button, but due to the distance the image and tabs are apart, the whole screen becomes one big button!

View 1 Replies

ActionScript 3.0 :: Activating A Class File With A Button Click?

Mar 19, 2009

I have a class file which prints a flash object. I don't want the print job to activate until a button is clicked. The print activation is a package and referenced by the document class. How would I code this to activate only when a button is pressed/ Currently it activates when the movie is played.

View 14 Replies

ActionScript 2.0 :: Activating SWF Frame From Flash Button In Dreamweaver

Apr 20, 2004

I have a set of flash buttons in a left hand frame in dreamweaver in the right hand frame I have a swf file, is it possible for the buttons to control the swf! For example I want button 1 to make the swf jump to frame 1, button 2 make the swf jump to frame 2 ect....

View 1 Replies

ActionScript 2.0 :: Activating A Swf Frame From A Flash Button In Dreamweaver

Apr 20, 2004

here is my problem I have a set of flash buttons in a left hand frame in dreamweaver in the right hand frame I have a swf file, is it possible for the buttons to control the swf!!!!! for example I want button 1 to make the swf jump to frame 1, button 2 make the swf jumb to frame 2 ect ect ect

View 1 Replies

ActionScript 2.0 :: Activating Button In Send Info To PHP Order Form

Sep 13, 2009

I'm trying to finish off a Flash menu that was done for my website & I'm a bit stuck - New to this game. Basically I have a menu made up of 5 items, each item leads to another list which has a "datefield", "nemericstepper" & "order" button. what I am trying to achieve is when the "order" button is pressed the "date" & "number" information is sent to my existing order page, customers details are then entered in the required fields & this is sent including the "date" & "number" via my existing PHP script to my email.

View 0 Replies

Actionscript 3 :: Flex Alert Control: Activating The "default" Button On Enter/space Key-press?

Dec 17, 2009

No matter what I try, I can't seem to fire the click event on the "default" button in an Alert control in a Flex 3.4 application.

[Code]...

View 1 Replies

ActionScript 3.0 :: Get Main Timeline To Stop In The Beginning On Button Press To Play And At The End Stop Again?

Feb 1, 2008

I just got Flash CS3. I'm trying to get my main timeline to stop in the begining, on button press to play and at the end stop again. In AS2, you would just put stop(); on the first keyframe and stop(); on the last key frame and program your buttons accordingly.

The stop(); does not work!!!! It's driving me crazy. What am I missing? I've gone through the tutorials in Flash and they don't work either.Also, if you have MovieClip that contains an animation and you don't want the movie clip to be on a continuous loop how do you stop it from playing. In AS2, I would put a stop(); on the last keyframe of the movieclip's animation. This also does not work in AS3.

View 9 Replies

ActionScript 3.0 :: Movable Mask That Follows Mouse

Oct 22, 2010

I'm trying to create a movieclip that contains 6 different images. In this movieclip, I would like, for example, a mask that follows the mouse to reveal the next picture. (ex: Image 1 has a circle mask revealing Image 2. When clicked, Image 2 will now be at the front with a circle mask revealing Image 3. And then Image 6 will not have any mask but on click will go back to the beginning)I understand that a lot of it will be up to how I order them in the timeline and frames.My problem is that in my class, we've learned how to do this for TWO images only, and the only way for the mask to move is to use the MOUSE_DOWN and MOUSE_UP events (which is where the mask is only movable if you move it yourself.)It would be a big help if someone can first answer these questions:

1)What is the function called/is for instead of a MOUSE_DOWN/UP it will just simply follow the mouse?

2)Would I have to create 6 frames with, let's say, Image1 and Image2 on Frame 1, then Image2 and Image3 on Frame 2 etc? And each frame will have its own actions layer frame?

View 2 Replies

ActionScript 3.0 :: Movable Map With Independent Windows?

Nov 25, 2010

Basically I want to have a scrollable map ie. you can grab it with your mouse and move it. Exactly the way google maps works (although I'm not terribly concerned about the inertia effect that google maps has). But I also want to have objects on the map, that when the map is moved, they also move, but I can grab them individually also, and move the objects. Obviously when I nest these objects in the background symbol, they lose their independence and therefore can't be moved separately from the map. And I've been having difficulty making the objects follow the map, while maintaining their own position (they just snap to the maps position).

View 2 Replies

ActionScript 2.0 :: Create A Movable Background?

Apr 7, 2011

Is there a pointer/tutorial on how create something similar to the following sites: [URL]

It appears that there are multiple layers that move at its own speed when rolling left or right.

View 3 Replies

ActionScript 2.0 :: Sound - Stop Button To Allow The User To Stop Mid Song

Mar 13, 2007

i have programed a play button using:

[Code]...

now i am trying to program the stop button to allow the user to stop mid song....

View 4 Replies

Website - Make Movable Windows In Flash

Jul 23, 2011

I figured that Flash would be the best for the result I'm going for. I am making an Adobe Flash website and part of the website includes a box that is draggable and movable around the screen. So, to keep it simple, how can I make it movable?

View 1 Replies

ActionScript 3.0 :: Movieclip Movable After Certain Amout Of Time?

Feb 3, 2011

Is it possible to have a movieclip loaded to the stage not movable, but after a certain amount of time you can click on it and drag it to where you want it to go, and if so how would you go about doing that?

View 1 Replies

ActionScript 2.0 :: CS3 - Preventing A Movable Object From Leaving The Screen

Feb 25, 2009

I have a Large moveable object that can be clicked and dragged around the movie, but how can I make so that if I border off an area of the movie the objects movement is limited to those corners. So the top left of the object cannot be dragged further than the top left corner of the border and so on.

View 2 Replies

ActionScript 1/2 :: Make Uploaded (xml) Images Movable In A Website?

Feb 3, 2010

I need to make my the images in my website movable. I found this [URL] but I just need a simple and easy version.

View 3 Replies

Professional :: Make Uploaded (xml) Images Movable In A Website?

Feb 3, 2010

I need to make my the images in my website movable. I found [URL].. but I just need a simple and easy version.

View 3 Replies

Professional :: Movable Background Based On Mouse Location?

Mar 12, 2011

I recently came across a small business site that had a homepage with there logo and some basic nav in the center with the business logoBut there entire background had a moving flash background made up of photos in the shape of words, that when you moved your mouse to the left, the background would move to the right, up and it would go down and so on as if it followed your mouse but inverted.

View 3 Replies

ActionScript 2.0 :: Rotating A Movable Movieclp Around A Spcific Point?

May 2, 2010

I've been trying to figure this out for a while now and cannot get it to work. I have a movieclip that can be moved up, down, left and right with the arrow keys, and reflected/flipped using the arrow and control keys together. However, I want to be able to use the arrow keys and shift to rotate the movieclip about a point with x co-ordinate 230 and y co-ordinate 180, regardless as to whether or not the movie clip has been moved up, left, etc.I've tried several different codes based on examples I've found online, but none have worked. I cannot make sure the centre point of rotation never changes.

View 0 Replies

ActionScript 2.0 :: Movable Turret Firing Duplicated Bullets?

Aug 11, 2004

I know there's all these posts on how to use For... loops to hittest, but no matter how hard I try, they just don't work. So, after hours of hair tearing, paceing and starting a new game I've decided to bother you all for help.

My situation is that in the game I'm making, I have a movable turret firing duplicated bullets. I need to hittest them against a duplicated set of oncoming robots. I've tried using a for loop, but I just can't get it to work.

I've attached the .FLA, and I would be grateful if anyone could point out what I'm doing wrong (ignore the values for removing the clips and the random duplication; I had to shrink the stage size to make the file size smaller

View 3 Replies

ActionScript 2.0 :: Force Draggable / Movable Object To Stay Within SWF Borders?

Oct 13, 2004

I've made a site with small draggable "popup" windows (not actual windows since they are objects in flash..) I can drag em off the scene outside the edge. I've attempted many things.. A adaptation of the collision script found through search.. (on collision it stopped dragging) Worked nice, until you move the mouse real fast, then it can pass right through or partly through and the fact that it's stopdrag. It takes effort to get it from the edge. It's stuck basically.

I fixed it by making the on (press) change frame in a moveclip containing the border.. had a side effect though.. You can now drag the window out from the scene if you repetitively drag it towards the edge. Is there a way to limit a movieclips possible X & Y positions? (in both + & - range to make it a 4 cornered block). I also want the moveclip to keep moving up/down if if hits the right/left edge if you continue dragging it up/down (same with left/right edge also)

I tried the scrip from the "dynamic mask":
onClipEvent (enterFrame) {
getlimits = _root.normalpic.getBounds(_root);
if (_root._xmouse>=getlimits.xMin && _root._xmouse<=getlimits.xMax && root._ymouse>=getlimits.yMin && _root._ymouse<=getlimits.yMax) {
this._x = _root._xmouse;
this._y = _root._ymouse;
}}

I changed the size of the "normal pic" and it works lovely.. but it's on enterFrame... and I need to react on on press and on release.. : tried to adapt it but cant figure out how.. and besides the script don't allow movement along the edges (like I described above) and if you move the mouse fast enough the window stops short of the edge..

View 5 Replies

Flash - Action Script Make Movable Points And Lines - MovieClip Object?

Oct 26, 2011

How can i make a MovieClip object drag able by the mouse? If i have two MovieClip instances, is it possible to make a new shape/MovieClip objects in that looks like a line and which will connect then? I have functions checking if the 'nodes' movie clip instances collide with the 'line' movie clip instances, now these all are different functions and conditional, but is it possible to check if ALL of them are true?

View 2 Replies

ActionScript 2.0 :: Bar - Play And Stop Button To Play And Stop Frames In A Flash Movie

Dec 1, 2004

give me the actionscript for a bar that has a play and stop button to play and stop frames in a flash movie. i would be gratefull if you could as i am really stuck

View 2 Replies







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