ActionScript 2.0 :: Flash Not Finding All Attached Video Cameras?

Mar 24, 2011

I am trying to create a video feed screen that pulls in from 4 different usb cameras attached to my computer. As of now my file only pulls in the feed from the built in camera on my macbook pro. Here's the code I'm using to find the cameras. Anyone know how to find the external usb cameras? You can check it out and running at [URL] or grab the fla and see what's up.

ActionScript Code:
// Set up some new entries on the context menu for changing video capture size
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();

[Code]....

View 0 Replies


Similar Posts:


ActionScript 3.0 :: Finding Scripts Attached To Buttons/movieClips?

Apr 23, 2010

I am updating a file to AS3 that someone else worked on.  I'm getting the error about scripts attached to buttons/movieClips and have been through the file a few times already.  Is there a tool or something else that will help find the scripts?

View 3 Replies

Flash :: MOUSE_OVER Event Attached To Video Object

Feb 4, 2010

I'm trying to create a video player in AS3 that displays the player controls when the user hovers over the video, however I'm having a hard time getting the MOUSE_OVER event to fire. I've made sure that the video's index is at the top, so that's not the issue. Is there something I'm missing? Is there any reason why this event listener wouldn't work on a video object? video.addEventListener(MouseEvent.MOUSE_OVER, doThis);

View 2 Replies

Flash :: Finding The Correct Scale Value Within A Scaled Object To Maintain The Aspect Ratio Of A Video

Jan 20, 2010

I have a video inside of another movieclip. When I go full screen, I scale up the outer movieclip to fit the screen. So that OuterMovieClip.width is equal to screenWidth etc. How do I maintain the aspect ratio on my video so it does not get distorted? Whats the proper math for that?

View 1 Replies

NetStream Class - How To Detect If Working Video Attached

Jul 31, 2011

I'm building a video chat in flash and everything works really well, except for the part where I'm trying to detect if the other user is sending a working video stream. There's a couple of reasons why the other user isn't sending video.
-The other user got no camera
-The other user got a camera, but the camera is currently being occupied by another application(Skype, Photo Booth, Google Talk, etc.)
-The other user got a camera but hasn't allowed the use of his/hers camera.
(Other unexpected problems I guess...)

So how do I detect if the stream I receive from the other user is a black stream(because of the reasons above) using the NetStream class? The closest thing I have came up with is by adding a timer that polls the currentFps() function from the stream I receive from the other user. But so far this seems pretty unreliable because I might get currentFps() == 0 and show an error because of this even though I actually got video from the stream in some cases. The reason for this is because I poll the API every 4 seconds for the currentFPS function and let's say at 00:00:04 I get "no video" according to the poll but at 00:00:05 the video kicks in, and therefor I need to wait until the next tick until the error message disappears

This is what my current poll looks like
function subscribingStatusPoll(e:TimerEvent):void {
if (subscribingStream.currentFPS == 0){
error.text = "No video found from the other user...
} else {
error.text = "";
}}

This is the only hack I that I can come up with to detect this, but this is unreliable and I actually would prefer a way to instantly detect if the stream I receive got a working video attached to it.

View 2 Replies

ActionScript 3.0 :: Finding Way To Determin When Video Is Complete?

Jun 5, 2009

video starts playing when project loadsButton ONE  pauses the video and places a smaller video over the first video. When this second video completes I would like it to be removed and the first video resumed. As it's currently written I have to use button Two to accomplish this task  I me ho to determin when video is complete then I won't need to use button Two.here's my code:

import fl.controls.ComboBox;import fl.video.*;import flash.filters.*;
var connection:NetConnection = new NetConnection();var connection1:NetConnection = new NetConnection();var stream:NetStream;var stream1:NetStream;var md_obj:Object = new

[code].....

View 8 Replies

Actionscript :: Get All Available Cameras?

Oct 3, 2010

I can get the default camera this way: Camera.getCamera(); But how to get all available cameras connected to my computer with actionscript?

View 3 Replies

ActionScript 3.0 :: Add Cameras To Combobox?

Jul 22, 2011

I want to add camera collections to a combobox where user would choose his camera

I use this cameras_cb.dataProvider = Camera.names; but nothing happened

View 9 Replies

ActionScript 3.0 :: Starting And Stopping Video File That Is Attached To Augmented Reality?

Apr 17, 2009

I'm trying to do a little augmented reality. I'm using an action script to call a video and play it. The problem that I'm having is that the sound is starting the moment the window is open and the video plays with the marker is shown. I want the sound and video to only play when the marker is seen. I would like it to pause when the marker is removed and then resume where it left off when the marker is seen again. Here is a copy of my code if someone could look it over and tell me what I'm doing wrong. PLEASE PLEASE PLEASE just correct my mistake. I don't understand enough about coding for you to just say Netstream.pause() and netstream.resume. I don't know where to put that information in.

