ActionScript 2.0 :: Adding A Box To The Sketch Pad?
Feb 23, 2007
I have a simple drawing pad that works, but I want to allow the user to draw only in a certain area (only within the box).
My current code is:
this.createEmptyMovieClip("your_lines", 100);
var Drawing_in_progress:Boolean = false;
//sets up a mouse listener event
[Code].....
View 2 Replies
Similar Posts:
Jan 26, 2009
I'm updating a sketch pad application for someone and I'm running into trouble creating a highlighter effect. What I'm trying to do is avoid having the highlighter opacity change when lines are drawn on top of each other. First I tried setting the line opacity to 50%. As expected, the opacity increases where the lines cross. So far, other sketch pad FLAs I've found have the same problem. Then I tried setting the opacity of the movie clip I'm drawing into to 50%, and drew lines at 100%. Surprisingly, the result is the same as above. Finally, I decided to just draw into a mask to reveal a 50% yellow mc below. But of course lines don't work in masks, so that didn't work either. I suppose I could draw a bunch of circles between points to create a line but that doesn't seem like it would be the best solution.
View 1 Replies
Feb 3, 2010
I am very new to flash and only know the basics, but would like to put together a flash animation similar to this website [url]...
View 3 Replies
Mar 29, 2011
I am brand new to all Adobe applications but have the CS5 Master Suite and have been taking many courses through Lynda.com for months. I wish to learn how to make a small video of an object being sketched. That is use a drawing tablet and stylus (whatever they are called...I have NO idea) and trace over a photo. When finished I wish to have the video of the slowly created tracing of the object sped up and when complete fade away and the actual photograph of the object traced overlap fade into view. In other words use this as a transition technique for presenting a photograph of an object rather then just have it "pop" onto the screen. My questions are: (1) What special drawing pad and stylus are required (if any....can I do it with just the mouse?) (2) Is Flash Professional the program one would use to make such a video? If not which Adobe program is best suited to this task, and (3) Is there a NAME to this "technique" in whatever program was given in answer to question two so I know where to begin and/or look for a tutorial on how to accomplish this technique?
View 2 Replies
Nov 10, 2011
I'm trying to convert a processing sketch to a flash as3 file, and I'm getting hung up on two of processing's commands - pushMatrix() and popMatrix() - how to convert these in flash?
Essentially I just need to store the matrix of lines I've drawn so far and draw a new line, and this gets done recursively. Here's my code:
var theta;
var xpos:Number = 0;
addEventListener(Event.ENTER_FRAME,draw)
function draw(e:Event) {
[Code].....
View 1 Replies
Mar 14, 2009
I am trying to create a image downloader. I am having some problems with converting the MC...
Code:
stop();
if (isset($GLOBALS["HTTP_RAW_POST_DATA"])) {
// get bytearray
$jpg = $GLOBALS["HTTP_RAW_POST_DATA"];
// add headers for download dialog-box
[Code] .....
I get this error when I run the file:
ArgumentError: Error #2015: Invalid BitmapData.
at flash.display::BitmapData()
at DwnImg_fla::MainTimeline/frame1()
Here is the tutorial link: [URL]
View 3 Replies
Jul 29, 2010
I am working a lot with adobe recently but its the first time for flash. i have been searching the net for the past hours but didnt find whatwhat i need is a small animation that records the pen movements i make as a visible path. I want to sketch a logo for a company and want the the logo to look like its being drawn on the spot for the presentation.all i could come up with is make a dot, next frame next dot next frame next dot and so on. but that does not only look like crap it also doesnt seem like the brightest choice to me.
View 2 Replies
Mar 27, 2007
I want to create an paint application or sketch book in flash. But finally the design should get saved for perticular user. need to store it in database.
Can i send Movieclip to PHP? Will i able to retrive that movieclip again to show what user has saved.
View 4 Replies
Oct 12, 2011
By the way i want to make a visualization about a math process to show partial function graph.
I think i can make a scene which in 1000x1000 pixels. I'll start from top of scene and when i press a button i'll move camera to second section which i want to do sketch. I want to make a sketchpad which can draw in a 2 part movieclip. First part is -X section of XY Axis Graph. Second part is +X section of XY Axis Graph. I'll put image of XY Axis Graph to -X and +X section of XY Axis Graph. So it'll be seem like one part. And i'll draw to -X section. After that i'll skip to second sketchpad with camera. And i'll make same thing. But for now i'll draw to +X. And when i press conclusion button camera will skip to bottom of scene and move -X of figure1 and +X of figure2 to bottom. So i can see figure1's -X section and figure2's +X section as merged in bottom. So it'll show to me partial function graph.
But problem is sketchpad is drawing to _root. So i'm unable to move sketch or shapes on XY Axis Graph. But if i can draw that to movie clip i can move it like an object with drawing and merge it like i want.
So i want to make a sketchpad which make drawing in limits of movieclip.
how i can do it ? Also i'm using following code:
Code:
import mx.controls.Loader;
// 1. SETTING THINGS
// ----------------
_root.createEmptyMovieClip("line",1);
[Code]....
View 2 Replies
Nov 5, 2009
I'm trying to do a little comic comedy type video in Flash. I've done an outline sketch with the pen tool of my first character, now I want to color it BUT I want to keep the colors and the outline sketch separated on two different layers. Is there a way I can select the path (outline) on layer A and then colorize it with the bucket tool on layer B? The problem I'm having is that every object I select it automatically jumps to that corresponding layer.
One reason why I want to do it this way is I still want to continue working freely on the outline sketch since it's not fully finished, so that I just can blend the colors out and keep working on the outline, at the same time I want to color it while I go just to see where it's going and to make sure that I'm not wasting my time unnecessarily with trying to do a outline just to find out that it won't work out at the end.
how to do a comic type animation, how to create the characters, how to make them move and talk? It can be a free or paid resource.
View 2 Replies
Nov 24, 2011
The name of my DocumentClass is Main. So, what's the difference between :
var myClass:Main = new Main();
var mcInLibrary:MovieClip ;
/////////////////////////////////////////[code]............
View 1 Replies
Jan 11, 2007
I've stumbled across a very interesting tutorialBut, I've noticed a little detail. When you click on the big image of the finished example on the first page of tutorial, it acts like a link. When I have downloaded finished .fla source, links are nicely written in the images.xml file, but the links in the .fla file don't work.
View 2 Replies
May 14, 2010
As usual I click on the button and expect the actions palette to become active allowing me to add the code:
on (release) {
getURL("http://www.linkgoeshere.com");
}
But in CS4 it isn't active when I click on the button. When I click on the button to assign an action it tells me "The current selection cannot have actions applied to it".
View 1 Replies
Aug 14, 2009
I have created a progress bar using AS2 before but I only vaggly remember how I know that it involes using some code that deals with percentages but other then that I don't remember how to do it and I really don't remember how to apply it to my my .swf. and have it appear in my HTML page.My flash file was created using AS2 in Flash CS3
View 1 Replies
Nov 17, 2010
I am using a Carousel i found online , everything is working fine and it also uses am XML file which contains the icons and the tooltip . If somebody could explain how i would add a hyperlink into the XML file , so each icon points to its desired location , my XML is as follows :
Quote:
<icons>
<icon image="icon1.png" tooltip="Other Species"/>
<icon image="icon2.png" tooltip="Contact us!" />
[Code]....
View 1 Replies
Jan 22, 2010
The XML looks like
<menu_item name="Contact Me">
<img filename="contact.swf" title="Contact" thumbnail="sample_th.jpg" or_w="500" or_h="550"><![CDATA[This is a <font color='#999999'>TEST</font> get use to it.]]></img>
[code]....
View 2 Replies
Sep 14, 2011
Why I trace(_mc1._mc2) will get undefined but not [object MovieClip] ?
ActionScript Code:
var _mc1:MovieClip = new MovieClip();
var _mc2:MovieClip = new MovieClip();
[Code].....
View 6 Replies
Jan 27, 2009
Well I have something like this:
<tests>
<test>1</test>
</tests>
[Code]....
Is there a way to make it add the child properly instead of botching the entry up like that?
Code:
var test:XML = new XML("<tests><test>1</test></tests>");
test.appendChild(new XML("<test>2</test>"));
trace(test);
View 1 Replies
Mar 25, 2009
I am having problems with a flash template that I am redesigning. Currently when the movie loads it automatically starts a song in the background. When you click my music navigation link my music page comes up and there are a few links there that I want to add music to. I also need to stop that background music so the song from the link can play.
View 1 Replies
Mar 30, 2009
Is there actionscrip to add a delay to something....
e.g 1.
I click on a button, i want MovieClip1 to move to the right, then i want a 3 second gap and then i want MovieClip2 to move downwards....
View 2 Replies
Apr 15, 2009
it is possible for me to add cut-out shapes onto Flash? I have cut them out in photoshop and pasted on a transparent background, but when I open them in Flash the background has changed to white.
View 1 Replies
Jun 9, 2009
I've struggled to get my animation working the way it is currently and now the functionality has been requested to change and quite frankly I just don't think I would be able to work it out as I'm not a Flash developer.[URL]It's a sliding image gallery. There are 13 images and when you roll your mouse over an image a set of filters are applied (to the movieclip wrapping the image) that gives it a glow/drop shadow effect.The images move based on the mouse position.
1. The animation still needs to move on the mouse position, but also the when the animation loads it should automatically move in one direction (images moving left across the stage) but when the user rolls their mouse over the animation then the mouse position takes control. Once the user rolls their mouse away from the animation then the images need to keep moving in the last direction (at a set speed)
2. When the user rolls their mouse over an image it needs to get bigger - but wont some of the images then overlap, so each movieclip would then have to dynamically move to the top of the stack to make sure they overlap the other images correctly
3. The animation needs to loop!?
View 3 Replies
Feb 12, 2010
I'm making a slideshow with 7 pictures in it, what i want to do is add the images to the array.
image names/class(?) are image1, image2, image3, ... image7 and I'm adding them in a loop.
Code:
var arrayName:Array = new Array();
for(var i:int=0;i<6;i++){
arrayName[i] = //this is where I'm stuck
}
need help with that one line of code, and how to get the name right while using numbers in the array elements and, if possible, the class.
I've never done this before, but I'm prety sure its possible to store almost anything in an array.
View 2 Replies
Mar 22, 2010
have a number of movie clips on the stage. Instead of applying action listener to each one, Can I apply actionlistener to the linkage name?
function Start():void
{
mc_1.addEventListener(MouseEvent.ROLL_OVER, moveObject);
[code].....
View 1 Replies
Aug 27, 2010
So I like the whole convert stroke to fill option in the Modify menu, but what if I want to apply a stroke to a fill?
In other words, if I created a circle, then delete the stroke, is there any way to the regenerate the stroke? I mean, if I press A I can see the contours of the fill - can I just turn that into a stroke? In the properties menu, if I click on stroke (which as its colour has the white box with a red diagonal line) it's all greyed out. Am I missing something obvious?
View 2 Replies
Jul 19, 2011
i've spent lots of hours looking up the internet trying many techniques but nothing do.i just want to add inertia to my car.
var car:Car = new Car(); var power = 10; addChild(car); car.x = 470; car.y = 200; var dx = 0; var dy = 0;
stage.addEventListener(KeyboardEvent.KEY_DOWN, keyhandler); function keyhandler(event:KeyboardEvent):void {
switch(event.keyCode)[code].............
View 1 Replies
Mar 5, 2012
I'm making a sort of interactive graphic novel and was wondering how would I implement some sort of inventory system. Btw, I'm using Actionscript 2.0
----INVENTORY SYSTEM 001----
You see, I would like the ending screen to show a summary of what the player has done in the game.And certain points in the game would add certain 'items' into the inventory which will in turn affect what is displayed in the summary screen.The 'items' here being words or phrases.eg:
Quote:
You _______ with the _______ and proceeded to _______. But you _______.
For example, if the player chooses Path A, summary screen will show: eg:
Quote: You stabbed the unicorn with the shark fin and proceeded to shag your mistress. But you ate a pecan pie.But if the player chooses Path B, the summary screen will instead show eg:
Quote: You stabbed the tree with the shark fin and proceeded to shag the corned beef. But you smashed a watermelon and caused a civil war.
----INVENTORY SYSTEM 002----
I think with a few modifications, this inventory system could also be used to affect the outcome of the movie depending on what item the player currently owns? Please enlighten me if this system is feasible.
The player is given a choice to pick up a spoon or a fork in the beginning of the game.The player is later faced with a soup crisis. If the player has previously picked up a spoon, the soup can be consumed. Otherwise, the soup is left well alone.
View 13 Replies
Jan 16, 2009
Problem adding an external nav swf (bottom of attached code).1046: Type was not found or was not a compile-time constant: Loader. I used the loader code in another projectwithout problems.It was in my actions layer on the timeline however the loader x,y addChild were NOT in a function.
View 2 Replies
May 6, 2009
I would like to add a timer that keeps track of total time and also current time that runs next to my seek bar component for my flash movie. How can I do this? For example: 1:11 | 2:04 ... the 1:11 displays the current time of the movie and the 2:04 would represent the total time of the video.
View 20 Replies
Jun 21, 2009
I'm trying to add a rectangle to the stage.I've imported the following.[code]
View 1 Replies