Select this Image and convert it into a Movieclip [press F8] or right click on the MovieClip -> “Convert to Symbol…”. Give the Movieclip the name “image”.
Select the first frame of the layer “img2? (ok, bad naming, feel free to correct that ) and draw a rectangle with the size of the canvas. You want to make sure that the End Movieclip has the same dimensions as the Start Movieclip. Thats why you first draw an invisible shape with the same size as the Start Movieclip.
Give the Movieclip the instance name “my_image” (you can choose a different name if you want. Make sure that the instance name is unique). Without an instance name, the component is unable to detect the Movieclip.
This tutorial is all about ActionScript 3.0. I will show you how to load an image, slice it into pieces and then animate the pieces. So start your Flash IDE and let's get started straight away.
In this tutorial, I'll show you how to create a mouse trail animation. The whole animation is done with ActionScript 3.0 as usual. You can easily change the code to change the speed, sizes, shapes etc. Start your Flash IDE and let's get started!
@Angie The code is correct. It depends on the position of your mouse cursor. If your cursor is at the top left, then the value should be (0,0). I think you are getting negative values because you are maximizing the actual movie window.
This is actually a very simple flash function, but it explains a lot, and if you don't know much about functions and how to make them, this simple flash example might be the one to make you realize how easy it is. With just a few lines of code you will see how to make an objects opacity, also called alpha state, change relative to the mouse y axis position.
In this Flash tutorial you will see how to make an object follow your mouse cursor, this is a great feature for games, animations or any other place, (but please don't do custom cursor on a website, not many web designs can pull that off without looking like an amature site).
In the Photo Slide application I showed you how to add interactivity to a Papervision 3D application. Two classes were created to allow objects to respond to mouse click events: PickableObjectManager and PickableObject. PickableObjectManager was responsible for feeding the mouse coordinates into the Papervision Viewport hitTestPoint2D function, and then determining if any PickableObject had indeed been clicked on. The PickableObject class in turn simply received these events and expose appropriate functions to extending classes.
Mouse interactivity is a must for all but the most simple web applications, and 3D flash applications are no exception. Not only does it allow the application to respond to a users requests, but allowing the user to click on and interact with an application also entices the user to investigate your application further. You've probably already seen this user interaction with a lot of Flash advertisements. Thankfully it is quite easy to respond to mouse events with Away3D.
10. It doesn't take much more actionscript code to a button, to make it change the color you draw with, and the thickness of the brush. Also have a look at one of my tutorials on how to change your cursor (to paint with).
A few days ago when I was surfing the internet I stumbled upon an especially pesky ad. Not only did it clog up the whole screen but also it ran away everytime my mouse approached its cancel-button! Of course, after a while I succeeded in getting rid of the unwelcome intruder. Well, it seems as though "every cloud has a silver lining" because, thanks to this ad, I can now be writing this tutorial. :-) Upon completing this tutorial, you will be able to create such a running ad.
This tutorial introduces startDragUnlocked(), startDragLocked() and stopDrag() methods and onSelfEvent(press) and onSelfEvent(release) Events to start and stop dragging.
I am going to show you how to draw regular polygons using the Flash Drawing API. We'll use these polygons to create a mouse trail effect by playing around with their scale, opacity and rotation.
To use mousewheel values for things other than textfields we must use the mousewheel listener object and the onMouseWheel. This is NOT a player specific function and as a result it must be published flash player 7.
Cross Ref: You can only attach one object at a time to the mouse this way. If you wish to attach several objects to your mouse you will need to use a different method see the Intermediate tutorial: Creating a Magnifying Glass
With this effect you can create a few different effects and styles of Followers. With just by adding an MC that has animation you can create great effects. Thank again for doing this tutorial, If you have any questions please let me know.
Create 2 static frames (set Delay to "Stop") with small and large images. Set small image OnOver action to jump to Frame 2 and set large image OnOut action to jump back to Frame 1:
This tutorial was written for the Flash Designer software, which allows you to create flash animations in a much easier way than by using Macromedia Flash. You may get Flash Designer here.
This tutorial was written for the Flash Designer software, which allows you to create flash animations in a much easier way than by using Macromedia Flash. You may get Flash Designer here.
The xPos and yPos variables are used to assign values to the shape according to mouse position, which will be done in the actual script. Also, take note of the "diam" variable, as this controls the diameter of your 'effected' area. Raising or lowering this value changes the mass of pixels that "push away" on your shape. Once the effect is finished you will have a better idea of what I am describing.