Why does Flash generate invalid class names for library items?

I imported a bunch of bitmaps (PNGs).  The library symbol names all included the full file name and its extension.  When I check "export for actionscript" it generates a class name based on the symbol name, and it includes the ".png", even though that's invalid in a class name.
When I select multiple bitmaps and choose properties and export for actionscript, it has a note saying that classnames will be automatically generated for all items, but it does the same thing... including the ".png" in all the class names.  Is this a problem?  Wouldn't it save time if Flash would automatically strip the file extension from the instance name of bitmap library symbols when generating class names?

Thank you Nipun.  That is exactly the behavior I would expect, and I can confirm that in the trial of Flash CC it generates valid class names by removing the file extension.  For example, a file named "3ball.test.png" will receive an auto-generated class name of "_3ball_test", so it really does ensure the class name is valid (meeting AS3 class name syntax)
kglad, what I'm saying is that an image file name like "ball.png" is not a valid "class name", because it contains a period, which is reserved as a package delimiter.  I know the runtime can handle it as a valid "fully-qualified class name", but it's misleading because it's actually creating a class named "png" in package "ball", BUT it's understood that the auto-generated name is not supposed to be specifying any package, hence the misleading specification.  The class would have to be instantiated like this: "import ball.png; var bd:BitmapData = new png();" or "import ball.*; var bd:BitmapData = new png();"  You would also then have to import every single class individually and always use their fully qualified names, because you'd technically have a bunch of classes all named "png" inside a hundred different packages.  It's just not acceptable.
The other problem that occurred in CS6 is if you loaded a bunch of files whose names started with numbers, then when you select them all, choose properties, and use the batch properties window to export them for actionscript, I noticed that such images would be auto-assigned generic names like "Class4" as it would realize the default auto-generated class name would be invalid.  This problem has been fixed beautifully in Flash CC.
Nipun, it would actually be very helpful to have a little more control over the class naming conventions.  For example, if I wanted all my BitmapData classes to exist in an "images" folder or package, it would be helpful if in the batch properties window I could specify a package name for all the auto-generated class names.  When importing hundreds of images, it's very tedius to have to edit them individually and I don't always have time to write a JSFL script.  There's room in that window to add a text field for a package name.  Thanks!

