Symbol Properties - changing class name

Newbee question...
I'm trying to change the class name of a movie clip symbol
that I have in my library. I've changed the name of the symbol,
I've change the name of the class in my AS3. I've changed the name
in the advanced properties Class:, but at the bottom of the
properties page there is a button that's labeled Symbol... when I
click on it, nothing happens, next to the button is Symbol Name:
[old name], but because the Symbol button does nothing when I click
on it, I cannot change the name here to the new name. Below that is
a check box that says always update before publishing, which I
checked and then published, but it still didn't update to the new
name. What am I missing?

I believe there are a couple of aspects to that, and for what I offer, anyone who knows better should chime in.
If you have an object in the library that you want to load dynamically, such as a MovieClip, you prepare it for that by selecting the option to Export for Actionscript, which lights up the ability to define a Class name for the object.  When you compile the file a class definition for that object is automatically generated if there is not already a class by that name in a separate .as file.
So you can create a movieclip and have it be its own class.  Or you can create some entity and assign it a Class ID that already exists as a separate .as file.
And in your AS code, to create a new instance of that class, you do it just like any other AS3 class...
var newInstance:ClassNameAssigned = new ClassNameAssigned();

Similar Messages

  • Open my project and everythings blank? I changed class name.. But everythings gone? Heres a link to my project.

    I broke my project! I made a lil christmas tree with labled presents under it for my friends to click on and it will take them to a link where they can get a gift card code i got for them.
    Anwyas.. I swear.. everything was fine.. All i remember doing last was changing the composition class name and the changing the untittled bit at the top to the same. Also, I did accidently open it in an older version of edge since i have 2 copies on my machine but i do that all the time and never broke a project before.. so i donno..
    I zipped up my files. I am kinda desperate to get this fixed.. Its christmas! Iv been working on this forever.. It needs to be done today.. It was perfect.. I just want my files back? Is there anyway?
    Heres my project if anyone wants to take a look... Everything i did is just gone/blank.. D:   http://portalpacific.net/AussieChristmasParty.rar
    Any help REALLY appreciated!!!
    Happy Holidays!

    Hey Redesign. You still online? I managed to re-create the page I lost.. Took a few hours.. I am having a slight problem though. I centered the composition using the stage preferences to the left, I also added a preloader. These worked fine. I must of done something to break both the centering and the preloader. Its not even letting me edit it. Do you see anything abnormal? (It says it should be centered in the settings in the html file too but its not also same issue with http://portalpacific.net/AussieChristmasParty2.rar

  • How to change all class name on my java program?

    I want to change class name like this. This class name changes into a, b, c, d, e,.....
    MyClass m = new MyClass(); ------> a m = new a();
    MyClass2 m2 = new MyClass2(); ------> b m2 = new b();
    before I saw this code.
    I think it is can be using tool or program.
    anybody know?
    thanks in advance.

    Google for Java obfuscator

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

  • Symbol Properties Class: field

    Hi,
    What exactly is the function of the Class field in the Symbol Properties window?

    I believe there are a couple of aspects to that, and for what I offer, anyone who knows better should chime in.
    If you have an object in the library that you want to load dynamically, such as a MovieClip, you prepare it for that by selecting the option to Export for Actionscript, which lights up the ability to define a Class name for the object.  When you compile the file a class definition for that object is automatically generated if there is not already a class by that name in a separate .as file.
    So you can create a movieclip and have it be its own class.  Or you can create some entity and assign it a Class ID that already exists as a separate .as file.
    And in your AS code, to create a new instance of that class, you do it just like any other AS3 class...
    var newInstance:ClassNameAssigned = new ClassNameAssigned();

  • How can I Change Asset names for swapped images in duplicated symbols?

    I have what seems to be a bug in edge animate cc2014 in following circumstances:
    1. Duplicate a symbol
    2. Drag duplicate symbol onto stage.4
    3. Rename symbol
    4. Click to edit symbol
    5. Select an image inside the symbol
    6. In properties panel change path to swap the image to be used in this instance of the  duplicated symbol ( I need to reuse this symbol many times and not being able to change asset names is a real problem!).
    7. The names for the asset in both the timeline and the elements were auto generated at the time of duplication when try to change the names they revert back to the auto generated  names.
    How can I overcome this problem which is clearly a bug or a poorly thought through bit of programming by an otherwise highly competent adobe edge animate tesm
    Thank in advance
    David.

    Again, incorrect. It's not about how I can address a specific symbol with code - no problems there - it's what the composition loads into the symbol. Try it with some complex component or sub- symbols.
    Work-Around for using Duplicated and Revised symbols (symbol variants) in the SAME document. Solution.
    Tedious, but easy. Low risk. Edge Animate 2014.1.1
    When you duplicate a symbol comprised of symbols itself ("sub-symbols"), only the outermost symbol gets a unique name, not it's component inner symbols. Upon import of additional variants, a unique name is created in the Library/Symbols panel for the inner symbols, yet the references in the outer symbol can't update to use those unique inner-symbol names. Therefore, the composition loads the symbol with the matching name. This will be the first variant to be imported.
    Make the Duplicate
    Duplicate the symbol in the Library/Symbol Panel. Rename. Export.
    Prepping the Symbol
    Open a new document, import and place the new symbol.
    Select the asset to be switched/replaced. Make the switch in the property panel. Properties/Images/Swap button. (I revised my base or source symbol to have different colored background images. This is how I created 4 color variants.)
    Save the new document, of course. "Example1.an"
    Export the revised symbol from the Library/Symbol Panel for safe keeping.
    Return to Example1.an
    Elements Panel: Work through the nested symbols, adding a preceding identifier to all symbols in the heirarchy.
    *KEEP IT SIMPLE so you can easily and quickly move through the .js files in the following steps.*
    Save Example1.an.
    Library/Symbols Panel: Go down the list, renaming all the symbols with the same preceding identifier as was used in the Elements Panel. *I advise to stay parallel with the Elements panel. Change as little as possible.*
    Disregard any odd appearance you may see on the stage for now.
    Save Example1.an
    Revising the Code
    In Edge Code, also part of the Creative Cloud suite, or any code editor, open the two .js files for "Example1.an." found in the same folder...Edge.js and ...EdgeActions.js
    ...Edge.js
    find  "symbolName" - prepend with the identifier whatever is not already prepended.
    at the same time, look for "id" nearby - prepend with the identifier whatever is not already prepended.
    Save
    ...EdgeActions.js
    First read the grey comments about not degrading the //Edge Comments.
    Search the document for "//Edge symbol" - prepend whatever is not already prepended.
    Carefully check all the orange text, prepending the symbol names you find. This same code can be seen in your Code Panel with the "Full Code" button.
    Save
    Return to Edge Animate
    When prompted to Reload, say yes.
    Save Example1.an
    EXPORT your new top level symbol - now a fully separated asset.Now you have created a fully unique symbol, which can be used in conjunction with other variants in the same document.
    Import your new, unique symbol variant it into your real document.
    This is the solution if your Symptoms are:
    I duplicated symbols to make different variations, but now I can't use the duplicated symbol variants together.
    When I try to swap images in a duplicated symbol, it succeeds when used alone, but reverts when used with the original symbol.
    My duplicated symbol works properly alone, but not when it is used with the original symbol.
    My symbol seems to revert to the original source symbol.

  • How to change the $ sign in a class name?

    How to change the $ sign in a class name?
    After compilation I get classes with names like abc.class, abc$1.clsss abc$2.class etc.. How do I get different names (without the $ sign) that will be accepted by my web host.

    Thank you, I found out it had to do with the actionPerformed(ActionEvent e) assignment,
    public void actionPerformed(ActionEvent e) {
    if (e.getActionCommand().equals("Subtotal")) {
    bla bla �..
    I will have to rewrite some of my source code. I gave you points, thank you again.

  • Why can't I change the names of my states in my symbol?

    For some reason, Fireworks won't let me change the names of my states in my symbol.
    I double click on the state name in the states panel, and nothing happens.
    It works fine for normal "non-symbol" pages.
    Can you normally change the names of states in symbols?
    Any ideas why I am having difficulty doing so?

    Thank you SO much! Funny thing, I didn't even notice the tiny folder icon at the top of the info window until I saw it in the screen shot at the beginning of that article. 
    See, I have begun changing the icons of the folders of digital scrapbooking alphabets I have (screenshot below). Now it will be so much easier to scroll through my hundreds of alphas and choose one, because I can SEE them without going in and out of each folder.
    A million thank yous!!!!! 

  • How to change column name heading thru Class method in ALV report

    When I Select LayOut on Selection screen then Display ALV Output columnname display Quantity but I want change this name to Carats.
    I set Short, Medium and Long text is Carats.

    DATA: lt_fcat    type lvc_t_fcat,
              lv_fname type fieldname value '<Your FName>'.
    FIELD-SYMBOLS: <fcat> type lvc_s_fcat.
    CALL METHOD alv_grid->get_frontend_fieldcatalog
       IMPORTING
           et_fieldcatalog = lt_fcat.
    read table lt_fcat assigning <fcat> with key fieldname = lv_fname.
    if sy-subrc is initial.
       <fcat>-COLTEXT = <fcat>-SCRTEXT_L = <fcat>-SCRTEXT_M = <fcat>-SCRTEXT_S = <fcat>-SELTEXT = '<Your new Description>'.
    endif.
    CALL METHOD alv_grid->set_frontend_fieldcatalog
       EXPORTING
           it_fieldcatalog = lt_fcat.
    call method alv_grid->REFRESH_TABLE_DISPLAY.

  • Where can i find the different class names to change the style sheet

    Hi experts,
    i m making a WAD but i need change somethings in the stylesheet, for example, in my query i have some exceptions, i need this exceptions to works some functions of the broadcaster, but i dont need show the exceptions in the report, so, i need a class name to change the stylesheet to dont show the colors of these exceptions when the report is executed, i have seen this function in a report but i dont remember how to do it.....
    for example this works to change a hier from horizontal to   vertical
    <STYLE>
      .SAPBEXHLevel0 {writing-mode: tb-rl;
                                    filter: fliph flipv };
      .SAPBEXHLevel1 { writing-mode: tb-rl;
                                    filter: fliph flipv };
      .SAPBEXHLevel2 {writing-mode: tb-rl;
                                    filter: fliph flipv };
    .SAPBEXHLevel3 {writing-mode: tb-rl;
                                    filter: fliph flipv };
    </STYLE>
    some like this, was the class name to change the colors, please help

    not answered

  • Class names to change the stylesheet

    Hi experts,
    i need the different class names to change the style sheet of my web template, in this moment the problem is this:
    i made a query with exceptions but i do it to get some function with the bex broadcaster, but not to show it when the report is executed, now i need the calls name to chage the color
    i used this class but it was to show some data vertically, now i need to change colors of the web report
    <STYLE>
      .SAPBEXHLevel0 {writing-mode: tb-rl;
                                    filter: fliph flipv };
      .SAPBEXHLevel1 { writing-mode: tb-rl;
                                    filter: fliph flipv };
      .SAPBEXHLevel2 {writing-mode: tb-rl;
                                    filter: fliph flipv };
    .SAPBEXHLevel3 {writing-mode: tb-rl;
                                    filter: fliph flipv };
    </STYLE>

    Hi,
    i am not getting ur requirement. can u explain more.
    Do u want to call different style sheet for different level?
    regards,
    kathir

  • Change Prg name in classes using abap code

    Hello Experts,
    I'm having following req:-
    I need to change program name using abap code .
    I have prepared report which changing prg name & also it is replecting target name into T-code & Programes where source prg name is being used.
    My next req is i want to replace sorce prg name in Classes usinf abap coding.
    <Priority normalized by moderator>
    Thanxs in Advance.
    Moderator message : Requirements dumping not allowed, thread locked.
    Edited by: Vinod Kumar on Feb 7, 2012 12:32 PM

    The application name is not necessarily uniqueue! Customers may create two applications with same name in different systems/clients and transport them into the same target system/client!
    You do the mapping with the query:
    CL_FDT_FACTORY=>GET_INSTANCE( )->GET_QUERY()->...
    There are two methods. One for mapping ID to name and one for name to ID.
    There is also a sample report in package SFDT_DEMO_OBJECTS.

  • [svn] 2932: Updated manifests with recent changes to TCAL package and class names.

    Revision: 2932
    Author: [email protected]
    Date: 2008-08-20 14:01:37 -0700 (Wed, 20 Aug 2008)
    Log Message:
    Updated manifests with recent changes to TCAL package and class names.
    Reviewer: Jason
    Bugs: SDK-16531
    QA: No
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16531
    Modified Paths:
    flex/sdk/trunk/frameworks/fxg-manifest.xml
    flex/sdk/trunk/frameworks/mxml-2009-manifest.xml

    Revision: 2932
    Author: [email protected]
    Date: 2008-08-20 14:01:37 -0700 (Wed, 20 Aug 2008)
    Log Message:
    Updated manifests with recent changes to TCAL package and class names.
    Reviewer: Jason
    Bugs: SDK-16531
    QA: No
    Doc: No
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-16531
    Modified Paths:
    flex/sdk/trunk/frameworks/fxg-manifest.xml
    flex/sdk/trunk/frameworks/mxml-2009-manifest.xml

  • Change of Class Name

    Here is an elementary dialog program that works perfect
    import javax.swing.JOptionPane;
    public class J004aAddDialog {
    public static void main(String[] args) {
    String firstNumber,
    secondNumber;
    int number1,
    number2,
    sum;
    firstNumber =
    JOptionPane.showInputDialog( "Enter first integer");
    secondNumber =
    JOptionPane.showInputDialog( "Enter second integer");
    number1 = Integer.parseInt( firstNumber);
    number2 = Integer.parseInt( secondNumber);
    sum = number1 + number2;
    JOptionPane.showMessageDialog ( null, "The sum is " + sum, "Results",
    JOptionPane.PLAIN_MESSAGE );
    System.exit ( 0 );
    2. Now, I change the class name to J004aAdddialog20090204 and save and compile accordingly
    javac J004aAddDialog20090204.java
    but it gives errros on running.
    3. What has gone wrong ?? The class name rules only say that it cannot begin with a digit and shouldn,t have spaces..

    flounder wrote:
    The JLS says this:
    Names of class types should be descriptive nouns or noun phrases, not overly long, in mixed case with the first letter of each word capitalized
    but it does not specify any restriction on length. I just tested a file with a name ~ 60 chars long. It compiled and ran fine. Once again what errors are you getting?My guess is that it's quite a bit longer. But of course the name of a class includes the name of package it exists in.
    The theoretical limit for a fully qualified classname is likely either Byte.MAX_VALUE (which seems low, especially in the light of the potential for deeply nested packages with long names) or Integer.MAX_VALUE (which would be insanely long of course, but theoretically possible when using code generators gone berserk).

  • Effect on symbolic link when changing volume name

    I just wanted to verify this information before I proceed with changing the name of my hard drive. I have 3 partitions of my MBP's internal drive. There is the system partition "Mac HD", a boot camp partition and a data only partition called "Storage". I have quite a few symbolic links on "Mac HD" which point to "Storage", where the data is stored. If I change the name of "Mac HD" and/or "Storage", will the symbolic links update to the new name of the volume automatically? Or, will the change of volume name break the symbolic links so I have to create them all over again? Everything I have read leads me to believe they will update, but I don't want to mess anything up and find out the hard way. A little confirmation would make me feel much better before I make the change.
    Thanks,
    sterling

    etresoft wrote:
    I don't want to get off on a tangent about pros and cons of cloning, I just want to plant a seed of worry to review it at a later date. It is one thing to restore a disk image for a kiosk machine, it is something else entirely to restore an image of some machine that has had people using it. Misconfiguration, corrupt filesystems, and failed hard drives are some of the most frequent causes of failures. Having a clone of a system that has just failed for one of those reasons doesn't give me a warm fuzzy. It would be a much better idea to have a procedure (or script) to build a new server from scratch and load it from a backup (not a bitwise clone) of known, good data.
    Our computer use is typical. There are only a few employees who use the computers regularly, and a few people others who use it less often. the daily use is mostly for back end management like bookkeeping and processing orders. The rest of the operations are design based, like graphics and documents. We don't have a business like a kiosk where people are all over the computers all day. With deep freeze on the system though, there is no worry about anyone doing anything to the system that would corrupt it. Also, the actual drives with the OS rarely get changed or backed up, because they remain the same for the most part. All of the files that are created like documents, designs, orders and such, are saved to storage. The storage is what I back up frequently, because that's where everything is stored. I may have a false sense of security, but I always thought I was more protected than most, because all of my files are stored on a drive without any operating system. I figured there is very little that can go wrong which could corrupt my data since the drive is data only. I always have 2 backups up both the OS drive and the data storage drive. One is like a daily backup, the other is more like once a week or so update which is kept in the safe. I always verify that the backup by opening a few files on it, but I never really know for sure that everything is safe because I can't open everything! I have no clue how to start a server based system backup like you are talking about, but it sounds like a much safer backup method. A little overkill for use considering we don't do that much on the computers? Maybe, but only because I would have to hire someone to come set it up for me. Maybe it's not so hard as it sounds, but I know I don't have the time to learn how to do something like that myself. I didn't realize the backup techniques I am using are so inferior. I feel like my data is pretty safe, but I guess I can look into other options.
    I don't consider it "fun", I consider it a "requirement".
    I am a bit of a prepper, okay a lot of a prepper. I am prepared for just about anything that can come my way. I do not consider testing my preps fun either. I was just saying, I anticipate that there will be some sort of loss when I restore, based on what you're telling me.
    Disasters do have a remarkable ability to strike when you are least prepared. There is a logical reason for that. The more prepared you are, the less disastrous the event.
    Agreed, 100%. That's why we're talking about it. I was starting to think that I was over thinking it! Clearly I'm not the only one!
    Interesting. Unfortunately, the symbolic link method is pretty invasive because it requires those links to be up and functioning before the clone. A better solution would be to identify all those files, and have a launchd script that replaces the original files with either modified versions or links at system boot time.
    With deep freeze, the symlinks are re-created every time I boot, even if they are broken before shutdown. So, it's pretty safe as long as they work before I freeze the system. I also have the two backups in case something goes wrong. I'm confident the links work. And the worst thing that can go wrong if they break is that I have to re-create the broken ones. either way, the data that is linked is still on my storage drive and both of my backups. The only thing I wouldn't be able to recover would be the symbolic link itself.
    You need to think of this in terms of the file system. The "name" of a volume doesn't really mean anything. What matters is the mount point. The mount point, however, depends on a particular hardware configuration. You could control it better with some clever mounting scripts, but it sure seems like there is a much easier way to accomplish your ultimate goal.
    I guess you're saying I could get by without deep freeze, and that it complicated things. Yes, it does. I am always trying to find workarounds because of it. However, I like the fact that my computer is the same every time I turn it on no matter what someone has done to it.
    You have extensive control over your mount points.
    I will have to look into this, because if I can get the firewire clone to run with the symlinks in place, I could have a fully working system with nothing more than a restart of the computer.
    That, I don't know. Restoring a disk image that has embedded symbolic links to another drive is a fragile solution. You know what files you need to symlink, write a script that will set up the links at boot time - or at any time. Exactly what files are these? I strongly think there is an even easier solution lurking around. Why are you so concerned about retaining user data through restarts? Why are you even restarting?
    There's actually not as many as I thought. I have symlinked data and prefs from mail, ical, address book, blackberry desktop. Then, some document folders. I could cut a lot of these down by linking my entire documents folder and building my hierarchy within that, but I've built my own which is neatly organized into the 4 departments of our business. It's really not that much. The only thing is that my mail, ical and address book won't work on the clone, because they are dependent on the simlinks. Everything else is just files that I would access directly from the storage drive anyway, so no loss there!
    Wow! I made it through here! I'll review over the ideas you recommended and see if I can actually implement any of them myself. My guess is, I don't have the skills to pull them off. I'll look into it though. thanks for your time, and I will let you know what happens.

Maybe you are looking for

  • Hi, why can´t I see my transparent basic vector after saved?

    Let´s say I draw a circle with the vector tool, stroke 3, white, transparent background, all good until I save. I save as gif or png. If I upload to the website the background is not transparent. It is white. But when I bring a bitmap, edit and save

  • Yoga 11s webcam - is this normal after installing windows 8.1

    I upgraded to win 8.1 is this normal? I have tried reinstalling the driver, This laptop is less than 2 weeks old. Link to image Thanks Moderator note: images totalling more than 50k converted to links per forum rules:  Lenovo Community Participation

  • Insert statement with Date, time into Oracle

    Hi, I've got the following statement that I'm trying to insert into Oracle. Actually had to change up the format to dd-mm-yy to get it to insert the date correctly, not sure why, but I've got it "supposedly" formatted to also insert the hours, min.,

  • How to use BAPI_ASSET_RETIREMENT_POST(error)

    i am a abaper. when i use BAPI_ASSET_RETIREMENT_POST to retire An asset,there is an error message: 'Internal error: Line items were not created for the document'. the error message is the promble of the system configure?  please help me ! thanks . th

  • Bold letters in smartfroms

    Hello experts, I am developing smarform. Requrement: need letters in the bold. e.g. "Note: This is bold text". in this text i need to show "Note" in bold like Note. also i need to underline "Note" as Note. How do i achieve this?? the font size i am u