Multitouch Class in Flash CS4?

Does anyone know how to use the new multitouch class and its gesture/touch events in the ActionScript Editor of Flash CS4? The AIR 2.0 Runtime environment is installed on the machine, but what else do I need to use the multitouch class?
I’d appreciate any guess.

Download the lateset version of the Flex SDK, and follow the steps outlined in the link below
http://www.adobe.com/support/documentation/en/air/2/releasenotes_developers.html#h

Similar Messages

  • Enabling multitouch in adobe flash cs4

    how can i develop multitouch in my adobe flash cs4? currently i am also using the flash develop IDE, my adobe flash cs4 does not have the ability to publish in flash player 10.3 which i think it is the player that supports multitouch?

    http://rhuno.com/flashblog/2011/04/04/how-to-compile-for-flash-player-10-2-with-flash-cs5/
    The above way you have to proceed to have flash player 10.3 as a target from your publish settings. The above only explained how to get 10.2 google it for 10.3 swc and configure the way proceed above.

  • Error while attempting to use the CSSFormatResolver Class in Flash CS4

    Hello,
    While trying to work with a revised version of the CSSFormatResolver class (created by timoisalive and posted on this thread) the compiler threw the following error:
    1061: Call to a possibly undefined method getChildAtIndex through a reference with static type flashx.textLayout.elements:FlowGroupElement.
    The method originates from within the invalidate() method of the CSSFormatResolver class.
    public function invalidate(target:Object):void {       
         delete _textLayoutFormatCache[target];      
         var blockElem:FlowGroupElement = target as FlowGroupElement;      
         if(blockElem) {          
              for(var idx:int = 0; idx < blockElem.numChildren; idx++)                          invalidate(blockElem.getChildAtIndex(idx));          
    If I comment the for loop I can get the example to run, but that seems to seriously affect the way the styles are interpreted...
    The example files are attached below.
    Any suggestions?
    Thank you in advance.

    There is no FlowGroupElement.getChildAtIndex method.
    There are these two:
    getChildAt(index:int):FlowElement
    Returns the FlowElement child at the specified index.
    FlowGroupElement
    getChildIndex(child:FlowElement):int
    Searches in children for the specified FlowElement object and returns its index position.
    FlowGroupElement
    I think you meant getChildAt.
    Hope that helps,
    Rich

  • Flash CS4 loader class content not displaying in browser

    Hello,
    I'm very new at Dreamweaver and actionscript so any help would be greatly appreciated!
    I'm on a PC and created a simple gallery in flash cs4 to load images on a button click.  The images are being loaded with a loader class.  When I test the gallery in flash the images load correctly.  However, I inserted the .swf into Dreamweaver and when I uploaded the page onto the server, the buttons and the animation worked correctly, but none of the images were being displayed.  I tested it in both Firefox and IE and it did not work in either browser.
    I thought maybe the files were in the incorrect location, but everything is in the same file, including the .swf and the images.  I'm also using TweenMax and all those files are also together with the .swf.
    I also ensured that I had the latest version of the Flash player, but it still is not working.
    Thank you!

    Thank you for the quick response!  I am not actually using XML - I am loading the images from a folder.  Here is my code:
    function clicker(e:MouseEvent):void
    var myMC:MovieClip = e.currentTarget as MovieClip;
    switch(myMC.name){
      case"_button1":
       loader.load(new URLRequest("imgs/image01.jpg"));
       break;
      case"_button2":
       loader.load(new URLRequest("imgs/image02.jpg"));
       break;
    //loader class
    var loader:Loader = new Loader();
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE,placeimage,false,0,true);
    loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,errorhandler,false,0,true) ;
    loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,preload,false,0,true);
    this.addChild(loader);
    //handler for the loader
    function errorhandler(e:IOErrorEvent):void
    trace(e);
    function preload(e:ProgressEvent):void
    trace(e.bytesLoaded);
    The imgs folder is in the same folder as my .swf and has been uploaded.  Could there be something wrong with the links?

  • How can I use Flash_Slideshow.SWF in my Flash CS4 document?

    Hi,
    I have downloaded a nice Flash Slide show file (.SWF) and would like to use in my Flash CS4 document without any modification (as it is). How can I use it? There is no .Fla file this Slide Show. It just works using xml file.
    Please do help.

    Hi,
    You need to load a .swf file in your flash document using the loader class. I'm assuming you are using the AS3. Please click on the below link which helps you to use the loader class.
    http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/Loader.html
    Thanks

  • Flash CS4 onPeerConnect does not fire

    Hi
    I tryed to do Flex example for simple chat (p2p) with Stratus at Flash CS4 IDE
    (adapted it of course) but onPeerConnect does not fire.
    Can you take a look at my code ?
    What's wrong with it ?
    package {
        import flash.events.*;
        import flash.net.*;
        import flash.display.*;
        import flash.media.*;
        public class stratusTest2 extends Sprite {
            private const SERVER_ADDRESS:String="rtmfp://stratus.adobe.com/";
            private const DEVELOPER_KEY:String="a9fb14e5b040800e8327ab51-37f33907d0c1/";
            private var nc:NetConnection;
            private var myPeerID:String;
            private var farPeerID:String;
            // streams
            private var sendStream:NetStream;
            private var recvStream:NetStream;
            private var VideoDisplay:MyVideoDisplay;
            private var FAR_PeerVideoDisplay:farPeerVideoDisplay;
            private var VidDisplay:Sprite;
            public function stratusTest2(){
                addEventListener("addedToStage",initThis);
            private function initThis(e:Event){
                VidDisplay=new Sprite();
                addChild(VidDisplay);
                connectToStratusBTN.addEventListener("mouseDown",initConnection);
                initSendStreamBTN.addEventListener("mouseDown",initSendStream);
                initReceiveStreamBTN.addEventListener("mouseDown",initRecvStream);
                sendDataBTN.addEventListener("mouseDown",sendDataBTNPressed);
            private function initConnection(e:MouseEvent){
                if (MY_peerIDText.text) {
                    farPeerID=MY_peerIDText.text;
                nc=new NetConnection();
                nc.addEventListener(NetStatusEvent.NET_STATUS,ncStatus);
                nc.connect(SERVER_ADDRESS+DEVELOPER_KEY);
            private function ncStatus(event:NetStatusEvent):void {
                INF.appendText("ncStatus: "+event.info.code+"\n");
                trace(event.info.code);
                myPeerID=nc.nearID;
                MY_peerIDText.text=myPeerID;
            private function initSendStream(e:MouseEvent){
                trace("initSendStream");
                INF.appendText("initSendStream\n");
                sendStream=new NetStream(nc,NetStream.DIRECT_CONNECTIONS);
                sendStream.addEventListener(NetStatusEvent.NET_STATUS,netStatusHandler);
                sendStream.publish("__media");
                var sendStreamClient:Object=new Object();
                sendStream.client=sendStreamClient;
                sendStreamClient.onPeerConnect=function(callerns:NetStream):Boolean{
                    farPeerID = callerns.farID;
                    trace("onPeerConnect "+farPeerID);
                    INF.appendText("onPeerConnect "+farPeerID+"\n");
                    return true;
                //VideoDisplay=new MyVideoDisplay(VidDisplay);
                //var camera:Camera=Camera.getCamera();
                //VideoDisplay.attachCamera(camera);
                //sendStream.attachCamera(camera);
            private function initRecvStream(e:MouseEvent){
                recvStream=new NetStream(nc,farPeerID);
                INF.appendText("start receiving from "+farPeerID+"\n");
                recvStream.addEventListener(NetStatusEvent.NET_STATUS,netStatusHandler);
                recvStream.play("__media");
                recvStream.client=this;
                //FAR_PeerVideoDisplay=new farPeerVideoDisplay(VidDisplay);
                //FAR_PeerVideoDisplay.attachStream(recvStream);
            public function receiveSomeData(str:String){
                txtReceiveData.text=str;
            private function sendDataBTNPressed(e:MouseEvent){
                sendStream.send("receiveSomeData",txtSendData.text);
            private function netStatusHandler(event:NetStatusEvent):void {
                trace("netStatusHandler: "+event.info.code);
                INF.appendText("netStatusHandler: "+event.info.code+"\n");
                trace(event.info.code);
    i have 3 input texts: MY_peerIDText, txtSendData, txtReceiveData
    When i press connectToStratusBTN i get ID after than i open another
    browser window with the same swf and paste this ID into MY_peerIDText
    After connection i press initSendStreamBTN in first swf (it is 1st browser page)
    and i press initReceiveStreamBTN in 2nd swf
    After that iwrite down some text in txtSendData TextField (in 1st browser page) and press sendDataBTN
    Nothing happens

    this function doesn't work correctly:
    private function sendDataBTNPressed(e:MouseEvent){
                sendStream.send("receiveSomeData",txtSendData.text);
    because you send not String, but link to the txtSendData.text, which is empty in another peer.
    So, solution is following (not the one, but for example):
    private function sendDataBTNPressed(e:MouseEvent){
             var sendString:String = "";
            sendString+=txtSendData.text;
            sendStream.send("receiveSomeData",sendString);

  • Error while loading a swf created in flash cs4, inside a flex application

    Hi there,
    I have created a rotating logo in flash cs4 using motion presets, named logoRotar.swf. I have used this inside my flex application:
    <mx:SWFLoader width="33.33%" height="100%" source="assets/logoRotar.swf">
    When I execute the flex application, I get this runtime error message:
    VerifyError: Error #1014: Class flash.geom::Matrix3D could not be found.
        at global$init()
        at fl.motion::AnimatorFactory3D/getNewAnimator()
        at fl.motion::AnimatorFactoryBase/addTargetInfo()
        at logoRotar_fla::MainTimeline()
    I also tried adding import flash.geom.*; statement in my flex application, I still get the same message.
    Flash player 10,0,22,87 is running in my browser.
    Please help me out....
    Cheers!
    Deepak

    Get Flex 3.3 and use -target-player=10
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Can this be used by Flash cs4?

    Hi All
         I have learning AS3 just a short time,and there is a task need me to do spelling check in a textArea.
         I'm so glad that i find this,but I can not use it well.I try it in Flex builer3 and it worked well,but i don't know how to use it by flash cs4.
         My programm is built by flash cs4,and I cannot change it to Flex now.
         I put the swc file into compoent menu and new a file as sample code,but it cannot work.
         I want to know whether this can be used by flash cs4 and how?
         Thanks very much and forgive my poor English

    hi there,
    bruce from adobe just posted a comment over at our blog (apdevblog.com) saying that someone here at the adobe forums is looking for a spellchecker that also works with textfields in flash ...
    we released the second version of the Apdev Spellchecker yesterday - check it out: http://apdevblog.com/actionscript-spellchecker-for-flash-textfields-with-source-code-and-e xample
    It's built on top of the Squiggly classes but can be used with every dynamic textfield in flash/actionscript.
    Take a look at the example: http://apdevblog.com/examples/apdev_spellchecker/
    and you can download the apdev spellchecker class here: http://apdevblog.com/examples/apdev_spellchecker/src/ApdevSpellChecker.as
    maybe this is what you were looking for ..!?
    cheers,
    phil

  • Unable to export swf movie in adobe flash cs4

    First I edited my flash project in flash 8
    after that  I insatlled trial version of adobe flash cs4
    now in my project there are 650 layers
    till then it was ok
    but now now it is giving me trouble with this error
    "The Export Frame for Classes specified in the Publish or Export settings, frame 1, does not exist. No bytecode for ActionScript 2.0 classes or interfaces was exported."
    I am about to complete my project atlast I ended with an error
    Any one plzzz help me...................................
    I am unable to test the movie also

    Hi Mia - yes, definitely start using your external HD! To use it you must connect it to your computer of course. It should have come with the appropriate cable, probably a USB connection. The main issue will be how it is formatted. Many hard drives when they are bought, are formatted for Windows PC machines rather than for Apple MacIntosh computers. If so this would need to be changed, and in the process that would erase anything already stored on it.
    So, firstly connect your external drive to the computer, and turn it on. You should then see a small icon representing that drive appear on your computer's desktop. Control/Click on that and choose the 'Get Info' option from the list of options that appears. The resulting small window will tell you what the format of the drive is. If it is not 'Mac OS Extended', then it probably has to be re-formatted.
    We won't go into how this is done until you tell us it is going to be necessary.
    Assuming all is well with the formatting, you can just drag the photo folders over the icon of the external drive. This will copy them over to that drive. Double-click the icon to open a window showing that this has happened. You can then trash the originals on your computer, freeing up more space.
    Get back to us if you need more help.

  • I am trying to experiment with Tweens and Easing Types in ActionScript 3.0, Adobe Flash CS4. help

    I am using ActionScript 3.0, Adobe Flash CS4 software
    I have created Tweens for some MovieClip properties and experimented with some of the easing types.
    This is what I have managed to create and works okay!
    grow_btn.addEventListener(MouseEvent.CLICK, grow);
    shrink_btn.addEventListener(MouseEvent.CLICK, shrink);
    rotate_btn.addEventListener(MouseEvent.CLICK, rotate);
    hide_btn.addEventListener(MouseEvent.CLICK, hideClip);
    show_btn.addEventListener(MouseEvent.CLICK, showClip);
    fadeOut_btn.addEventListener(MouseEvent.CLICK, fadeOut);
    fadeIn_btn.addEventListener(MouseEvent.CLICK,fadeIn);
    function grow(e:MouseEvent):void {
                    var scale1:Tween = new Tween(instrument, "scaleX", Back.easeIn, 0, 1, 3, true);
                    var scale2:Tween = new Tween(instrument, "scaleY", Back.easeIn, 0, 1, 3, true);
    function shrink(e:MouseEvent):void {
    var oneSmall:Tween = new Tween(instrument, "scaleX", Back.easeInOut, 0, -.2, 3, true);
    var twoSmall: Tween = new Tween(instrument, "scaleY", Back.easeInOut, 0, -.2, 3, true);
    function rotate(e:MouseEvent):void {
    var spin:Tween = new Tween(instrument, "rotation", Elastic.easeOut, 0, 360, 5, true)
    function hideClip(e:MouseEvent):void {
    instrument.visible = false;
    function showClip(e:MouseEvent):void {
    instrument.visible = true;
    function fadeOut(e:MouseEvent):void {
    var tweenfadeOut:Tween = new Tween(instrument, "alpha", None.easeOut, 1, -.1, 3, true);
    function fadeIn(e:MouseEvent):void {
    var tweenfadeIn:Tween = new Tween(instrument, "alpha", None.easeIn, 0, 1, 3, true);
    I am having trouble creating Tweens and add easing types for the action script below!
    I keep getting error message (“Access of undefined property Sine”) for example when I type
    function hideClip(e:MouseEvent):void {
    var noClip:Tween = new Tween(instrument, "visible", Sine.easeOut, 0, 1, 3, true);
    Can anyone help???? The original script is below
    hide_btn.addEventListener(MouseEvent.CLICK, hideClip);
    show_btn.addEventListener(MouseEvent.CLICK, showClip);
    function hideClip(e:MouseEvent):void {
    instrument.visible = false;
    function showClip(e:MouseEvent):void {
    instrument.visible = true;

    make sure you have imported the Sine class
    import fl.motion.Sine;

  • How to use embedded font (CFF) for Flash CS4?

    Hi,
    I am trying to embed "Arial Unicode MS" for use by TLF in my Flash CS4 project. As I googled around, I am using the "Flex SWC" approach, only not having any luck. Here is what I got:
    //Code in Flex ActionScript project:
    package
        public class FontEmbeds
            [Embed(source='C:/Windows/Fonts/ARIALUNI.TTF',
                    fontFamily='ArialUnicodeMS',
                    embedAsCFF='true'
            public const Font1:Class;
    When I am trying to instantiate this class, I have AS code in my Flash main timeline:
    var font:Font = new FontEmbeds_Font1();
    Flash compiler says: "1067: Implicit coercion of a value of type FontEmbeds_Font1 to an unrelated type flash.text:Font."
    Ok. Now after I changed it to:
    var font:FontEmbeds_Font1 = new FontEmbeds_Font1();
    Flash gives 3 errors:
    "VerifyError: Error #1014: Class mx.core::FontAsset could not be found.
    ReferenceError: Error #1065: Variable TextLayout is not defined.
    ReferenceError: Error #1065: Variable MainTimeline is not defined."
    I am assuming I have to create a Font1 object in order to use the embedded font. Is this assumption correct? As I've tried to use the "fontFamily" directly but Flash didn't seem to find the font at all:
    charFormat.fontFamily = "ArialUnicodeMS";
    Thanks.

    Hi Eric,
    Thanks for the info.
    I've tried to use the "fontFamily" directly but Flash didn't seem to  find the font at all:
    charFormat.fontFamily = "ArialUnicodeMS";
    In one fla where I used pure TFL, nothing gets rendered at all in the container Sprite. Flash doesn't throw any errors either. In another fla where I used a ComboBox, etc. along with TFL, it throws an error says it can't compile since "there is no ActionScript found" and I got a screen where all the Flash components were  flickering. After several attempts, Flash crashed.
    Also as a side note, the swc gets generated by Flash Builder Beta 2, at first it was 18mb and the second time I complied it become 9mb and stayed 9mb afterwards. Not sure if that's a concern.
    Geng

  • Paste Motion Special Grayed out  (Flash CS4)

    I'm just learning how to use Flash CS4 (taking college online
    class) and I'm trying to follow the step-by-step instructions in a
    specific lesson. Whenever copy a motion-tweened animation and then
    try to "paste motion special" the option is grayed out. I've looked
    thru the documentation but can't seem to find an explanation. I'm
    hoping there is someone out there that has a very simple
    explanation of
    why it's happening and then can walk me thru
    what I need to do to fix it.

    quote:
    Originally posted by:
    RPlummer
    I'm just learning how to use Flash CS4 (taking college online
    class) and I'm trying to follow the step-by-step instructions in a
    specific lesson. Whenever copy a motion-tweened animation and then
    try to "paste motion special" the option is grayed out. I've looked
    thru the documentation but can't seem to find an explanation. I'm
    hoping there is someone out there that has a very simple
    explanation of
    why it's happening and then can walk me thru
    what I need to do to fix it.
    I think I'm in the same online class....having the same
    trouble. Hope someone here can help. Thanks.

  • Flash CS4 Bug saving to external drive?

    I discovered last week when teaching my Flash class that in saving FLAs to my USB drive, and THEN testing/publishing, the AS3 code was ignored in the resulting SWF?EXE files.  I duplicated the situation with multiple computers, mutliple external drives and multiple FLA files. I even tried it at differnt locations (home and campus). The problem is only related to CS4 with Actionscipt 3.  Both CS3/AS3 and CS4/AS2 test/compile as one would expect. Save the CS4/AS3 file to the internal C: drive and then test/publish everything works fine. Go figure! WHy would the save location make any difference? I thought perhaps it was a PATH environment variable issue, but putting the external drive path in the PATH statement caused no effect.
    Here's the information I'm providing to my class tonight. Anyone else encountering the same? BTW, I upgraded to release 10.0.2 but to no avail.
    THE PROBLEM:
    I think I discovered a pretty major bug in Flash CS4. When creating an ActionScript 3 file (with scripts written on the timeline) and saving the FLA source to an external drive (such as a USB thumb drive) and then testing (Control > Test Movie) or publishing (File > Publish), the AS3 code is ignored in the resulting SWF or EXE. If you save the file to the C: drive and then test/publish, it works fine. I tried this on several computers with several different FLA files and differing script, with several devices including a network drive – all with the same result.
    I posted the problem to the ActionScript forum at adobe.com and contacted tech support (via email) but have yet to receive any useful feedback.
    SOLUTIONS:
    OPTION 1: Save your FLA to the hard drive before testing. You can create a temporary folder on the desktop of the campus computers or should have access to C:\TEMP. So save your files there and at the end of you session, be sure to copy the files (both the FLA and any published files) to your USB for safekeeping. When updating your FLA, first copy it to the internal C: hard drive, then make changes and test, etc.
    OPTION 2: AS3 code written to an external .AS file does work when compiled. But this really is beyond the scope of this class and adds a lot of complexity.
    OPTION 3:  Use Flash CS3 – works fine in CS3, but of course you can’t use any of the cool new CS4 features such as new motion tweening, and inverse kinematics (IK bone structures).

    Susan,
    Would the File > Archive Project do what you want?
    Don S.

  • Newbie in hell...flash cs4 image

    Hello everyone,
    I must warn you I am an absolute beginner with flash, however am proficient in Illustrator / ps cs4 and now have flash cs4. I have a mountain of graphic work for a client and as part of this welcome work I've inherited a flash header that I need to finish for a website. The only problem is, I usually work in print and know nothing about flash, but would like to tackle this if I can. The inherited header is 980 x 230 with 8 images that fade in/out as they change over each other (morph). It was originally done in flash 10 using tweens but I gather flash has changed a bit with regards to this sort of thing.
    I like to learn new things but I have spent HOURS online and just can't find out how to do this. I've had a good look around flash but unfortunately I just can't dedicate days or weeks to learning the entire program.
    From what I can gather so far:
    The images go into flash library (is jpeg ok or do they have to be BMP) then I need to convert them to symbols then they go into the timeline as layers ...OMG I guess my first question is..is this a fairly simple thing to accomplish or should I look at outsourcing it? I'm pretty good with the teaching myself stuff, but my biggest enemy is time. I've looked at the adobe tv tuts but didn't see anything like what I'm after (the image doesn't need to slide, it just needs to fade into another one).
    I'm so buggered, hoping if I get some sleep some kind soul will either be willing to help, or tell me to forget it, either way helping to end my frustration!
    Thanks in advance,
    A bona fide Flash Dummie...
    Lauren

    I
    don't have CS4 so I am not familiar with the new way of tweening, only
    with what CS4 calls classic tweens, which is what I grew up with in
    Flash.  What I described for you is based on classic tweens.
    While those in in the know
    (a few) praise the wonders of the new tweens, general concensus in these
    forums for those that question them is that trying/learning to work
    with the new tweens is not straightforward.
    As far as movieclip versus
    graphic goes, neither is preferable over the other.  Both will perform
    in a tween.  Movieclips are useful when you have more to do with the
    object than just display it.
    The difference with the motion tweens is that the motion tweens are built to be easily scalable and to provide a graphical interface for easily updating/editing the tweens visually (including path, timing etc). Classic tween is what you want for your project so you're on the right track. As far as the difference between a movieclip and a bitmap not mattering, well it depends really on the scale of the project but best practice is to go with the smaller class. The movieclip class is massive, one of the largest because it is a dynamic type and is near the bottom of the chain of inheritance on the flash displayobject list. So, the bitmap class would be probably like 1/10th the file size of the movieclip class, so go with bitmap. Since flash is primarily a web technology and I'm sure you're doing this project for a website, every byte matters.  Imagine the difference in filesize is 5 kb just because of what classes you decide to use but you decide to deploy the project on a website with 5 million users. Thats 25 gigabytes of wasted bandwidth. Anyway that doesn't really apply to you because you're doing timeline tweens and the flash IDE will automatically import all of those bulky classes anyway, but it's good to keep in mind if you decide to pursue getting deeper into flash and working with actionscript.
    Anyway it looks like you've almost got your project all sorted out but there is the problem with doing everything inside flash using timeline tweens. As you're aware, it's a pain if you need to update. Below is some basic actionscript you can paste inside of a new fla file. It's not the best example but I just kind of wipped it up and should be more than enough for you to pick apart and learn how actionscript 3 works in flash. So.. create a new fla set the stage to the size of your project (980 X 230) pixels. Create a new blank movieclip (might as well, read up) and give it an instance name of "imageContainer". That's it for setup in the FLA. In the same folder as the FLA create a folder beside the fla called images. Create a new text document inside that folder and name it "filelist.xml". In that list, paste this:
    <files>
        <file filename="171_2784_2.jpg" />
        <file filename="165_2564_0.jpg" />
        <file filename="171_2690_2.jpg" />
        <file filename="171_2735_1.jpg" />
    </files>
    Copy all of your images for this project into the images folder. Now modify that XML to include the name of each file in the folder.
    Now back in your FLA, click the first frame of the main timeline. Open the actions panel (view -> actions in the menu)
    Now paste this into that frame:
    import fl.transitions.Tween;
    import fl.transitions.easing.Strong;
    import fl.transitions.TweenEvent;
    var listIndex:int = 0;
    var nextImage:Bitmap = new Bitmap();
    var listOfImages:Array = new Array();
    var listLoader:URLLoader = new URLLoader();
    listLoader.addEventListener(Event.COMPLETE, parseFileList);
    listLoader.load(new URLRequest("images/filelist.xml"));
    var imageLoader:Loader = new Loader();
    var cycleTimer:Timer = new Timer(5000, 0);
    cycleTimer.addEventListener(TimerEvent.TIMER, beginImageCycling);
    function parseFileList(e:Event):void
        //trace(e.currentTarget.data); //Uncomment this to debug and see what data is coming in
        var fileListXML:XML;
        try{
            fileListXML= new XML(e.currentTarget.data);
        }catch(e:Error){
            trace("The file list is either not well formed XML or not XML at all");
        var a:Number;
        //Get an XMLList object which will contain all of the children of the fileListXML
        var fileList:XMLList = fileListXML.children();
        for(a = 0; a < fileList.length(); ++a){
            trace(fileList[a].attribute("filename"));
            listOfImages.push(fileList[a].attribute("filename"));
        trace("Done parsing file list XML");
        beginImageCycling();
    function beginImageCycling(e:TimerEvent = null):void
        imageLoader = new Loader();
        imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, showNextImage);
        imageLoader.load(new URLRequest("images/" + listOfImages[listIndex]));
        listIndex++;
        if(listIndex >= listOfImages.length){
            //This will reset the index and begin looping from the images from the start
            listIndex = 0;
    function showNextImage(e:Event):void
        trace("Image loaded, get ready to show it");
        nextImage = e.currentTarget.content as Bitmap;
        var tw:Tween = new Tween(nextImage, "alpha", Strong.easeOut, nextImage.alpha, 0, 1, true);
        tw.addEventListener(TweenEvent.MOTION_FINISH, changeOutImage);
        tw.start();
    function changeOutImage(e:Event):void
        while(imageContainer.numChildren > 2){
            trace("removing old images");
            imageContainer.removeChildAt(0);
        //Add the new image to the container, in this case the stage
        imageContainer.addChild(nextImage);
        var tw:Tween = new Tween(nextImage, "alpha", Strong.easeOut, nextImage.alpha, 1, 1, true);
        //Restart the timer to cycle images
        cycleTimer.reset();
        cycleTimer.start();
    In the menu go to Control--->Play. That should do it, it should cycle through those images over and over. I'm at work doing this on my lunch I'll post a completed project/demo of this later when I get home and give you an intro to actionscript by covering the code I've put here. Anyway so now the benefit of doing things this way is that if you want to adjust the transition time, you simply go to the :Tween = new Tween lines and change this:
    Strong.easeOut, nextImage.alpha, 1, 1, true);
    to:
    Strong.easeOut, nextImage.alpha, 2, 1, true);
    Which will change the transition time from 1 second to 2 seconds. Or, say if you want to add new pictures, all you have to do is change that XML and copy in new pictures, something even your client could do (which is sure to make them happy).
    Anyway I'll post later even if you don't need this anymore it may be useful to somoene else who finds this topic one day. .:)
    -Jesse

  • Flash CS4 help not working

    Hi, I'm using Flash CS4. After updating my flashplayer, it no longer works with IE8. Therefor I recently
    tried Opera.
    When working with AS3 I did what I always do to access context-sensitive help. I placed the cursor in a
    blue word and hit the F1 key. This normally takes me where I want, but this time it didn't. First I was
    asked if I wanted to make Opera my default browser. I clicked no. Then Opera opened up and I could
    see the help home page.
    Now, this got me frustrated as I still have IE8 as my default browser. Why did Flash suddenly want to
    open the help files in Opera? I guess that would have been fine, though, had the correct page opened. I
    wanted to see info about my blue AS-word, not the help home page.
    I then uninstalled Opera as it clearly was unable to show me context-sensitive help. I then tried again.
    Now nothing happened. I tried selecting Flash Help from the help menu (which would normally take me
    to the help home page), but nothing happened.
    I also have Firefox installed. Something similar have happened to people when they installed Firefox.
    Anyway, Chrome has managed not to do this, I've had it installed for some time now.
    I have located my local copy of the help files and I'm able to access the AS3 index.html file and start
    trying to navigate to the correct class reference. But I hate it. It's inefficient. I have tried to see if there
    are anything helpfyl in the preferences, but I found nothing at all.
    Why does not Flash ignore which other browsers I have installed and just open help in my default
    browser?
    What can I do to once again access context-sensitive help?

    I still haven't found any solutions to this. Is there anything I can do?

Maybe you are looking for

  • Help needed in PI sheet requirment

    Hello Experts, We have one specific requirement for PI sheet for our client (4.6 C) The business want to sendquality information (inspection requirements ) like MIC, Insp. Method,Specifications etc. for 04 inspection lot and they want to see all thes

  • What additional software is required to make Itunes player work on Windows 7?

    What additional software is required to make Itunes player work on Windows 7?  I don't have Java installed I can not fill out the form fields when singing up,   I had to use I.E. 11 to get the apple ID.    I couldn't enter my credit or debit card num

  • Javascript is not working in Safari on my iPad, version 6.1.3. Anyone know why?

    I have an iPad with os version 6.1.3.  Javascript on websites is not working in Safari. Does anyone know why? How can I correct this situation?

  • What is the "cores" directory at top level and their core.99999 files?

    At the top level of my Disk is a hidden directory called "cores". Within that directory are 105 files called "core.99999". The 99999 is a system assigned number? Each file is 380MB or very close, ie some are 381, some are 385. Each file of a particul

  • Dreamweaver MX in Windows 7

    Hello, I am in the process of upgrading to Windows 7.   My Dreamweaver MX studio software installed OK, but the Dreamweaver application will not start.   It comes up with the splash screen and just sits there.   All the other components of the Studio