July 24th, 2009
by Jen deHaan
One of my frequently asked questions in the comments is how to control what window a button click opens using ActionScript 3.0. For example, you might want your button to open in the same window, a particular part of your frames layout, or a new window. It’s similar to ActionScript 2.0, but there is a bit of a difference.
In ActionScript 2.0, you set a target for your button using code such as the following:
The following steps for ActionScript 3.0 will apply to either Flash CS3 or Flash CS4, just make sure that your document is an ActionScript 3.0 button and you’re adding the code to a frame.
- Create your button in your FLA, and give it an instance name in the Property inspector, such as
my_btn.
- Select a frame on the timeline at the same frame number of your button.
- Open the Actions panel, and add the following code:
my_btn.addEventListener(MouseEvent.MOUSE_DOWN, myHandler);
function myHandler(event:MouseEvent):void {
navigateToURL(new URLRequest("http://www.adobe.com/devnet/flash/"), "_self");
}
- Publish preview your work in HTML (File > Publish Preview > HTML). Note: When testing locally, you will need to set your security to allow access to the SWF. If you haven’t set this up, click Settings in the dialog that opens when you first test your FLA, select a directory on your hard drive, and save the FLA to that same directory and test again.
By default, without adding this parameter, ActionScript assumes _blank which opens a new window. You can modify the _self in the code above to be _top or _parent (or _blank if you want). Here’s what each of them does:
_self opens the link in the current frame of the current browser window.
_blank opens the link in a new window (or tab if that’s what the user has their browser set to do).
-
_parent opens the link in the parent of the current frame.
_top opens the link in the top-level frame of the current browser window.
Posted in ActionScript 2.0, ActionScript 3.0, Flash CS3, Flash CS4, Migration, buttons | 34 Comments »
July 24th, 2009
by Jen deHaan
The Learning Resources team at Adobe is seeking people to partake in a study of your Flash workflow. Those who participate get an Amazon gift card and thanked profusely, and of course will help make Flash better, so if you are a match it should be worth your time.
Please see Jay’s post here for more information:
http://blogs.adobe.com/jayarmstrong/2009/07/seeking_participants_for_a_bri.html
His post outlines:
a) The criteria to meet (many of you could be a match to at least one of them)
b) The contact information if you meet the criteria and want to participate.
Please check out the post if you’re interested in helping make Flash better (and getting something from Amazon)!
Posted in Flash CS4, General, get free stuff, input wanted | No Comments »
May 5th, 2009
by Jen deHaan
Justin Putney at Ajar Productions has created some amazing extensions that you can use with Flash CS4 and the new motion model to help with your tweens or create them. Justin’s extensions are not only useful, but well implemented and documented on his blog.
For some helpful detailed info about the extension creation, check out this post on the Ajar Productions site.
For information/download for the MotionSketch extension, which records/creates a tween based on you drawing in Flash (!), see this post.
For the Motion Blur extension, which analyzes the movement of your tween and then creates a motion blur. see this post.
Many thanks to Justin for your hard work, and excellent extensions.
Posted in Flash CS4, Flash CS4: motion, JSFL, animation, downloads, motion tween, new stuff | 3 Comments »
May 5th, 2009
by Jen deHaan
We wrote an article to help you migrate your skills and tweens from old to new in Flash CS4. It accompanys a new Animation Learning Guide on the Developer Center (they go hand in hand, lots of cross links) – and since it is now out, so is the migration article.
Check them out here:
* Motion Migration Guide for Flash CS4
* Animation Learning Guide
Let us know what you think!
Posted in FLA files, Flash CS4, Flash CS4: motion, Flash CS4: new features, Migration, Motion Editor, animation, articles, motion tween, new stuff, tweens | 2 Comments »
May 5th, 2009
by Jen deHaan
It took awhile to produce this due to its length (over 80 pages in word I think), but the Animation Learning Guide for new motion (introduced in Flash CS4 last fall) is finally out:
http://www.adobe.com/devnet/flash/learning_guide/animation/
It is divided into a bunch of sections based on topic, so click from this page to the topic you want to learn about. Also note that there is a FLA download of samples to help you out.
For more information on whatever, let us know. If you’re upgrading from classic tweens to new tweens, check this other article out too.
Posted in FLA files, Flash CS4, Flash CS4: motion, Flash CS4: motion runtime, Flash CS4: new features, Migration, Motion Editor, Motion Presets, Motion runtime, Tween instance, animation, articles, masking, masks, motion tween, tweens | 8 Comments »
February 24th, 2009
by Jen deHaan
Get the download here:
http://www.adobe.com/support/flashplayer/downloads.html
I quote:
Adobe Flash Player 10 Update for Flash CS4 Professional
2/24/09 This download contains fixes for critical vulnerabilities identified in Security Bulletin APSB09-01 Flash Player update available to address security vulnerabilities. The update replaces the Debug and Release versions of Flash Player 10 browser plugins and standalone players that are included in the initial release of Flash CS4 Professional (player version 10.0.2.54). All users are encouraged to apply this update. These new players are version 10.0.22.87.
Posted in Flash Platform, Flash Player, General | 1 Comment »
January 9th, 2009
by Jen deHaan
If you’ve created motion tweens in versions of Flash Past, chances are you’ve pressed F6 a few times in order to insert new keyframes. Doing so has probably become very familiar to you as well – you want to change something for an animation, then you press F6. Automatically. It’s a habit.
You can still use F6 to insert static keyframes on the Timeline (that you might turn into a motion tween), and you can even use them to insert property keyframes within a tween span too. However, within a tween span pressing F6 will insert a property keyframe on every single property currently associated with the target instance. This is usually way more keyframes than you actually need at that frame, so using F6 on a tween span is usually not the best thing to do for your animation – especially if you intend to continue modifying it. You’ll likely end up with unexpected things happening in your animation. So in Flash CS4, you might want to work at breaking the F6 habit.
Instead of pressing F6, you can insert keyframes other ways:
- Simply change the instance. Most of the time, this is all you need to do to insert a keyframe at the playhead’s position. If you need to tween to a new location, move the instance there. If you need it to scale or skew, use the Free Transform tool. If you need the instance to blur, change the value in the Property inspector or Motion Editor.
- Right-click the tween span and choose Insert Keyframe > Type. This adds keyframe(s) for the category you select at the current playhead, which reduces the number of keyframes inserted. For example, if you choose Insert Keyframe > Filter it adds a keyframe on all filter properties. To further reduce the number of inappropriate keyframes, use the Motion Editor.
- Use the Motion Editor. You can use the Add Keyframe button (yellow or gray diamond), graph context menu, or Ctrl/Cmd key over the graph to insert a keyframe on individual properties.
Posted in Flash CS4, Flash CS4: motion, Flash CS4: new features, Migration, animation, motion tween, tweens | 19 Comments »
December 18th, 2008
by Jen deHaan
A frequently requested item for Flash is the ability to see a grid over your artwork on the Stage. Flash CS4 now lets you do just that using a new option in the Edit Grid dialog. Let’s look at the change, which you might not have noticed yet because it’s turned off by default. Keep reading to learn how.
read more »
Posted in Flash CS4, Flash CS4: new features, instances, new stuff, symbols | 1 Comment »
December 10th, 2008
by Jen deHaan
In the previous blog entry, I linked to a new JSFL that automatically gives instance names to selected instances in a smart way. You can go read about and download the JSFL from this page. This entry shows you how to use this command along with some of the new features in Flash CS4.
read more »
Posted in ActionScript 3.0, Commands, Easing, FLA files, Flash CS4, Flash CS4: motion, Flash CS4: motion runtime, Flash CS4: new features, General, JSFL, Migration, Motion Editor, Motion runtime, Tween instance, animation, downloads, instances, motion tween, new stuff, tweens | 6 Comments »