| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Nov 2006
Posts: 27
|
Please excuse the ridiculous misspelling of "wrong" in the title.... haha.
Hey people perhaps you could lend me some help. I've got a container_mc that holds two things:
I want different things to happen for clicking on the two different children mc's! I've got the two different definitions as like ActionScript Code:
The problem is that when i click a part that is DEFINITELY the polaroid, it registers it as a click for the pic MC! Oh noes. Can anyone help? Some notes: the pic mc was made via createEmptyMovieClip then using a MovieClipLoader object to load the jpg into it. The polaroid mc is BELOW the pic as far as depth (which should be obvious or else you wouldn't see the pic). Thanks. |
|
|
|
|
|
#2 |
|
Hands Resist Him
|
sounds like when you dymnamically created the MC for the jpg the MC was made larger than the MC for the polaroid background. And becasue you have the jpg MC above the polaroid MC it registers a click on the jpg MC.
try making a third MC to house both jpg MC and polaroid MC so you can put both the jpg MC and the polaroid MC on the same level and or in the same frame. hope that helps some. |
|
|
|
|
|
|
|
|
#3 | |
|
Registered User
Join Date: Nov 2006
Posts: 27
|
Quote:
Code:
container_mc -> extra_mc -> pic_mc (depth 1)
\-----> polaroid_mc (depth 0)
|
|
|
|
|
|
|
#4 |
|
Registered User
Join Date: Aug 2006
Posts: 482
|
replace onMouseDown() with onRelease() or onPress()!
ActionScript Code:
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Nov 2006
Posts: 27
|
|
|
|
|
|
|
#6 |
|
Registered User
Join Date: Aug 2006
Posts: 482
|
.............
As far as I know, onMouseDown is a global event, meaning that if you click anywhere, it fires. onRelease is a event that specifically target a movieclip or a button. I don't think onMouseDown would work with buttons. |
|
|
|
|
|
#7 |
|
Registered User
Join Date: Nov 2006
Posts: 27
|
I tried both onRelease and onPress and they simply never fire. Eh... im lost.
|
|
|
|
|
|
#8 |
|
To AS2.0 or not to AS2.0
|
omPress or onRelease should have definitely worked... hmmm,,, could you post your fla or recreate it in a new fla and post that?
|
|
|
|
|
|
#9 | |
|
Hands Resist Him
|
Quote:
the 3rd MC acts as a container for both of the other 2 MCs allowing both polaroid MC and jpg MC to be at the same depth level |
|
|
|
|
|
|
#10 | |
|
;)
Join Date: Aug 2006
Location: In transit--- Still bored
Posts: 1,705
|
Quote:
ActionScript Code:
if you have something like container_mc.onRollOver()=function(){/*///blablabla///*/} change it for : ActionScript Code:
__________________
http://www.pepemagana.com Last edited by 3pepe3; 03-22-2007 at 10:11 AM.. Reason: error |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| time | MontyCoder | ActionScript 2.0 | 9 | 02-16-2007 05:10 AM |
| Countdown timer, timezone offset stuck in Eastern time | ironchefmoto | ActionScript 2.0 | 3 | 12-26-2006 10:00 PM |
| Displaying multiple time zones using flash | jdeutsch | ActionScript 2.0 | 1 | 11-18-2004 05:02 PM |
| Function problem: 1st time ok second time not work | Astralp | ActionScript 2.0 | 2 | 09-04-2004 04:07 PM |
| Daylight Saving Time Clock ?????? | poab | ActionScript 1.0 (and below) | 0 | 08-30-2001 12:15 PM |