ActionScript 1/2 :: Stop/disable CreateEmptyMovieClip Function

Sep 2, 2009

I am designing a graph to allow line drawing. After the user draws the line, they will drag words (movieclips) from a menu onto to the graph. I am not able to turn of the line drawing function, so when the words are dragged another line is created. I tried to turn off the line drawing onRollOver of the word with no luck. Here is what I'm doing.
 
Draw line function:
 
var isDown:Boolean = false;var xPos1:Number;var yPos1:Number;var xPos2:Number;var yPos2:Number;
_root.onMouseDown = function() {

[Code]....

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Stop() A Mc Loaded With CreateEmptyMovieClip()?

Jun 21, 2009

createEmptyMovieClip("container", this.getNextHighestDepth());
container.loadMovie("path/to/someMovie.swf");

now how can I:

a.) stop(); (or equivelent) someMovie.swf?

b.) get the basics about someMovie.swf, like .currentFrame and .totalFrames?

View 1 Replies

ActionScript 3.0 :: Disable RollOut Function On Movieclips On Click Function?

Sep 13, 2009

I'm doing a basic site with frame labels on the main timeline whose name corresponds to the btn names. A simple  otoAndPlay(evt.target.name); I have a basic navigation setup of 7 mcs with mouse eventlisteners for CLICK, ROLL_OVER and ROLL_OUT.
 
Example:
prepare.addEventListener(MouseEvent.CLICK, navigate);plans.addEventListener(MouseEvent.CLICK, navigate);retire.addEventListener(MouseEvent.CLICK,

[Code]....
 
Does anyone know a better way to do this so when my mcs are clicked they display the rollover content/art? In essence I'm trying to achieve that when the user clicks a btn it goes to that "page" and the corresponding btn stays highlighted. Pretty standard web navigation technique but I just don't know what the best way to do this in flash is and with  how my site is setup.

View 1 Replies

ActionScript 3.0 :: Disable Ctrl+c Function And Cutomize This For Own Function?

Sep 14, 2011

hi,is there disable ctrl+c function? and cutomize this for own function

View 4 Replies

ActionScript 2.0 :: Disable ESC / CTRL+ALT+DEL So User Cannot Stop .exe From Playing

Apr 20, 2007

We have created a game and we need to run it fullscreen on a kiosk. The game requires the user use the spacebar however we would like to disable ESC and CTRL+ALT+DEL so the user cannot stop the .exe from playing.

View 2 Replies

Media Server :: Stop Or Disable Just Live Streaming Ability?

Jan 26, 2010

In my system I have installed Flash Media Streaming Server and as you know Streaming Server doesn't abilty to authenticatte the user which connects with FMLE or another application to publish (or am I wrong, I hope I am wronggg ). Because of this reason my system is abused time to time for unlegal content . In my system we don't use live streaming ability for live events regulary. Sometimes we use live ability max 4 times in a month. And I want to learn that is there a way to stop or disable and open the live streaming mechanism whenever I want?

View 2 Replies

ActionScript 3.0 :: Way To Disable A Function

Aug 6, 2009

I've got a project that consists of a main SWF that pulls external SWFS via an XML document. Within the main SWF are the navigation controls (i.e. next button and back button). When the next button is pressed, it pulls up the 'next' external SWF called in the XML file. When the back button is pressed, it pulls up the 'previous' external SWF called in the XML file.

The external SWF pages contain different interactions (i.e. drag and drop, multiple choice exercises, etc). Is it possible to disable the next button until the user completes these exercises?

If the navigation buttons were contained within the individual external SWFS, I know how I could make this work, but the XML setup has me confused. My only thought is using the Timer class, but that doesn't ensure the interaction is complete; rather, it just means the next button won't work for x amount of time.

View 3 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 3.0 :: Disable A Function?

Dec 21, 2010

I am currently have this script on frame 5, AS3:

var timer:Timer = new Timer (2000,45);
timer.addEventListener(TimerEvent.TIMER, timerFunction);
timer.start();

[code].....

View 3 Replies

ActionScript 3.0 :: Cant Disable Button By Function?

Sep 23, 2009

[code]How come I cant disable the button by this function?

View 1 Replies

ActionScript 2.0 :: Disable StopAllSounds Function?

Nov 23, 2009

i have a music player in my shell that plays background music. In swf files that are embeded (two layers in) I have videos playing.i want to make a button that stops the background music. Its too hard to communicate with the music player which is many layers away so i think i should use stopAllSounds.However, after i press it, it also disables the videos. how do i disable the stop sounds function, so that I can play videos, without turning the background music back on?

View 1 Replies

ActionScript 3.0 :: Disable Function And Then Enable?

Sep 3, 2011

I have two functions, I need one that of them at the start would be disabled and after decent amount of time or when x = 1000, function would be enabled and become active. How can I do that?

View 1 Replies

ActionScript 3.0 :: Make A Function Disable?

Oct 13, 2010

I have a movie clip and i and coding here[code]...

is there any way i can make this type of function ,like true on and off ? i dont wanted to use removeEventListener

some kind like Move="true" pX=20 if Move="false" pX=0

View 4 Replies

ActionScript 2.0 :: Way To Disable Print Function

Feb 16, 2005

I have a small client that needs to put information into Flash and prevent people from printing the document out on their printers.

Of course, you can always print anything you see on your monitor (Print Screen and other apps), but I am only concerned with preventing users from printing from 1) any browser and 2) from the Flash contextual menu.

View 3 Replies

ActionScript 2.0 :: How To Disable Function On Right Click

May 9, 2006

How I can make it so when the right click is pressed the zoom in/out 100% quality and all that does not show.

