خرید بک لینک

Vote count: 0

I am designing an app in Animate CC, and have a setup like this: enter image description here Each page is a separate 20 frame section of the timeline. The NavigationScript layer contains a script that handles the main navigation, and the ImageControlScript layer contains code to set up event listeners that are specific to each page:

import flash.events.MouseEvent; image1.addEventListener(MouseEvent.CLICK, openImage(144)); image2.addEventListener(MouseEvent.CLICK, openImage(145)); trace ("Events added");

When the app starts, everything goes fine: the Event Listeners are added, and the trace is called. However, when I navigate to another page, the script on the ImageControlScript layer are not called, not even the trace function.

If I navigate back to the first page (Frame 1), it's also not called.

The Navigation script uses a gotoAndStop function to move between pages.

Any help would be much appreciated, I'm not all that familiar with AS3...

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: چهارشنبه 25 فروردين 1395 ساعت: 19:01

صفحه بندی