Problems using camera - Flash CS4

  • All updates are installed
  • Please give us more information about your creative environment:
    • Flash for CS4 10.0.2
    • Mac OS x v10.7

I followed the ActionScript 3.0 for Adobe Flash CS4 Professional - Classroom in a Book

I'm in Lesson 12 where it refers to access the camera from the user to display a picture taken by the camera.  The purpose of the lesson is that, after loading the image on the screen, the filters can be applied to him.  The question I have is that no image is displayed on my screen.  I've been on the code closely (the file that comes pre-loaded ready to go did not work).  I loaded the facetime and I went to www.testmycam.com and my camera works very well in both cases.  The dialog box comes and asks me to allow or deny.  Of course, I click ALLOW.  I am at a loss.  The code is below.  Any help would be appreciated.

Fl.ik import. *;

Import fl.events.SliderEvent;

import flash.media.Camera;

import flash.media.Video;

IKManager.trackAllArmatures (false);

var arm0:IKArmature = IKManager.getArmatureAt (0);

var rt0:IKJoint = arm0.rootJoint;

var jt0:IKJoint = rt0.getChildAt (0) .getChildAt (0) .getChildAt (0);

var mover0:IKMover = new IKMover (jt0, jt0.position);

var fx1:Sound = new Sound();

FX1. Load (new URLRequest ("robotArm.mp3"));

var channel1:SoundChannel = new SoundChannel;

var fx2:Sound = new Sound();

FX2. Load (new URLRequest ("click.mp3"));

var channel2:SoundChannel = new SoundChannel;

var camera:Camera=Camera.getCamera();

var video: *;

If (camera! = null) {}

video = new Video (160, 120);

video.attachCamera (camera);

addChild (video);

trace ("camera is ok");

} else {}

trace ("there is no recognized camera connected to your computer.");

video = new AltVid();

addChild (video);

}

snapshot_btn.addEventListener (MouseEvent.CLICK, onSnapShot);

function onSnapShot(e:MouseEvent):void {}

stage.addEventListener (Event.ENTER_FRAME, moveDown);

snapshot_btn. Visible = false;

channel 1 = fx1.play ();

}

function moveDown(e:Event) {}

If {(jt0.position.y, 305)

var pt0:Point = new Point (jt0.position.x + 5, jt0.position.y + 5);

mover0. MoveTo (PT0);

} else {}

CHANNEL1. Stop();

canal2 = fx2.play ();

channel 1 = fx1.play ();

stage.removeEventListener (Event.ENTER_FRAME, moveDown);

stage.addEventListener (Event.ENTER_FRAME, moveUp);

}

}

function moveUp(e:Event):void {}

If {(jt0.position.y > 165)

var pt0:Point = new Point (jt0.position.x - 5, jt0.position.y - 5);

mover0. MoveTo (PT0);

} else {}

stage.removeEventListener (Event.ENTER_FRAME, moveUp);

snapshot_btn. Visible = true;

CHANNEL1. Stop();

}

}

Thank you

John

Detect that a web cam in windows is different to detect a webcam in mac

function activaWebcam(e:MouseEvent):void {}

trace ("active webcam");

var index = 0; the default for windows-

The search for the webcam Mac index

for (var i = 0; i)< camera.names.length;i++)="">

If (Camera.names [i] == "USB Video Class Video") {}

index = i;

}

}

Cam = Camera.getCamera (index);

video.attachCamera (cam);

}

Tags: Adobe Animate

