Shake accelerometer Flash trigger

I did experiments with the accelerometer class in Flash CS5 and made a soft simple test of a ball that moves according to the inclination of the device (tested in Adobe Device Central). What I want to do now is to detect a shake to trigger a method.

I created a maagic 8 ball in Flash that displays a response via an event: mouse click. Instead of using the click of the mouse, I would like to detect a shake. Any ideas? All my AS3 code is in the layer actions, no code in the class definition.

I was looking for the same thing today and stumbled on the answer here:

http://www.russtarleton.com/2010/05/detecting-a-shake-on-a-Flash-10-1-enabled-Android-device-using-a...

If you code layer actions only, you'll want to get the things out of class (that is to say, 'private' before the vars functions)... but it's essentially the same.

I used this method on the iPhone and worked well. Although I could not shake_wait to work. Once I deleted all references shake_wait, I was able to make it work.

Tags: BlackBerry Developers

Similar Questions

  • The Canon 70 d remote flash trigger

    Which Canon speed light will work off camera and be triggered by the functionality of firing the flash in camera remotely?

    The native (built-in) flash trigger IS.  This is an optical trigger and requires line of sight to the off-camera flash.

    The 430EX II can be a 'slave' (flash remotely triggered), but may not be a master.  The 580EX II can be a master or slave.  600EX-RT can also be a master or slave (and can no optical or by radio but radio requires a radio trigger - sells Canon a dedicated radio ST-E3-RT trigger or an another 600EX-RT flash can be used as a master/trigger.)

    The built-in flash uses pulses of light (visible light) to communicate with slaves and relay instructions.  It is not infrared or radio.  But the receiver in the slave flashes is on the lower part of the body (not in the flash head upwards).  The front of the lower part of the body has a tint red Panel that resemlbes what you would see on an infrared remote - leading people to assume that it is IR it isn't visible - IR

    If the remote light does not pull when the flash on the camera goes off then lower unit may not have good lighting of the view.  Keep in mind the 430EX II 580EX II and 600EX-RT that all have a flash head that can tilt AND turn left and right.  This means that you can rotate the lower part of the body of the flash so that it points to your camera, but always turn the head so that it points toward your subject.

  • key to the flash flash trigger event

    Hi guys,.

    I currently have a series of buttons related to HTML pages. I want to do is make them trigger another flash animation, for example in the middle of the page links according to which button of spawning. Im a complete noob on action script and know none I use the timeline but no solution to this would be welcome.

    Thank you

    Tony

    Ive found that a feature called "gotoandplay" which im going to use as ive already got a stop in the timeline. With this I can have gaps in the timeline, then use gotoandplay to play the desired image and after animation ect put another term.
    So using the gotoandplay on each button to reference an image to show what I want that touch

  • SONY should 'go' trigger 'in camera' radio... LEAD market

    Sony needs to solve, but my guess is that it should be done with a new Flash and a radio Sony Radio Flash system system.

    There are a number of small problems (60 m), most will never know (opinion). Flash Delay, overheating and Hot Shoe Lock goes soft and not locking down.

    I hope that SONY will be available this Flash RADIO system 'with' receivers that you can buy to trigger all your legacy strobes and flashes... a the RadioPoppers, who has done this for years. and very long Distances.

    My preference is a menu more like the Nikon CLS (in private), so you can quickly and easily see your groups settings, get to them and change them... to the 'less' of groups of three (3) (and hand)... the Sony Ratios are the most.

    Now, imagine a SONY high end camera which BUILT in Radio Flash Trigger? (it will have WiFi as it is)

    Which relies on the "edge of the camera" then the trigger off-camera Flash. (do not attach another flash to your small camera... but with UPDATED it is still possible if you want her but she "should" be an option, not a must.

    IF SONY does this... then you 'really' speak a Flash Sony's advantage. And honestly for PRO, Sony NEEDS photographers who.

    and Sony has produced electronic another accessory that they can sell with cameras and Flashes.

    Sony could also manf a portable strobe to TRAVEL (which is TTL, stiff tail / short for Sports and with power... and can use the popular softboxes) cool how would that be?

    Just my opinion, coming from Nikon CLS,

    Great ideas, Hawaii-Greek! We will convey your thoughts to our engineering team. While we cannot guarantee that this product will be available, the feedback you and other members of the community give help understand us how we can improve our products.

  • Flash delay wireless RX1

    FYI: found a Flash problem wireless RX1 F20AM VHF F60M > to > F60M off-camera, which is strangely similar to that of the a99 motorway...

    where wireless TTL Flash trigger is delayed. The second pop of the TTL flash off when I lift my finger from the shutter.

    A problem that should be fixed, but it is somewhat like a button on the A$ $ of a Super HOT girlfriend. You want to go far, but she is 'Still' really, really HOT.      LOVE the RX1!

    Compared to the Nikon CLS where a D800 FW1.01 will take this second pop of the sb900 and almost have the IMPRESSION that it fires the Flash 'Before' the shutter knocks down. Yeh, it's that FAST. That's why I have four sb900!

    Here is the LINK to a tube in the program Flash a99 u. On the RX1 is pretty much the same thing: http://www.youtube.com/watch?v=eHrBcT51oE8

    FYI: a feature request: have a little Flash / shutter as the F20M... who can move on the SIDE and BACK... and CONTROL at least three (3) groups of flashes, be able to MODEL them and make the SONY REPORTS... and have at least three (3) channels it can change to. Having just CH 1 is malfunctioning for a shot with 'other' PROs PRO events.

    RADIO would be a good thing

    HG

    Thanks for your post. As with the post from Gary Friedman Youtube on the A77/A99, we look at why the camera is working the way it is. With respect to the other application, we have noted on your comments.

  • Flash Player 10 ActiveX install

    Download Flash Player 10 install on Firefox works fine.

    When I open Internet Explorer install ActivX version, the page is displayed in Japanese. By clicking on the download button causes http://www.adobe.com/shockwave/download/flash/trigger/jp/3/index.html.

    How can I force to see the English page and install the English ActivX? (It's on English Windows XP).

    Make sure that your browser language preferences settings do not understand Japanese (ja). You can also just go to http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&Lang=E French

    clechner / / adobe

  • Make Javascript provides an ID #?

    Hello!

    For a Flash navigation bar I need to provide a button ID # instead of linking my button directly to a URL. Other scripts on the page makes reference to the ID of the button to my page/hide certain content button.

    Earlier I was able to have Java script help open a pop up window using this code:

    Flash:

    on (release) {}

    getURL ("Javascript:popup3 ()": "');

    {

    In HTML

    < script language = "JavaScript" >

    function popup3() {}

    window.open ('http://www.URL.html', ",'toolbar = no, location = no, directories = no, status = yes, menubar = no, scrol lbars = no, resizable = yes, width = 620 height = 710, left = 10, high = 10');

    }

    < /script >

    Question:

    Can I use this kind of code to do flash trigger a java script which provids an ID for a button on the release?

    If so what would look like?

    Thank you in advance.

    ggaarde

    There is a typing error in this function:

    function {} f4()

    {$j('#Image4').click (function ()}

    $j('.widget-to-hide').css ('display', 'none');

    $j('.certification-widget').css ('display', 'block');

    $j('.arrow').css ('visibility', 'hidden');

    $j('.subtext').css ('color', 'white');

    }

    must be:

    function {} f4()

    $j('.widget-to-hide').css ('display', 'none');

    $j('.certification-widget').css ('display', 'block');

    $j('.arrow').css ('visibility', 'hidden');

    $j('.subtext').css ('color', 'white');

    }

  • sendAndLoad() fun

    {We (Release)}
    var my_lv:LoadVars = new LoadVars();
    my_lv.titleV = titleV
    my_lv. DescriptionV = DescriptionV
    my_lv. TimeV = TimeV
    my_lv.dateV = dateV
    my_lv.sendAndLoad ("newRecord.php", this, "GET");
    my_lv. OnLoad = function() {}
    trace (my_lv.outputVar);
    }
    }

    So really what I do here is to get it to make a new record in a database. Uh, I'm trying to do. My php file works fine, I can't properly flash trigger. The above is the code I used. Please enlighten me :)

    you are missing the object receiver, example:
    sendObj = new LoadVars();
    recObj = new LoadVars();
    sendObj.testVar = "coldMiner";
    sendObj.sendAndLoad ("newRecord.php", recObj, "POST");
    recObj.onLoad = {function (success:Boolean)}
    trace ("ok:" + recObj.variableFromPhpPage);
    }

  • My existing flash has a 12 trigger voltage, 2V. Is it dangerous to use on a NEX6?

    After testing, my existing flash has a 12 trigger voltage, 2V. This will be acceptable to my claw NEX6?

    After the Sony specification flash search box and enter a request, I found that Sony does not encourage a trigger voltage of above 6 volts. I'll take that as a response that my flash voltage of 12,4 to endanger my NEX 6 trigger.

  • Unable to trigger the nissin Di622 flash Canon 430ex II

    My gear is Canon T1i camera, flash for Canon 430ex ii, flash Nissin Di622 (1st model) and radio trigger CowboyStudio (I don't remember the model).

    The 430 in ettl mode & on the camera will trigger the camera 622. The pop-up flash will trigger the camera 622. The 430 on camera & manual mode will not trigger the 622 camera and the camera 430 will not trigger the 622 in any mode.

    The radio trigger fires the camera 430. I want to trigger the camera 430 with the radio and have the 430 then trigger the 622. Is there a way to do this?

    I thought that most of the flash units can be triggered by a Flash of light such as the pop up flash. I wouldn't be able to trigger the 430 (in all modes) with the pop-up flash?

    No, some Nikon and other 3rd party flashes can be triggered with a simple flash, but not Canon.   Your 430EX II won't work as a "slave" If you have a 'master' that uses the system of Canon wireless. Slave Flash gun can operate using coded light signals of the "master" flash Cannon

    Some newer Canon cameras have a built-in pop-up flash that can act as a "master" of Canon, but your T1i does not work like that. Canon cameras that will make this are the T3i, T4i, T5i, 7 d, 60 d, or 70 d.

    You can also buy a Canon flash which can be used on your T1i and acts as a "master".  It's the Canon 550EX, 580EX, 580EX II and 600EX-RT. The cheapest Canon ST - E2, which can also act as master but does not have a Flash.

    There are also a few 3rd party flashes as Yongnuo, Nissin and Metz who can also work as 'master' using the gun system.

  • I can trigger a flash remotely from the EOS Utility?

    Hello. I am a total newbie, so forgive me if my question is very basic or confused.

    I just bought a Rebel T5i (literally, my first ever buy SLR) and have been using the EOS utility to be able to "live view" on my desktop screen. It seems to work pretty well.

    However, I am interested with the addition of a flash remotely as a Speedlite flash, to be placed between the subject and background. Will be a remote flash correctly from live view EOS Utility work? Should it be a Speedlite flash, or can it be a third flash?

    I'm not too considered with flash quality as much as I just want to be able to take pictures with the EOS Utility live view, with the remote flash fires to light a backdrop behind the subject.

    Thank you!

    As Ernie points out... the computer simply tells the camera when taking the shot.  If the camera has a flash, then the camera fires the flash when he takes this one.

    But your question is loaded with some nuances and it is not just a direct response.

    A Canon T5i has the ability to fire distance a Canon speedlite if three conditions are met:

    (1) the flash must support E - TTL

    (2) the flash must support E - TTL mode 'slave' (and that the mode must be enabled - it will not be enabled by default.)

    (3) flash must be direct "corridor" between the camera and remotely.

    The camera itself needs to be said that it is in a mode where the flash pop up on the device will work as a 'master' to trigger a remote flash.

    But you mentioned that you wanted to put this flash to distance between a subject and the context - which implies that 'line of sight' is not possible.  Who calls other WIRING.

    You can learn a lot about flash systems Canon E - TTL of the "Manual of the Speedlighter" (by Syl Arena), but this book has not been updated (as far as I know) to include systems flash triggered by Canon's new radio.

    To do this with the Canon gear, you want a transmitter of radio ST-E3-RT (which amounts to the hoof as a flash camera) and then use a flash Canon Speedlight with a suffix 'RT' such as flash 600EX-RT (flash light) or the new 430EX III - RT.  All products of "RT" communicate by radio and do not require a line of sight direct.

    It is also possible to do with budget gear..., you can get a pair of transceivers trigger... we're going on the device and the other goes hand in hand with the remote flash.  These radio triggers are not "E - TTL", which means that the camera and the flash will not be able to communicate and negotiate the amount of energy must be used for shooting "on the fly" (as can an E - TTL flash).  This means that you will need to manually set the power level you want to use.

    Having to use manual flash should not be terribly difficult to learn.  The flash and the camera usually automatically set your power level, as it would for E - TTL flashes.  You control the light, by adjusting the power level of the flash (manually) or by moving the flash closer or away from your topic (or using the flash light modifiers) more, or by adjusting the opening of the camera.

    This works well in a situation of type 'studio', where you can control the power settings.  But for photography of the 'event' where you have to shoot on-the-fly and you "-over" If rush you the shot, you have to learn the flash behavior before the shooting. For me, it means creating a table which indicates (for any given on the flash power level) f-stop, should I use any flash-to-subject distance given.  I used usually non-zooms at this time, but I knew that, for example, a shot of 'dance' a couple of size - up to (what we call a "half coup" because we have only half upper body of our subject) was f/16 at ISO 100.  A length of 3/4 shot (essentially from the knees upwards) was f/11.  A shot of 'length' was f/8, and a group shot can be f/5.6 or even f/4.

    It necessary to the good days past tests and completing such a table.  You won't have the time to refer to such a table, but I mentally memorized by distance because the subject framing was a good consistent indicator of distance.  (it is a bit more complicated with zooms because you can change the subject framing without changing the distance).   But in the end, you find yourself in a situation where you go back to a subject at a demonstration, the frame of the shooting, set the aperture value and capture the image and know that you nailed the exposure even if the whole system is manual.

    There are a lot of tutorials on the use of the manual of flash and inexpensive triggers to the Strobist blog (strobist.blogspot.com).

    I use the Canon system.  I use the Canon ST-E3-RT trigger a few flashes 600EX-RT.  The system is rock solid... it always works.

  • Detect a shake of the accelerometer? Can anyone provide an example of method?

    Hello

    I try to use the accelerometer to detect a shake, can anyone provide an example of method? Thank you very much!

    Thanks Marc, I solved this problem already, just forget to mark resolved here.

  • Can you use Pocket wizards to trigger the HVLF60M Sony flash when it is out of the unit with the A7R?

    Can you use Pocket wizards to trigger the HVLF60M Sony flash when it is out of the unit with the A7R?  How about studio flashes (Alien Bees)? I just sold my Canon gear and moved to Sony, but I need advice on how to trigger wireless flashes.  Thanks for any help you can provide.

    Larry

    LarryMarshall, Any Trigger of manual Radio should work.  Assistants of pocket or RadioPoppers.

    But there are a few problems with the 60 m.

    (1) it doesn't have a PC or a 1/8 port to connect directly to a Rec Radio of any brand.

    (2) you WILL NEED to buy or use a hot shoe with a PORT adapter... 1/8 according to the sync cable or PC you may already own.

    (3) you WILL NEED to 'Check' to 'ensure' that trigger the 60 m SHAFT is aligned with the center of contact your hotshoe adapter hot with a PORT... because some adapters won't online upward with the 60 m Flash... who fooled you into believing that it does not work.  When, in fact, it's just the PIN which is not aligning with ALL the hot shoe adapters.

    It will work... you just have to be careful... and know of the gatcha.

    The 60 m PUT claw is not fully compatible with all... hot shoe adapters and there that to do with how PUT 60 m flash foot aligns the trigger ROD.

    I triggered the 60 m in flash with RadioPoppers... in the manual... so, I know it works.

    It is, manual release of the waste of the 60 m flash TTL/HSS abilitys.    What is needed is for SONY to develop and deliver a Radio trigger Solution.  Which would be TTL/HSS and you allow to 'Control' the Flash too... from the camera.

    It is the power of a Flash of modern Radio System.

    Manual triggers are old school.

    p.s. the A7r/A7 can easily trigger flashes of Studio with Pocket Wizzards or RadioPoppers... or probably triggers of manual.    Just be careful if the brand you choose is reliable.

    Pocket wizzards and RadioPoppers were the choice of PRO for years.  Because they are reliable.

  • trigger events based on the current image of the flash animation

    I have a Director with video qt project where are trigger actions based on specific times in the video (movietime and/or duration). I update this project in order to use flash instead of quicktime video.

    To facilitate the development and coding changes minimal if all goes well, I would like to keep this similar functionality, but I can't figure out how to capture the current image of the flash movie sprite.

    Can anyone help? or provide a workaround solution?

    I can't figure out how to capture the current image of the flash movie sprite.

    You were near. Try one of these:

    put sprite("flash").currentFrame
    -- or
    put sprite("flash").frame
    
  • Is it possible with the SL-1 to set the flash, so it will trigger always, regardless of the light conditions

    Maybe it's something easy to choose, but it is possible to set the SL-1, so that it will always be turned off when you take a photo?  For example, when I go out in daylight I can't get the flash goes off.  Sometimes it will be, but I don't understand why it will not be in each shot.  Is there a setting that I need to put the camera?

    All what you need to do is pop the flash up and then shoot P, Tv, Av or M and your flash will fire every time.

    In other modes, the camera will try to outhink you and will only fire the flash when he thinks it's necessary.

Maybe you are looking for