Dragging Object Around Circle in Flash with ActionScript 3

I created a blog post that demonstrates how to make it work:
http://flashascript.wordpress.com/2011/01/01/dragging-object-around-circle-in-flash-with-a ctionscript-3/

Ok... I put that code in my flash project and verified that
there are no errors in the code itself. However, when I try to test
the movie I get the following error:
Warning: Action on button or MovieClip instances are not
supported in Action Script 3.0. All scripts on object instances
will be ignored.
Thus, when I do a mouse over on that particular country on
the map, nothing happens.
Any ideas?
Thanks again

Similar Messages

  • Stop and Play All Child MovieClips in Flash with Actionscript 3.0

    I am stuck with the ActionScript here. I have a very complex animated flash movie for eLearning. These contain around 10 to 15 frames. In each frame I am having multiple movie clip symbols. The animation has been created using a blend of scripting and also normal flash animation.
    Now I want to create pause and play functionality for the entire movie. I was able to create the pause function but when i try to play the movie it behaves very strange.
    I was able to develop the pause functionality by refering to the below mentioned links:
    http://www.unfocus.com/2009/12/07/stop-all-child-movieclips-in-flash-with-actionscript-3-0 /
    http://www.curiousfind.com/blog/174
    Any help in this regard is highly appreciated as i am approaching a deadline.
    I am pasting the code below:
    import flash.display.MovieClip;
    import flash.display.DisplayObjectContainer;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    import fl.transitions.*;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    import flash.events.Event;
    import flash.events.MouseEvent;
    stop();
    // function to stop all movieclips
    function stopAll(content:DisplayObjectContainer):void
        if (content is MovieClip)
            (content as MovieClip).stop();
        if (content.numChildren)
            var child:DisplayObjectContainer;
            for (var i:int, n:int = content.numChildren; i < n; ++i)
                if (content.getChildAt(i) is DisplayObjectContainer)
                    child = content.getChildAt(i) as DisplayObjectContainer;
                    if (child.numChildren)
                        stopAll(child);
                    else if (child is MovieClip)
                        (child as MovieClip).stop();
    // function to play all movieclips
    function playAll(content:DisplayObjectContainer):void
        if (content is MovieClip)
            var movieClip:MovieClip = content as MovieClip;
            if (movieClip.currentFrame < movieClip.totalFrames) // if the main timeline has reached the end, don't play it
       movieClip.gotoAndPlay(currentFrame);
        if (content.numChildren)
            var child:DisplayObjectContainer;
            var n:int = content.numChildren;
            for (var i:int = 0; i < n; i++)
                if (content.getChildAt(i) is DisplayObjectContainer)
                    child = content.getChildAt(i) as DisplayObjectContainer;
                    if (child.numChildren)
                        playAll(child);
                    else if (child is MovieClip)
                        var childMovieClip:MovieClip = child as MovieClip;
                        if (childMovieClip.currentFrame < childMovieClip.totalFrames)
          //childMovieClip.play();
          childMovieClip.play();
    function resetMovieClip(movieClip:MovieClip):MovieClip
        var sourceClass:Class = movieClip.constructor;
        var resetMovieClip:MovieClip = new sourceClass();
        return resetMovieClip;
    pauseBtn.addEventListener(MouseEvent.CLICK, onClickStop_1);
    function onClickStop_1(evt:MouseEvent):void
    MovieClip(root).stopAll(this);
    myTimer.stop();
    playBtn.addEventListener(MouseEvent.CLICK, onClickPlay_1);
    function onClickPlay_1(evt:MouseEvent):void
    MovieClip(root).playAll(this);
    myTimer.start();
    Other code which helps in animating the movie and other functionalities are as pasted below:
    stage.addEventListener(Event.RESIZE, mascot);
    function mascot():void {
    // Defining variables
    var mc1:MovieClip = this.mascotAni;
    var sw:Number = stage.stageWidth;
    var sh:Number = stage.stageHeight;
    // resizing movieclip
    mc1.width = sw/3;
    mc1.height = sh/3;
    // positioning mc
    mc1.x = (stage.stageWidth/2)-(mc1.width/2);
    mc1.y = (stage.stageHeight/2)-(mc1.height/2);
    // keeps the mc1 proportional
    mc1.scaleX <= mc1.scaleY ? (mc1.scaleX = mc1.scaleY) : (mc1.scaleY = mc1.scaleX);
    stage.removeEventListener(Event.RESIZE, mascot);
    mascot();
    this.mascotAni.y = 100;
    function mascotReset():void
    // Defining variables
    var mc1:MovieClip = this.mascotAni;
    stage.removeEventListener(Event.RESIZE, mascot);
    mc1.width = 113.45;
    mc1.height = 153.85;
    mc1.x = (stage.stageWidth/2)-(mc1.width/2);
    mc1.y = (stage.stageHeight/2)-(mc1.height/2);
    // keeps the mc1 proportional
    mc1.scaleX <= mc1.scaleY ? (mc1.scaleX = mc1.scaleY) : (mc1.scaleY = mc1.scaleX);
    var interval:int;
    var myTimer:Timer;
    // function to pause timeline
    function pauseClips(secs:int, myClip:MovieClip):void
    interval = secs;
    myTimer = new Timer(interval*1000,0);
    myTimer.addEventListener(TimerEvent.TIMER, goNextFrm);
    myTimer.start();
    function goNextFrm(evt:TimerEvent):void
      myTimer.reset();
      myClip.nextFrame();
      myTimer.removeEventListener(TimerEvent.TIMER, goNextFrm);
    // function to pause timeline on a particular label
    function pauseClipsLabel(secs:int, myClip:MovieClip, myLabel:String):void
    interval = secs;
    myTimer = new Timer(interval*1000,0);
    myTimer.addEventListener(TimerEvent.TIMER, goNextFrm);
    myTimer.start();
    function goNextFrm(evt:TimerEvent):void
      myClip.gotoAndStop(myLabel);
      myTimer.removeEventListener(TimerEvent.TIMER, goNextFrm);
    MovieClip(root).pauseClips(4.5, this);
    // function to fade clips
    function fadeClips(target_mc:MovieClip, next_mc:MovieClip, from:Number, to:Number):void
    var fadeTW:Tween = new Tween(target_mc, "alpha", Strong.easeInOut, from, to, 0.5, true);
    fadeTW.addEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
    function fadeFinish(evt:TweenEvent):void
      next_mc.nextFrame();
      fadeTW.removeEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
    // function to fade clips with speed
    function fadeClipsSpeed(target_mc:MovieClip, next_mc:MovieClip, from:Number, to:Number, speed:int):void
    var fadeTW:Tween = new Tween(target_mc, "alpha", Strong.easeInOut, from, to, speed, true);
    fadeTW.addEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
    function fadeFinish(evt:TweenEvent):void
      next_mc.nextFrame();
      fadeTW.removeEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
    // function to show screen transitions
    function screenFx(target_mc:MovieClip, next_mc:MovieClip):void
    //var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Iris, direction:Transition.OUT, duration:1.2, easing:Strong.easeOut, startPoint:5, shape:Iris.CIRCLE});
    tranFx.addEventListener("allTransitionsOutDone",doneTrans);
    function doneTrans(evt:Event):void
      next_mc.nextFrame();
      tranFx.removeEventListener("allTransitionsOutDone",doneTrans);
    // function to show screen transitions inverse
    function screenFxInv(target_mc:MovieClip, next_mc:MovieClip):void
    var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Iris, direction:Transition.IN, duration:2, easing:Strong.easeOut, startPoint:5, shape:Iris.SQUARE});
    tranFx.addEventListener("allTransitionsInDone",doneTrans);
    function doneTrans(evt:Event):void
      next_mc.nextFrame();
      tranFx.removeEventListener("allTransitionsInDone",doneTrans);
    // function to zoom in
    function zoomFx(target_mc:MovieClip):void
    //var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Zoom, direction:Transition.IN, duration:3, easing:Strong.easeOut});
    //tranFx.addEventListener("allTransitionsInDone",doneTrans);
    /*function doneTrans(evt:Event):void
      next_mc.nextFrame();
    // Blinds Fx
    function wipeFx(target_mc:MovieClip):void
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Wipe, direction:Transition.IN, duration:3, easing:Strong.easeOut, startPoint:9});
    // Blinds Fx Center
    function fadePixelFx(target_mc:MovieClip):void
    var tranFx:TransitionManager = new TransitionManager(target_mc);
    tranFx.startTransition({type:Fade, direction:Transition.IN, duration:1, easing:Strong.easeOut});
    tranFx.startTransition({type:PixelDissolve, direction:Transition.IN, duration:1, easing:Strong.easeOut, xSections:100, ySections:100});

    This movie is an animated movie from the start to end. I mean to say that though it stops at certain keyframes in the timeline it stops for only a certain time and then moves on to the next animation sequence.
    Its not an application where the user can interact.
    On clicking the play button i want the movie to play normally as it was playing before. If the user has not clicked on the pause button it would anyhow play from start to finish.
    Is there anyway where i could send in the fla file?

  • How do I view page margins and drag objects around to fit?

    How do I view page margins and drag objects around to fit?

    Hi Sime,
    Some ideas for workarounds now that Numbers 3 has lost Page Setup, Print View and Layout View.
    1. Numbers 2.3 is still on your computer unless you deleted it. Look in your Applications folder for the iWork '09 folder. Drag the Numbers '09 (Numbers 2) icon to your Dock. It will become an Alias. Right click (or control click) on it then Options > Keep in Dock. You might actually enjoy running both versions at the same time, to compare features. Just be careful which version you are running before you edit and save.
    2. Use Numbers 3 to export a document 'backwards' to Numbers 2. Be aware that features lost in Numbers 3 may not be restored by exporting 'backwards' to Numbers 2.
    3. In Numbers 3 > Preferences > Rulers
    Those Guides help you to align objects with each other.
    4. Menu > View > Show Rulers. This will show zero for the top or right left margin. Then drag a ruler guide from top or left.
    More hints on workarounds here:
    https://discussions.apple.com/message/23622372#23622372
    What has been GAINED in Numbers 3 is here:
    https://discussions.apple.com/thread/5473882?start=45&tstart=0
    If you want to see what has been lost in Numbers 3, go here:
    https://discussions.apple.com/thread/5470448?start=240&tstart=0
    Regards,
    Ian.
    Message was edited by: Yellowbox. Oops, This will show zero for the top or *right* margin. Mirror image this to *left* margin

  • Distributing objects around circle

    I am working on Mac OS 10.4.11 and Adobe CS3 ME.
    I know it's possible to evenly distribute objects in a line. But I would like to evenly distribute objects in a circle shape. Can that be done in Indesign or Illustrator?

    Yes, it can be done in either InDesign or Illustrator.
    I'm going to give you the steps in InDesign, but Illustrator is almost identical.
    First draw the shape that you want to distribute. Position it where you would want the top or 12 o'clock item.
    Now, switch to the Rotate tool. As you do, a rotation center point appears inside the bounding box of the original object.
    This center point needs to be moved to the center of the circle that you want to rotate the object around. (Or where the hands of the clock would originate from.)
    Hold the Option or Alt key and click where the roatation center point needs to be.
    A dialog box appears.
    Enter the angle of roation. This is usually an amount that is created by dividing 360. For instance, if you want 10 objects around the circle, you would enter the rotation amount of 36 degrees.
    If you wanted 12 objects, you would enter the rotation amount of 30 degrees. You figure out what you want.
    Use the Preview amount to see what it would look like. When you like what you have, click the Copy button (not the OK button).
    You will now have one new object in position. At this point you have "primed the pump" so to speak. InDesign now knows to make a copy at a certain rotation.
    Go to Object > Transform Again > Transform Again. The keyboard shortcut is Cmd-Opt-3 or Control-Alt-3.
    Each time you invoke the command, a new copy appears in position.
    This is the classic way to distribute objects in a circle.
    There are other ways to do it that would put the object around an actual circular object.
    But you might as well learn this one first.

  • Modifying video chat in flash with actionscript

    Hi,
    I have develop an application wherein i have 2 avpresence,1
    connectionlight,1 simpleconnect,1 peoplelist and 1 chat component
    on the stage.now i want that when particular user is selected from
    the peoplelist only then his video should be displayed to me and
    not before that.I have searched a lot but not successful in getting
    a satisfactory result.Can anyone please help me out.
    Thanks & Regards.

    Ok... I put that code in my flash project and verified that
    there are no errors in the code itself. However, when I try to test
    the movie I get the following error:
    Warning: Action on button or MovieClip instances are not
    supported in Action Script 3.0. All scripts on object instances
    will be ignored.
    Thus, when I do a mouse over on that particular country on
    the map, nothing happens.
    Any ideas?
    Thanks again

  • How to upload files using flash with actionscript 3.0

    Hi..
    Iam working on flash/Action Script 3.0
    I am working on Fileuploading in flash.I am not getting.My
    code looks like:
    In the above code when submit_mc is clicked iam getting the
    error as follows:
    Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File
    I/O Error.
    at sampleupload_fla::MainTimeline/sampleupload_fla::frame1()
    and Iam not able to get the absolute path for
    fileRef.browse(allTypes);
    please help me.........its urgent

    Hi Joe,
    Thanks for answering. t.name works but it creates a blank file on the server. I am not sure how to transfer the contents to the server. Can you help me regarding stuffing the byte array to the server. I am not sure how to send this to the server.
    I was able to write the contents of the file to a variable :
    var t = air.File.desktopDirectory.resolvePath('Resume.txt');
    var z= new air.FileStream();
    z.open(t, air.FileMode.READ);
    var data = z.readMultiByte(z.bytesAvailable, air.File.systemCharset);
    z.close();
    But how should I send it to the server. That's where I am stumped.
    Thanks
    Gaurav

  • Losing the ability to drag objects after 30 minutes. What's going on?

    Hi,
    I'm having a very strange problem. In InDesign, I'm losing the ability to drag objects around with the mouse after about 30 minutes of using the program. Everything else works fine, but I simply cannot perform this function. The box highlights, but simply will not drag. I can use the arrow keys to nudge the boxes over, I can resize and do other things with no issue except this. Additionally, other Adobe applications start to crash when I want to drag things, such as Illustrator.
    If I log out and log back in, it's fine again for another half hour. I tried trashing the preferences, updating Creative Cloud, and nothing has worked.
    This is seriously damaging my workflow and hindering my ability to complete my work. I have a hard deadline coming up, and I need this solved fast. I'm not on an SSD so logging out and back in takes 5-7 minutes for things to get up and running again. Any help would be greatly appreciated. I'm running OSX Mavericks on a 2013 iMac with the full Adobe CC suite installed.
    A few things that may be clues:
    I first noticed this problem with an out of date InDesign: everything worked fine, BUT when I started to drag an object, InDesign would hard crash, just close completely. After I updated Creative Cloud, now I simply cannot drag, but the program stays functional (other than this essential action).
    When this problem is in effect, Illustrator hard crashes, only when I try to drag an object (the problem seems to be uniquely associated with dragging)
    Nothing 'triggers' this issue, I'm simply working on a file and then I no longer can drag things around with the mouse. I log out, log back in, and everything is fine for a bit.
    -Neil

    Ah! Unfortunately, I'm on a company computer and can't just try these things myself. If that's the issue, I can ask our admins and they'll do it, but I want to make sure I've exhausted anything that could be a small fix.
    Is that a shot in the dark, or are you thinking there's a reason a clean install is the solution? Thanks for the help.

  • Distributing objects around a circle

    Hi everyone,
    I'm new here, so I'm sorry if I post it to a wrong section.
    I'm a begginer with Illustrator and I've got a problem with distributing objects around a circle in Illustrator cs6.
    What I'm trying to do is to have these acrhed lines (as per the top three curves you can see below) go around a circle, surrounding it (don't know if i explain myself good...). I was using both blend tool and rotate tool and it doesnt work for me the way I want it. All the time its sort of upside down at the bottom of the cirle and totaly twisted on the left and right... I guess im doing smth wrong, but I just can't find anything helpfull on web..
    Would appreciate it a lot if you could helo me!
    Thanks in advance and sorry for my English, its not my 1st language.

    Cat Nat,
    A completely different way, which may be (un)usable for your purpose is to create the circle with a Stroke Weight corresponding to the width of the arched lines and then in the Stroke palette/panel  apply Dashed line with Round Caps and suitable Dash and Gap values (you may try different values until you get it right).
    You may use the free Adjust Dashes script available here,
    http://park12.wakwak.com/~shp/lc/et/en_aics_script.html
    to get an even distribution/final adjustment.

  • InDesign CC 2014 can no longer drag objects with mouse

    I have been using InDesign for months with no problems but suddenly I am having mouse issues. I can use my mouse to resize objects and make selections but dragging objects in the document or in panels (for example, reordering spreads) no longer works. I am using a mac on the latest 2014 CC release of InDesign, and have tried all the usual tricks (Ctrl + Alt + Shift + Cmd on startup to remove preferences, manually deleting preferences (both files), reloading software, rebooting machine, reinstalling InDesign) but the only thing that works is rebooting the machine.
    However, within 20-30 minutes after a reboot, the problem returns out of nowhere. I don't use plugins with InDesign and haven't changed hardware or software recently so I have no idea what's causing this.
    Does anyone have any info that might help me out? From googling around, it seems most people have solved their problems after a preferences dump, but mine keeps on coming back!

    I've actually been discussing this problem in another thread but this one is dedicated to it.
    This cropped up for me prior to the New Year and I've found no solution. I actually did what Steve Werner suggested this week and created a new OS X account. But the problem cropped up in the new account today.
    I don't know if this is a common or not. I'm part of a large creative team and as far as I know, I'm the only user experiencing this. I've trashed preferences, uninstalled and reinstalled InDesign, restarted the computer, etc. Nothing works.

  • Can't access object using "id" or "name" if created with actionscript

    How can you register an instance of an object with actionscript so that it's id or name value is accessible?
    I included a simple example where a Button is created using mxml and in the same way it is created using actionscript.  The actionscript object is inaccessible using it's "id" and "name" property.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   creationComplete="application1_creationCompleteHandler(event)">
        <fx:Script>
            <![CDATA[
                import mx.events.FlexEvent;
                protected function application1_creationCompleteHandler(event:FlexEvent):void
                    import spark.components.Button;
                    var asBtn:Button = new Button();
                    asBtn.label = "actionscript";
                    asBtn.x = 200;
                    asBtn.id = "asButton";
                    asBtn.name = "asButtonName";
                    addElement(asBtn);
                    trace("mxmlButton="+this["mxmlButton"].label); // returns: mxml  label
                    //trace("mxmlButton="+this["asButton"].label); // returns runtime error: ReferenceError: Error #1069: Property asButton not found on TestId and there is no default value.
                    //trace("mxmlButton="+this["asButtonName"].label); // returns runtime error: ReferenceError: Error #1069: Property asButtonName not found on TestId and there is no default value.
            ]]>
        </fx:Script>
        <s:Button
            id="mxmlButton"
            label="mxml label"
            alpha="0.8"/>
    </s:Application>

    Hi Dan,
    It is a very rare occurrence when I miss not being able to access an object (object property, really) using the ["name"] notation for objects created using actionscript.
    In MXML the compiler is conveniently adding an attribute to the class with the same name as the id, so you can conveniently refer to it using the [] notation. While we explicitly specify an application container to use, the MXML compiler creates a custom container which is a derivative of the base container and to that it adds properties for the children declared in MXML. I guess it also effectively calls "addElement" for us when  the container is being constructed.
    Your example assumes that using "addElement" to add the button to the application container is the same as declaring a variable (ie property ). It isn't, so there's no point in looking for an property of the name "as3Button" using the [] notation, because it doesn't exist. The container is managing a collection of children in it's display list and that's not the same as being accessible as properties of the container.
    Generally speaking, accessing properties using the ["name"] syntax isn't necessary.
    Paul
    [edit: you may wonder why "addElement" doesn't conveniently also add the "id" attribute to be an property of the container class. Unfortunately, it can't because the container class would need to be dynamic and it's not. A further complication would be that adding properties at runtime would invite naming clashes at runtime with associated mayhem. MXML can do this because the compiler generates the class and can trap name duplication at compile time.
    Great question, BTW.
    -last edit changed my "attributes" to be "properties" in line with Adobe's terminology]

  • How can I use LCCS with ActionScript 3 and Flash CS4?

    Hi,
    Using Stratus I was able to create an an application using Action Script 3 and Flash CS4.  The sample code on the Adobe site was quite straight forward and easy to understand.  I now want to switch over to  LCCS but can't find anything any where on how to use Action Script 3 and Flash CS4 with LCCS.  Do I need to know Flex to be able to use LCCS?  Everything was quite simple and easy to understand with Stratus and makes complete sense.  But LCCS is really confusing.  Is there any sample code on how to establish a connection in Action Script 3 and then stream from a webcam to a client.  There is nothing in the  LCCS SDK that covers Flash and Action Script 3.  Please help!  I found the link below on some forum but it takes me nowhere.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=75 9&threadid=1407833&enterthread=y

    Thanks Arun!
    Date: Thu, 29 Apr 2010 11:44:10 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I use LCCS with ActionScript 3 and Flash CS4?
    Hi,
    Welcome to the LCCS world.
    Please refer to the SDK's sampleApps folder. There would be an app called FlashUserList. The app demonstrates how LCCS can be used with Flash CS4. Its a  pretty basic app, but should help you moving.
    We are trying to improve our efforts to help developers in understanding our samples. Please do let us know if we can add something that would help others.
    Thanks
    Arun
    >

  • Need help displaying images with List component for Flash CS4 (ActionScript 3.0)

    Hi folks:
    I am an inexperienced user of Flash CS4 Pro (v10.0.2). I am attempting to use the List component with ActionScript 3.0 to make a different image display when a user clicks each item in a list.
    I did find a tutorial that showed me how to make different text display using a dynamic text box and the following ActionScript:
    MyList.addEventListener(Event.CHANGE, ShowSelectedItem);
    function ShowSelectedItem(event:Event):void {
        ListText.text=MyList.selectedItem.data;
    ...where My List is the instance of the List component and ListText is the dynamix text box. In this case, the user clicks an item in the list, defined by the label value in the dataProvider parameter of the List component, and text displays as defined in the data value in the dataProvider parameter.
    However, as I mentioned to start, what I really want to do is make images display instead of text. Can anyone provide me the steps to do this?
    I appreciate your help (in advance)!!
    Cindy

    Hi...thanks for responding! I was planning on using images from the Library, but if there is a better way to do it, I'm open. So far, I just have text in the data property. This is part of my problem. I don't know what I need to put in the data value for an image to display. Do I just put the image file name and Flash will know to pull it from the Library? Do I need to place the images on the stage on different frames? I apologize for the "stupid user" questions, but as you can tell, I'm a newbie.
    Appreciate your patience and any help you can offer!
    Cindy

  • Drag and drop between different Flash objects

    It is possible to drag & drop items between different flash objects?

    Yes, you can drag and drop anywhere on the stage.  You'll need to explain things in more detail if there's more to your question.

  • Urgent: Flash CMS with Actionscript 3.0/PHP/MySQL

    Hello everybody. I'm new to this community and I'm actually relatively new to flash and actionscript but I could say I have fair knowledge about them. So anyway, I usually build flash websites the traditional way using timeline animation and scripting. Today I had a job interview and they said they're looking for someone who can develop any web design into a Flash CMS with a back-end office for the client to edit the content without having to edit the FLA file or any code.
    Accordingly, I'd like to know where and how to start. What are the main concepts I should follow/adapt? Are there any good detailed tutorials out there that I could read/watch?
    Any help would be so much appreciated

    The method i showed above does have a front end and a back end. The code i posted above would be part of the image module in the back end for deleting images.
    1. You don't put images and files in the database, you create an uploader that uploads the files (pictures, whatever) onto the server and then writes an entry into the database telling it where the picture is stored, what the name of the file is, what type it is, whatever you need. Then when your website connects to the database and downloads the info and stuffs it into arrays, it iterates through the photo array and downloads the photos as needed using the URL you stored.
    2. Loading into the database is covered with the above tutorial but i'll post my database retrieval code anyway.
    This connects to a database and stuffs each column of a database into an Array. Then if i wanted to actually download the photos i mentioned by the urls just retrieved i'd use:
    3. Some people put them in seperate swfs at password protected URLs because its more secure but you don't necessarily have to.
    flash CMS isn't well covered, i spent a long time looking for tutorials and i definitely didnt find any that worked well. If you're still working through the basics like AS3 tweens, loaders, and loops, then you're going to want to figure those out first. Those are supported well online, though.
    Finally, here's a good example of some flash CMS: http://group94.com/#/flash94/
    Good luck.
    EDIT: Sorry for retracting my code, the client i did it for wasn't happy.

  • Aligning object to stage with actionscript

    I have a dynamic text box pulling info from an xml file.
    After the text loads the box resizes with autoSize.
    Any ideas on how i can get the box to align to the center of
    the stage after that with actionscript??
    I've looked around and can't seem to find a solid yes or no
    anywhere.
    Or if that's impossible, is there any way to vertically align
    the text, which would negate the need for the resize and align.
    Thanks

    nevermind....
    worked a little more and got it to work with
    mc_text.desc_txt._y=(Stage.height/2)-mc_text.desc_txt._height/2;

Maybe you are looking for

  • Struts Error while loading a page

    Hi Friends, In our aplication when i try to load a page am getting the following error , please throw some light if you have come across any such exception: <Error> <HTTP> <101017> <[ServletContext(id=22376268,name=QS,context-path=/QS)] Root cause of

  • High availability for a website

    I have an entry on a DNS server for a domain "aa.bb.test.com" which points to 1.1.1.1 which is VIP address on the CSS at the primary site. i would like to add another css at another site as a backup. What exactly I have to do to configure the other c

  • Help me in CommandLink problem???

    Hi all, I am working with jsf framework now,I have a problem in commandLink. (i.e):When i use mouse right click,open in newTab or open in new window on the commandLink, it is not navigated to the actual page,it goes to the previous page of the comman

  • LR 5 Slideshow Video Export Issue

    I've created a slideshow where all of the photos display properly within Lightroom's slideshow module.  But when I export the slideshow to video (this doesn't happen for the pdf export), a few of my photos are rendered on screen at very low resolutio

  • How to uninstall Macromedia Flash Player version 7

    Hi everyone! Just bought a Palm Treo 500 but I can't load the CD that comes with it. The error says that I have an outdated macromedia flash player. I've already installed hte latest version of adobe flash player but I can't seem to rid the old versi