ActionScript 1/2 :: Drawing Program In Flash?

Feb 11, 2010

I have a small flash that I'd like to expand upon, and basically I'm wondering if it's possible to Make a button that lets you erase things on click, rather than clearing the screen.Draw lines of different colours/thicknessHave the Flash output a code for the drawing (similar to Punk-o-Matic 1/2) and be able to put it into the Flash in a text form to have it output the picture. (Thus allowing sharing of pictures).Here's the code.
 
// 1. SETTING THINGS_root.createEmptyMovieClip("line",1);
// 2. EVENTS IN _ROOT:_root.onMouseDown = function(){ line.moveTo(_xmouse,_ymouse); line.lineStyle(2,0x000000,100); this.onMouseMove = function(){  line.lineTo(_xmouse,_ymouse);  updateAfterEvent(); }}_root.onMouseUp = function(){ this.onMouseMove = null;}

Also see included .fla. It's very small as all it features is a default stage that you can draw on, with an Erase button that clears the screen.

View 4 Replies


Similar Posts:


ActionScript 3.0 :: Drawing Program That Exports The SVG Coordinates To A .txt And Php?

Jan 27, 2009

I've created a drawing program that exports the SVG coordinates to a .txt and php loads the coordinates back in to flash. But is there a way to use the coordinates and have the drawing on the board?

Is there another way to do this instead of using the SVG coordinates?

View 2 Replies

ActionScript 3.0 :: Convert A Drawing From SWF To Image/PDF Without Any Serverside Program

Jan 29, 2009

I need a help in AS 3.0. The requirement is, user needs to draw something and take a screenshot or in the PDF format from flash swf by clicking a Save button[Save button will be in the same flash file]. Is it possible in AS 3.0 without any other server-side program?

This is very urgent. Please let me know whether this is possible or not.

View 9 Replies

