ActionScript 2.0 :: Capturing The Stage By User?
Apr 10, 2007
I've created a drawing app via AS and I'm trying to design a button that when pressed, the user essentially saves his/her drawing as an image file into a certain directory on the web
View 2 Replies
Similar Posts:
Jan 23, 2011
I'm sure it's easy to do, but I just cannot figure it out. I've created a timer but want to let the user set default values to start at so they don't have to modify the start time each time the program starts.I was able to create a text box but it is un-editable in the actual program. It displays '00' nicely but it's useless. I haven't even gotten to the point where the data is pulled and stored.
ActionScript Code:
var timerHrs1:TextField = new TextField();
timerHrs1.type = TextFieldType.INPUT;
[code]......
View 3 Replies
Nov 14, 2008
I've written a function that restricts user input to just numbers (0-9,.) and stores the input in the associative array, userInput[]. It works but seems inefficient looping through the entire input text string to scrub out invalid characters. Anyone have suggestions for a more efficient approach? Note that a working solution must correctly process mouse or cursor key movements/edits within the input box.
Also, you can see I'm using the KeyboardEvent.KEY_UP event to trigger the processing. The docs seem to indicate TextEvent.TEXT_INPUT is really the proper event for this purpose. I started with TextEvent.TEXT_INPUT but found the event is triggered before the last key pressed is actually added to the instance. The result is that the function was always one characterbehind. Is there an easy way to get the current text in the input box, including the last key pressed, when processing TextEvent.TEXT_INPUT?
View 5 Replies
Oct 27, 2009
I'm new to Flash media server family. I need a server that can capture user recorded video/audio (through a flash recorder) and save it as a flv file on the server. which one of those server family is for me? I'm currently doing it using Red5, but would like to try out Flash media server as well.
View 1 Replies
Sep 27, 2010
So i would like to know if its possible to have stage capture(like a screen grab) i have a user generated game that allows them to design an image, but i also want to be able to allow them the submit their drawing after they are completed. writing the code for the submit button(that captures the stage). And the second part how would i let them submit it?
View 1 Replies
Jul 19, 2010
I am trying to capture mouse events in flash while the mouse is being held down. The intention is to keep reciving events as long as the mouse is pressed, even if the cursor leaves the flash element. That's the behavior I get on all browsers other than IE, which only fires events while the cursor is inside the stage.
I'm pretty sure I've seen such "well behaved" flash applets work in IE before.
View 1 Replies
Dec 11, 2009
I want the ability to go back to frame 1 when a user clicks anywhere on the stage that doesn't contain an object. Is this possible?
View 2 Replies
Apr 26, 2009
I'm trying to make a "paint on" effect so that when the user clicks down, they can paint whatever shape onto the stage. I really need it to look like a "spray paint" effect, and I'm having a hard time animating this.
View 4 Replies
Oct 8, 2009
What is the difference between dragging a movieClip to stage from the user interface and inserting it from code? What I mean is....I noticed that if I drag a movie clip from the library to the stage, give it an instance name ('xx'), I can access it from code using "this.xx". However, if I add the movieClip from code using:
var ch = new MovieClip();
ch.name = 'xx';
addChild(ch);
I cannot access it using this.xx, but I have to access it using this.getChildByName('xx');
View 2 Replies
May 12, 2005
I have a movie clip on the stage, which is a record. What I want, is for the user to be able to move the mouse over, click down, and spin the record left and right. To confuse matters, I would like to keep the record spinning (tapering to a stop) after they flick the cursor across the screen in either (any) direction.
I also need to set a maximum velocity (?), whereby when it is spun hard enough, an event is triggered. I gather this will just involve querying the number of rotations within a given time. The alternative is to just make a spin animation that activates when its clicked, but I figure this would make it a lil more interesting.
View 3 Replies
May 9, 2010
Is there any way to scale up stage according to user's screen resolution?
because:
stage.align = StageAlign.TOP_LEFT; stage.scaleMode = StageScaleMode.NO_SCALE;
and width: 100% in html document
doesn't work when screen is widther than flash site.
I managed to size up stage in AS2 but I have no idea how to do that in AS3.
View 3 Replies
Sep 6, 2010
I'm a student at Drexel University and I just completed a basic platformer for a actionscript class. My professor docked me some points for the game not working until the user actually clicks within the swf. I've heard that this problem is caused on mac osx, but I don't have any concrete evidence to get the points back. Here's a link to the game if you want to check it out.
[URL]
View 1 Replies
Jul 28, 2011
how can i adjust the stage size to user resolution?
View 3 Replies
Mar 2, 2009
what I'm trying to do is allow the user to pick a section of the stage, click, and have the region defined be copied and show up on the other side of the stage. It may be better explained to think of it like a camera game. The player has cross hairs, can move the square (which tracks the mouse) around the stage, and click to capture that square's pixel information, store it to a new movieclip and display it on another area of the stage.
I've found many resources online about capturing BitmapData, including capturing from embedded FLV videos, but I haven't seem to be able to find anyone who has created something like this which captures from a moving region. However, I have seen it done before in a game that is no longer online from PBSkids.org.
Here is what I have so far. Right now, when I click the movieclip loads all white pixel data and I'm not sure why.
[flash=]import flash.display.BitmapData;
import flash.geom.Rectangle;
import flash.geom.Point;
stop();
[Code].....
View 1 Replies
Jun 25, 2010
'i am doing a game for children where users can drag and drop resize and scale movie clips on stage! The drag and drop is not an issue...however im not quite sure how to do all the rest... is there a way or a tutorial to do this?
View 1 Replies
Jun 25, 2010
'i am doing a game for children where users can drag and drop resize and scale movie clips on stage!
The drag and drop is not an issue...however im not quite sure how to do all the rest.
View 3 Replies
Jun 25, 2010
'i am doing a game for children where users can drag and drop resize and scale movie clips on stage!
The drag and drop is not an issue...however im not quite sure how to do all the rest..
View 1 Replies
Jul 21, 2005
What I want to achieve is active links like in HTML websites.I have 3 buttons on the stage, when the user clicks on the first button it should be highlighted and should remain in that position till the user clicks on the next button. When he clicks on the 2nd button the previous one should come in normal state and the 2nd one should become highlighted and so on....
View 3 Replies
Aug 13, 2006
how to play a sound when a user mouse click on anywhere in the stage?
View 1 Replies
Jun 23, 2010
possible to create a button that will return the user to an exact postion on the stage? For instance, I want to create a back button at the bottom of the stage, and when someone presses it, it takes them to the top of the stage? I am using Flash CS4 on Windows.
View 3 Replies
Jul 11, 2007
I would like a single horizontal line to go across my 100% x 100% stage, but how do I do that? Im thinking its about knowing what resolution the viewer has, and the writing a script for the line, but how?
View 2 Replies
Dec 12, 2009
I'm trying to create a game where circles appear on the stage and when the user clicks on one it disappears and their score is updated. The circles appear for a short time then dissapear. If they dissapear before the user clicks the user looses points. The game is to last 20 seconds then the user will be shown their score and a little thanks for player message. This is what I have so far:
stop();
addEventListener(Event.ENTER_FRAME, playGame);
function playGame(Event):void {
[code]....
Now what I'm having trouble with is all the timing. I need a way to turn the visibility off the circles after a few seconds of being created and I also need to set the duration of the game for 20 seconds.
View 5 Replies
Mar 28, 2012
I have been trying to make a score counter for a small game where the user clicks on a button on the stage, each time the user presses the button the score increments by 10, however I cannot get the score to display on the dynamic text field.
var score:uint;
//scoreCounter is the instance name of the dynamic text box
function updateScore():void{
score += 10;
scoreCounter.text = score.toString();
}
View 2 Replies
Dec 21, 2011
I have create a game and added keydown event on Stage but but problem is user need to click on stage then it start capturing keydown event. I want that when game window open after that user don't need to click on flash stage area for unable keydown event..
View 1 Replies
Aug 18, 2011
Is there a how-to I can follow to help me in selecting technologies and in implementing my solution? the exact behaviour I would like to implement is as follows:
1) page loads
2) webcam starts recording
3) user hits button
4) webcam stops recording
5) video is stored on my server
I have an MVC3 app I need to enhance with video capture functionality. I don't yet understand all the pieces involved but it seems I may have to choose between Flash (which is not supported on iPhones and iPads) and Silverlight.it also seems I need a server-side component like the Flash Media Server. Honestly I'm overwhelmed with all the choices (having to learn ActionScript, Flex, what not).it just occurred to me: if anyone's come across a service that will manage the process for me, that too would be very cool. I'm thinking that maybe someone out there (haven't found them yet but maybe it's a matter of poor keywords) has servers and offers a url I could use in an iframe to have them capture the video for me
View 4 Replies
May 19, 2011
on clicking the Search Icon , a search bar will be visible (ON) if user click anywhere on the stage the search bar will be NO visible(OFF) OR user click on ICON again the search bar will be OFF but it Stage CLICK is triggered without clicking
[Code]...
View 1 Replies
Nov 23, 2009
There is a way to capture the list of parameters passed to SWF? Suppose that I have the following url:
Code:
mymovie.swf?level=1&score=100&23764826347
I would like to capture:
level
score
23764826347
Not the contents, but the NAME of the parameters!
This way, I can, for instances, pass a parameter that be the value itself, such as a code, like this:
Code:
mymovie.swf?427642833467
View 2 Replies
Mar 29, 2010
I have two columns of objects on stage, one on the left side column (A) and one on the right side (column B). Each column has 3 objects in it. For this quiz I want the user to be able to draw a line from each object in column A to the corresponding object in column B.To do this I need to capture the xy coordinates of the first object that the user clicks on and then capture the coordinates of the 2nd object the user clicks on so that I can draw a line between the two of them. Drawing the line is no problem but how do I capture the coordinates of the first object selected and then the 2nd object selected? This is as far as I've got with the code.
var clip:Shape = new Shape()
var startX=0
var startY=0
[code]....
View 1 Replies
Jun 25, 2009
I am trying to do an image capture while in full screen, however the full image area is only partially captured, or the coordinates are off (see images below). The document size is 100x700, and the stage is set not to scale / aligned to bottom.I've been able to capture the right size, however it always seems to capturing the image from the wrong start x,y position. There is some elements out of bounds but I am just trying to clip them depending on the current stage width and height. In the source files you will see a few of my attempts commented off (below/attached).Fullscreen Capture :Normal Capture :
CODE :
import com.adobe.images.JPGEncoder;
///---------- [ Set Variables ] --------///
[code].....
View 14 Replies
Mar 13, 2010
I have a Flash application in which I would like the user to scroll a UI element by moving the scroll wheel on the mouse. My problem is that the Flash application is embedded in an iframe that also has scroll bars. So when I use the scroll wheel, even when the mouse is above the Flash application, both the Flash application scrolls (like it should) but the webpage also scrolls, which I would like to avoid.
So is there some way to avoid this behavior? Can the flash application capture the mouse so that hte events no longer bubble up to the containing page?
View 3 Replies