Similar Questions

  • Emergency aid the problem of adobe flash cs4 animation

    I am working currently on the amimation project, after that I am referring to:


    http://www.pixelhivedesign.com/Tutorials/Flash+matrix+-+animated+code+effect/


    and successfully make an animated background matrix, then the problem, some object or symbol or animation I put on the background will automatically become 'transparent', who can see the word matrix pass through it, I am completely newbie on this software and any help is welcome

    BTW, I use adobe flash cs4

    You must manually create an empty movieclip and place it on the stage in the upper left corner on a background layer of the main timeline.  Then, assign it an instance name of "backgroundMC" This movieclip is where the code will place all the matrix elements to be created.

    To create an empty movieclip, in the toolbar at the top of the page, select Insert-> new symbol-> Movieclip... assign a symbol name as "Virgin mc" or something so that you know what it is to return to the main document choose edition--> the main Document, and then drag a copy of the new movieclip to the upper-left corner of the stage.

    When it is still selected, assign it an instance name "backgroundMC" in the properties panel, where it says "" (you can name it what you want, but I'm just using background MC for this example to work.

    If you did this correctly, the matrix will be limited now to be in this context movieclip and you can place another object above it in the other layers.

  • Problems using Camera Raw in Bridge CS5.1

    Hey so I don't know what the devil is going on, but the Camera Raw worked perfectly for me when I first came to this computer. It is a work computer, and all programs have been installed recently. I like to use Camera Raw due to changes in basic easy and made massive (from .nef to .jpg) because I do a lot of shooting as a journalist.

    As I said, it worked very well for me these last three weeks. Now, I get this error message:

    The Camera Raw editing is not enabled

    Camera Raw edition requires a product calling it launched at least once to activate this feature.

    I just installed the program, alongside the editor of PES 12, and I have no idea how to solve this problem. Of course, I opened the Bridge and PSE, so I have no idea what I'm supposed to do now.

    Please please help. It's a MAJOR pain in the anus to change each picture manually in PSE.

    Try resetting preferences.  Hold down the option key and launch Bridge.  You should get a window to reset.

    If this does not work, it may be how they programs installed.  They use a disc?

  • Can you solve my problem installing Adobe Flash CS4 in point 8.1 of Windows

    I just bought a new laptop running Windows 8.1 and wanted to install Adobe CS4 Master Collection, which has run perfectly on Windows 7 years. On the first installation disk, I get the following message. "Setup error".

    Installation of the following components has not:

    Adobe Flash CS4

    To continue installing the rest of the options, click on continue.

    To cancel the installation, click on exit. »

    I did some quick research on google and this forum and have not found a satisfactory explanation. I have disabled the software anti-virus and firewall, but it changed nothing. I know that Windows 8 is different, but it seems strange that she does not offer backward compatibility for such a market, driving the tool like Adobe Flash.

    Any ideas?

    It seems that the error was just related to Flash player, who has not been able to install CS4 discs, because it is pre-installed Internet Explorer 11, which is bundled with Windows 8.1

    I don't know how to close this question, but if a moderator reads this, could you please close the message. Thank you, Eli

  • Problem updating Camera Raw CS4

    After a re installation computer, I try to get the raw files from my Olympus E - 620 working with Photoshop CS4.  After some research (and attempts), I found that I can use Adobe Camera Raw versions up to 5.7.  I downloaded the update and it appears the application CameraProfiles in order to install correctly, but my plugin version 5.0.0.178 rest and my raw files opens (incorrect file type errors).  Windows 7 64-bit.  I prefer not to use the digital negative converter but do it properly installed (not yet tried).  Thank you!

    If, as you say, it installed, it should have gone in the wrong folder. I suggest that you use the Windows Explorer and navigate to the Program Files folder and search for *.8bi. Camera Raw should be included in the folder C:\Program Files\Common Adobe Plug-Ins\CS. If you see a list for both Camera Raw files, I suggest that you change the extension on the one who is in the right folder to old. That to copy the other Camera Raw files into this folder. At least it's something to try.

  • Problem of camera/Flash in low light conditions

    I have a Xperia Z2 updated with android 4.4.4. When I try to take pictures at night I just get purple photos. It started out of nowhere a few weeks ago. Let me say that this is not dirty or blocked by anything. I don't have a case. I just restored the phone today with Sony PC Companion and always the same question. All the solutions for this...?

    Yes, contact your local care Xperia

  • Things to give instance names. Flash cs4

    I've been using adobe flash cs4 for awhile now and have had little trouble giving things, instance names. Now, though, whenever I double click on something as I usually do to give it an instance name, the blue box comes is no longer around, I click on properties and change the name of the instance. I now get a dotted along the lines of the image line. and when I go into properties, he said only: form, and I can not change the name of the instance. Just position size, then fill and respect.  What is going on?

    You assign names to instances of objects in the library.  Instance names are assigned to the object on the stage.  Instance names are unique for each element on the stage... which means that the same object library can be used several times, each instance will have a different name.  If you want a name you do either by manually it enter in the properties panel, or through actionscript code when the object is added to the film.

  • Flash CS4 problem of multiple selection, scale/position

    Hello.

    I noticed that if you have a flash cs4 AS2 where you need to make a zoom and zoom out effect on several elements, you will have a time painful building this scale + position effect. Let me explain.

    All need to be put in the scale of 0 to 100%, then 100% to 0. Some people need to be level in the exact position where they are, but others must also move to adapt to the zoom effect to a result of a central effect for everything). For some unknow reason that interpolation does not work for this point. If I had to do it manually using 50 keyframes of the 1 frame (ho joy... don't forget to times that by 19)

    We all know that when you use the free transform tools, you have the processing area + small circle that define the location of the effect "Centre" of the issue. Regardless of the location of this small circle, when you zoom it will go away in the opposite direction and the opposite is also true. So far, it works perfectly.

    However if you take the time to put this small circle for all your element perfectly and test it with everything, you should be able to select ALL of your items at the same time and perform the same motion as if you were doing it on one right? Well no.

    If you do this with a single element and play with the scale (with the constraint), it does what you want. But if you select all, you will discover quickly enough that it no longer works. You will also discover that it is adding a NEW small circle ('central' position) that is shifted. Fair enough, I move this circle in the exact spot of the zoom effect, then try to do the zoom and TADAM... it does not work, is still playing with the scale/position management.

    Z. Ctrl deselect everything, then try again with 1 single random element? work perfectly. Try with all of them at the same time? do not work.

    Remember all these zoom element in the same place, then you should have no problem with the new small circle as you move to the same place as the other. But none. even if it is there, it will always be scale/position to the South where it supposed to be. Do everything at the same time while fixing this circle should save you time, but right now it's exactly the opposite, an effect that could take an hour to do will take me the whole day, if not more.

    any clue?

    I hope I'm clear enough

    THX.

    I don't think that there is a bug.  but, if you want to report an:

    https://www.Adobe.com/cfusion/mmForm/index.cfm?name=wishform

  • GOOgle maps and the problems of flash cs4

    Hello, I have a problem.

    I did a site in Flash cs4 with several pages that you enter by clicking on the button.

    Then in one of the pages I wanted to insert google map so I did the installation of the google maps.

    Then, I entered a keyframe and insert the ActionScript for the google map:


    import com.google.maps.LatLng;
    import com.google.maps.Map;
    import com.google.maps.MapEvent;
    import com.google.maps.MapType;
    import com.google.maps.InfoWindowOptions;
    import com.google.maps.LatLngBounds;
    import com.google.maps.MapMoveEvent;
    import com.google.maps.overlays.Marker;
    import com.google.maps.overlays.MarkerOptions;
    import com.google.maps.interfaces.IPolyline;
    com.google.maps.services import. *;

    var dir:Directions;
    var polyline:IPolyline;
    var map: map

    function setupMap() {}

    map = new Map();
    Map.Key = "ABQIAAAA38eqZ79rYEIJwNYsDl4kqO9UF00lgandsoandso... » ;
    map.setSize (new Point (800,500));
    Map.x = 150;
    Map.y = 150;
    map.addEventListener (MapEvent.MAP_READY, onMapReady);
    this.addChild (map);

    }
    setupMap();

    function onMapReady(event:Event):void {}

    dir = new Directions();
    dir.addEventListener (DirectionsEvent.DIRECTIONS_SUCCESS, onDirectionsLoaded);
    dir. Load ("Belgrade");

    }
    function onDirectionsLoaded(event:DirectionsEvent):void {}

    }

    GOOGLE MAP WORK NICE BUT,

    I have a problem when I go to another page google map stays on this page too...

    with a page from the last keyframe apearing on other pages, I always solved with the entry BLANK KEY FRAMES BETWEEN THEM IN A TIMELINE.

    THIS IS ACTIONSCRIPT...

    I do not know how to stop google map when I go to the other page, his trips, he...

    pls help I have more solutions.

    Thank you

    I fairly well supplied all the necessary details in what I have described.  Create a new movieclip with nothing in it symbol.  Place it in a frame where you want the card to appear in the timeline and assign it an instance name ("emptyMC" works).  In the code that show you, change...

    this.addChild (map);

    TO

    emptyMC.addChild (map);

    This should work unless there is something on Google maps that I know not (which is very likely since I haven't used their is still Flash)

  • Is there a way to use a camera flash or remote flashes on a rebellious T5? (This isn't a T5I)

    I have a T5 of rebel, I just bought a few months ago. I like it as it is a great entry DSLR. I will consider the upgrade in a few months. But in the meantime, I just bought a Flash kit (not Canon) and it came with 2 flashes and tripping distance and 2 satellite receivers. Is there a way to activate the camera to use off camera Flash? I managed to put on one of the flashes like an external flash, but I was not able to determine how to turn off camera flash.

    I don't have any idea what Kit you bought, but he should have with a trigger that goes into the hot shoe of your camera.  When you take a picture, it sends a signal to the receiver, which tells the flash fire (s).

  • TextFlowUtil in Flash CS4 using

    Hello

    How can I go on using TextFlowUtil in CS4?  What project settings should I update.  I tried a variety of source and library without success paths.

    What I'm trying to do is import of markup in a Flash CS4 application that has been exported from an application Flex via TextFlowUtil.

    I have installed in Flash CS4 TextLayout component and it works fine.  I can't operate TextFlowUtil.

    Thank you

    Jr

    It sounds like the same question past yet. The ImportExportConfiguration class is an older version of the swc (s) TLF. Check to make sure that the old component is not always somewhere, and that it doesn't have a TextLayout.swc (or TextLayout_conversion.swc) $ (AppConfig) / ActionScript 3.0/libs or in some other reference in your project.

  • Flash CS4 and database to use (MySQL, ACCESS, etc.).

    Hello

    can anyone tell me please where to find tutorials on how tp use databases with Flash CS4?

    I created a form, a page of e-mail and a name of user and password pages, but I can't find any tutorials that could help me how to connect to a database.

    Thank you in advance for your help!

    GGour

    http://www.Kirupa.com/developer/ActionScript/flashphpxml_integration.htm

  • (Help) Using Input text in Flash CS4 AS3

    I'm trying to take a (named) user input and then greet the user on the next image using the name that he previously entered. I googled for 2 days and was unable to find a way to do this on flash CS4 AS3, I guess because im very new to Flash (only 2-3 weeks)
    Any help would be greatly appreciated, and I'm sorry if this has already been answered in the forums.
    Thanks for reading.

    I think that, in this case, you put the cart before the horse.  The variable is that the function will set the value of correct?  You have the textfield object being assigned to the variable, which is at that time an undefined value.  Try to think of what you are doing as you do.

  • film test in FLASH CS4 problem

    Hello

    I have created a graph on one layer in my timeline in FLASH CS4 and then add a new layer above it with the text to create a zoom effect. When I click on control > play the movie plays fine with text zoom out as it is supposed to, but when I click on the control > test movie film shows white with the text visible permanently and graphics flickering on (visible) and so fast that it is barely visible in the Sea (not visible). Any ideas on why the film of test does not work? Any help would be greatly appreciated! Thank you!

    ashmic19

    The kind of behavior you describe is often obvious when there is an error in actionscript in the file.  You have all code in the file?

    It could also be a case of loop between two images, well based on what you describe, I see currently is the case.

  • The Iphone needs to cool down before using the flash

    Hello

    I see the message on my Iphone 5 s(IOS10-Updadte) camera-"The Iphone needs to cool down before using the flash"

    Please help me solve the problem.

    Hi sangani53,

    Thank you for using communities Support from Apple!

    This message indicating that your iPhone must cool before using the flash indicates that the temperature of your iPhone is passed to where certain features will be disabled.  Once you bring the temperature down, the features should come back.  Take a look at this link for more information on updating your iPhone in the operating temperature.

    Keep the iPhone, iPad and iPod touch in acceptable operating temperatures

    Take care.

Maybe you are looking for