ActionScript 2.0 :: Start An Unrelated Program (such As Window's Media Player) From Inside Of A Flash Program?

Sep 29, 2010

Is there a way to start an unrelated program (such as Window's media player) from inside of a flash program?

View 2 Replies

Professional :: Adding "new Page" Functionality For Drawing Program?

Mar 28, 2010

I have created a paint/drawing program, and I want to be able to add a button to the menu that allows you to open a new page. When you create the new page it creates a tab inside of the application and not just opening a new browser tab. I can do the new page to a new browser tab, but I want to be able to keep it inside the program itself.

View 2 Replies

ActionScript 3.0 :: Add An Exit Button Onto Program So When Its Clicked It Exits The Program Completely

Nov 4, 2008

Im trying to add an exit button onto my program so when its clicked it exits the program completely.. I've tried some of the suggestions on the forums but they arnt working. what I have been using and its not working..

// CLICK to Exit
exit_Btn.addEventListener("mouseUp", goExit);
function goExit(evt:MouseEvent) {
fscommand("quit");
};

View 9 Replies

ActionScript 2.0 :: Program A Timer For A Typing Tutorial Program?

Mar 24, 2003

I need to program a timer for a typing tutorial program. It needs to go to 5 minutes. When the timer gets to 5 minutes the movie has to go to frame 13 which displays the results of the typing test.

View 1 Replies

Flash8 : Run A Flash Program From Another Flash Program?

Jan 29, 2010

I have created a flash program and I would like to run a second flash program from inside the first. To explain, say I am running a program that draws a circle and fills it with a color. Then, I have designed a second program that will divide a circle into sectors by entering percentages, to turn that circle into a pie chart. Is there a way to be running the "draw a circle" program and have a button that opens the "divide the circle into sectors" program in a new window and then passes information from that program to the first program. I am sure I will have to send the information from the second program to an XML file and then have the first program recieve it from the XML file (which I can do), but I don't know if I can run the second program from inside the first program.

View 1 Replies

Actionscript :: Connection From Program To The Server Using XAMPP Server And Program In Flex?

Oct 26, 2010

i have the following code ]

[Code]...

but no connection established what is the reason behind not know help required and one more thing XAMPP is installed in D: drive.

View 1 Replies

ActionScript 3.0 :: Pencil Tool - Drawing Above A Image But The Drawing Is Below The Picture

Nov 9, 2010

i've tried to simulate a pencil tool, for drawing above a imagem, but the drawing is below the picture. How fix it?

[Code]....

View 3 Replies

ActionScript 3.0 :: Generate Drawing API Data From Drawing Object?

Jul 22, 2009

Basically I've got a reasonably complex drawing object in a fla and I want to reproduce it in a class definition using the drawing api. However obviously this is a tedious task, so is there some trick or automated method of doing this?

Last time I needed to do this it was a drawing of an arrow and I ended up writing down x,y,width,height values for everything but this one has curves in it which I don't have experience with drawing anyway.

View 2 Replies

ActionScript 2.0 :: Enabling Drawing Only When Drawing = True

Sep 28, 2009

I cannot get this to work. Without the "var drawing", "var drawing being true or false" and the "if statement", it works fine. But I need to add the "var drawing" so that you can only draw if you turn it on by pressing the "draw_btn" button. Note, I do not get an error, the script "apparently" contains no errors. Here is the code:

ActionScript Code:
var drawing = false
_root.createEmptyMovieClip("myLine", 0);

[Code].....

View 3 Replies

ActionScript 3.0 :: Drawing Over A Movieclip In A Custom Drawing App?

Jan 13, 2012

I've created a drawing tool which allows the user to draw on the canvas, the problem is that if I try to draw over a movieclip nothing happens. Is there a way I can allow for the user to draw over movieclips? For example if I had a background of paper?

Here's the code I'm using for it:

// This code is for drawing the lines on the page
//1.
var drawingLine:MovieClip = new MovieClip();
addChildAt(drawingLine,0);

[code]....

View 8 Replies

Create A Flash Program That Can Be Run On Facebook?

Apr 17, 2009

im trying to create a flash program that can be run on facebook. they require that the version be 9.0.115. how do i make sure the swf file i publish is this version? im using adobe flash cs3 proffesional

View 1 Replies

What Is The Best Program To Make Flash Games

Jun 10, 2009

What is the best program to make flash games?

View 1 Replies

What Program To Use For Editing A Flash Website

Feb 22, 2010

I had posted a similar query earlier but didn't get a satisfactory reply. I need to edit a flash website (only the text needs to be changed). Which software program should I use ? It is required to convert every text on the site (links or no links) to be converted from language A to language B.

View 1 Replies

Program That Cross Over Of Flash Back Into Php?

Aug 23, 2010

I'm trying to make browser game and I was wondering if this is possible.99% of the game is html/php/mysql but I wanted one little mini game to be in flash.after playing the flash game if you win you get +1 of whatever to your account. So my question is can someone program that cross over of flash back into php?

View 2 Replies

Import A Python Program Into Flash

Aug 25, 2010

Is there a way to imprt a python program into flash, so that you would get what you would see in python, but in .swf file (I'd like to make a text-only game for Kongregate)

View 1 Replies

ActionScript 3.0 :: Convert Program From Vb.net To Flash As3

Nov 15, 2010

i try to convert a program from vb.net to flash as3[code]

View 1 Replies

Retriving Data From Another Flash Program?

Feb 11, 2011

Currently learning flash and what I would like to do is capture information from another flash program if thats possible?Basically im playing a persistent browser based game written in flash and on mouseover of a tile in the world map it displays some information, specifically in game co-ordinates and details of whats there.Is it possible to capture that with a flash program? Or is that beyond the bounds of flash? I know it can be done in other languages but its been years since I've done any programming.

View 2 Replies

ActionScript 3.0 :: Exit The Program Using Flash Cs4?

Apr 19, 2009

i am doing a group project , about a test. At the end of the test , i would like to implement a print button to print the result, how to do it?

View 3 Replies

Possible To Get Computer Name Where Flash Program Is Running?

Jun 19, 2009

Is it possible to get computer name where the flash program is running? Not on the website, the swf will be run directly on the PC.

View 2 Replies

ActionScript 3.0 :: Add Accessibility To A Flash Program?

Sep 22, 2008

I need to add accessibility to a flash program which I have created. I can make the screen reader state all of the different buttons and at the top level of a combobox. However if I traverse the combobox none of the items are mentioned by the screenreader. I've tried various things down to trying to set the accessibility properties of the combobox items as though they were an array cb[0].accessibilityProperties = accessProps0; but nothing seems to work.

View 2 Replies

ActionScript 3.0 :: Timeout For Flash Program?

Aug 18, 2009

I am looking for some code that will make my program restart if it remains idle for a certain amount of time. I have looked around a good bit and cant find one that works in ActionScript 3.0.

View 6 Replies

ActionScript 3.0 :: Get A Program To Run Inside Flash?

Feb 27, 2010

How do I get a program on my harddrive to run inside flash on my computer? I would like to build a Flash front end for my boat pc, but I would need to be able able to open up a program inside a flash.exe? would a external .ini File work? if so what code would I use internally to execute the .ini.

View 2 Replies

Professional :: Take An Existing Flash Program And Get It To Run In Air?

Apr 19, 2011

I was curious if you can take an existing flash program and get it to run in Air, or do you have to recode the entire thing. I see lots of stuff on Flex to Air, but not much of anything on Flash to Air.

View 5 Replies

Flash - Swf File Decompiling Program?

Aug 11, 2010

I have decompiled an swf file in to .fla file by using a registered decompiling software, in that fla file there is code "getURL("./home.html", "_self");" , but when i run this file getting the following error.The currently targeted Flash Player does not support the getURL action.

View 1 Replies

Flash :: Program The Path Of A Bullet?

Nov 8, 2010

I am playing around with ActionScript 3 and trying to build a very simple prototype for a video game (top-down action/shooter) and realized that handling bullets is a little bit more challenging than I originally imagined.

In order to get a fairly decent "flight" of the bullet between the character and the target, I ended up using a highly modified version of Bresenham's Line Algorithm to determine the flight path of the bullet and then merely draw a tiny flash.geom.Rectangle object at the appropriate place on that "flight path" during the draw-frame stage of my application.

I haven't noticed any real problems, but I just can't imagine this being the best way to handle bullets in a Flash game. I imagine that once there are multiple enemy players on the screen and lots of bullets flying around (especially once I code in automatic weapons) that things could come grinding to a halt.

What am I missing here? I'm not really a game developer and so most of the things I'm doing I've just "made up" on the spot, but I can't figure out how to effectively handle bullets in Flash.

EDIT: As requested, here is "my" Bresenham code. I say "my" in quotes, because I basically ripped this from somewhere on the internet. My changes to the algorithm basically involve the lines at the bottom. The original implementation would find the path from player character to the target, except that every once in a while (and I wasted a little bit of time trying to figure this out but never got anywhere) it will generate the path from the target to the player. To "fix" this, I ended up just checking the first X/Y values from the path array and reversing the array if those values didn't match the X/Y values of my player character.

[Code]...

View 4 Replies

Java :: Import Program To Flash?

Jun 6, 2011

I'm making a flash game and need to use part of a java program. Is there a way to import the java program into flash? Only a section of the game will be using the java program, so I don't want to import the flash part into java...

View 1 Replies

OSX :: DVD Program And Flash Not Working Right On MacBook Pro?

Jan 12, 2012

I have a DVD that came with a school book the book is called CompTIA A+ Guide to Managing and Maintaining Your PC. It came with a DVD that has some interactive labs on it that work thru html files and flash player. There is a master HTML file on the disk that runs the whole thing. After everything is activated with numbers and all that jazz you have a screen that lists all the labs you can do. You have to set Flash up to allow access to a folder on the DVD that holds the labs HTML files.

I have this working on my PC thru Firefox and Internet Explore. I want to be able to do this on my MacBook pro. So far i can't get it to work on Safari or Firefox or Opera on my Mac. I have set up flash the same way and if I use Finder to go directly to the chapter1_lab1.html file it works. But when i try and do it by access the master HTML file and clicking on one of the labs listed it doesn't work. Safari sits on a blank screen and Firefox gives me this error.

File not found
Firefox can't find the file at file///Volumes/LabConnection/Labs/2207012/Chapter1_Lab1/chapter1_lab1.html

What i have figured out is that on the DVD the files are listed with capitals (Chapter1_Lab1 not chapter1_lab1) If i enter this part into the address bar of Firefox ( file///Volumes/LabConnection/Labs/2207012/Chapter1_Lab1/chapter1_lab1.html) I get the same error if I change the c and l to Capitals it plays the lab. Hope this is understandable. What do I need to do to make it read the file since the master is telling to look for lower case files and for some reason my Mac won't recognize it has the same file with the upper case letters.

View 1 Replies







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