Jump to content

problem with _ymouse

Recommended Posts

hello there,i m having a problem with my task. I have created a flash file with a movie clip called box_mc and made it dragable with this code"box_mc.startDrag("true");" without quatation mark.furthurly i want this movie clip to hide when cursor is reached lower of 200 by y axis and higher of 400 by y axis.for that i have created this code lines.if(_root._ymouse<=200 || _root._ymouse>=400){_root.box_mc._visible = false;}but it is not working so please someone tell me what is the wrong with this code please help me

Link to post
Share on other sites
Hi!Try This Code:
if (_root._ymouse <= 200 || _root._ymouse >= 400){	_root.box_mc._alpha = 0;}else{	_root.box_mc._alpha = 100;}

thank you friend for this suggestion but this is alternate option and unfortunatily this is also not working.
Link to post
Share on other sites
Hi!Your Most Welcome My Friend...But! I've Tested This Code Before Submitting Here...Check Your Code, There Is Something Wrong...Or Share Ur Code If U Want...
ok give me your email adress so that i send u my fla file with atachment.thank you,
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...