How do you create layers in flash builder?

I was looking at this painting tutorial http://www.pixelhivedesign.com/tutorials/Flash+Painting+Program/   and was wondering how would you go about creating the different layers in flash builder?

I've written a basic paint app, based off of your examples (thanks again by the way), and this example http://www.jamesward.com/2010/03/22/flex-paint-updated-to-flex-4. My problem is that the paint function is drawing behind my panel (a type of layout container) and not on top or in it. how do i fix this?
            protected var isDrawing:Boolean = false;
            protected var x1:int;
            protected var y1:int;
            protected var x2:int;
            protected var y2:int;
            private var lineColor:uint = 0x000000;
            protected function draw_clickHandler(event:MouseEvent):void
               addEventListener(MouseEvent.MOUSE_DOWN, mDown);
               addEventListener(MouseEvent.MOUSE_MOVE,mMove);
               addEventListener(MouseEvent.MOUSE_UP,mUp);
            protected function mDown (event:MouseEvent): void
                x1 = pan.mouseX;
                y1 = pan.mouseY;
                isDrawing = true;
                labstatus.text = "da";
            protected function mMove(event:MouseEvent): void
                if(!event.buttonDown)
                    isDrawing = false;
                    labstatus.text = "mouse up moving";
                x2 = pan.mouseX;
                y2 = pan.mouseY;
                if (isDrawing)
                    pan.graphics.lineStyle(6,lineColor);
                    pan.graphics.moveTo(x1,y1);
                    pan.graphics.lineTo(x2,y2);
                    x1 = x2;
                    y1 = y2;
                labstatus.text = "Drawing line" + x1 +" " + y1;   
            } //end mMove
            protected function mUp(event:MouseEvent):void
                isDrawing = false;
            protected function lineColorPicker_changeHandler(event:ColorPickerEvent):void
                lineColor = event.target.selectedColor;
        ]]>
    </fx:Script>
    <s:Panel x="32" y="82" width="543" height="227" id="pan">
        <s:controlBarContent>
        <mx:ColorPicker width="38" height="23" id="lineColorPicker" change="lineColorPicker_changeHandler(event)"/>
        <s:Button label="paint" id="draw" click="draw_clickHandler(event)"/>
    </s:controlBarContent>
        <s:Label x="57" y="57" width="97" height="45" id="labstatus"/>
    </s:Panel>
</s:Application>

Similar Messages

  • How do you create a camera flash effect?

    Anyone have a work flow to create a camera flash in Motion and be able to change the color?
    I've seen a way using Bloom over in FCP but I'd like to create it in Motion.
    or do you know of a Plugin

    search?
    http://discussions.apple.com/thread.jspa?messageID=8993945&#8993945
    I went with lens flare and it's perfect

  • How do you create a flash in game popup on the same frame?

    How do you create a flash in game popup on the same frame?
    I need to make a popup in flash on the same frame. Basiclly like you reach the frame and randomly (I know how to do random stuff) a popup might appear saying like you got a prize; and I want the stuff in the back to stay the same.
    Please help me!
    Thankx in advance.

    Whatever frame you intend to make this movieclip appear in, you first set it to be invisible using...
    popupName._visible = false; // popupName is whatever instance name you use
    And for whatever random code you use to trigger it to appear you just set the _visible property to be true...
    popupName._visible = true;

  • How do you create an installer/bundle for PPro with extension, a plugin (export-controller) and some

    Hi
    As my topic says
    How do you create an installer/bundle for PPro with extension, a plugin (export-controller) and some custom presets?
    Assume you have Flash Builder 4.5, CS Extension builder 2.0, Xcode 4.5.1 running under MacOS 10.8.

    I understand why you need updated running headers in your book. To a sighted reader these serve as a guide to where you are and help you find things quickly.  In addition, if you are exporting your data to XML or HTML from the tagged PDF it would also be important to have these in the proper location. 
    But for accessibility purposes, it doesn't have to be there because the screen reader reads everything in linear order, line by line.  No one is looking at the page.  A user listening to the screen reader read the page is going to hear this heading, just before the actual word itself. So they will hear the first word on the page twice.  It's not the end of the world if it's there, but such headings are not necessary for accessibility unless they are not repetitive and contain information that is not otherwise available.
    So I would say, fine if you need them or want them there, it's just one word. 
    I think you should try exporting your book to PDF (or even just a chapter of the book) and look at the tags panel in Acrobat to see if you are getting the result you want.  I can't tell you exactly what you should do to get those results, you are using a plug-in I don't have. 
    I can tell you I didn't have to add the headers to any article at all, they just automatically export if the other articles in the file are added and you don't select the header style option "not for export as XML."
    You may not experience the same results with your plug-in, but I think it will probably work the same way. 
    Give it a try and best of luck.

  • How do I create layers in an adjustment layer and transfer those layers?

    How do I create layers in an adjustment layer and transfer  or duplicate those layers in another image ?
    I need to transfer the same colour readjustment from one image to several other images ... I have been told to do this in the adjustment layer platform how ever I cannot drag or copy those layers over to the other images I have open and in need of adjustment to the same layers ...
    Images shows my lay out and what i've done this far.
    Thank you

    You need to get out of single image view. Go to the editor preferences>general>Allow Floating Windows, then go to Window>Images>Float all in Window, then Tile or Cascade. Then you should be able to drag the layers from the layers panel for one image into the main image window (not the panel) for another image.

  • How do i embed fonts in flash builder 4?

    how do i embed fonts in flash builder 4?
    thanks,
    daniel

    Try http://blog.flexexamples.com/2008/10/15/embedding-fonts-in-flex-gumbo/
    I also answered in your other thread, http://forums.adobe.com/thread/482315.
    Let us know if you're still having problems and we can try and help you get started.
    Peter

  • How do you create PopUp Layer Window?

    Hi!
    I have a question...
    How do you create PopUp Layer Window?
    PopUp Layer Window is a popup window that moves as an user
    scrolls up and down.
    And it cannot be blocked by popup bloacker.
    Please teach me!
    -p.b.p.

    Search the web for persistent layers.

  • How to Call HTML Layers from Flash?

    how to Call HTML Layers from Flash? i need a help on example
    or script.

    What do you mean html layers? You can call JavaScript on the
    page using the
    ExternalInterface class. There's examples in Help if you look
    up the EI
    class, and it's call method.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • How do you create a 2-d array%3F

    How do you create and write a 2-d array??  I have two operations in the same WHILE loop.  Each execution of the loop should generate a new  pair of values.  
    However, the BUILD ARRAY function only outputs a 1-d array to the WRITE TO SPREADSHEET FILE.vi. 
    Perhaps, more broadly, how does one put data into a 2-d array as it is collected?  I think I am building two arrays simultaneously below, but, what I really want is to build a single 2-d array.  Is this how you would do it?  It looks clumsy connecting sequential BUILD ARRAY's together.  Is this creating a 2-d array that I can search later by index and return the paired data? 
    Lastly, why does my front panel indicator only show data in the first column??  How do I make it display the data as it is collected across the rows?
    Thanks,
    Dave
    Solved!
    Go to Solution.
    Attachments:
    forum dec 12_2012 build 2d array.vi ‏13 KB

    dav2010 wrote:
    Sorry, very simple minded here...how do pairs go as a 1-d array?  I thought that (x,y) data must be a 2-d array...a column of "x's" and a column of "y's"?  Wouldn't a 1-d array just be all x's?  I admit I'm pretty new to understanding arrays.
    " build your 1D array from both scalars"  -->  how do you do this??  I cannot find a "convert to scalar" on the pallette.
    Also, here is the vi saved down to 2009, I think.
    Dave
    Here's a simpler way, just write out your X and Y as a 1D array each iteration. The Write will append your data as a column of X's and a column of Y's:
    or generate all your values and then write once:
    (fix the broken wire).
    “A child of five could understand this. Send someone to fetch a child of five.”
    ― Groucho Marx

  • How do you create a link to a pdf in Muse? Thought it was going to show that with Katie's menu and can"t find in any of the tutorials.

    How do you create a link to a pdf in Muse? Thought it was going to show that with Katie's menu and can't find in any of the tutorials.

    The steps would be :
    - Add files from file menu > select pdf > add to site
    - Select the content (rectangle,text etc) and click on hyperlink dropdown > it should show you the added files list
    - Select the file you want to link
    Thanks,
    Sanjit

  • How do you create a new apple id on the iphone

    how do you create a new apple id on the iphone 4?

    Why do you want to do that?

  • How would you create a read/display only applicaiton montior role for SRM

    Hello,
    I was hoping to get some insight on how to create a display/read only SRM Application monitor role.  This role would be used by our Service Desk to perform basic trouble shooting before escalating.  Currently in our system it is tied into a tab named SAP Administration and has the capability of doing more than read.  How do you create a read version of this to only display the application monitoring in read mode? We currently have an SRP role that has the followiing auths below.  Would a EPP portal role need to be created and if so how>  Thank you for any assistance.
       Manually   BBP Component                                                BBP
              Manually   SRM: General Access Authorizations in EBP                    BBP_FUNCT
               Manually   SRM: General Access Authorizations in EBP                    T-SD59003000
                 Function in SRM (for Authoriza MON_ALERTS                                                                  BBP_FUNCT
    - Todd

    Hello,
    I was hoping to get some insight on how to create a display/read only SRM Application monitor role.  This role would be used by our Service Desk to perform basic trouble shooting before escalating.  Currently in our system it is tied into a tab named SAP Administration and has the capability of doing more than read.  How do you create a read version of this to only display the application monitoring in read mode? We currently have an SRP role that has the followiing auths below.  Would a EPP portal role need to be created and if so how>  Thank you for any assistance.
       Manually   BBP Component                                                BBP
              Manually   SRM: General Access Authorizations in EBP                    BBP_FUNCT
               Manually   SRM: General Access Authorizations in EBP                    T-SD59003000
                 Function in SRM (for Authoriza MON_ALERTS                                                                  BBP_FUNCT
    - Todd

  • How do you connect your photoshop elements on your computer to your account online? and how do you create a customized url? how does the gallery work and how do you access it? i have trouble signing in on my program from my computer to connect to the onli

    how do you connect your photoshop elements on your computer to your account online? and how do you create a customized url? how does the gallery work and how do you access it? i have trouble signing in on my program from my computer to connect to the online photoshop, and I really want to create my own customized url and post photos to my gallery and share them with the world, family, and friends, but i need help because i can't figure how to do any of this, would really appreciate feedback and assistance, thanks, - claire conlon

    To add to sig's reply, "calibrating" does not calibrate Lithiu-Ion batteries, it calibrates the charge reporting circuitry.  If you look at the effect of deep discharging Lithium-Ion batteries in the data from the independent test group, Battery University, you will see that doing so shortens the life of the battery significantly. It looks like an optimum balance between use and life is at a discharge level of 50%.

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • How do you create a new account for a family member?

    My daughter and I both have Ipods, and want to setup SEPARATE accounts. Itunes 7 worked great, but now when we 'upgraded' to 8, it MERGED all our files. So I thought I had a separate account, but it turns out when I load a new song, it goes into HER Itunes files. She deleted all my info, and I REALLY want a separate account (that sticks).
    My songs are still in my directory under "Mikes Itunes", but when I reloaded them into what I thought was a fresh entry, it turns out it went into my daughter's Itunes file too! What is up with Itunes 8? and how can you create a TRUE separate account so I have control over MY songs!?

    First, let's make it easier to swap between accounts. In the Accounts pane of System Preferences click on the Login Options (after unlocking the pane). Enable fast user switching. This will put a new menu in the top right of the screen. You can then swap to the other account without having to log out of the current one.
    Log into the original account. Select the folder you want access from the other account and choose Get Info from the file menu. There is a section called Sharing & Permissions. You will need to click on the padlock to make changes. Click on the + to add permissions for the other user account by selecting the user account from list that appears. Set the permission for that account to read only. Once you have it listed then choose the "Apply to enclosed items" from the gear menu below the list. This should give you access from the other account to that folder and any folders contained in it.
    For iTunes you will want to do this to the Music folder, giving you access to the files below. From within iTunes you can select Add to Library from the file menu, and then select the music from the other account to that account's iTunes library. Once you have set up the new library whoever's library is the original can clean up the library to remove any music they don't want (now that it's in the new account).

Maybe you are looking for

  • Final Cut Studio 2-Error Installing

    Hi, I insert the Disk and after a minute I get the following message: "There were errors installing the software" Previously I had FInal Cut Express which was removed. I noticed instead of an install I am getting an "upgrade" when installing? Any adv

  • Reading mails from outlook express

    hi.. i m doin a project on Bayesian Filters to detect spam mails.I need to extract mails from microsoft outlook express that are in the .dbx format as text files.Can someone jus help me out with this.. Its urgent!!! it should b usin java.I have heard

  • Lightroom 4 & Elements 11

    Does Lightroom 4 and or Elements 11 support Canon 5Diii raw files?

  • Where's HP iPrint Photo 3.0

    I am trying to find HP iPrint Photo 3.0 at the iTunes Apps store and I can't find it. What's up?

  • Creating website Header

    Hey everyone, I'm pretty new to flash and I have been playing around with this pregenerated FLASH header for a website and I'm a little lost. The creator of the package is Template Monster and they didn't give me any instructions on how to change the