Symbols in the library and debugging error

I use

Flash CS4 with Win7 and if I create a movieclip symbol in a FLA file that class name as GreenBox. When I put the following line in my actionscipt 3.0 code, I get the error: "you cannot debug this swf, because it does contain any actionscript."  The line of code is:

var greenBox:GreenBox = new GreenBox();

Any ideas what is happening.  Never had these problems with CS3 and Win XP.

I did check to see if I had the Flash player debug version.

Create a new directory that has no subdirectory.  Save your fla in this directory and give it a new name (save as...).  Save your document class in the same directory.  Repeat the test.

If you still have the same error, copy and paste it into google and see if something works for you.

Tags: Adobe Animate

Similar Questions

  • Error 5000: The class 'Particle' must subclass 'flash.display.MovieClip' because it is linked to a symbol in the library of this type.

    Running Flash CS3, I looked at the tutorial from lynda.com on strengthening the systems of particles in ActionScript 3.0 to create a few sparks shooting in an animation.  I'm stuck to what I think is a point really basic, but I can't seem to cross it.  Basically, all I'm doing at this point is to create a class called particle (that I'll learn to do things that the particles to make a little later) bind it to a MovieClip on the stage in my .fla file and use the function to update the particle to move it around the stage in a way defined in the instance (so I can later give properties of different movement to) each as an instance generated the MC).  I know there are easier ways to accomplish my basic task without loading an external module, but this seems to makes it so I have to hurt something very simple, that I can't see so I thought I'd post the code here and see what I'm missing.

    I start with a file called Particle.as in the same folder as my file Test.fla Spark.

    In Particle.as, I have the following code:

    package
    {
    import flash.display. *;

    Particles/public class extends MovieClip
    {
    public xVelocity:Number;
    public yVelocity:Number;

    public void Particle()
    {
    xVelocity = 0;
    yVelocity = 0;
    }

    public void update (): void
    {
    This.x += xVelocity;
    This.y += yVelocity.

    }
    }
    }

    So, I declare that all the particles are built with no movement, but if they are explicitly granted an x or y velocity, they will pass by there a lot when updating the instance function is called in the timeline panel.

    Then in my file Test.fla spark, I have a small shape in a MovieClip called Spark.  In the properties of binding of spark, I chose to export for ActionScript and export in first frame.  The class is called Spark and the Base class is the particle.  For testing purposes, I dropped an instance on the stage and called spark.  Then in the layer actions in the first image (the timeline is just the spark layer and the layer actions, a long frame each with no "stop();" so it should run forever), I have included the following code:

    spark.xVelocity = 5;
    spark.yVelocity = - 1;

    function updateSpark(event:Event):void
    {
    Spark.Update ();
    }

    addEventListener (Event.ENTER_FRAME, updateSpark);

    Is what it seems that this should be on every Flash ENTER_FRAME should call updateSpark, which is a function that handles the event update() for the instance of the spark which is a movieclip instance that has an update event that moves x and y of the position of their relative velocity variables.  It seems simple enough to me, but when I ctrl-enter to test the movie, I get the following compiler 3 errors:

    Particle.As line 1: 5000: the class 'Particle' must subclass 'flash.display.MovieClip' because it is linked to a symbol in the library of this type.

    Particle.As line 7:1071: syntax error: expected a keyword (for example function definition) after the public attribute, not xVelocity.

    Particle.As line 7:1084: Syntax error: expecting rightbrace before the semicolon.

    Since I imported flash.display. * and declares the class public particle so it extends MovieClip I have no idea why I get this error of 5000.  I see this issue come up a lot when searching Google and forums, but none of the resolutions that I could find have suggested an approach that applies to me or solve the problem.

    Any help to fix this would be appreciated.  I enclose a zip of the FLA a files as described above in case there is something in the settings of publication that I messed up inadvertently.  In addition, if you can get this to compile without error, then the problem may be due to my Flash CS3 Pro install which will result in the problem isn't with my code and start looking at me in a different direction.

    Thank you

    Scott

    Yes, 'var '.

  • using Javascript and ScriptUI to create a form that brings in a symbol in the library

    Hi all

    I tried to gather the right info to use javascript to create a shape to bring in particularsymbols of the symbol library based on the variables of the form. I took pieces of various examples of scripts and tried to make this work, but my problem is when I try to use conditional statements.

    This is a limited version of what I want to do, but just to get the message.

    1. I want to select a script that has various dropdowns. I want the first dropdown to give me 3 options: 10, 13, 18

    2. I would also like another drop-down list that gives me three options: needle single, double needle and knife-blade.

    3. I wish that it have an "ok" button and the button "Cancel".

    4. from there when I click the ok button, a symbol is presented library according to what parameters have been given to the form.

    ex. If I selected 10 the first descent to the bottom and double needle in the second, I would like to "SYMBOL" be pulled from the library and centered on the artboard.

    ex. If I have selected 13 the first descent to the bottom and double needle in the second, I would like to 'SYMBOL B' to be pulled from the library and centered on the artboard.

    I got the user interface is displayed and it works as expected, as well as to bring it into a symbol, my problem comes when I try to integrate functions and conditional statements.

    Here is my script. Please let me know what I am doing wrong.

    myDoc var = app.activeDocument;
    var palette is new window ('dialog', 'Create a shell');.
    Pallette.Add ('statictext', undefined, ' fill opening in inches: ");
    Pallette.orientation = "row";
    var myDropdown is Pallette.add ('dropdownlist', undefined, ['10', '13', '18']);.
    myDropdown.selection = 1;
    var myButtonGroup is Pallette.add ('group');.
    myButtonGroup.orientation = "column";
    var btnCreate = myButtonGroup.add ('button', undefined, 'OK');
    MyFillSelection = myDropdown.selection
    btnCreate.onClick = function () {}
    If (MyFillSelection = '13') {}
    symbolRef = A myDoc.symbols ["SYMBOL"];
    symbolItemRef1 = myDoc.symbolItems.add (symbolRef);

    Redraw();
    }

    }
    btnCancel var = myButtonGroup.add ('button', undefined, 'Cancel');

    Pallette.Show ();

    If anyone has any input, it would be much appreciated.

    Thank you

    MyFillSelection = myDropdown.selection is outside the service, so it will always read '13', anything to change value.

    Place this line in your service and add the text property... MyFillSelection = myDropdown.selection.text;

    then do your if comparisons, that will do.

  • An internal tool or the library returned an error.

    I had a very slight modification of a source today and update the source file.  When I tried to build the distribution, however, failed to build with the following messages: "Error Part developer configuration options", then "an internal tool or the library returned an error."  No other information was provided as to the source of possible error.  It is a project that has been maintained for several years.  I tried to build in 2015 of the BCI and in 2013 with the same results.  I was able to build another project without error.

    I've attached a screenshot of the error window.  I was able to build the distribution after you have created a new file .cds.  The other file must be corrupted in some unknown way.

  • Flash Pro CS5.5 crashes when duplication of symbol in the library

    Whenever I duplicate a symbol in the library, flash CS5.5 fails and must be restarted.

    Any clue?

    Hi all

    In the case where you have still questions freezing/accidents along the steps mentioned in this forum, please make sure you keep all your elements of policies at the root of the library itself instead of placing them in the records - as a work around.

    These accidents as well as redundant duplication of elements of the library police have been fixed in Flash CC.

    Thank you

    Mabrouk

  • Bought two of the iTouch, one for my wife and one for me. In the Notes his has the "" symbol for the formatting and mine does not work. Any suggestions?

    I bought the iTouch two at a time, one for my wife and one for me. In the application 'Notes' my wife shows the symbol "+" to the formatting and mine does not work. Any suggestion.

    Could you please include screenshots of the so-called issue?

  • At the opening of the library of photos, each photo turn the black thumbnail and so that to open it.  Preview also does not have photos properly.  I tried to repair the library and this did not help.  Help, please!

    At the opening of the library of photos, each photo turn the black thumbnail and so that to open it.  Preview also does not have photos properly.  I tried to repair the library and this did not help.  Could this be a problem with the RAM? Help, please!

    Check, if pictures can access the original files of your pictures, or if the originals are missing.

    You can test to try to edit a photo or trying to export it with "file > export > export original file..."

    Photos can be edited or exported?

    Shooting Raw or JPEG?  Where your photo library is stored? On an external disk or in your pictures folder?

  • I used to have demand for the library and messenger live but its all parties.

    I used to have demand for the library and messenger live but its all parties.

    I tried to reinstall them like the way that several times, but they said that I already have when I don't have them. What should I do?

    Hello

    1. did you of recent changes on the computer?

    2 are you referring to Windows live essentials?

    I suggest that you uninstall the programs on the computer and try to reinstall the latest version, check if it works.

    How to remove and reinstall Windows Live Services

    http://support.Microsoft.com/kb/938275

    If the previous step fails, then you can post your request in the forums of Windows live.

    http://windowslivehelp.com/

  • When I look at my pictures on library it loads and it is super grainy, as my iso was too high, but when I look on developing it seems. What is happening and how I keep good fixed when I get back to the library and export?

    When I look at my pictures on library it loads and it is super grainy, as my iso was too high, but when I look on developing it seems. What is happening and how I keep good fixed when I get back to the library and export?

    Please see: photos look grainy on library but not on developing

    soft blurry images / when you view in the library but strong in develop mode? Lightroom forums

    Kind regards

    Mohit

  • Hi, why my color is not the same between the library and the development.

    Hi, why my color is not the same between the library and the development. The color is yellow in the library... I'm not problem before windows 10...

    thx for your answer...

    The upgrade of Windows 10 has probably replaced you previous monitor with an incompatible profile mode. Calibrate your monitor or assign the previous monitor profile to your screen

    http://Windows.Microsoft.com/en-us/Windows7/change-color-management-settings

  • a symbol in the Middle AND back of the stage

    Hello

    Maybe it's a simple question, I hope...

    I need to place a symbol in the Middle AND the bottom of a sensitive site (stage height/width = 100%). the size of the symbol is fixed and does NOT change when resizing the browser window.

    for a better understanding, I created this fantastic visual:

    example.jpg

    Thanks for your help!

    OK, I found how to do, it's pretty simple... so anyone who needs a sticky footer may need this...

    project files:

    https://www.dropbox.com/s/f53kpr808ofmsr6/footer.zip

    best wishes to you all

  • Add a configuration to the library and templates - IP address keeping

    Good morning community which is more useful...

    I have a few virtual machines in the workspace that I need to add to the library and then create templates while keeping the IP address. The people of my app team made install them and will have to spend a lot of time to reconfigure their applications if the IP address must be changed. These virtual machines are enclosed and in a closed network so no problems with conflicts of IP. End users (below people app) then connect via LM as opposed to RDP.

    Thanks in advance for taking a reading.

    Jessie

    You seem to have described exactly what did the library.  You also say you want to have certain VM from the templates become configuration that would have a static IP address, once brought in a workspace configuration?

  • changing format of image in the library and develop mode

    Hi why y at - it a change in format of image in the library and to develop the fashion? This only happens for this photo...

    view of the library:

    http://i.imgur.com/evKXrBZ.png

    expand the view -

    http://i.imgur.com/jrnyECx.jpg

    How to perform a reset to return to the original proportions, so that I can better see and work on it.

    AFA,

    Change the size of the preview to 1:1 to the top left screen adjustment, and it should be good.

    Florian

  • I boat see my books in the library and can not solve the permission to control error messages

    I started with problems with the authorization of control error message and using the forum I tried all suggested fixes on this.  They all worked while I was using ADE in this session, but once I stopped and restarted the program that he failed to return and I would get the message of error control permission again once.

    I tried to uninstall and reinstall ADE a couple of times and therefore I do not now see shelf options that are normally erect (all, borrowed, etc.) as well as not being able to see the books.  When I tried to open a book via the file menu, I get a message saying that it is already on my bookshelf, and it cannot be opened.

    How can I get my rear shelf and how permanently solve the authorization of control error message.

    It is ADE 4.5 on a Windows PC 7.0

    Closed the digital edition.

    Go to My Digital Editoin folder in your Documents.

    Rename the folder in my Digital Edition.old

    Then start your Digital Edition.

    Download an eBook. Now its should work.

  • Pictures size 0 KB of the library and the drive doesn't seem to work just

    Hello friends,

    I have a huge problem, I can not solve it somehow.

    My library and my library of music are in an external drive to free up space on my computer.

    For some reason, the computer does not recognize the drive as in past times

    Capacity libraries individually 0 KB it's totally surreal and I can't even do a fixed reader

    Even more strange is that, in my opinion, does it say that the contents of the disc is 2 terabytes and having 100 gigabytes used.

    But next to each folder in the drive listed 0 KB

    Friends I can do?

    I turn on my computer, I get the following message is displayed:

    So to make it work I disconnect and reconnect the drive again

    Then, when I went into the drive I see this:

    When I try to disconnect the drive, I see:

    But when I check the disc info I see this:

    What can I do? I'm lost

    Control (right) - click Photo library hard disk external package and select Show content in the context menu:

    Go to the folder of masters and check inside to see if the original files are present in the subfolders.

    What do you see?

