Copy link to clipboard
Copied
I imported a single PSD with 88 layers as buttons. When I double click on the PSD, to break apart, I creat new symbols of 88 buttons. But when I run the program, flash dosen't see the buttons within the PSD. The EventListener can't see the buttons because they are within the single PSD file. I did the buttons one by one, but when scrolling through the 88 buttons, the buttton move closer together as scrolling, That's why I made a single PSD so they don't move.
I am using Flash Professional CS5
If you double-clicked it, it did not break apart. Instead, you did the same thing as selecting Edit>Edit in Place from the menu. The reason Actionscript can't see your instances is they are nested inside a MovieClip. If you want to make that upper-level MovieClip transparent to ActionScript, select it on the stage, then look in the Properties panel and change the symbol from "MovieClip" to "Graphic,"
Copy link to clipboard
Copied
Are you not using the import function in the File menu? Ordinarily, when you import a .ps file into Flash you will get a window that will allow you to set the layers that are to be imported and the method used to import those layers. If you Select to import Photoshop's layers as Flash layers then each of your Photoshop layers will be imported as individual bitmaps on their own layers into Flash.
Then you can select each individual item and set it to be a button if you like.
Copy link to clipboard
Copied
When I import as indivivual layers and make them buttons and write actionscript to have all of these 88 buttons pan together, while panning on the Android, the buttons slowly merge together the more I pan. So I tried dragging the whole PSD file from library to stage, the buttons keep thier distance from each other while panning. I double click the psd file on stage and it breaks apart, then I set instance for each button. But actionscript cannot see the instances with in the PSD.
Copy link to clipboard
Copied
If you double-clicked it, it did not break apart. Instead, you did the same thing as selecting Edit>Edit in Place from the menu. The reason Actionscript can't see your instances is they are nested inside a MovieClip. If you want to make that upper-level MovieClip transparent to ActionScript, select it on the stage, then look in the Properties panel and change the symbol from "MovieClip" to "Graphic,"
Copy link to clipboard
Copied
Ok cool the graphic works and is transparent and actionscript does see the buttons now. But now that all the button are inside the graphic, but now the multitouch gesture dose not see the graphic. I can't name the instance of a graphic like I can in a MovieClip.
1120: Acess of underfined property kickout
I don't like the two finger drag, I can never figure out the single touch drag as well
Copy link to clipboard
Copied
You can't have both things at once--you can't reference the children of the Graphic/mc as if they were not in the graphic/mc and then also reference the parent. If you need to reference the parent, you need to change it back to a mc and name it and then reference its children as its children.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now