ActionScript 2.0 :: Coloring Book - "clear Board" Button That Resets The Whole Thing,does Not Working?

Jul 27, 2010

I made a coloring book game in AS 2.0 (I did it this way so that I could put individual pieces of code for various buttons - there are around 50). I based it off a tutorial I found online. It works really well. These are the codes I used: In a top layer, I have just in frame 1 (there is only one frame in the whole thing):

_root.fillColor = 0xFFFFFF;

Each colorable part of the picture is a movie clip with a button inside, and each of those buttons has the following code:

on (press) {
color = new Color(this);
color.setRGB(_root.fillColor);
delete color;
}

And then I have two color buttons they can "dip" their pointer into, then they can click on the colorable areas and color them. The code for the color buttons is:

on (release) {
_root.fillColor = 0xC71E07;
_root.brush.gotoAndStop(8);
}

Note: the hex code there is for the red button; it's different for the other color.

Button 1: A "show answer" button that pops up a little graphic showing what their picture should look like. I know how to do this in AS 3.0 (I would just have the object fly in from off-stage on the button press), but not in 2.0. One thing I tried was to have it skip to a different scene or even just a different frame in which that object exists in place. The issue there is that it causes the coloring the user has done to disappear.

Button 2: A "clear board" button that resets the whole thing. I've tried using the gotoandPlay(1) action with this button, but it doesn't do anything.

View 2 Replies


Similar Posts:


CS3 :: Interactive Coloring Book?

Feb 12, 2010

I'm planning on making an interactive coloring book for a project and was looking around. I see the tutorials that are around but those are mainly click and fill in an area type of coloring books. I was wondering if anyone can point me to a tutorial that will teach me how to make a coloring book that lets the user pick up a color (a red crayon for example) and scribble in the color him/herself.

View 5 Replies

Html :: How To Make Coloring Book

Apr 1, 2012

Could you suggest me any tutorial which teach me how can i make a "coloring book?"

I need to do this for my website and only with one shape. (so not a big book:) )

It doesn't really matter the coding language, but i need something "shading" and not "just pick a color and fill with bucket style coloring book".

So i need something "interactive". Visitor use the mouse, pick the weight of the pencil and than start "shading, coloring".

View 1 Replies

ActionScript 2.0 :: Click Coloring Book?

Jun 16, 2006

I'm looking for a tutorial to do a coloring book without swatches. there will be no picker, you just click on a color to cycle through the available colors.nyone seen anything like this?

View 8 Replies

Add Print Function To A Coloring Book?

Mar 6, 2009

How can i add a print function to a particular page for a coloring book?

View 2 Replies

Flash :: IDE - Coloring Book In Tutorial

Sep 3, 2009

i am leaning Flash for about 3 weeks now, and i am quite good in that. I am AMAZED by all cool effects and trying to learn atleast 1 new every day. This tutorial, Coloring Book in Flash , is giving me headache for the last 2 hours. On the beggining of tut, it say to download and open souce FLA file- I saw that there is only drawing in start FLA file, so I make my own. Is that mistake, right at the beginning? If so, where I can find tut in the whole, so I can use my own images?

View 2 Replies

Make A Coloring Book Game?

Mar 2, 2011

Is there a tutorial or anything on making a coloring book game like this?

View 1 Replies

ActionScript 2.0 :: Drawing Board Thing?

Nov 19, 2005

I found this tut http:[url]...and wat i want to do is have thing like Flash.I know how to make the lines thicker but i need when you click the button the lines turn thicker like the As changes.

View 9 Replies

ActionScript 1/2 :: Bitmap/Texture Coloring Book In Flash?

Jan 12, 2010

I want to recreate a coloring book seen on [URL]
 
I want to use the same concept except I want to use a library of jpegs (bitmaps) as my color swatches.
 
Here is my version: [URL]

View 3 Replies

ActionScript 3.0 :: Coloring Book Application Written In Flash?

Jul 21, 2011

[URL] I want to know how to color a image not with any color but with exact color for example sky we can only color with blue if we color with any other color that image(sky) doesn't color

View 1 Replies

ActionScript 2.0 :: Printing Coloring Book - Choosing Specific Area?

Apr 29, 2003

I have a movie with one frame, and movieclips which can be filled with color are attached. The drawings can be printed with color, but the whole stage is printed and the #b thingy doesn't seem to work. (I've got a box with the wanted print size on a separate layer named #b). If I create a keyframe on frame 2 and move the boundary box there, the print size is adjusted to the box, BUT... the colors are not printed, and all the movieclips which have _visible = 0 are also printed. So it seems I have to choose between printing the whole stage and printing the wanted area without color and with hidden lines...

