Another big suprise for AS3 is the missing GetURL where we used to script it on buttons to open up url. However that was replaced in ActionScript 3.0. We use navigateToURL instead.
Just follow the example when scripting your button. Remember like in previous tutorials, you need to add an eventlistener to your button to attached a function to it.
1
2
3
4
5
6
this.YourButton.addEventListener(MouseEvent.CLICK,openURL);
function openURL(event:MouseEvent){var request:URLRequest = newURLRequest("http://www.isgoodstuff.com");
navigateToURL(request);
}
Oh yeah an epic nightmare..at first you thought is was your ISP doing frequent maintenance then, you suspect it was your router giving problem and you exchange and upgrade the firmware…yet, the problem haunts you.
Every time you connect to your wifi router, and after an few minutes or sometimes an hour if you are lucky disconnect and the router resets by itself.
Fine, SP1 is here upgraded…still the same problem; as for my case my pc just ain’t good enough for a SP1 upgrade (I got BSOD right after that) so, I stopped the automatic update upon reaching SP1. So, who’s the culprit?
Sorry for the late posting, I’ve been buzy with my new IPOD lately :3. Today’s tutorial shows how to construct a musical loop in Action Script 3.0. There’s also a mute and un-mute button just in case many of you wondering how to do it.
Completing this tutorial you can some of you presentation animators (those that requires Action Script sound control on presentation loop) can resume your project without much worrying.
Is still almost the same as AS 2.0. The syntax may change a little bit. You can do much more now, they upgraded these sound object stuff.
Here take a look at the sample and scripted code below.
This post is the extension of the previous one here on how to add Event Listener to control buttons, and MovieClips when there is interaction.
Like previous of the post, we are going to create a flash sample on how to drag and drop on a newly created MovieClip and how to import an existing MovieClip from the library.
Drag and Drop EventListener for MovieClip and Sprite
This tutorial is for those that want to jump into the Action Script 3.0 bandwagon but don’t know where to begin with. Let’s begin with writing a document class some people refer it as the “package thingy”.
Download the tutorial materials here. Unzip to your desktop and open the .as (ActionScript) and .fla file. Note: These are flash CS3 files so, best to have CS3 with you. Take a look at the picture beside you, now in the future, you will be writing most of the Action Script externally, rather than rely heavily inside the fla.
There’s a few reason why Adobe is adopting this strategy and you will have to get your hands really dirty to appreciate why they are doing this.