Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Linking two symbols

New Here ,
Jan 25, 2014 Jan 25, 2014

Hi there,

I'm new to Flash so please bear with me.

I have a buttont that has drag and drop assigned to it as an actionscript from code snippets.

I am trying to link the movements made by this button and the on click function to a symbol on the screen.

I need this symbol/button to further interact with other things on screen. 

Can anyone help with code or point me in the direction of a tutorial?

e.g. Viewer uses their mouse to click on an onscreen mouse - moving this mouse moves a cursor and this cursor interacts with objects on the computer screen animation

Thanks

Amanda

TOPICS
ActionScript
516
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 25, 2014 Jan 25, 2014

what's the problem?

if you already have the drag and drop coded you just need to add listeners for mouse events to your other objects

Translate
Community Expert ,
Jan 25, 2014 Jan 25, 2014

what's the problem?

if you already have the drag and drop coded you just need to add listeners for mouse events to your other objects

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 25, 2014 Jan 25, 2014

The problem is I'm new and didn't know the name of the function i was looking for

Thanks for the advice.  I can look it up now I know what I'm looking for.

Much obliged

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 25, 2014 Jan 25, 2014
LATEST

you're welcome.

adding a mouse click listener to an object mc would look like:

mc.addEventListener(MouseEvent.CLICK,clickF);

function clickF(e:MouseEvent):void{

// do whatever, e.currentTarget was clicked

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines