AS3 creating a circle and expanding it by holding the mouse down - actionscript-3

The title says it all, I don't know how to code a code that creates a circle, expanding it is no problem, I need help knowing what to code in order for it to be created. Please help :)

Look at the graphics routines in the display class:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Graphics.html
it has examples too.

Related

Advanced slideshow with one page divided in 6x4, press to view more info

I want to create a slideshow with this aspect:
http://i.stack.imgur.com/f7JfI.png
One of the pages of the slideshow should be divided in 6 squares per line, there are 4 lines, each square is clickable and should trigger a animation like the one that is on the image when the mouse hovers on one square.
There are guides and etc for slideshows, but not for this i want to make, i didnt find any.
Help is highly appreciated.
Without seeing your code, it's a bit difficult to help. However, I found two resources which may be able to help you. They explain how to build slideshows with JavaScript and CSS. From there, you can build each slide individually and add the properties you want through a simple table that takes advantage of animation.
This resource shows you how to build each slide from the ground up in a nice way. This one in merely source code on a fancy, animated slideshow, but certainly interesting and the code may shed some light on your own problem.
I hope that helps!

Html 5 Canvas Particle effect

hey guys I need guidance to recreate a wonder full effect which I saw in a website
Fifty-five.com . After the pre-load is over you will see the company's logo in a canvas.
I have have been successful in creating the particle in a canvas but what math goes into linking the particles to create a mesh like structure on mouse over the canvas ?
I have found this http://cssdeck.com/labs/html5-canvas-particles-web-matrix Maybe you can add some mouse interactivity. Please show here the final result.
NOTE: I am not expert in this thing.
Have a look at particles.js:
http://vincentgarreau.com/particles.js/
https://github.com/VincentGarreau/particles.js/
Their home page has a similar effect to that used on the Fifty-five.com site you mention.
You can enable "line_linked" to link the particles.
I hope this helps.

Remove Child? AS3

So I'm incredibly new to AS3, and barely know my way around.
I built a simple colouring book game, essentially changing some of the graphics of a tutorial, and replacing numbers and sizes to fit what I wanted to achieve. I then built a menu screen in a seperate scene and linked the two with code snippets and buttons to go back and forth.
The colour pickers are generated when the game is ran, however an issue I seem to be facing is that when I go back to my main menu, they are still there.
Can someone point me in the right direction as to how I can fix this? I'm sure it's a rather simple fix. I can provide the code from the tutorial if needed
I think you're right you need removechild this color to remove one color from stage... Maybe you need removechildren to remove all color, whin are on stage... Try this two way

ActionScript 3 Sprite Envelope

I'm quite new to Flash and ActionScript.
Anyway, I wrote my own XML Slideshow, that's working great. The problem I have is that I can't add an 'envelope' effect to the images that are loaded as sprites. I know I can use 'envelope tool' if I break the image apart (ctrl+b) but I need to do it dynamically via AS.
Is there any way to do it.
Rotating the X/Y/Z axis doesn't do what I need.
Looking forward to your replies.
Thanks in advance.
Have you looked at this: http://krasimirtsonev.com/blog/article/distort-movieclip-or-image-in-flash-with-as3?
I think this can help you a lot.

Image stretching and resizing

I have a picture that I need to resize to a specific dimension and then move one of the corner to a place higher than before so the image is not rectangular anymore but some kind of polygon. Is there a library that could help me with this kind of image manipulation or does someone knows the name of this operation?
This is for a .NET application and there is an option for a six-points area also.
Have a look at here
Anti-Grain Geometry is an interesting graphical library. There is also a .NET wrapper called CreativeDocs.NET.
I don't know if it can help for certain but you might want to look at CxImage:
http://www.xdp.it/cximage.htm