How to access the methods and properties of the main document class

How can I access methods and properties of the class of main document of other classes?
Can someone give me a clue what I'm doing wrong?

I use ActionScript3 in Flash CS3 with strict error checking on. I have an application with several custom classes:

1. the MainMovie class is associated with the document.

2. the SomeMovieClip class is associated with a movie clip symbol in the library and an instance of the symbol is placed on the main timeline.

Compilation Flash returns this error message: "1061: call to a method may not set [name of the method here] through a reference with static type flash.display:DisplayObject.".

I get the same error if I replace the undelined above with this code:

root.gotoAndStop ("aFrameLabel");


If I replace the same code simply with:

trace (root)

Flash returns [object MainMovie], which tells me that it recognizes the document class.

However, if I turn the strict error checking, the compilation ends and the movie works as expected in all cases.

root cast as a movieclip.

Tags: Adobe Animate

Similar Questions

  • How to access the main .mxml file component control?

    I have a .mxml main while in which I imported custom "popUpWindow" component using the statement "import components.popUpWindow". In main .mxml file, I show more later this component in the form of pop-up window using the Popup Manager class:

    var popUpWin:IFlexDisplayObject;
    popUpWin = PopUpManager.createPopUp (Thi, popUpWindow, true);

    Once the component is displayed, how can I access using the actionscript component TextInput control (specifically the .text property) my main .mxml file?

    Thank you

    bdeen I think you have it bad: P I think he wants to access a property in the main application window.

    Give the textInput id and then on your main application you can do this for example:

    var test: String = popUpWin.textInputName.text;

    Please note that it is recommended to do a casting for the popup window:
    popUpWin = popUpWindow (PopUpManager.createPopUp (Thi, popUpWindow, true));

  • How to access the locked documents

    I downloaded an eBook to my school and she unblocked on my PC. However, I noticed that it is always locked on my mobile, and there is no option of keyboard to enter my ID and password to unlock. I am not able to access these kinds of eBooks on my mobile?

    Hi stefanieg1909,

    The PDF document displayed in your screenshot above is a "protectedpdf" by Vitrium (not Adobe).

    Unfortunately, Adobe Reader mobile (iOS, Android and Windows Phone) applications don't support third-party PDF documents protected by DRM (rights to material management).

    Please use the version of desktop of Adobe Reader on a Windows or Mac computer to open the "protectedpdf".  Sorry for the inconvenience.

  • How to operate the main thread class when PopupScreen is pushed?

    Hi all

    I created shortcut menu custom in my Application. When you click the button, it shows correctly.

    But in my main screen I used webservice. The screen content is watch depends on webservice respons.

    My problem is that when I click on the popup button comes but threat to webservice conversation stops its execution because because of the pop-up screen my screen becomes not developed for execution. and when I remove my mainclass popup screen takes over its performance and result either appears correctly.

    Please, someone tell me how could it be that in the presence of pop-up screen that my thread to call Webservice will be run?

    The approach that I said is the exact stated, so my suspicion is that you have not implemented correctly.

    Here's a way to test.  Add this code in any code that you are is not executed on the event Thread:

    if ( Application.isEventDispatchThread() (
    
    Dialog.alert("Oppsss, this code should not be running on the Event Thread");
    
    }
    

    Of course if you see the dialog box, so that the code runs on the event Thread.

    If you do not, then validate your code, maybe we can find out what you did wrong.

  • How to access the BIOS on a Pavilion Elite e9237c with mouse and keyboard wireless?

    I have a desktop computer Pavilion Elite e9237 with a wireless keyboard and mouse. I tried to access the BIOS by pressing F10 at startup with no luck, and I can't access any of the other menus for the start-up eiither. I don't have a PS/2 port on my computer, so I can't get a wired keyboard and mouse. Does anyone know how to access the BIOS with this configuration?

    I bought a USB keyboard and he answered in the same way... No bios access. I then studied why it did not work and discovered that it was the way in which he has been connected to the computer. I had initially plugged into a USB hub when he was not working and I moved it directly into a USB port and it works! I plugged my keyboard wireless directly into the USB port and it works too! Thanks for your help... I wouldn't have thought of it if it wasn't for to recommend you the USB keyboard.

  • How to access the tab 'Save all' when I close several jpeg files that have been adjusted with the "color adjust tool? He is currently making me close and save one at a time. Thanks for any help :)

    How to access the tab 'Save all' when I close several jpeg files that have been adjusted with the "color adjust tool? He is currently making me close and save one at a time.  I've just upgraded to El Capitan.  Thanks for any help :)

    I assume that you use the application overview.

    I can't find an answer to back up everything, but a workaround could be while the file menu options are visible, press the option key

    and the point of the window will become close, if you click on that dialogue will ask you if you want to restore the changes or save

    pressing Save will close the image with the changes and then move to the next image and so on.

  • How to access the BIOS and disable hype-threading on xp

    How to access the BIOS and disable hype-threading on xp

    THX

    During the initial boot, you should see a brief message posted to press a specific key (usually the delete key) to access the BIOS. If there is an option to disable Hyper-Threading, you will need to find it.  You can also see if there is a guide for your motherboard and the BIOS options.

    Any reason, you need to disable?

    J W Stuart: http://www.pagestart.com

  • How to access the filters Gallery tab filter on Photoshop CC?  It is gray and unavailable on my screen.

    How to access the filters Gallery tab filter on Photoshop CC?  It is gray and unavailable on my screen.

    Hi Nikon_Guy,

    Could you please let me know the format of the file open in Photoshop?

    Also, what is the mode of the file?

    What version of Photoshop is installed on your computer?

    The operating system you are working on Windows or MAC?

    Kind regards

    Tanuj

  • How to access the software so that I just paid. I assigned to a user. The user connects and subscription is not found. The site seems to crash randomly and just sends me in circles. How can I get a refund is my next question.

    How to access the software so that I just paid. I assigned to a user. The user connects and subscription is not found. The site seems to crash randomly and just sends me in circles. How can I get a refund is my next question.

    [Profanity removed... MOD]

    Hello

    I just checked the details of your team, and the license that you have assigned intervenes as well on the same Adobe ID.

    Please see the below help documents:

    Applications creative Cloud back in test mode after an update until 2015 for CC

    Solutions to connection errors, activation and connection with creative Cloud applications and Creative Suite

    Kind regards

    Sheena

  • How to access the MDS of Hudson and Machine Unix resources?

    Hello
    How to access the MDS of Hudson and Machine Unix resources?

    I can do even Jdeveloper using the local filesystem n oramds Protocol and access resources.

    Please share the information for Hudson & Unix Machine?

    Kind regards
    En

    Need for resources MDS configure using adf - config.xml in the application. You can also change the configration of 'Oracle_SOA1\bin\ant-sca-package.xml '.

    Concerning

    En

  • I paid 9.99 for rent photoshop for a month.  How can I access it?  Adobe just bill you and give you any information on how to access the product. !

    I paid 9.99 for rent photoshop for a month.  How can I access it?  Adobe just bill you and give you any information on how to access the product. !

    Never mind. I thought about it.

  • How to access the BIOS on Satellite C50-A-1F

    Hey folk,

    A small question:

    How to access the BIOS of my laptop?

    I tried this method and f12, f1, f2 etc.

    Thanks in advance

    Have you ever tried to look for similar issues here in the forum?

    Check this one:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=76740

  • How to access the CLI Mode in cisco sf 302 - 08 p 8-port 10/100 Managed switch

    Hello

    Can someone help me on how to access the CLI mode in cisco sf 302 - 08 p 8-port 10/100 Managed switch. I treid the each method they mentioned in the administration guide. I am not able to enter the command debug mode and comand menu after resetting the default password. Once connected, sound directly to guide me to switch main menu.

    Hello FAL, Mark,.

    Thank you for your participation in the community of support to small businesses. My name is Nico Muselle of Cisco Sofia HWC.

    To access the CLI, you must make sure that the version of the firmware on your switch is at least 1.1.0.73 or preferably higher. Then activate telnet or ssh on the switch and opening of these sessions or a console session you will see that you are in CLI mode. You can return to the console to function menu using the menucommand.

    I hope that answers your questions!

    Best regards

    Best regards

    Nico glacier

    Senior Network Engineer - CCNA - CCNA security

  • How to access the BPM 11 g load useful or process varibles in the workflow of ADF

    I'm trying to view/edit the data in a user interface that is linked to a database by using a foreign key, requestId. The foreign key comes from a BPM process where it is spent in the workflow, a human task. The foreign key comes process variables or values of payload. I know that I can simply load the payload in BPM with the data in the tables, but I'm looking for a better solution use the ADF business components to view and edit data directly in the user interface.

    The BPM process uses a web service to start the process. Web services takes a primary key as a parameter to reference a column in the database table. The data is pre-filled with content and a primary key reference. The first activity is an activity of the user. I want the workflow behind the user activity to accept this primary key and use to locate the line in the database, so related views of the database delimited ADF business components can work to present the data in the user interface.

    I tried two approaches to the problem. The first uses the setCurrentRowWithKeyValue operation. The other changes the SQL where clause, used by the ADFbc iterator only returns one row for the given requestId. Both of these approaches fail to work because I don't know how to access the load BPM or variable data entering the workflow. Here is the piece of code that I used to try to define the row using the value of setCurrentRowWithKey:

    public String setRequestId() {}

    FacesContext context = FacesContext.getCurrentInstance ();
    Object requestObj = context.getApplication () .evaluateExpressionGet)
    context, "#{bindings."(, Number.class) RequestId.inputValue "};
    If (requestObj is nothing)
    Returns a null value.
    RequestId number;
    requestId = (number) requestObj;

    ITR DCIteratorBinding = (DCIteratorBinding)

    getBindings () .get ("PatfRequestHdrView1");

    itr.setCurrentRowWithKeyValue (requestId.toString ());

    Returns a null value.

    I didn't get very far with the second approach, change SQL where clause, because I do not know Groovy. I think I need something like:

    adf.object.viewObj.RequestId. but it is not a viewObject associated with BPM data, so I don't know that this particular expression will not work.

    Any help you can give me is greatly appreciated.

    Kind regards
    Mark

    Try this code in your method:

    FacesContext context = FacesContext.getCurrentInstance ();
    String ctx = (String) context.getApplication () .evaluateExpressionGet (context, "#{pageFlowScope.bpmWorklistContext}", String.class);
    String tskId = (String) context.getApplication () .evaluateExpressionGet (context, "#{pageFlowScope.bpmWorklistTaskId}", String.class);
    IWorkflowServiceClient workflowSvcClient = WorkflowService.getWorkflowServiceClient ();
    ITaskQueryService wfQueryService = workflowSvcClient.getTaskQueryService ();
    IWorkflowContext wfContext = wfQueryService.getWorkflowContext (ctx);
    Task myTask = wfQueryService.getTaskDetailsById (wfContext, tskId);
    XMLElement xmlPayload = (XMLElement) myTask.getPayloadAsElement ();
    get the payload as a string simple, useful for debugging
    java.io.StringWriter writer = new java.io.StringWriter ();
    xmlPayload.print (writer);
    String payloadAsString = writer.toString ();
    extract payload values: use methods in Oracle XDK

    See also this post:

    The task of reading by program details

  • How to access the info in my iCloud account

    How to access the info in my iCloud account?

    You can access much of the iCloud.com on a computer or through specific applications on your mobile device such as contacts, calendars, iCloud Drive, Photos. What exactly you were looking for and what type of device.