Similar Messages

  • Why does ADF generate referenced classes (FK) as Accessor not as Attribute?

    Question is simple when ADF generates Entity classes, it does not generate referenced object as Accessor, not as Attribute and this causes problems on SelectOneChoice.
    Is it normal?
    Child Class : { id, name, parentObject } (ID and Name is generated as Attribute, parentObject is generated as Accessor)
    Parent Class : {id, name}
    When I create ADF Form for Child class, it only creates form for ID and NAME attributes, and ignores parentObject attribute. When I add selectOneChoice manually for selecting parentObject of child class, it does not update Child Class with mergeChild() action. Simply ignores?

    There have been requests on this and currently this is not supported. (check this thread http://forums.adobe.com/message/2267567#2267567)
    you can vote for the bugs for this to be supported in a later build / release.
    https://bugs.adobe.com/jira/browse/FB-23156
    https://bugs.adobe.com/jira/browse/LCDS-971 
    Thanks
    -Sunil

  • Flash text "Invalid file name" error in Dreamweaver

    I'm trying to create some flash text in Dreamweaver. But
    after I've formatted the text in the dialog box and hit save, I get
    the message "invalid file name" for my top.swf name. Can't figure
    out why I'm getting the message, and it's not working. Anyone???
    Working on this for a class and need to get my assignment done!
    Thanks in advance!

    > Too funny, thanks for the laugh. The name I'm trying to
    save it as is top.swf.
    > trying to create a "Top of page" navigation spot at the
    bottom of my page.
    > I've given up!
    I'm guessing there is a "funky" character in the hd name or
    in the path down
    to the "local site folder"
    please do this:
    open a new file using File->New
    --->do not save this file<---
    type some text, select it, and make a link to something in
    this site using
    the property inspector folder icon to bring up the "browse to
    file" dialog
    box.
    view source, copy that link, and paste into your reply.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • HT5824 why does my ipad say user name disabled, but on all other devices i can pog into itunes and icloud using my user name

    why does my ipad say user name disabled but i can use my user name to log into itunes and icloud on other devices

    At this time there is no "solution." You'll simply have to wait the 90 days to re-enable iTunes Match.
    For now here is my suggestion. In your User Account, in OS X, sign out of whatever iTunes Store account you are signed in with. Then sign in with your store account and leave it at that. Now sign out of your OS X User Account, sign into your wife's OS X User Account and sign into the iTunes Store with her Apple ID (if necessary sign out of the account first).
    Now, you can go back to your OS X User Account and attempt to enable iTunes Match. You will probably get the "wait 90 days" message. If so leave it, mark your calendar, and wait for the 90 days to expire. You can try contacting iTunes Store support at <https://expresslane.apple.com> if you wish, but I really do not know how useful that will be.
    Incidentally, you get the message to pay for the service when trying to enable it on your wife's Apple ID because the service has not been purchased using that Apple ID. iTunes Match is designed to be a single-user service that is never signed out of and is associated with one, and only one, Apple ID and a regional store.

  • Why does Flash install Google Toolbar?

    Why does Flash install Google Toolbar? Honestly, do you have ANY idea how annoying that behaviour is? I had no option at all to not download it, I could not stop downloading it. I was taking from a "you need to install flash" button on Facebook to the download.
    Honestly things like this make me rage, installing things automatically without an option.
    Until now, I used to think that it was annoying that Apple wouldn't allow flash on some of their devices. Now Adobe pulls **** like this, I'm not surprised. To hell with Flash I say.

    This is a user-to-user forum, and you're "preaching to the choir" here. IT ISN'T going to change, and NO ONE from Adobe management ever sees or reads these pages. Employees are here from time to time but no one who makes these decisions participates in these forums, per company policy. (I used to work for Intuit, and we were strictly prohibitied from posting in their forums. A team leader I worked with was fired for it).
    Links to the FULL installers are posted literally HUNDREDS of times each week throughout these pages by myself, and at least three others I know of, who volunteer in these pages daily.
    Flash Player for ActiveX (Internet Explorer)
    Flash Player Plug-in (All other browsers)
    http://get.adobe.com/reader/enterprise/
    I DON'T run Adobe and no one here does, so I won't even beging to discuss business ethics.
    The solutions have been offered, and I recommend you update NOTHING, including your OS, automatically. I don't because I don't want junk like Ask Toolbar, Yahoo Toolbar, Bing Toolbar, Bing Desktop, Norton or McAfee on any of my nine systems.

  • Why does Flash/Flex Builder 4 Premium downgrade to Standard when I install Flash Player Debug?

    Why does Flash/Flex Builder 4 Premium downgrade to Standard when I install Flash Player Debug?
    I installed a corporate install of Flex/Flash Builder 4 Premium, and verified that it was the Premium version was installed.  The Start Page said that Flash Player was needed to display the text, so I installed Flash Player 10 Debug -- first download link from here:
    http://www.adobe.com/support/flashplayer/downloads.html
    When I then started Flex Builder 4, the splash screen showed Premium, but as soon as the Start Page was visible, it showed "FB Adobe Flash Builder 4 Standard" --- Help | About showed Standard, and the splash screen from then on showed Standard.
    A Google search showed a work around for this, but it requires a license for Premium, which I don't have because our corporate install has it built-in:
    http://bloginblack.de/2010/05/adobe-master-collection-cs5-breaks-flash-builder-4-premium-a nd-how-to-fix-it/
    1. Anyone know how to resolve this?
    2. Can Adobe fix this?
    Thanks!

    I had similar problem. I was involved in Flash Builder prerelease program and few months later I installed Adobe CS5 Master Collection. After that I had a same situation.  Best thing was, my Flash Builder Beta was Premium version but acted like Standard, and FB from CS5 was Standard but acted like Premium. I removed CS5 and beta version of CS5. used CS5 Cleaning Fix and then reinstalled my apps.
    I was lucky that I didn't have many big projects involved in FB beta or CS5 workspaces, I heard some guys had problems with migrated workspace configurations but I don't know what was the problem.

  • Why does Flash Player keep sending me notifications to update to the version I already have?

    Why does Flash Player keep sending me notifications to update to the version I already have? The result is always an error message telling me that the version is already running. (Desktop Computer; Windows Vista OS; Firefox; Adobe Flash Version 11.8.800.94)

    I don't know; can you post a screenshot of such a notification?
    Did you update both ActiveX (for Internet Explorer) and plugin (for Firefox)?

  • HT3702 Why does it say invalid security code when I'm prompted to sign in?

    Why does it say invalid security code when I'm prompted to sign in. I have intered my security code from my credit card several times. It will not allow me to use the app store, even for free purchases.

    Is the address on your iTunes account exactly the same (format and spacing etc) as on your credit card bill : http://support.apple.com/kb/TS1646 ? If it is then you could try what it says at the bottom of that page :
    If the issue persists, contact your credit card company and verify that they and any company they use to process credit card authorizations have the correct information on file.
    And/or try contacting iTunes support : http://www.apple.com/support/itunes/contact/ - click on Express Lane, then iTunes > iTunes Store

  • Why does flash player not work with facebook?

    Why does flash player not work with fcebook?  Whenever I wish to view a video, I get the message that i need to upgrade my flash player. Then no matter how often I download and install flash player I still get the message that I need to upgrade my flash player.  When I go check which version I have, I always get the message that I have the most current one.  I run Mozilla Firefox with Windows.  I don't know anything else.
    Message was edited by: khettich

    This means you don't have the latest version installed.  Update to 11.9.900.117, and Firefox will allow it: Flash Player Plug-in (All other browsers)

  • Why does iphone has common volume control for ringer as well as Alarm?

    Why does iphone has common volume control for ringer as well as Alarm? which is quite unusual. For Exp, In case i lower down my ringer for some reason instead of silent and forget to increase before i sleep, my morning alarm also remains at the same ringer level volume at which i can miss the alarm. Is it due to some specific reason or i have missed something to change in settings. Other phone like Samsung etc, they have separate volume control for ringer and to an extent, Nokia rings for Alarm even if the battery is completely discharged.

    I have booked an appointment at my nearest Genius Bar which is 40 minutes away next week, so do I need a reciept or is the warranty checked from the serial number?
    No receipt needed.
    and is it covered under Apple's 12 month warranty?
    It very well may be covered, depending on what Apple finds.

  • Why does Acrobat X CS6 keep asking for a license number?

    Why does Acrobat X CS6 keep asking for a license number? When I enter it, it's declined. I have the suite from school and loading it at home as allowed as the teacher.

    Contact S&T support if you have specific issues.
    Mylenium

  • Where is the Package Name and Class Name for Android to Facebook SSO?

    Where is the Package Name and Class Name for Android to Facebook SSO?
    I am trying to fill these fields http://developers.facebook.com/docs/mobile/android/build/#ref for Facebook but i can't figure out what to place in Android Package Name and Andorid Class Name,
    same thing for the Android Key Hash, I followed this guide http://www.skoobalon.com/blog/2012/06/13/getting-the-android-key-hash-for-facebook-from-an -air-app/ but I am not sure if it is the right thing to do.
    I was thinking maybe the Pakage Name is air.com.myname.myappname (where com.myname.myappname is also the id used in the application.xml) and the Class name is  air.com.myname.myappname.MyDocumentClass ?
    Is there an official guide somewhere?
    Also do you guys know if there is somewhere a library we can use within AIR to do SSO on Facebook from Andorid?

    For what it's worth, I don't think a WiFi connection would be reliable enough. You wouldn't want your picture to freeze just because a neighbour has turned on their baby monitor. WiFi uses the same frequencies as a myriad of other devices, as well as all your neighbours' WiFi.

  • Why does it say "The configuration data for this product is corrupt. Contact your support personnel." when trying to install itunes64installer on my b4 bit windows 7 acer pc? Any help would be much appreciated...

    Why does it say "The configuration data for this product is corrupt. Contact your support personnel." when trying to install itunes64installer on my b4 bit windows 7 acer pc? Any help would be much appreciated...

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Why does Verizon not support Windows 8 for wi fi?

    Why does Verizon not support Windows 8 for wi fi?  Are they planning on supporting Windows 8?
    Solved!
    Go to Solution.

    Verizon wi fi for hot spots does not work with Windows 8.  For verification go to FAQs about Verizon Wi-Fi for FiOS Internet, 
    http://www.verizon.com/Support/Residential/Internet/fiosinternet/networking/setup/wi-fi/124650.htm , and click on How do I know if my laptop or netbook is compatible with Verizon Wi-Fi? .  Verizon wireless home network does work well with Windows 8.
    Since you can't even download the wi fi for hot spots software if you have Windows 8, I don't know how to use compatability mode to get around the problem,

  • Why does my FaceTime keep saying "waiting for activation..." ?

    Why does my FaceTime keep saying "waiting for activation..."?

    Troubleshooting FaceTime & iMessage Activation: http://support.apple.com/kb/TS4268

Maybe you are looking for

  • Error calling a webservice from one server process of the cluster

    Hi , I have a servlet which on startup makes a call to a webservice. I deploy this webapp on the cluster. The cluster has two instances each instance having one server process. So when the server restarts one server process on one instance calls the

  • Windows 8.1 printing blank pages from all apps

    Morning Tech Support:  My favorite people!!  This just began within the this week where what ever appl I attempt to print from, prints blank pages.  Upon viewing the print spooler, it shows doc going into printer okay, no probs w/ margins or page siz

  • Mapping-based message splits in PI7.0

    We have developed an integration scenario on XI 3.0 that uses mapping-based message splits (1:n transformation without BPM). This is available since SP14 I think. Now we want to upgrade to PI 7.0: Are mapping-based message splits a standard feature o

  • How APEX work with New Schema

    Hello, I have APEX installed already in my database and currently it's catering 2 schemas, say schema1 and schema2. Schema2 has been dropped now and new Schema3 has been created. I changed dads.conf file and pointed to new schema, Schema3, restarted

  • Internal Error 500 started appearing even after setting a large number for postParametersLimit

    Hello, I adopted a CF 9 web-application and we're receiving the Internal 500 Error on a submit from a form that has line items for a RMA. The server originally only had Cumulative Hot Fix 1 on it and I thought if I installed Cumulative Hot Fix 4, I w