Controlling PSD layers in flash

I'm currently working on a flash port of a tic-tac-toe game
for a class.
What I would like to know is if its possible to compile all
the game graphics in a single PSD and, using actionscript, control
which layers become visible or not. because that way i wont have to
deal with many image files and image positions...
thx in advance

If it is for a Air app then use this code:
stage.nativeWindow.addEventListener( Event.RESIZE, onResizeApp );stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;fullscreenButton.addEventListener( MouseEvent.CLICK, onFullscreenClick );
function onResizeApp( event:Event ):void {
// do repositioning of elements here
function onFullscreenClick( event:MouseEvent ):void {
if( stage.displayState == StageDisplayState.NORMAL ) {
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
fullscreenButton.label = "Exit Fullscreen";
} else {
stage.displayState = StageDisplayState.NORMAL;
fullscreenButton.label = "Go Fullscreen";

Similar Messages

  • A problem with importing layered PSD file into Flash

    Hi.
    There's a problem with importing layered PSD file into Flash.
    If I import a layered PSD file, some part the color of the lower layer is shown at the edge of objects or shadows. Instead, if I crop each layers first and import them, there's no problem.
    If the higher layer has brush or transparent effects, it becomes worse.
    Any help with this problem?
    Thanks.

    How was the original art created? Was the original RGB or CMYK? What is the resolution of the Photoshop file? Flash only works well with RGB and 72 pixel per inch resolution. If your original art is not set this way, then Flash will attempt to convert it as it imports it. Flash uses the sRGB color space. You'll get the best color translation if your Photoshop file is using this color preference.

  • Importing a PSD document into flash?? Help

    Hello,
    I am trying to import my PSD document into flash, I designed my website in photosphop but for some reason flash
    seems to handle everything a little weird. Can Flash handle the different you place on things from photoshop?
    t=Thanks
    B

    Usually it is easier to separate your psd and save each element for web then import to those to Flash and rebuild.
    But it is indeed handy to import your psd directly. If you do so:
    Play with your import settings when importing your psd to Flash. You may want some items to remain vector shapes, you may or may not want to keep text editable, some you may want to import as bitmaps, most you will probably want to convert to movie clips, etc.
    A few bullet points:
    • Flash will turn your layer styles to separate bitmaps and will usually distort them funny.
    • Make sure your psd color profile is sRGB before importing to Flash.
    • Some fonts will not import to Flash from a psd nicely, if you dont need to edit the text you should convert the type to shape (make a copy of the layer first, though, you may have to go back and edit - typos happen)
    • Flash will turn bitmaps as pngs. These may increase file size, so you may still have to go back to PS and export some as jpg (if you do though, once you import those to flash, right click in your library and click Properties and uncheck "Use Imported JPG Quality" and set the percentage yourself).
    The list can go on, but I'm tired and can't think of all the tips and tricks.
    One thing is for sure: Be sure to go over all the importing options in Flash and all the layers carefully before hitting OK.

  • Importing psd files in flash.  Constant Artifacts

    So I been trying to import a psd file in flash to animate using diifferent layers from Photoshop.  The problem is there's always artifacts around the image once it imports.  I can't seem to get rid of themwhen I need clean shapes to animate. When I go back to reclean the image in photoshop, it looks crisp and I don't see obvious artifacts spots as I do in flash.
    So how does one get clean image shapes from photoshop or detect artifacts before going through the trouble of importing? Any ideas thanks...

    Thanks, that's interesting to know.  I do have the file  in a slightly high res, than 72.  Even when I zoom in 200%, I don't see anything extra to clean off in the original file. Is there a way to make it more obvious, or method to tone down stray pixels in photoshop or flash.  It's still wierd that Flash would exaggerate a stray pixel, 100 fold whiling importing.

  • Accessing multiple PSD layers in Adobe Photoshop Touch from Creative Cloud is important to me.

    Accessing multiple PSD layers in Adobe Photoshop Touch from Creative Cloud is important to me. When will Touch be updated with this function? Want the ability to view multiple layers the same way Creative Cloud website can. Having the ability to turn multiple layers on an off in Touch from and uploaded PSD file. As it stand Touch flattens imported Layered PSD files. (Not very useful)

    Hi Bford225,
    I moved your post over to the Photoshop Touch forum because it seemed mostly about Photoshop Touch.
    Currently, I'd recommend converting RAW images to Jpeg in either Photoshop or Lightroom and then uploading them to Creative Cloud for working with them in Photoshop Touch. I know raw support is something our developers are considering so please add your vote here:
    http://forums.adobe.com/ideas/1227
    How you best incorporate Photoshop Touch into your workflow is hard to say. What works best for one person may not be true for everyone. Photoshop Touch obviously doesn't have all the capabilities of its desktop counterpart but it does have the ease of use and portability of being on a tablet. Personally, I like using Photoshop Touch for editing images taken with the iPad or my iPhone for convience versus transferring to transfer to the computer, or even if I still do, I can do some of the initial edits from the tablet first. Its nice when I only have the tablet available and not a computer. For images I take with my DSLR I always do my editing in Photoshop and Lightroom. I'm able to make any adjustments on the computer much faster than on a tablet.
    If you have the option to shoot in both Jpeg and RAW that might be good option (best of both worlds). Do you have the ability to import images from the camera without using a computer - using a camera connectivity kit or something like that? My recommendation would be expermentation, test out different workflows on the tablet and see how you like it and find what works best for you.
    -Dave

  • Encore won't encode some PSD files in Flash

    I have succesfully completed a DVD project on Encore (4.0)  with mpg elements edited in Premier Pro (4.0). A number of slide sequences constructed from jpgs converted
    to pds files in Photoshop (cs5) have been used, plus some (individual, single) text slides, (constructed in Photoshop) have also been included with the DVD project. All of this works
    fine. However, when I render the whole project for Flash, the text files are not included! During the render process the file details are displayed but no yellow progress bar appears.
    The Flash file is prefereable to the DVD as this enables the Flash file to be available from a central common drive or server.
    Can anyone assist me with this? I can find nor reference to these types of issues iether on the forum or anywhere on the net.
    MAC Book Pro 17"
    i5, 4 Gb Ram (Soon be 8)
    Snow Leopard
    Premier Pro 4.0
    Encore 4.0
    Photoshop CS5

    Hi Stan
    And thanks for the prompt reply. I will try this twixt Christmas and new year. My recollection was that the text created in Premier
    when imported into Encore looked “poor” as an mpg. However I had not rendered the project in Flash at that stage. Will
    have to look at how Premier works direct to Flash without Encore?
    Regards
    From: Stan Jones [email protected]
    Sent: 23 December 2011 13:25
    To: Wheeler, Steve
    Subject: Encore won't encode some PSD files in Flash
    Re: Encore won't encode some PSD files in Flash
    created by Stan Jones <http://forums.adobe.com/people/Stan+Jones>  in Encore - View the full discussion <http://forums.adobe.com/message/4101020#4101020

  • Importing Photoshop layers in Flash

    Hi,
    I tried to import photoshop layers in flash.
    But it is coming as bitmap.
    Is there any way to bring the photoshop layers as shapes with good flash quality.
    Thanks for your time.

    Unfortunately I don't think this can be done - but maybe I am wrong. But I don't think there is a way.
    Perhaps see if there's any options through scripting.
    http://forums.adobe.com/community/indesign/indesign_scripting

  • Reading .psd layers under OS X 10.7. in 64-bit app

    Hi,
    I have an application that reads .psd layers content using old QT API (such a GraphicsImportSetImageIndex, GraphicsImportGetDataOffsetAndSize, OpenADefaultComponent etc.).
    I need to implement my code to 64-bit application under OSX 10.7. Lion and because old QT API is still 32-bit only I can't use the mentioned API to get layers and images from .psd.
    Could anybody advice how to replace old QT API on Lion ? Or, how to get images from .psd file other way than using old QT API.
    Thank you.
    Peter

    Hi,
    I have an application that reads .psd layers content using old QT API (such a GraphicsImportSetImageIndex, GraphicsImportGetDataOffsetAndSize, OpenADefaultComponent etc.).
    I need to implement my code to 64-bit application under OSX 10.7. Lion and because old QT API is still 32-bit only I can't use the mentioned API to get layers and images from .psd.
    Could anybody advice how to replace old QT API on Lion ? Or, how to get images from .psd file other way than using old QT API.
    Thank you.
    Peter

  • 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 does Motion Handle PSD Layered Files?

    I've done an extensive search on the Discussions looking for an answer to my problem without luck.
    I have a layered file created in Illustrator CS. I exported the file to Photoshop so that I could retain the layers. The file opens and looks normal in PS. I want to import this file into Motion 2.0 so that I can animate some of the layers. The PSD file is in CYMK mode as Photoshop will not allow files to be saved as layers in RGB. Motion allows me to import the PSD layered file as individual layers but all of the text and graphics come in yellow and seem to have lost their original color. I have set PS File Handling to Highest.. If I flatten the file it looks fine in Motion but I lose the layers. Does anyone have any suggestions or methods that could help me?
    Thank you..
    j

    The PSD file is in CYMK mode as Photoshop will not allow files to be saved as layers in RGB
    I just created a RGB Photoshop file and added several layers, and saved it.
    I used the import command from the File menu, and brought the file in with individual layers -- again saved in RGB.
    Why won't your PS version allow you to save in RGB?
    please take the time to mark a response as solved or helpful
    best wishes
    David
    Remember to mark an response helpful or solved.
    It protects the integrity of the board.

  • Importing PSD's into Flash

    I'm using Flash 8, and have just started importing PSDs into
    Flash. I actually found the import PSDs feature in CS3, and
    discovered that you can import PSDs to Flash 8 as well.
    The problem is, there is a color shift-the PSDs imported into
    Flash appear lighter than they do in PS, or than a JPEG of the same
    image appears when imported into Flash. I have noticed the same
    problem with PNG's as well. They also appear lighter than a JPG of
    exactly the same image when brought into Flash....
    Does anyone know of any fix for this? Is it something to do
    with color-profiles in PhotoShop (of which I know little about)?
    Thanks!

    How was the original art created? Was the original RGB or CMYK? What is the resolution of the Photoshop file? Flash only works well with RGB and 72 pixel per inch resolution. If your original art is not set this way, then Flash will attempt to convert it as it imports it. Flash uses the sRGB color space. You'll get the best color translation if your Photoshop file is using this color preference.

  • Stopping the browers controls interfearing with the flash content?

    Hi, I've been working with flash for many years but have recently come up with a problem I have never seen before.
    When i've embedded the perfume finder app into a website I'm working on the back button in IE and other browsers makes the flash file jump back to differnt anchors. Is there anyway to have it separate so not to interfere with the navigation of the website?
    http://www.bodyandsoulperfumes.com/templates/perfumefinder.html
    here is the HTML code of how I embedded it
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="550" height="500" id="Perfume Finder">
    <param name="movie" value="http://www.bodyandsoulperfumes.com/templates/BandStest.swf" /><embed src="http://www.bodyandsoulperfumes.com/templates/BandStest.swf" width="550" height="500" name="Perfume Finder" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" /></object>

    Yeah! identified you controlled something from your flash file I think. becoz check the address bar it changes to different ids
    http://www.bodyandsoulperfumes.com/templates/perfumefinder.html#F1525G
    http://www.bodyandsoulperfumes.com/templates/perfumefinder.html#F1525A
    Whatz above meant? where you updating that? check on the html file and your flash file. I hope it was controlled.

  • 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>

  • Opening PSD layers in the timeline.

    I have forever and a day opened PSD layers in Photoshop by double clicking the graphic on the timeline.  Now nothing.  Haven't changed settings or preferences.  Not sure what to do.  Is it something obvious I'm missing?

    Michelle,
    Your post is a bit confusing to me since you said; "I have forever and a day opened PSD layers in Photoshop by double clicking the graphic on the timeline."
    The normal action when double-clicking a layered PSD file in the Timeline is that it opens in its own timeline since FCP treats layered PSDs as a nested Sequence.  They will not open in Photoshop as you suggest.  To get a PSD  to open in Photoshop, right-click on it and select "Open in Editor."
    But I may have misinterpreted want you want to do ... did you really mean "open in Photoshop" or do you mean you want to access the individual layers of the file in FCP?
    -DH

  • Mangled Menu. PSD layers EXPLODE when copied and pasted.

    I make a menu in Photoshop (DV Widescreen - I've tried numerous formats) and I make a DV NTSC 16x9 sequence. If I import the PSD file and drag the whole thing into the timeline it looks perfect. If I copy certain layers and try to paste them into my DVD menu sequence the PSD layers just explode. The size explodes, the position is way off.
    WTH is going on?

    In previous version of FCP (before I HD was standard) I could import PSD files with dozens of layers. I could open the PSD sequence, select whatever layers I wanted and paste them into other sequences. The layers would keep all their attributes and positions relative to the original document. This made it very easy to create motion menus for DVD SP. Now when I try the same thing the layers go freaking nuts.
    I can see just fixing the file in PSD would solve the problem but if I'm creating numerous menus with slight variations, I need a PSD file for each menu instead of a master PSD file with the elements for all the menus. Minor I suppose but it just seems counter intuitive to have the layers to lose all their scale and position attributes just because they were pasted into a different sequence.
    Does this not seem odd to anyone or am I on crack? Or am I missing some obvious setting or aspect ratio?

Maybe you are looking for

  • How can I get iPhoto only using ios 5?

    For the moment i do not want to update to ios 6 (I love Google Maps in ios 5, which have been removed from ios 6!), but I very much want to get iPhoto onto my iPad 2, but Apple says that it demands ios 6...? Is there no way to obtain "the old" versio

  • Polling on a practice for REDO logs

    I would like to do a poll on the below security practice because it seemed not commonly deployed. If this practice is done in your company for the core databases, could you please reply to my posting and state your industry, DBA strength and total nu

  • DBMS_JAVA Problem

    I have Four set of questions :- 1) I have granted the execute permission to the DBMS_JAVA package to SCOTT user, When I try to execute, it gives error : call dbms_java.grant_permission 'scott','SYS:java.lang.RuntimePermission', 'readFileDescriptor','

  • How To Display Current Page Name in Text Box Titles?

    <BR>I have a report which uses a page dimension. When I print out the report, it does display the page dimension member in plain text, near the beginning of the report. But I would like to incorporate the current page value in the formatted report ti

  • How to Upload XSD into MDS by using WLST/ANT only

    Hi, Can anyone help me out how to upload an XSD into MDS using WLST/ANT only (Not JDEV) Please help me out its urgent Edited by: 943121 on Dec 28, 2012 8:11 AM