Can someone help me with this error 1120? So frustrated...

I have these houses of two objects and galleries and the two corresponding functions to change the size of their layer masks. The structure of the two are

exactly the same except for their names and their positions. However, only one of them works.

The instance name is the same in the code and there is only a single keyframe in the layer where is movieClip 'galleryMsk '.

But Flash always through this 1120 error saying "property not set galleryMsk...

I don't know why this is happening since the part I have is working perfectly.

The only thing is the object 'homeMsk' and 'galleryMsk' object is in the same layer mask, which causes the trouble?

I'm so frustrated and I can't concentrate on what anyone else in all day... could not yet sit and watch television with happiness...

Here are the two parts of the code. Part I is work part II is not...

homeS.addEventListener (MouseEvent.MOUSE_OVER, f_homeDisplay);

function f_homeDisplay(event:MouseEvent):void

{

homeBtn.gotoAndPlay ("home_pass");

changeContent(homeMsk,-62.8,0);

changeContent (houses, - 62.8,0).

homeS.removeEventListener (MouseEvent.MOUSE_OVER, f_homeDisplay);

} //Part I

galleryS.addEventListener (MouseEvent.MOUSE_OVER, f_galleryDisplay);

function f_galleryDisplay(event:MouseEvent):void

{

galleryBtn.gotoAndPlay ("gallery_pass");

changeContent(galleryMsk,-56.55,160);

changeContent (galleries, - 56.55,160).

galleryS.removeEventListener (MouseEvent.MOUSE_OVER, f_galleryDisplay);

} //Part II

It looks like a flash problem: an object can have at most a mask that can be referenced using actionscript.

convert the two masks to a movieclip, assign an instance name, for example maskParent and use:

maskParent.galleryMsk and maskParent.homeMsk to reference your objects.

Tags: Adobe Animate

Similar Questions

Maybe you are looking for

  • EliteBook 1040 G3: Audio driver for Elitebook 1040 G3

    Hello I have recently reinstalled Windows 7 on a laptop G3 1040; but problems with the audio driver. Driver is not installed and I tried Softpaq installation, Assistant to the support and also the HP site but could not get the Conexant driver to work

  • MacBook 2012 w / external monitor - cooler open or closed?

    Hello A very simple question; I'm looking for some advice on my rapidly aging Macbook Pro. I am running 10.11.3 on a 13 inch, mid 2012 Macbook Pro. 2.9 i7 GHz, 16 GB RAM, SSD, Intel HD Graphics 4000 1536 mb. I connected it to a monitor 27 "beautiful

  • Low volume after uprading firmware

    I just upgraded my 2 GB Sansa Clip firmware 02.01.35 and now the overall volume level is MUCH lower than before.  It comes in all areas (for example, FM Radio and mp3s at all of the EQ settings). It is not my headphones or my ears that I get a decent

  • Turn on Windows Defender

    Hello Using a computer of Windows 8 with a few days left of Norton Internet Security.  I want to active Windows Defender antivirus.  After typing in windows defender in the start menu.  I get this pop-up.  This application has been disabled and is no

  • Microsoft has authorized laptop used

    I bought a windows 7 pro laptop refurbished by a Microsoft authorized repair. How can I check if my phone is upgraded for windows 10?