Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

A single PSD imported but has buttons within

Community Beginner ,
Apr 24, 2014 Apr 24, 2014

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

TOPICS
ActionScript
714
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guide , Apr 24, 2014 Apr 24, 2014

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,"

Translate
LEGEND ,
Apr 24, 2014 Apr 24, 2014

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 24, 2014 Apr 24, 2014

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Apr 24, 2014 Apr 24, 2014

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,"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 25, 2014 Apr 25, 2014

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Apr 25, 2014 Apr 25, 2014
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines