ActionScript 3.0 :: Control The Visual Affect With Camera Class?
Aug 1, 2010I've checked the document:But still don't find info on how to control the visual affect(like lightness, saturation and so on) of my pc camera.
View 9 RepliesI've checked the document:But still don't find info on how to control the visual affect(like lightness, saturation and so on) of my pc camera.
View 9 RepliesI've checked the document: [URL] But still don't find info on how to control the visual affect (like lightness, saturation and so on) of my pc camera. Is that kind of job possible with actionscript?
View 2 RepliesRecording an f4v file to FMS3.5, capturing video from a local camera through the Flash Player i'm getting poor quality and small video size - using:
cam.setMode(320, 240, 10);cam.setQuality(0,99);
Doesn't seem to have any affect on the recorded video, is this due to the cameras native resolution?
I have an activeX control for a network camera when it is installed on my PC. I want to use that network camera in actionscript by loading its activeX control, but don't know how to do that.
View 1 RepliesAs announced, it is now possible to develop Iphone applications with Actionscript. My question is: is it possible to control iphone devices such as the GPS receiver and/or camera using actionscript? Is there somekind of "AS3 for the Iphone"-framework? I know my question is short, but this is all I need to know for now.
View 1 RepliesWhen user first time log into site camera start the capturing and stream is saved in application folder with the streamname (straemname.flv). then user logout and then logged in then i have to append that stream in same straemname.flv file .By this code i have done that task
camera = Camera.getCamera();
camera.setQuality(0,80); camera.setMode(videoWidth,videoheight,15,true);camera.setLoopback(false);
video.attachCamera(camera);ns.attachCamera(camera);ns.publish(stream, "append");
when user again logged in ,the video which is saved previously start playing,I dont want start that video.I just want to show camera control
how to build and compile flex 3 projects in visual studio? I prefer that environment to Flex Builder 3.
View 2 RepliesI create their basic Flash app with their Flash IDE for Visual Studio 2010 http:[url]....When launching the run button, it launch flash but with this error within Flash CS4: The following JavaScript error(s) occurred:
t line 6 of file "FlashApplication1.jsfl": Cannot find file file:///C:/temp/FlashApplication1/FlashApplication1/FlashApplication1.as.
I am capturing camera on flex for android using air 3.1,and found that the camera is only showing the a part of of actual camera video.When i view camera using normal camera application in android galaxy tab, it shows full camera area but when i am capturing the camera in flex its showing only the center area for it.I tried using setMode to set the resolution, but its not of any use.Is there any way to get full camera area captured inside flex using camera.getCamera ?
View 1 RepliesFrom a Flash object, I would like to be able to detect the presence of a webcam that the user might grant access to, without actually asking the user whether they want to grant access. This is to streamline a large application that has extra features if a webcam exists — if there is a webcam, the application will present several dialogs that lead up to the normal cam-security prompt, but if the user doesn't have the hardware, I want to skip over them altogether. Requesting access to the cam before those dialogs won't make sense to the user.
It appears not to be possible to call Camera.getCamera() without the security prompt happening. Is there a workaround? (For instance, could I, perhaps, call getCamera in a hidden Flash object and inspect its return value, or does it block until the user acknowledges the security prompt?)
I have a video capture device on a machine. I have written a windows application to capture the video from this device. While capturing, if i try to broadcast using flash it does not connect. If i'm already broadcasting and then try to capture then my windows application does not get the capture pin of the device. So, flash seems to be taking the capture pin. Is there anyway to broadcast using the preview pin on the device so that i can capture using my application. Or is there way where i can split the capture pin and give one to my app and one to the broadcaster
View 10 RepliesUsually Adobe Flash applications can access any usb-webcam.I have a USB camera for microscopes which understands TWAIN and DirectShow.Is there a possibility to access the video data from this camera with flash?
View 1 RepliesI need to call the class into to my control as file. The problem I'm getting now is this error. "environmentTab.lightsButton.addEventListener(MouseEvent.CLICK, selectLights);" environmentTab is a instance name of a movie clip that is on the stage of my .
View 2 Repliesam having dynamic text box named username_txt in stage, i have to display the username dynamically there using as3 class. but if i use usename_txt inside the class means it throws error...this is my class
in main.fla i placed username_txt in first frame,
in first frame i created object for the class like var first:First = new First();
this is First.as :
package
{
public class First
{
[Code]....
I'm coding an AS3 web app which needs to access the webcam. The webcam code works fine apart from my initial attempt to detect whether a webcam is plugged into the pc. I'm trying to use Camera.isSupported as specified in the Adobe docs but I get a compiler error telling me 1119: Access of possibly undefined property isSupported through a reference with static type Class. BriefingScreen.as /ADAPT_PSA/src line 147 Flex Problem I can get around this by compiling without strict checking but this seems a little clumsy...
View 1 RepliesIs it possible to control items lying on different frames of an FLA file from its document class?
View 8 RepliesI have some AS2 code for responding to keyboard input - it was great because it added friction, thrust, gravity etc... ie: it made the movements very real and added playability which is key in engaging players. On passing it into classes for OOP I don't seem to have got it right. maybe somebody knows a nice tutorial for the same.It was Emanuel Feronato's tut in AS2
RocketMainDocClass
package import flash.display.MovieClip; import flash.events.*; import flash.ui.Keyboard; public class RocketMainDocClass extends MovieClip{
[code].....
ActionScript Code:
package
{
[code].......
Im trying to make a simple pacman game and im relatively new to as3 but I have found its very similar to java.What I'm trying to do is build a class that will control everything my pacman does, so if I create an instance of the class I would want to be able to set the position of my pacman by doing something like this:[code]Then I would like this code to call the setXPos function to update a "pacman" movie clip inside the Pac class. DocumentMain.as - the class file for pacman.fla, this file will instantiate the Pac.as class and tell it everything it has to do to the movie clip (created in the Pac.as file) on the stage.Pac.as - this is the class that creates the "pacman" movie clip, controls it via input from DocumentMain. as, and shows it on the pacman.fla stage.
View 9 Repliesi'm looking for some class that does something similar to what mcTween2's method "frameTo" but with looping on the end of the movieClip.what i need is to control a 3d animation (frame by frame) with the mouse, - drag to rotate.
View 1 Repliesi have one text field named "priyan" in the fla file. I want to control that text field from the external class. In the time line i can easily put:
var letter:String = "hi priyan";
priyan.text = letter;
if i use class, what i have to do?i tried,
package
{
import flash.display.MovieClip;
import flash.text.TextField;
[code]....
i got error...
I have a menu btn that is created via an external class. I want to move the main timeline of my flash file to a frame label but I'm having a hard time referencing the main timeline via my external class code.
How do I control the timeline via this external class.
I have created some functions to manage timed pause/play in an animation and I am trying to make a class from them, but it does not work, the play() and stop() functions I use have no effect. The functions work as intended when not in the class.
Here is my code:
package anim {
import flash.utils.Timer;
import flash.events.TimerEvent;
[Code]...
I checked that the functions are executed with the trace() and it is the case, so the problem really comes from the play() and stop() functions, and I do not receive any error at compilation or runtime.
having some issues migrating to AS3...How can I add a child object to a empty movieClip already placed in the timeline. Something like this.n timeline first frame there is an empty MC instance named "clipInTimeline" and in framescript I call:
import assets.contentControl;
var getContents:contentControl = new contentControl();
In AS file:
[code].....
In my flex-app there is a slider that should change a variable inside a AS3-Object. How do you realize that? It's np problem to control the slider with the variable, but I want it the other way :)
View 2 RepliesI have a Bullet class - which defines and controls the firing of bullets (and works perfectly in all ways) - and now I'd like to add to it the ability to detect if it has hit a spaceship-movieclip sitting in my main .fla's timeline - what's the proper syntax to do this?
here's my code:
Code:
public function moveBullet(e:Event): void {
this.y = this.y - 20; // moves bullet up-screen, shooting vertically
if (this.y <= 0) {
[Code].....
I'm doing my company website. When a mouse event sends you to my services page I have 4 seperate blocks of text that fade in. So far I have the first 2 texts blocks fading in at the same time. I want to stagger the timing so the second block of text starts its fade in a fraction of a second later, and so on with the remaining text blocks. Below is the code I've used to fade them in at the same time. Is there an easy way to adjust this code to achieve the desired effect.[code]....
View 0 RepliesI am working on a card game.When the game initializes, 2 cards get dealt to the dealer and 2 to the player. Each card MC is created dynamically. When you hit the deal button, the cards are dealt, but all appear at the same time. So i figured i would try using the Timer class in order to delay each card so they are dealt one-at-a-time. Seemed easy enough, but evidently i am missing something obvious and probably embarrassing. The short, simple code, which i expected to be a no-brainer, doesn't seem to want to work. My ignorance with the Timer class isn't helping where i am going wrong or if i am way out in left field? I created a Timer that repeats 4 times(repeatCount). I was thinking that i could target e.repeatCount with a case statement and fire off each card. I can't seem to get it working though.
Code: Select allimport flash.events.TimerEvent;
import flash.utils.Timer;
var dealTimer:Timer = new Timer(200, 4);
[code].....
I've been trying to switch from AS2 to AS3 by forcing myself to use AS3 on every project and never revert to AS2 no matter what the problem may be. Doing this, I've learned a lot so far, and it has shown me that AS3 has the potential to be much more logical and easier to manage, but every once in a while I run into a problem in which research doesn't prevail.
At the moment I'm working on a project that uses the Union Platform. My goal is to make all control over User1's "Reactor" API managed by a single class.
Anyways, I've ran into a very limiting problem that I can't seem to get by. I can't figure out a way to call the root object and be able to call it's functions from a class!
Here's one of the methods that I've tried (No errors were reported, but it did not work) -
main.as:
Code:
package {
import flash.display.MovieClip;
import net.user1.reactor.Reactor;
[Code]...
As you can see, I tried to pass "this" as a MovieClip in hopes that I would be able to use the MovieClip's class functions. (Which is most likely very nooby and completely wrong since it's probably not considered a MovieClip reference, but what do I know?) Everything is fine, except the swf does not go to frame 2 when readyListener() is called. No errors are outputted either.
Also, when I go to load another movie/audio from a button click, do I need to do anything with the old instance, or will flash take care of that??
Here's the class:
Code:
package{
import br.com.stimuli.loading.BulkLoader;
import br.com.stimuli.loading.BulkProgressEvent;
[Code].....