View 12 Replies

ActionScript 2.0 :: Get Movie Clip Disable Function?

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

ActionScript 3.0 :: Disable A Function After Going Back To Frame?

Feb 11, 2012

In my Timeline there are two keyframes with some complicated functions, but the mistake lays in several lines. In the first one I have:

ActionScript Code:
stop();
var fadein:Tween = new Tween(pictureOne,"alpha",Strong.easeOut,0,1,true);

In the second one I have:

ActionScript Code:
stop();
button.addEventListener(MouseEvent.CLICK, goBack);
function goBack(e:MouseEvent):void {
gotoAndStop(1);
}

The point is to make the Tween from the first frame work only once after opening SWF and to disable it after using te command gotoAndStop(1); from the second frame.

View 1 Replies

ActionScript 2.0 :: Disable The Right Click Function In Flash?

Feb 25, 2005

Can we disable the right click function in Flash?

View 5 Replies

ActionScript 2.0 :: Function To Disable Group Of Buttons Placed Together In MC?

Nov 10, 2006

i am working on small project where i find my self stopping at this rateMmm.. this project is dealing with buttons placed in MC name = main.ButtonCon the main i am programing those buttons as if

Code:
_root.main.ButtonC.b5.onRollOver = function() {
this.swapDepths(11);

[code]........

View 3 Replies

ActionScript 2.0 :: Disable Right Click Function In Flash?

Feb 25, 2005

Can we disable the right click function in Flash? How?

View 11 Replies

ActionScript 3.0 :: Make A Function Stop A Function?

Jul 1, 2010

ActionScript Code:
myFunct();
function myFunct()
{

[Code].....

Any way to get this to work without using much more code? This is for a function that checks to see if a user is still logged into a website. I need the check to happen every time the user causes certain functions to run, like create topic, submit new post, etc. I could put the code, which is only a two-liner if/else statement in every function, but it would be nice to just call a single function. But that function would have to be able to cause the function that's calling it to return to get it to cease.

View 5 Replies

Flex :: Disable The Drop Down Function Of Combo Box On Certain Conditions?

Nov 21, 2009

I have a combo box in my application. I also have a variable called "Status". I want the combo box to be enabled only when the value of the Status variable is 5 or 6. Otherwise, I should not be able to change the value in the combo box. It should have the previous value only.. I had written a click event to disable the combo box. But even though the combo box is disabled, I get the drop down list of the combo box, and If I select some othe value in the drop down,it changes..Only after that it gets disabled.

[Code]...

View 3 Replies

Flex :: Disable Alert Javascript Function On AIR HTMLLoader?

Apr 3, 2011

In my AIR application in Flex 4, I use mx:HTML, and when I navigate to a location like this ut, some websites have "alert" function in javascript like this :lert('hello world!');nd AIR show the message in a box...I just want to remove, or ignore these messages, but I don't know how...

View 1 Replies

ActionScript 3.0 :: Disable IE Function Keys To Move Between Frames

Apr 20, 2011

While a user is in a frame, I have the user press F1 to gotoAndPlay another frame, press F3 to gotoAndPlay another frame, etc. But when the user presses the F1 or F3 function key, they get the IE browser search screen or IE keyboard shortcut. How do I use AS3 to have the action taken when the user presses F1 perform the function within my flash file and not the IE process for the function key?

View 0 Replies

ActionScript 2.0 :: Global Variable - Enable / Disable Function Within Game

Oct 23, 2004

I have a button that I would like to enable and disable a function within my game. The button is called "flashBang". I'm thinking this may need to be done with global variables to make the switch do this procedure. How would I go about scripting this variable? Also I want to be able to target this function during gameplay, if this function is enabled do this line of code - _root.gotoAndPlay("flash");

The code needs to fit somewhere in here i guess.
//hitTest top + bottom wall
if (_root.ball.hitTest(_root.topwall) or _root.ball.hitTest(
_root.bottomwall)) {
_root.yspeed = -_root.yspeed;
_root.audio.gotoAndPlay("flash_bang");

View 3 Replies

ActionScript 1/2 :: Stop An 'if' Function?

Mar 1, 2011

I am trying to stop an if function from happening if a dynamic text box equals '1'[code]...

I now want it to say that if the dynamic text box equals 1 then the _x and _y do not change.

View 2 Replies

ActionScript 2.0 :: How To Stop A Function

Jun 11, 2006

I have this function:

[code]...

How can I stop it trough a button?

View 4 Replies

ActionScript 3.0 :: Disable Function - Zoom In And Zoom Out By Clicking Button?

Feb 7, 2012

I want to make a scope wich can zoom in on button click and go back to previous stage (zoom out) also by clicking a button.Now i made it work for zooming in (when i click my button it zooms) but when i want to zoom out everything i tried didn't work .Here is the code:

//button for zoom in
zoom.addEventListener(MouseEvent.CLICK,glassMove);
function glassMove(event:MouseEvent):void{[code]..............

View 1 Replies

ActionScript 2.0 :: How To Stop Timer Function

Nov 4, 2004

I'm using this timer code for my game.

It should play 10 seconds and then go to the next scene.

PHP Code:

function timer(){
seconds=seconds-1;
if (seconds < 0) {

[Code].....

Well that works, but when I click on the play-again-button in the next scene, it won't play for 10 seconds (but less). I think the timer goes on without stopping. How can I stop the timer function when I move to the next scene?

View 3 Replies

ActionScript 3.0 :: Stop An EnterFrame Function?

May 11, 2011

I coludnt stop the function after n=>5 . I tried removeeventlistener. it didnt work. the code is giving error each time it enters a new frame.[code]...

View 3 Replies







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