ActionScript 3.0 :: Activating Webcam With Flash?
Sep 18, 2010
I am trying to activate a my webcam and run a live stream from it. Im running into problems though. I can get the webcam to turn on(the green light comes on). However, nothing is displayed. I have copied the code i am using to try and achieve this, hopefully its just a simple mistake.I am using Flash Builder 4 to put all this together.
Code:
package camera
{
import flash.display.Sprite;
import flash.media.Camera;
[code]....
View 2 Replies
Similar Posts:
Jan 7, 2009
Am working on a flash AS 2.0 project where am loading movies from the same folder. my code goes like
on (release) {
loadMovie("HAD.swf",2);
}
problem is the swf loads infront of the main movie but the main movie's links are still active.
View 4 Replies
Mar 9, 2009
I want to create some AS to disable and enable a button.Let's call this ButtonX. I want this button to appear disabled at first, and then allow the user the option of enabling this button(ButtonX) by clicking another button. Let's call this ButtonY. I cannot get this to work. I am attaching the code I am trying. I have this AS added to ButtonY and ButtonX is the instance name for the button I want to de-activate-activate.
View 7 Replies
May 23, 2011
I want my site's users to be able to record videos straight from their webcams into my site. Videowhisper is one such tool which seems to work fine - [URL] But I'm looking for opinions on better / more scalable / reliable solutions. Paid solutions are fine.
View 4 Replies
Mar 14, 2007
Im using the Lightbox 2.0 [URL] And a flash movie in the same page. Now ive got this thumbnail slider in the flashmovie with thumbnails loaded from an xml file. As soon as i hit a thumbnail i want the Lightbox to show the full image of the thumbnail.
I've got everything set up and if i test if the Lightbox works with an html link it works perfectly:
HTML Code:
<a href = "path/to/image.jpg" rel="lightbox" title="my Title">Lightbox test</a>
Now my question is how do I call the same action in AS?
I understood the rel attribute refers to both the Lightbox JavaScript and the StyleSheet. But i really dont know how to set the rel attribute in flash.
View 14 Replies
Jun 20, 2007
if it is possible to activate lightbox 2 from flash.
As extracted from the Lightbox tutorial, lightbox needs an <a href> tag with a rel="lightbox" attribute to be activated.
e.g.
Code:
<a href="images/image-1.jpg" rel="lightbox" title="my caption">image #1</a>
However I dun think it is possible to use getURL(); for this in flash right?
is there a work around for this? what i am aiming to do is have the user click on an image/mc in my flash
e.g.
Code:
my_mc.onRelease = function() { // Activate lightbox from here };
and have it call the light box up.
View 1 Replies
Oct 24, 2011
In my Flash program, I am trying to run a function within an object. The object uses a class called "SkullDemon.as." The function I am trying to run is called "moveSkullDemon();" this function is coded within the "SkullDemon.as" class. My main document class is "TME2d_Main.as." Within that file I create an instance of the Skull Demon class like this:
[Code]...
View 2 Replies
Apr 20, 2004
I have a set of flash buttons in a left hand frame in dreamweaver in the right hand frame I have a swf file, is it possible for the buttons to control the swf! For example I want button 1 to make the swf jump to frame 1, button 2 make the swf jump to frame 2 ect....
View 1 Replies
Apr 20, 2004
here is my problem I have a set of flash buttons in a left hand frame in dreamweaver in the right hand frame I have a swf file, is it possible for the buttons to control the swf!!!!! for example I want button 1 to make the swf jump to frame 1, button 2 make the swf jumb to frame 2 ect ect ect
View 1 Replies
Mar 30, 2011
Can I install Flash CS4 after installing, activating & updating Photoshop CS5?
View 1 Replies
Oct 27, 2010
I have a YouTube video embedded in my page. It is hidden (display:none). You need to click one of the video link buttons to display the video and play it. The links are defined like this:
<a href="javascript:play('xxxxxxxxxxx')">Video 1</a>
<a href="javascript:play('xxxxxxxxxxx')">Video 2</a>
xxxxxxxxx represent YouTube video IDs.
[Code]....
It's fundamentally pretty simple! But here's the problem. since the video player is hidden, the flash object is not activated. So when I click a video link, the line ytplayer.style.display = 'block'; displays the video player, but it takes about about half a second for flash to load. During this time it cannot accept any method calls, such as the next line ytplayer.loadVideoById( id, 0, 'hd1080' );. Essentially, I have to click the link twice, once to load up the flash video player, the second time to actually load the video into the player.
View 1 Replies
Jul 17, 2009
I have a simple movie clip of fading in text displaying on page with a sound. also have a button that allows user to go to the next frame. It is an exercise for students that basically goes like this: object presented in each frame, spelling (text) for that object fades in on mc with sound attached to mc, then button activates to let them move on to next. Since they are trigger happy, I don't want the button that allows to move on to activate on the frame until AFTER the movieclip and it's sound have played out (which is like 2 seconds so not a long wait) - otherwise, they would just keep clicking next and not listen to the material presented (it's very young children).
How do I set this up? I knew it's likely very simple, but I'm a newbie. Of course, I could always just do it on the timeline, but I have a ton of material, so am trying to use actionscript to be more efficient. for even younger kids, am considering setting this up so they can move to next frame through any keypress. I know how to set up a certain key, but not ANY key.
View 2 Replies
May 20, 2010
I' am building a web site where i have a navigation which also works by pressing the (4) keyboard buttons, up, right, down, left. When the web site loads the keyboard navigation works only after i click somewhere on the screen.
The same things happens in Safari, Firefox and I.E.Any thoughts about how can i make this work without the need to click somewhere on screen before it works?
View 6 Replies
Mar 13, 2004
this is what I need, I made a 3d model of a PC, What I want is to clic on the monitor and turn on the computer, I have the animation of the computer monitor turning on, but I don�t know how to activate it....
View 10 Replies
Jun 24, 2011
I don't need to stream anything. Just wanting to look at a webcam using Flash. Hopefully be able to control (zoom) a Logitech cam on Mac os 10.6+.
It will be a screen I share in Connect. The video pod in connect is not what I want.
View 1 Replies
Dec 16, 2010
I don't have my own Flash Media Server. I can however use the Highwinds CDN. They run FMS on their CDN. When you schedule a live event, Highwinds gives you two urls: the "server" and "stream name". Examples:
[Code]....
View 2 Replies
Jan 10, 2010
How do I stop a script from running, or remove it from a swf at a specific frame, (on its own layer "actions") and then start it again, or script it again on another frame further down the timeline?If I try and put the same script on another layer, past the stop(); or anywhere for that matter, flash gives me a duplicate function definition error.Lets say my swf is embedded in an html and its url is abc.com. When you navigate to that url the swf plays, all scripts work, buttons work to link to frame anchors back and forth within the swf and all is fine. As long as you remain at abc.com and link with a gotoAndPlay(frame), or gotoAndStop(frame) function from the script internally in the swf.However lets say one of those buttons goes to dce.com (urlRequest... dce.com...) essentially navigating away from the swf, .and at dce.com there is a link to go back to abc.com/index.html#frame, when you choose to navigate back to that frame in the swf, it does, but the script no longer works.
The script is on all anchor frames, and works intially in the swf when you play the movie for the first time, the movie stops (stop();) at a specific frame, and continues to navigate around to specific frame anchors and back and forth, the script continues to work as long as you are within the movie so to speak. However if you decide to go to dce.com, essentially leaving the movie and then at dce.com there is a link back to a specific frame, when I link back to the swf, from dce.com, the script no longer functions?I cannot imagine this is not something that quite a few people use, a combination of flash pages and html pages and interlinking them back and forth, I just cannot find ANY info searching exhaustively on why the script will not work after returning to a swf frame after navigating away to anywhere else and then back to the swf frame needed.
View 4 Replies
Oct 23, 2009
I have a game I am working on currently, and say I have an animation that plays (this is in a seperate mc) when you click. So it's basically a function. Anyway, one the animation plays through inside the mc, the last frame I put:
ActionScript Code:
stop();
gotoAndStop(1)
After this, I added five or so frames on a seperate layer with another animation on it, put the same code on the last frame, and gave the first keyframe of this second animation the label name "reload".If I then go back to the main stage, how would I code it so that if, for example, I press the down key, it would play that particular frame label?
View 1 Replies
Dec 29, 2009
I was given a .FLA containing a banner and was asked to create an input text field and a button that, when clicked, opens a new window with the address, say "www.mywebsite.com/page.php?value=..." where "..." is what the user types in the input text field. The page the user is sent to then performs some action. Now they're asking me to make the page automatically perform that action, as in, they want the .FLA to send the value typed in by the user to that page at [URL] without the user actually going to that page at all. Is this flash-related or even possible?
In short what I'm asking is: Is it at all possible, in principle, to hand a value over to a .php page using flash and then make that page perform an action without being opened? If so could you point me in the direction of how to do it?
View 4 Replies
Jul 4, 2010
I've created a button in html using a href. (HTML Button)
I also I have a button within a swf which I want to activate my a href button when clicked on. (Flash Button)
I know that i will prob have to use the geturl function but do not know how to implement it.
Here is the a href code in my html
HTML Code:
<a href="SITC.flv" rel="shadowbox[movie];height=330;width=587" title="SITC FLV"><img src="button.jpg"></a>
and here is a link for an example
[URL]
View 4 Replies
May 25, 2005
i am builing an application which will use a feature called "deffered sms".It means that user will enter the sms and the phone no. and a date and time and will submit this info to the application.when the time and date will come this application will send the sms that was written on that day for deffered sms.when the user had entered the sms and time , he will certainly close the application and the application will no longer be active. my application will store the time and date in a variable .How would my application will come to know that the specified time has come and then it should send the sms.
View 1 Replies
Apr 8, 2009
i'm wondering if it's possible to add a listener for multiple keys pressed at the same time. for example if it wanted the user to hold CTRL+A+B+C to trigger an animation.
View 4 Replies
Nov 12, 2009
how to activate a hittest with a key. For example, I have my character and I want that when my character is on the door and he presses a certain key he goes to a different frame.
View 5 Replies
Dec 1, 2004
What I want to do is:I would like to have a button (I know how to do this), and when the user mousesover the button, I want a movieclip to be activated.So:When user mouses over my home button, my home_ani clip will be accessed. I would want to goto the frame 2 and play of that movie clip.
View 3 Replies
Sep 7, 2011
[Code]...
That is the entire code for my program and when it runs, nothing happens. I know the program has access to the laptop's webcam because it can trace the name and a similar program I wrote works with the same webcam. This program doesn't even ask for permission to access the webcam so I'm rather confused.
View 1 Replies
Aug 9, 2009
I've been trying to access my webcam on my macbook pro using flash cs4 in an attempt to try and use the live feed to detect levels of motion and from there use that information to alter / animate an image on the screen (idea being more movement = more change in image), however I cant seem to get my webcam to even stream out and play on a flash file.
The code I am using is:
start code
var camera;
var video;
camera = Camera.getCamera();
video = new Video(camera.width * 2, camera.height * 20);
video.attachCamera(camera);
addChild(video);
end code
And when I run the file it asks for me to grant access to webcam / microphones (which is what it should do) but it doesnt stream to the file.
View 1 Replies
Dec 31, 2009
I am looking for a "test your webcam" flash movie like this one that is free and OK to use in a closed environment.
I need the camera testing only, no server side processing of the video stream. It is thought as a small online tool for a client.
View 1 Replies
May 26, 2010
I need to take a picture from a webcam into a webapp (PHP5/JQuery/HTML5) but I cannot use Flash; Is there a light java applet or any alternative technology for this?.
View 1 Replies
Jun 3, 2010
Is there any way asp.net can access/stream web cam content without using flash or silverlight to access the web-cam?
View 1 Replies
Jun 4, 2010
I'm trying to play with live web cam using asp.net with C#. I want to access/stream web cam content using flash then send the captured streams using Real-time Transport Protocol.
View 1 Replies