ActionScript 3.0 :: Stage Snapshot With Webcam View And Image Is Not Working If The .swf Is Moved

May 25, 2011

Stage snapshot with webcam view and image is not working if the .swf is moved

private function initTracking() : void
{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP;
var camW : int = 640;
var camH : int = 500;
[Code]...

View 0 Replies


Similar Posts:


ActionScript 3.0 :: Snapshot Of A Movieclip And Add The Snapshot To The Stage On Every Frame?

Nov 8, 2009

I want to take a snapshot of a movieclip and add the snapshot to the stage on every frame.

Does anyone know how to do this?

I'm trying to achieve a reflection effect...

View 3 Replies

ActionScript 3.0 :: Get My Webcam To Take A Snapshot Using It?

Nov 16, 2008

Currently working on a school project that requires me to use AS3 to display a webcam, and create a button that will take a snapshot and place it beside the video display.[code]...

View 2 Replies

Flex :: How To Take Webcam Snapshot Picture

Jul 11, 2010

Using Flex, what is the recommended way of taking a webcam snapshot picture? Something along the lines of:
var camera:Camera = Camera.getCamera();
var image:Image = /* magic goes here */

View 2 Replies

Php :: Saving A Picture In Flash Webcam Snapshot Application?

May 5, 2011

I have made a flash webcam application to allow the user to take a photo of themselves using a webcam. I have successfully saved the photo in my localhost. However, I would like to set the names of those photos. Currently, the photos names are generated by

$uniqueStamp = date('U');

I also have a textfield in my flash app that allows inputs from user for the photo name. For example if the user write 'MYPHOTONAME' in the textfield, the photo which will be saved in my localhost will be named 'MYPHOTONAME' too. How do I do it in Flash and in PHP? Currently I'm having some problems because I cannot send the textfield string to PHP.

Here is my flash code to send the snapshot to PHP and let the PHP save it in my localhost:

imgBA = jpgEncoder.encode(imgBD1);
sendReq.data = imgBA;
sendLoader.load(sendReq);

[Code]....

As you can see, I tried to pass in $photo = $_POST['photo']; from flash to PHP however I do not know the exact code, can anyone help me?

View 1 Replies

Actionscript 3 :: Flash Webcam Snapshot Reduce Motion Blur?

Feb 8, 2011

i have a photo snapping app built in flash. I notice that any movement results in a lot of motion blur.. which makes the photos kind of turd. Is there a way to digital reduce the blur? potential camera setting in actionscript??

View 2 Replies

ActionScript 3.0 :: Displaying/saving Webcam Snapshot In Correct Size?

Jul 13, 2010

Im sitting here with a project that i feel i have come a long way with (found some very usefull rescources). But i am stuck now and need some guideance in short terms what i am doing is a project where users can take a snapshot of them selves by using their webcams, and then save this picture.

This is all going ok, but when i save the picture its not the same size as the webcam picture. From what i can tell there is something going wrong with the bitmap creation process, and i cant seem to figure out how to add a field that i can toss the picture into like i have done with the video. (its using addchild(bitmap) now and that just adds a small picture at a given x & y, but i cant control size of it. And the saved pictures im getting are the size of the video area, but only 1/8th is filled with the picture, rest is just white..

[Code]...

View 3 Replies

ActionScript 3.0 :: Live Screen Capture Webcam Snapshot (bitmap API)?

Apr 10, 2008

Got round to the point where screen grabbing an image and saving it to file is too much, so what i want to do now, is take a snapshot of a live webcam image (I have webcam display working) and display the snapshot/screen grab, next to it or anywhere in the movie. This way the screen capture can be stored temporarily in the movie. once the movie is closed, all info is lost. Once another screen grab is taken, then the previous one is overwritten. The idea is simple but having problems working out how to do it in AS3!

I have got to the idea that i may need to use the Bitmap API to copy a section of the movie, and then redraw it into a new bitmap object?

View 9 Replies

Flash :: Upload Snapshot From Webcam Directly To Twitpic, Flickr, Facebook?

Jan 4, 2011

I succeed to get a snapshot from the webcam as a jpeg (via BitmapArray) and now I want to upload it directly to twitpic or flickr

View 1 Replies

Flex :: Run ClickHandlers On Buttons Moved From Main View Component To Header Bar?

Jun 7, 2011

I've used JRab's example here [URL]... to add a header menu to my app. What I'm having trouble with is executing my functions from the header mennu. For example, my firstView is appHome.mxml. It instantiates a Canvas object that has an erase(). There is a button in appHope.mxml that executes the erase() on the Canvas instance. I'm trying move the Erase button out of my appHome.mxml and into my headerMenu.mxml but don't know how to execute the erase() on the Canvas instance. The first thing I thought to try was click="{appHome.myCanvas.erase()}" but obviously that didn't work.

I asked a similar question yesterday here: Flex executing a function on another view and I accepted the answer before I tried it. The problem is that the headermenu.mxml is not a child of appHome.mxml. They are both children of the main app.mxml. Secondly, the object that has the erase() is in a separate .as class I instantiate in appHome.mxml.

View 1 Replies

ActionScript 1/2 :: Working Script Moved - Stopped Working?

Apr 22, 2009

I had a button when clicked, it would replace a different moviclip.This worked until I made the bulk of the code into a function and moved it to the layer, and then tried to call the function from the previously mentioned button. It generates no errors, but it stopped working.Hierarchy:Layer 1 > U1 > image

Original button script:
on (release) {  var theDepth:Number = _parent.U1.image.getDepth();  _parent.U1.attachMovie("K3E", "image", theDepth);

[code].....

View 3 Replies

ActionScript 3.0 :: Augmented Reality - Make Background A Webcam View?

May 31, 2011

i'm trying to make an augmented reality game..my game will be composed of a main menu..and in the main menu you can either choose to start a new game,option,and exit button, what will i do to make my background a webcam view when i click the new game button??

View 2 Replies

Actionscript 3 :: Take The Stage Snapshot?

May 31, 2011

Cannot convert the stage as a bitmapData and draw it. Is there any way,

View 1 Replies

ActionScript 3.0 :: SWF Not Working If Moved

Mar 7, 2009

I have a small SWF that works if I run it in FlashDevelop or when I run it (by double clicking) it from the bin folder. Now, if I move the bin folder anywhere else, and then double click on the SWF, it runs, but is missing the .pngs. The folder structure is: bin contains .swf bin/assets/imges contains .pngs I copied the whole project folder to another place, but still, the same problem occurred. What do you think might be the problem?

View 3 Replies

ActionScript 2.0 :: Print A Snapshot Of The Contents Of A Movieclip On The Stage?

Jul 9, 2008

I am trying to print a snapshot of the contents of a movieclip on the stage...this snapshot is stored in a bmp...then the bmp is attached to a movieclip which is rotated 90 degrees to fit on the page in landscape fashion...so the user doesn't have to alter their printer settings...however when I do mc.rotation = -90; or mc.rotation -= 90; the printout on the page is the bmp sliced diagonally in half...and one half isn't showing...when I tried +90 it worked, but the mc wasn't placed correctly on the page...I also tried +270, and that produced the half cut diagonal bmp again...here is my print code..

[Code]...

View 8 Replies

Actionscript :: Capture Video / Audio From Webcam - View It And Send As A File To Server (youtube) In Flash

Sep 15, 2010

I'm new in AS and trying create util such Youtube's "My webcam". Here's a part of my code:

[Code]....

Can't attach video object or stream to spark.components.VideoPlayer to view video and don't know how to convert video to flv contents for sending in POST form.

View 1 Replies

Media Server :: Snapshot Image From Stream On FMS

Nov 11, 2008

I have a stream playing on FMS. How can I make a snapshot of this video stream to be used as a thumbnail?

View 2 Replies

ActionScript 2 :: Taking Flash Image Snapshot Possible?

Sep 30, 2011

Is there any approach to take the snapshot of a drawing created in pure AS2 flash coding ?
I tried to use Bitmapdata and bridge but bitmap works in as3 and bridge combines two swf together and communicate with them. Is there a way of doing screenshot in as2 ?

View 1 Replies

ActionScript 2.0 :: Limit The Range With Which A Movieclip Can Be Moved On The Stage?

Jan 3, 2009

I'm trying to limit the range with which a movieclip can be moved on the stage using the mc_name._y = mc_name._y + 10. I'm thinking of using a if/else statement but I can't figure out the proper way to write the code.I don't want my movieclip to be able to be moved off the stage completely.Here is the code so far:

zoomin.onRelease = function () {
tellTarget("a")
{[code].....

View 2 Replies

ActionScript 3.0 :: Mouse Is Moved Over A Movieclip (mcHitArea) On The Stage?

Aug 2, 2010

I have a simple flight simulator animation. When the mouse is moved over a movieclip (mcHitArea) on the stage the code below moves 2 indicator lines as well as 2 jet images and the background. The problem is that when the mouse runs off, say, the left side of mcHitArea, that mouse location is recorded. Then if the mouse is brought back in from the other side of mcHitArea the images are rotated way off course. These images never come back to center.

[Code]...

View 1 Replies

Actionscript 3 :: Live Streaming Of .flv Format Movie Is Not Working If The Directory Is Moved Into Other Place

Jun 27, 2011

I can play the .flv movie after compilation through FlashDevelop but its not working if I move the whole directory into another PC or another Directory in the same PC.

package
{
import flash.display.Sprite;
import flash.net.NetConnection;

[Code]....

View 1 Replies

ActionScript 2.0 :: Magnifying Glass Over 1 Image That Can Be Moved

Dec 29, 2010

Looking for some code to make magnifying glass over 1 image (can not be 2 images one, small one large) that can be moved to specific locations off of an event like clip load, or clip end.I can find this online for as3 but not as2.so for example...when image is displayed it should load magnifying glass in certain area, then as new clip starts or some type of event happens (not a click event) it should be able to move the glass to new coordinates.we are placing this in a system that CAN NOT use as3. must be as2.

View 0 Replies

Actionscript :: Consistent View Of One Image On An Image List In Flex For Both Portrait And Landscape Orientations?

Jun 23, 2011

I'm coding a image viewer application for tablets using Adobe Flex 4.5. Basically, I have a list with a custom item renderer that renders the images in the list. I have set up the image size to be the width/height of the tablet device in portrait (600x1024). This way, only one image can be seen at one time. The problem is that when the device orients to landscape, this design obviously screws up. My question is how can I get it to change the width/height of my images automatically when the orientation changes such that only one image is shown at a time?This is my list:

<s:List width="600" height="1024"
id="imageList" dataProvider="{data}" itemRenderer="{inlineRenderer}" click="imageList_clickHandler(event)"
verticalScrollPolicy="off" useVirtualLayout="true">

[code]....

This is the item renderer:

<s:Scroller width="600" height="1024">
<s:Group>
<s:Image source="{data.imageurl}" width="600" height="1024"
contentLoader="{FlexGlobals.topLevelApplication.imageCache}"/>
</s:Group> </s:Scroller>

View 1 Replies

ActionScript 3.0 :: Cant View Image And Load An Image From A Class?

Oct 18, 2010

I cant load an image from a class.I have main.as which calls  Classplayer.as  Classplayer calls ClassMisiile.I cant load an image from ClassMissile .I can load the image in Classplayer and dont know why the image in ClassMissile doesnt appear and it is spelt right and in the correct directory.I dont get an error and the functions work but no image.
 
[code]...

View 3 Replies

Record A Webcam Video Together With Stage Content?

Sep 30, 2009

I hava an application that captures video from webcam and renders some additional elements on its display (augmented reality).Now I need to record this video and stream it to FMS.

View 3 Replies

Media Server :: Client-side NetStream Webcam Publishing To FMS 4.5 Not Working?

Dec 2, 2011

I'm trying to create a simple application that streams the webcam to FMS 4.5 (running on a Windows 7 machine), and then displays the published stream locally. Here's my code:

import flash.net.NetStream;
import flash.media.Video;
import fl.video.FLVPlayback;
import flash.events.NetStatusEvent;

[Code]...

All traces in the event handlers show the NetConnection connecting successfully, and the netstream publishing successfully. However, I get no video output from this. I've confirmed this using the sample video player in FMS 4.5 as well. There is also a weird traffic pattern reported in the FMS Admin console.There is some traffic (~4K) when the NetStream first publishes, but after that there is no activity.

View 1 Replies

Actionscript 3 :: EtStream.publish Webcam To FMS Working In Standalone Player / Not In Browser

Mar 24, 2011

I am trying to publish the video of a webcam to a Flash Media Server 2.My code is working in the Flash standalone player (tested with 10.0 and 10.2), but not in the browser plugin (tested with 10.2, both in IE and Opera.The connection to my FMS is working successfully, but after the publish, nothing happens, I never get the NetStream.Publish.Start Event. On the server I can see the connection in the management console, even the stream in the streams tab. But I cannot connect to that strea.[code]

View 1 Replies

AS3 :: Cannot View Images On The Stage

Oct 1, 2010

I've had Flash CS4 for a while but never been able to use Actionscript 3 as any images dragged to the stage just disappear -- but of course are there when you preview the movie.  I've reset the program, tried changing all around the views and resetting preferences

View 11 Replies

ActionScript 3.0 :: Have An External Class Called Webcam.as On The Stage?

Oct 27, 2010

i have an external class called webcam.as on the stage I have two buttons. One called capture_mc and save_mc. I am new to working with external actionscript class. If someone could explain to me whatsI am getting lot of errors!!!!

Code:
1172: Definition flash.utils:byteArray could not be found.
1046: Type was not found or was not a compile-time constant: ByteArray.

[code].....

View 3 Replies

ActionScript 2.0 :: Make Visible The Webcam's Picture On The Stage?

Aug 18, 2009

I have problems with webcam streaming in AS2. In AS3 I can make it visible on stage with a Camera.get call and a Video object. Because of some reasons in one of my works I have to use AS2. Can anyone provide me a working code to make visible the webcam's picture on the stage? I use the following code, but it doesn't work:

var cam = Camera.get();
//it's okay I can see the real camera name in the name property
var vid:Video;
vid.attachVideo(cam);
//... and nothing happens on the stage Why?
trace(vid) returns "undefined" Why?

View 0 Replies







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