View 2 Replies

ActionScript 2.0 :: Use Bitmap Fills Instead Of Solid Colors For The Coloring Book By Zelwyn?

Feb 23, 2010

Is there way to use bitmap fills instead of solid colors for the Coloring Book by Zelwyn?I want to color shapes with bitmap fills. If the user changes his mind, then he could recolor the shape with a new bitmap.It would be the exact same as the coloring book, except using image bitmap fills.

View 4 Replies

ActionScript 2.0 :: Make A Drawing Board(like Colouring Book) Where When Click And MOVE THE MOUSE It Colours The Object?

Jun 14, 2006

i am trying to make a drawing board(like colouring book) where when i click and MOVE THE MOUSE it colours the object(more like a brush and not as a paint bucket)i would like to know how to colour objects individually(without coloring background) and the most IMPORTANT is there any way to detect what percentage of object had been colored(like if 100% of object coloured something happens!)

View 2 Replies

ActionScript 2.0 :: Interactive Coloring Book - Large Blank Box At The Top Of The Color Pallet Isnt Changing Color?

Apr 27, 2009

i have been doing this tutorial http:[url]..but i am stuck on PART 8, i have done everything the tutorial has said so far (although my image and the colors used are different) but the large blank box at the top of the color pallet isnt changing color when i click on any color from the pallet.

Also this tutorial doesnt say what version of flash and actionscript is best suited for this.Currently i am using CS4 & Action Script 2.0 but i don't know if this is correct. below there is a link to the fla. file that Coloring_Book.fla.

View 1 Replies

ActionScript 2.0 :: Button Does Not Do As Directed And Resets

Mar 13, 2007

I have attached the following to a button:
on (press) {
gotoAndPlay(1);
}
or
on (release) {
gotoAndPlay(1);
}

It is meant to take the user back to frame one where they can play a game again. The only problem is that it doesn't work. When you click the button it goes to the frame but quickly resets back to the frame where the button is located. I have put stop(); code where relevant. I am unsure on what to do. I just want the user to be able to go to different frames but the button keeps reseting to the frame where it is originally located.

View 5 Replies

ActionScript 3.0 :: Rotating Slideshow - Next Button Not Resets Properly

Nov 12, 2009

I have this rotating slideshow. It works just fine when you allow it move through the four images that I want to display, it resets properly. I need to work on the 'next' button. It doesn't reset properly.

Code:
Select allimport gs.TweenLite;
//import fl.motion.easing.Quartic;
var slidePositions:Array = new Array(0,-1000,-2000,-3000,-4000);
var currentSlide:Number = 0;
var slideDuration:Number = 3;
getNext();
[Code] .....

View 1 Replies

ActionScript 3.0 :: Make A Button That When Pressed It Resets/changes The Position Of A Object?

Nov 6, 2010

button to reset position (action-script 3)  how do you make a button that when pressed it resets/changes the position of a object yes i am new to action script 3 but not to flash i want button to change the x y coordinates back to the original but dont know how?     

View 1 Replies

ActionScript 2.0 :: Move My Mouse To The Button It Resets The Movie Clips Thats Playing

Apr 18, 2011

I am having a movie clip playing on a loop on the ON frame of a button , and something else on the OVER frame, and everytime i move my mouse to the button it resets the movie clips thats playing. heres my file:
[URL]

View 1 Replies

ActionScript 3.0 :: Oogle Map Stops All Other Swf Files From Working Within Book / When Turn Page

Jul 14, 2011

I have successfully added a Google Map Flash API using AS3 to page turning software that I use but the issue is when I upload it to the server online the Google Map stops all other swf files from working within the book when I turn a page. The map works fine online but removes two pages either side of where the map is placed. Anybody know why this is happening and any solution on how to get it working? Everything within the page turning software works fine when I test it locally so the issue is online somewhere. Maybe I could use something that stops the map from working when the page is changed?

View 0 Replies

ActionScript 2.0 :: Zoom Out And Every Thing Has To Be Like The Beginning When Click On The Button Once

Mar 29, 2009

I have a movie clip(a large image that has the same size as the stage) and a button in a square that is small (150x150) . The zoom has to be like this: I click on the button once and I have to zoom in (only once) exactly where the square is (in the center of it). When I click the zoom button again I have to zoom out and every thing has to be like like the beginning. This is the code I have:

[Code]...

View 6 Replies

