Posts Tagged ‘Action Script Problem Solving’

Mini Tip #4 Disabling Right-click in Flash MX and higher

May 14th, 2009

Don’t like that default right-click menu when you create a Flash movie? Here’s a simple way of removing it!

Create a new layer in your main timeline. Click on the first frame. Press F9 to bring up the Actions window and paste this code:

Stage.showMenu = false;

And you’re done! Test your movie and right-click to see the change.

The Joys of Web Design #3

May 9th, 2009

Joys of Web Design

External flash movie with gallery and thumbnail scroller just will not work?

June 19th, 2008

Recently whilst tweaking a project outsourced to us we came upon a problem with a Flash gallery. The gallery in question was an external movie loaded into the main ‘holder.swf’ when called upon.

The gallery worked fine when previewed seperately. Only when it loaded as an external movie, into the holder.swf did the gallery refuse to work. By this, I mean, the thumbnails, and the scroll bar they were placed in, would not respond to the mouse.

Now, theres possibly a few things to do at this point, but when working to a deadline, obviously, the quickest choice is the best choice. The ActionScript for the thumbnails worked with ‘_root.’ instructions, and appeared to be becoming confused with the holder.swf mistaking that as the main ‘_root.’ file.

Adding this: this._lockroot = true;

To the main timeline of the ‘gallery.swf’ corrects this confusion by making the timeline on the external movie the actual ‘_root.’ for the entire time the external movie is open.

This solution is quick, involves minimal coding and is easy to implement.