How do you stop/disable createEmptyMovieClip function

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() {
createLine("line")
createLine("line2")
intervalID = setInterval(startTimer, 1);
if (isDown == false) {
xPos1 = _xmouse;
yPos1 = _ymouse;
} else {
xPos2 = _xmouse;
yPos2 = _ymouse;
_root.onMouseUp = function() {
isDown = false;
drawLine(xPos1,yPos1,_xmouse,_ymouse);
clearInterval(intervalID);
//createLine("line2")
function startTimer() {
//line.clear();
isDown = true;
moveLine(xPos1,yPos1,_xmouse,_ymouse);
function drawLine(xValue1, yValue1, xValue2, yValue2) {
line.lineStyle(7, 0xFF0000, 100);
line.moveTo(xPos1,yPos1);
line.lineTo(_xmouse,_ymouse);
function moveLine(xValue1, yValue1, xValue2, yValue2) {
line2.clear();
line2.lineStyle(7, 0xFF0000, 100);
line2.moveTo(xPos1,yPos1);
line2.lineTo(_xmouse,_ymouse);
function createLine(movieClip){
_root.createEmptyMovieClip(movieClip,_root.getNextHighestDepth());
The movieclip equil should disable the drawing tool on rollover:
equil.onRollOver = function():Void {
     delete(this._parent.createLine.onRelease);
Thanks for any help.

in your rollover use:
delete _root.onMouseDown;
delete _root.onMouseUp;

Similar Messages

  • What is ChangeWatcher? How do you stop Change Watcher from listening to a propertyChangeEvent?

    What is ChangeWatcher? How do you stop Change Watcher from listening to a propertyChangeEvent?

    ChangeWatcher is a class used to handle the change of a specific property. To stop watching that property, simply call unwatch function as follow:
    var cw:ChangeWatcher = ChangeWatcher.watch( this, "propertyName", changeHandler );
    cw.unwatch();

  • BeginAnimations: starts an animation but how do you stop it?

    Hi everyone:
    I've been using the following code snippet to start an animation:
    [UIView beginAnimations:animationID context:nil];
    [UIView setAnimationDuration:8];
    [UIView commitAnimations];
    but how do you stop it (prematurely)?

    Den B. wrote:
    Oh great! I actually learned about it from one of the Apple's own sample codes...
    The samples are only to get you started, explain the concepts, and show how to use the API. They aren't meant to be functional, production-quality applications.

  • How do you stop the visual voicemail offer

    How do you stop the visual voicemail offer. I've declined the offer several times but it keeps coming up.  What can I do?

    To Disable Visual Voice Mail
    Sign in to your My Verizon online account. On left side of page find the drop down menu.
    Click to open menu, then go to change features and locate Basic Visual Voice mail.
    Locate the button Basic Visual Voice Mail and click the Red Remove Box.
    Scroll down until you see the listing: Basic Voice Mail, Visual Voice Mail etc. and click          the Red Add box by Basic Voice Mail to add on this service.
    When you're done making changes click next at the bottom of the screen and then ok.
    Go into your device and set up your required Basic voice mail program. You may continue to receive error “new voice mail message for a period of time”.

  • How Do You stop Auto opening apps?

    How do you stop the previous apps from auto starting  when you start your machine? I have already turned off the retsore windows in system prefes and I dont have any auto startup items... so what gives, can someone tell me how to stop them from opening up? I suppose I could go and close every app before I take my laptop off its power plug (battery is dead now days)... but I was just hoping there was some otehr way rather than going into each app before I pick up and run.

    Kind of...but not exactly. This has been discussed at length over the last few months.
    I put together a summary of the various solutions into a single procedure for disabling the whole Resume feature here:
    http://applehelpwriter.com/2011/09/13/turn-off-resume-the-definitive-solution/
    (link to my personal website, not to be understood as endorsed by  in any way)

  • How do you stop Voice Control?

    How do you stop Voice Control?

    Unfortunately, "Stop pressing and holding the Home button" only works if it is an intentional action. Obviously, this is not the problem. The problem occurs when the button is depressed and held ACCIDENTALLY! Like, when your iPhone or iPod is in your pocket, or purse. This is how butt-dialing occurs: the button gets depressed, the voice control comes on, and then the imperfect software mis-registers the next random sound as a voice command, resulting in a random call to a random contact.
    It is a very annoying "feature" to say the least. And the fact that it cannot be disabled only makes it more infuriating.

  • How do you stop downloading itunes match songs to iphone 5

    How do you stop downloading itunes match songs to iphone 5?
    Cell data is turned off but it is still downloading.

    When you initially enable iTunes Match on any iDevice it is wise to let it operate for a good period docked or with good WiFi.
    Best route to stop it if essential is to switch off iTunes Match.

  • HT4753 How do you stop preview from auto save

    How do you stop preview from doing AutoSave?
    Preivew keeps saving different copies of a pdf I am working on (highlighting/annotating), and I now only have 1GB left on my harddrive (had 180GB left).

    If you are using Safari, look at Safari > Preferences > General and make sure 'Open "safe" files after downloading' is not checked.  Other browsers should have a similar setting in their preferences.

  • HT4915 How do you stop syncing address and calendar to iCloud? I only want to sync  from my computer to iPhone.

    How do you stop syncing address and calendar to iCloud? I only want to sync  from my computer to iPhone.  This is because I cannont upgrade to Lion and I do not want to get duplicate contacts when I sync from the computer 10.6.8 to my iPhone iOS5.  You should not upgrade to Lion upless you have 4GB of ram. Lion does not support rosita so all your old programs will not funtion and you have to repurchase all old software the is working fine.

    Welcome to the Apple Community.
    Settings > iCloud, turn off contact and calendar syncing.

  • TS1702 how do you stop itunes from downloading apps over and over again and again like for ever it wont stop  help.

    how do you stop itunes from downloading apps over and over again and again like for ever it wont stop  help.
    i tryed everything i  can in the setting and so on , i even clicked on the downloads arrow to pause it and delete them but like i said it will now stop.
    theres apps i just dont want. theres a list of them but theres not a place were i can get rid of them. it also says some stuff about icloud yeah right like i have ios 5 or 7 ha . pod touch 2 is what i have lol . plz help thanks.

    to the right by search library theres an arrow there click on it : it will show you what it is downloading , from there you can pause and select all and delete them but still will continue to download them if you tell itunes to check for downloads. that download engien is crazy i tell yeah.
    no matter what we do it will still download them trust me i tryed everything and i also went to icloud to see if it was there but to what i see is that there is no apps there this is some crazy itune program that needs to remade.

  • How do you stop music while video plays???

    Ok...so here's the deal. I'm making a movie that is a combination of pictures and videos. It's basically like a slideshow type thing, but now I'm adding video to it. I've already put all the pictures and transitions and music that goes along with that, but now I'm trying to add my videos in between some of the pictures. I'm trying to figure out if there is a way to stop (like completely stop/cut the music clip) while the video is playing, then resume the music at the end of the video at the point where it was stopped before. Does that make sense? I don't want to simply lower the volume of the music...I want to completely stop it so you can hear the audio of the new video. I have tried trimming the audio, but I haven't figured out how to get it to do what I want. So basically, how can you stop music while a video plays and then resume that same music at the end of the video from the point where it was cut?

    So i think you have clips with their own audio that you want the added music track silenced during those clips alone. Click on the clip in question, go to inspector, audio, "Ducking" and X that box "reduce volume of other tracks" and pull it to 0%. i think that will do it
    roger

  • How do you stop mobile sites from loading in safari automatically on my iPad? I can't log into mobile me because of this.

    How do you stop mobile sites from loading in safari automatically on my iPad? I can't log into mobile me because of this.

    The me.com website is not designed for or intended to be accessed by iOS devices. Apple provides support in iOS or seperate Apps for accessing all aspects of MobileMe except for the Accounts section.
    Use MobielMe as intended and you'll have no problems.
    See: http://support.apple.com/kb/ts1673
    Even if you use a different browser to get access to me.com on iOS, you'll find most of it is unusable.
    Other websites that present you with the mobile version have been programmed to do so by their developers. They specifically look for users accessing from 'mobile' devices and switch to the mobile site. Many such sites provide a link to go back to the 'full' site, if not, there's not a lot you can do except use a browser that can pretend not to be a mobile browser.

  • How do you stop the 11.0.44 version from freezing up all the time?

    How do you stop the Itune version 11.0.44 from freezing up all the time. I have two different lap tops with the same version and both do the same thing. The store gives me the most problem.

    Hello rkalanz1,
    The following article should be helpful in stabilizing iTunes on your laptops.
    iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits, freezes, or launch issues
    http://support.apple.com/kb/TS1717
    Cheers,
    Allen

  • HT3951 how do you stop a download of a movie if you dont have enough space and how do you get the money refunded to your account

    how do you stop a download of a movie if you dont have enough space and how do you get the money refunded to your account

    All sales are final the moment you click buy.
    Make space and download it

  • Itunes start up when comp is turned on.  How do you stop this?

    how do you stop itunes from opening on the start up?

    Check the list of login items for your user account in the Accounts pane of System Preferences.
    (58987)

Maybe you are looking for

  • HT1600 Do I have to connect my apple tv to itunes after an update?

    Do I have to connect my apple tv to itunes after an update?

  • Xcelsius with XMLA or XML Query Result Set

    Hi Experts, I want a direct connection from Xcelsius to my BW-Data. Because the new connection, coming with Fix Pack 2.1 is only avaiable for EHP 1 for NW 7.0 I tried to configure with XMLA and XML Query Result Set. This Document tells the necessary

  • Unable to connect to IR/ID

    Dear All, i am unable to connect to PI server, error is as follows.. #8 15:42:54 [AWT-EventQueue-0] ERROR com.sap.aii.utilxi.swing.toolkit.ExceptionDialog: Throwable Thrown: MESSAGE ID: com.sap.aii.utilxi.misc.api.ReconnectRuntimeException com.sap.ai

  • Problemi con Adobe Bridge CS6

    Ho aggiornato il sistema operativo da Windows 8 Pro 64 bit a Windows 8.1 Pro. Adobe Bridge non ha più funzionato correttamente. L'area di lavoro si modifica e si espande anche sul secondo monitor. Ho disinstallato, resettato e reinstallato tutta la S

  • Ghosting graphics after mac pro restart

    I dont think this is a new topic but i just wanted to know if there has been any updates on this. On my LG monitor there is a ghosting effect on all of leopard's graphics after i turn my early 2008 mac pro on. Although this is rectified by turning th