Maybe you are looking for

  • Let Apple Watch unlock Option in SystemPreferences

    I have an OS3 2014 MacBook Air, OS of the Sierra, watch, two-step authentication, same iCloud account, connected to the same network wifi, bluetooth on, password and password on all devices, watch and phone are secure devices, etc. etc. The Option un

  • Satellite L650 - 1KR PSK1JE - dead after BIOS update

    As the topic already says, my Satellite L650 - 1 m Ref. PSK1JE is completely OFF after upgrading BIOS 2.40 - bios-download-page VICTORY. I tried everything: press all the buttons, remove the laptop battery, laptop battery only,... .simply anything! M

  • Equium M40x - wireless not connect not

    I recently changed ISPS to Orange for Virgin [cable] I used the Orange Livebox provided with my laptop and there is no connection problem. Virgin provided me with a Netgear WGR614 wireless router. Now my Equim will not connect to it. Can anyone offer

  • Some sites (random) Web would not load

    Hello I had a weird problem with my MacBook Pro: some Web sites load perfectly fast, others not at all or would take 1-2 minutes to solve. The split between those that charge and those who are not seems random. Examples: Load Facebook.com, google.com

  • Get the IP addresses of the devices connected to the WiFi network

    Hello guys,. I've been looking around and trying to understand this point, but I don't have a solution. The problem is to get the local IP addresses of all devices connected to the WiFi point of access/router connected to my BlackBerry. Similar to th