package { import flash.display.Sprite; import flash.events.Event; import flash.display.BitmapData; import flash.display.Loader; import flash.net.URLRequest; import flash.media.Video; import flash.net.NetConnection; import flash.net.NetStream;

[code]........

View 1 Replies

Media Server :: Can FMS Stream From IP Cameras

Oct 7, 2010

I am evaluation the FMS dev server. One of my requirements is to be able to stream IP camera footage through FMS.Now, I realize that we are allready streaming the camera, so what is the big deal? I am looking for a way to utilize FMS's full feature set to enhance and increase the efficiency of those camera streams.

View 4 Replies

ActionScript 2.0 :: Detecting Cameras Currently Plugged In ?

Jul 3, 2009

I have a web conference application that allows people to communicate via webcam. However, I would like it to be smart enough to detect if one is plugged in and if it is not, to disable the video feature. Just looks really bad when they try to use video but it gives them a black screen.

My problem is that using the following code, I get camera names that were previously plugged in but not CURRENTLY plugged in:


Code:

Does anyone know of a way to get cameras that are working and plugged in?

View 1 Replies

Media Server :: Encoder And IP Based Cameras?

Feb 17, 2010

Does anyone know if there is a way to use Flash Encoder with. a basic IP Camera instead of a usb webcam.  I have searched anch searched and cannot find anything that will tell me.

View 1 Replies

ActionScript 2.0 :: Get Active Camera Out Of Multiple Cameras?

Feb 2, 2009

I am working on a video recorder using AS 2.0. The issue i related to multiple cameras installed on a machine,Camera.get() method gets you with the first camera installed on the machine. But my problem is that if i have more than one cameras and i have to select only the active camera e.g.If i have 3 cameras installed and the 2nd one is active then how to find out which one is active ?

I know that we can use index number in Camera.get(indexNumber). But how to find that index with only one video object on stage.... the problem can be explained clearly with this link -- http:[url].....Login to this link with your Gmail ID and see the video recorder .. if ou have more than one cameras installed it will list them in the ComboBox and catch the Active one ... I

View 3 Replies

Data Integration :: Viewing Motion JPEG (MJPEG) Streams Directly From IP / Network Cameras

Jul 19, 2006

I'm looking to build an app for viewing motion JPEG (MJPEG) streams directly from IP/Network cameras. Does anyone know where I can find useful information on this or even if it's possible at all?

View 1 Replies

Flash :: Load One SWF With Attached .as Into Another?

May 25, 2011

I'm trying to set up a proof-of-concept of loading one SWF into another SWF for skinning. The set-up is this: app.fla, which has an attached ActionScript class, AppMain.as skin.fla, which contains UI components AppMain.as will obviously contain all of the application's logic; I then want to be able to affect the UI components contained within the loaded skin file based on instance names defined in that particular skin.

So for example, if I have a TextField with an instance name of myTextField I'd like to be able to set the text property of that text field programmatically in AppMain.as. The exported app.swf to load a skin file based on a flashvar parameter would be loaded into an HTML document that looked like this:

[Code]...

View 1 Replies

ActionScript 3.0 :: Flash Video Sites - Add Video And Resize The Video Acoording To The Page Size

Aug 18, 2011

Recently i have visited so many video enriched flash site like this one [URL] Most of them shows video in full size. I downloaded the video using FF plugin. Video framesize is very small compared to the stage size. When i tried to add video and resize the video acoording to the page size , it slows the browser. I tried to embed the flv inside an swf and loaded the swf using normal loader and plyed it.. but the quallity and performance comapred to these site is very low..

View 3 Replies

ActionScript 3.0 :: Video Loop - Made A Video In After Effect And Export It To Flash As A FLV Video

Dec 18, 2010

I made a video in After Effect and export it to flash as a FLV video.. and write de code to load it into flash.. but I need it to loop.. Here is the code

[Code]...

View 1 Replies

Flash :: Not Finding Crossdomain.xml?

Sep 2, 2010

I have a flash app hosted at The contents of that crossdomain.xml file are as follows:

<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">

[code].....

View 2 Replies

ActionScript 2.0 :: Border Attached Flash Movie?

Sep 23, 2008

about making a Flash application that sticks to the bottom of a web page, even when scrolling?

View 1 Replies

CS3 :: Finding A Standalone Flash Player?

Apr 2, 2009

What should I use to test my swf movies on another (not my development machine) ?When I open them with IE or firefox the Flash active x player doesnt have the zoom 100% option so I end up with distorted (resized to window) swf is there a standalone flash player for that kind of purposes or something?

View 1 Replies

Flash :: Flashdevelop Is Not Finding Png File

Jan 3, 2010

I am trying to load my png file to my application. here is the code

var map:mapLoader = new mapLoader();
map.loadMap("tile.png");

Then here is my file that loads it. it throws the error right when it gets to

loader.load(new URLRequest(currentMap));

if I comment it out. then the error goes away. below is the code in its entirety

package {
import flash.display.Loader;
import flash.net.URLRequest;

[Code].....

View 1 Replies

Flash - Finding All Series Within An Array?

Jan 2, 2011

How do I find number of all the series (combinations of an array that have at least 3 consecutive values, like [7,8,9]) and have the longest number of values?

from [3,4,1,2,2] it would be 2 - ([1,2,3,4] twice, but ignore [1,2,3]*2 and [2,3,4]*2)
from [9,6,7,5,8] it would be 1 - ([5,6,7,8,9])

[Code]....

this will create an array ($ranks) that will have these values [2:2, 3:1, 4:1, 9:1]

from this I will be able to multiply the values under 2,3 ad4 4 and multiply them by 3, so I would get 2*1*1 * 3

how to find the consecutive values, and ignore ones that aren't (like the 9)

View 2 Replies

Flash :: Finding String Into A ByteArray?

Oct 3, 2011

What is the simpliest way to find an occurance of some sequance of bytes (string) in a long byte array?

UPD: I tried to do

my_byte_array.toString().indexOf(needle_string);

the problem is that in flash/air string consist of utf8 characters, so indexOf will return value different from offset of "string" in a byte array (actually it's zip archive)

View 2 Replies

ActionScript 2.0 :: Finding Texts In Flash?

Jun 21, 2005

I am making a presentation (to work on a CD) that needs to have a search for texts. In this presentation there are lots of texts and I need to give the user the opportunity to search word.I would like to have a text finder that goes to the word I am looking for, then, clicking again its to the next occurrence of this word.

View 1 Replies

ActionScript 3.0 :: Flash Finding And Loading All Possible IDs?

Mar 25, 2011

I am not much of an action scripter or flash developer
Example
Code:
bla.php?id=0

What I am trying to do is load All possible Id's of a url(in xml format) to a List
Code:
var Loader:URLRequest = new URLRequest("[URL]");
I can load a single id by just doing

Code:
var Loader:URLRequest = new URLRequest("[URL]");
But this isn't what I want to do

How would I got about requesting / finding all possible ids and then display said id's or a certain part of each id to the list?

View 2 Replies

Flash :: Attached Movie Control With Next/forward Button?

Oct 4, 2011

I use attachMovie to call movie clips succesively on the stage. I use a forward button to slide them in progression but when I want to go back in the same order everything gets messed up. You can see the swf playing here, [URL]..I numbered each frame so you can see when clicking on back button it gets messed up.

// Each of the button functions here call the add_page() function and pass the Identifier of the page that they will display b_0.onRelease = function() {

[Code]...

View 1 Replies

ActionScript 3.0 :: Using Flash To Take A Screenshot And Attached Image To An Email?

Jun 3, 2010

I have a button, when you push it I want:

1. Flash to take a screen shot of the current Flash window

2. Open up the computer's default mailing client and automaically attached the screenshot that I took

View 3 Replies

ActionScript 3.0 :: CS4 XML Flash Not Finding Individual Nodes

Jul 10, 2009

I've been following tutorials for reading in xml data, but I'm having trouble referencing the different nodes. In the following example I'm just trying to view.[code]No errors or anything.I don't get it. The xml loads in the first place, (trace(xml)), but I can't access the individual nodes.

View 3 Replies

CS3 :: Finding A Flash Document That Will Countdown From 30 Minutes?

Jul 24, 2011

I am however hosting an event at the end of this month to which I need countdown timer that counts down 30 minutes from when I begin playing the movie.

00:00:30:00 -> 00:00:29:55 and so on until the movie reaches 00:00:00:00.

If possible.. I'd like that movie to open an additional flash movie once that timer has reached 0, if that can be done. - But for now I'd just be happy with a simple countdown timer that counts down from 30 minutes.

Now I HAVE tried to utilize the various tutorials that are about, the problem is they all seem to be WAY too complex for what I'm looking to do here...As I said all I'm looking for is a flash document that will countdown from 30 minutes once i've opened the movie..

View 7 Replies

Finding Flash SWF Animation To Show Images?

Jan 9, 2009

I'm looking for a SWF animation, something I could place on my webpage and input images via an admin section.So I would put the SWF in place, and then he would feed himself via an XML file I would do (or something like this) that I would construct with a PHP script from a MySQL database. The script would take randomly images from the DB.All I want is the SWF, I can organize myself with the XML/PHP/MySQL thing.

The animation (the SWF) has to be extensible, I mean, I want to specify the width and height of the animation and I want it to scroll from right to left continuously, at an average speed. This implies that the animation could be, let's say 900 pixels wide, there could be numerous images at the same time scrolling from right to left, all images would have to keep aspect ratio (the maximum height specified).

View 1 Replies







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