Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-14-2003, 07:16 PM   #11
Timmee_3Styler
Canadian Flasher
 
Join Date: May 2002
Location: T dot O dot
Posts: 1,648
Default

ncie stuff senocular
Timmee_3Styler is offline   Reply With Quote
Old 06-14-2003, 10:00 PM   #12
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Um... I am so lost within the code and I can't even get it to work...
Can you explain it to me if you are not busy, senocular???
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 06-15-2003, 12:04 AM   #13
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,875
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

here it is expanded and drawn out

ActionScript Code:
// Mouse variable to represent the current // rightmouse position (down or up) - true if down Mouse.rightMouseDown = false; // this function checks a change from the // current real rightmouse is down to the last // saved Mouse.rightMouseDown checkForChangeInMouse = function(){     // xor is used to compare the current Mouse.rightMouseDown     // with Key.isDown(2) which returns true if the right mouse     // is down, and false if not.  Mouse.rightMouseDown is also     // assigned to Key.isDown(2) within this if statement.  The     // comparison though, is still between the last saved and     // the new current Key.isDown(2)     if(Mouse.rightMouseDown ^ (Mouse.rightMouseDown=Key.isDown(2))){         if(Mouse.rightMouseDown){             // if the mouse is down, the onRightMouseDown             // event is sent out from the Mouse Object             Mouse.broadcastMessage("onRightMouseDown");         }else{             // if the mouse is Up, the onRightMouseDown             // event is sent out from the Mouse Object             Mouse.broadcastMessage("onRightMouseUp");         }     } } // set an interval to check for the change in the // right mouse down using checkForChangeInMouse setInterval(checkForChangeInMouse, 40); // to recognize onRightMouseDown or onRightMouseUp, // the object needs to be a listener of the Mouse object Mouse.addListener(this); // assign the events this.onRightMouseDown = function(){     trace("Right Down"); } this.onRightMouseUp = function(){     trace("Right Up"); } // now "Right Down" should be traced when the right mouse // is clicked, and "Right Up" when released
__________________
(6)
senocular is offline   Reply With Quote
Old 06-15-2003, 12:10 AM   #14
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 26,666
Default

Thankie, Sire!!! Much appreciated...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 06-18-2003, 02:53 PM   #15
eggnogg
there's 8 pixels missing!
 
eggnogg's Avatar
 
Join Date: Apr 2003
Location: Portugal
Posts: 784
Default

hi dudes!

that code to me started out to be american slang! i've been reading a little about some strang aliens i found in the script, like the XOR punctuation, and it looks more like latin now!

if i didnt want to use this rightClick "alien" so much, i'd probably quit trying to understand it!! but i want it, oh so bad!

i need a little help to put this script working though... :/ . i have a MC (the menu). How do i make this code work? i have some doubts:



ActionScript Code:
this.onRightMouseDown = function(){         trace("Right Down"); }

instead of the trace statment i put in:
ActionScript Code:
attachMovie(menu, menuLoaded);
so it "loads" the menu MC.

3º where do i set the coordinates of where i want the movie to appear on stage? (same coordinates as the mouse)

i hope u can gimme a hand, so i can learn how to do this thing work..

thanks in advance, senocular.
eggnogg
eggnogg is offline   Reply With Quote
Old 06-22-2007, 04:51 PM   #16
seventhapex
God.save("Us");
 
Join Date: May 2007
Posts: 6
Default

ActionScript Code:
attachMovie("linkageId", "menuName", this.getNextHighestDepth(), {_x:this._xmouse,_y:this._ymouse});

you can pass anything you want within the {} braces

Last edited by seventhapex; 06-22-2007 at 05:00 PM.
seventhapex is offline   Reply With Quote
Old 06-22-2007, 05:05 PM   #17
seventhapex
God.save("Us");
 
Join Date: May 2007
Posts: 6
Default

Quote:
Originally Posted by senocular View Post
you'd want to use hitTest() or _dropTarget
What do you mean by this 6.
seventhapex is offline   Reply With Quote
Old 06-25-2007, 05:00 AM   #18
orange gold
got as?
 
Join Date: May 2007
Posts: 628
Default ok

Quote:
Originally Posted by Colin Campbell View Post
I can't right click (i'm on mac) you should think about that before making that a integral part of the site, maybe another option
im pretty sure mac can right click by holding ctrl and clicking btw right click is onMouseClick(2) in flash 8 and up not sure about mx though sry
orange gold is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:22 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.