Maybe you are looking for

  • Controls does not not on Wired Powerbeats2 w / iPhone 7

    Hello I was testing my wired Powerbeats2 with my iPhone 7 (iOS 10.0.1) and noticed that controls online did not work (I used lightning Apple taken adapter headset). Did someone of another expierencing this problem? Kind regards JC

  • Satellite L50-B-1 q 0 - removal battery question

    Hi, I bought the product Satellite L50-B-1 q 0.With astonishment, I found that * the battery is not removable *.I always knew that when you use a portable computer, you must remove the battery;Then, I wanted to know if this product has a new technolo

  • Halo 2 do not start Windows 7 Ultimate

    Halo 2 does not work on Windows 7 Ultimate. The problem is Microsoft Live Gaming. It still works fine for Red Faction Guerrilla. I tried stuff on the Microsoft site, but nothing helped. Sorry for my English!

  • Venue 8 GPS Pro?

    I see that the meeting place 8 Pro has an accelerometer, but no GPS is mentioned.  Even small smart phones have GPS.  Did the material present in the device, but not used by Dell?  I suspect that the material is there, as with HDMI, where the capacit

  • Need help to install the network on laptop drivers

    I have a laptop of HP 2000-239WM and recently erased due to trying to sell. However, when I reinstalled everything back on the PC, no network drivers have been installed, so I have no access to the internet, wireless and wired. Should what programs I