Actionscript 3 :: Using Graphics.clear Not Working As Expected?

Mar 12, 2012

Would anyone know why using graphics.clear(); in this example is preventing the graphics from being drawn?

e.g. the following code works and the lines are drawn.

var my_shape:Shape = new Shape();
my_shape.graphics.lineStyle(2, 0x00FF00, 1);
addChild(my_shape);

[Code]....

I'm wanting to animate the line moving so would like to clear the previous drawing before redrawing the lines.

View 1 Replies

Flex :: Datagridview - Array Objects And Datagrid With Link Button (Clear Button) In Adobe?

Jun 21, 2009

I have an an array of objects. I populate the datagrid from the array. The nmber of columns in the datagrid is fix i.e.5 and the first column always shows serial number (0,1,2,3,4). I have a link button called 'CLEAR' in the last column of the datagrid.

1> How do I make the clear button visible only when the row is particularly clicked 2> When the clear button is clicked, how do I make the contents of that particular row cleared. Not deleted, only cleared to insert data again. Also, the serial number (0,1,2,3,4) should not be cleared, nor deleted. How to do this ?

View 1 Replies

ActionScript 3.0 :: A Board Game - Get Classes To Putting Together A Board Game?

Mar 22, 2010

where to get classes to putting together a board game, free of course.I do not want to use them actually but get the idea of how mine would incorporate into the classes.I have a board game where I want each square on the board to know if it is occupied or not, to change its color, and to keep track of what is actually happening with it.

View 2 Replies

Professional :: Flipping Book Component Page Turning Button?

Mar 24, 2011

I have a flipping book component. It come with the basic page turning function where the user can turn each page manually. Because there are many chapters,I created buttons under the pages so that the user can navigate directly to specific pages. I can not find and create the codeto attach to each button to make the pages flip directly to the indicated page? The component uses AS2,Here is main code that appears at frame 1.

import mx.containers.Window;
// Popup size
popup_width = 900;

[code]......

View 3 Replies

Visual Studio :: Good Programming Book With Good Working Examples And Is Tutorial Approach

Nov 27, 2010

Looking for a programming book that is in tutorial approach. Example this chapter teaches you how to do a login form. In the second chapter it teaches you how to integrate the login for to another app.Basically I'm looking for a book that teaches you real working application rather than abstract ideas. Programming language I have in mind is Adobe Air/Flex, Visual Basic. Functions I have in mind should at least cover Drag and Drops, Integration to a web form (form entry) and customizable interfaces.The languages i had in mind isn't fix. If you know a programming platform that has little code or easy to learn but still be able to develop a cool application.

View 3 Replies

ActionScript 3.0 :: Graphics Clear() Doesn't Clear Bitmap Data From BeginBitmapFill()?

Jul 30, 2011

I'm working on a game whose background has many layers that each scroll at different speeds.

Inside each layer I have a Sprite, I've started using graphics.beginBitmapFill, but what I've found is that the graphics.clear() function doesn't actually clear the contents set by the previous call to graphics.begin.BitmapFill. Each frame, I adjust the matrix to shift the layer as needed.  Then, I call graphics.clear() and graphics.beginBitmapFill() with the adjusted matrix. Since my layers have alphas in the bitmap, I can see the contents that was drawn the previous frame.

View 3 Replies

ActionScript 2.0 :: Make A Specific Thing Happen While Clicking A Specific Button

Jan 17, 2006

What I want is a hint how to make a specific thing happen while clicking a specific button. Like "if I click button 1, do this". Would like to use this script though I'm gonna add buttons over time and this is an easy way to have the functionality working.

Here's the code:

Attach Code

function hitButton(btn) {
btn.onRollOver = function() {
this.colorTo (0xC4006A);

[Code]....

View 4 Replies

ActionScript 3.0 :: Clear A Textarea When Pressed On A Button

Sep 18, 2009

I've got a small problem with my flash site. I've got imported html text on my site and scroll buttons on the side. But when you click on a button. It tends to not display the text properly when you scrolled down on a previous page. What I would like is that when you click on a button it unloads the previous text. Because I don't know what could be the solution for this I uploaded the .fla

View 1 Replies

ActionScript 3.0 :: Clear Text Fields Button?

Jul 18, 2010

I need a button to clear all the entries in the text fields of a form, so the user can clear all their entries and start again.

View 4 Replies

ActionScript 1/2 :: Create A Button To Clear Text?

Feb 2, 2012

How does one create a button or keyboard shortcut which deletes all text in the text field?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved