Appropriate method not defined in the custom package even with import error

I edited the title of this thread can be a bit more descriptive on the help that I need.

Background: I have a Flash multi-fichiers allowing application users to browse multiple pages (similar to a Web site). Yesterday, I realized that each mouse click, I am loading a page in memory, but without unloading it. After having sailed in several pages, my memory is really starting to take a hit. So, I want to define a custom package that loads each page and discharge the previous page.

I got in what concerns the definition of the pageLoad function, but I get an error which is not supposed me (unless I any bad flash packages).

When I test the Flash, I always get the following error message:

dtutils. As - 1180: call to a method may be undefined addChild. -addChild (pageLoader);

Everything I found indicates that to import the addChild method, I need to import flash.display.Sprite, which I am, but I'm still getting the error.

You'll have to forgive me because I'm not very familiar with the objects or actionscript. I am more than a hacker, but I grasp things quickly and can rely on what I have already learned. May be obvious to others, but I can't find anything that says I have do something wrong with my code, so any help you can give is greatly appreciated!

My package code:

package com.clientname.demo
{
import flash.display.Sprite;
import flash.display.Loader;
import flash.events.MouseEvent;
import flash.net.URLRequest;


public class dtutils
{
Properties
public var pageLoader:Loader = new Loader();
public var pagePath:URLRequest;

Constructor
public void loadPage(url:String)
{
pagePath = new URLRequest (url);
pageLoader.load (pagePath);

addChild (pageLoader);
}
}
}


I also tried to replace the four import in my package containing the following lines of 3 import, but I still get the same error message:

import flash.display. *;

import flash.events. *;

flash.net import. *;

The code I use to import my package and call the function in my flash file is:

import com.clientname.demo.dtutils;

.

.

.

dtutils.loadPage("..) ("/ filepath/filename.swf");

I appreciate any help anyone can give me.

Hello

addChild is a DisplayObject method so your class should extend a subclass of DisplayObject (such as shape, Sprite, MovieClip) to be able to call addChild.

your code requires just a small adjustment:

SerializableAttribute public class dtutils extends Sprite

Tags: Adobe Animate

Similar Questions

  • enableThemes method not found in the oracle.lbs.mapclient.MapViewer class

    Hello
    I would ask about the error I recently.
    I don't know what's wrong with my code, but I '_enableThemes_ method not found in the class oracle.lbs.mapclient.MapViewer' when I tried to apply a theme to my card using the API of Java Bean.

    Another method does not recognize mapviewer is '_setAllThemesEnabled_ '.

    I don't know how to apply some themes I did for my card despite the use of the method.
    I have already imported oracle.lbs.mapclient.MapViewer.

    -----
    Here are my codes:

    < % @ page import = "java.util.Enumeration" % > "
    < % @ page import = "java.awt.geom.Point2D" % > "
    < % @ page import = "java.awt.Dimension" % > "
    < % @ page import = "oracle.lbs.mapclient.MapViewer" % > "
    < % @ page import = "oracle.lbs.mapclient.ScaleBarDef" % > "

    String mvURL = request.getParameter ("mvurl");
    mvURL = "http://localhost: 8888/mapviewer/omserver";

    MapViewer mv = session.getAttribute("gvis_mvhandle") (MapViewer);

    Boolean newSession = false;

    if(MV==null)
    {
    create a new ID customer mapviewer
    MV = new MapViewer (mvURL);
    mv.setImageFormat (MapViewer.FORMAT_PNG_URL);
    mv.setMapTitle("");
    session.setAttribute ("gvis_mvhandle", mv); keep the handle of the client in the session
    newSession = true;
    }

    mv.setDataSourceName ("mvdemo");

    String = "#000000" stroke1, fill1 = null, tr1 = null, labelc1 = null, asis1;

    int opacity1 = 128;

    String style1 = "gvis_" + ("NONE".equals (stroke1)? ". (': stroke1) + "_" +.
    ("NONE".equals (fill1)?" (': fill1) +.
    ((opacity1>0)?) » 128" : « ») ;

    String query1_ = "select * from counties;

    mv.addJDBCTheme ("peta", "theme1", query1_, null, null,
    Style1, labelc1, '_gvis_style_text_', true);

    mv.enableThemes ("THEMENAME");

    try {}
    mv.setFullExtent ();
    MV. Run();
    } catch (Exception e) {out.println (e.getMessage ()) ;}}

    String url = mv.getGeneratedMapImageURL ();

    -----


    I really appreciate your help...

    Hello
    Make sure that you type the correct setting. EnableThemes method requires an array of strings. Try the following:

    mv.enableThemes (new String() {"THEMENAME"});

  • Error 0 x 80070522: A required privilege is not held by the customer

    When I try to save, copy paste, delete any document to my C:\ drive I get this error.
    Error 0 x 80070522: A required privilege is not held by the customer

    Here, http://www.sevenforums.com/hardware-devices/265615-creating-new-file-c-drive-gives-error-0x80070522.html

  • Upgrade ACS 4.1 and 4.2 authentic session expired: challenge not supplied by the customer

    Hello

    I upgraded Cisco ACS 4.1 to 4.2, I device Cisco Access Control 1113, as soon as I upgraded I get error in newspapers failed

    "Authentic session expired: challenge not supplied by the customer ', what is wring with that? Plesae help me

    Thank you

    I would really appriciate if mark you this topic as resolved so that the other can take advantage out of it.

    Kind regards
    Jousset

  • WINDOWS 8 - error 0 x 80070522: A required privilege is not held by the customer

    When I try to copy a file to a flash drive for my C:\ drive I get this error.
    Error 0 x 80070522: A required privilege is not held by the customer

    How can I solve this problem?

    Hi guys

    You must completely disable UAC. This is done in the registry.
    Click Start > run > regedit. Make a backup of the registry first to be safe.
    Navigate to the path below and change the DWORD 0
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System, EnableLUA and value0

    It worked for me

  • Packer of creative cloud in creating a package that I can install do not.  He goes through the motions, download all updates, create setup file, but it does not work despite the fact that there are no errors in the log files

    Packer of creative cloud in creating a package that I can install do not.  He goes through the motions, download all updates, create setup file, but it does not work despite the fact that there are no errors in the log files

    After hitting my head against the desk to repeatedly create packages, try on different computers I have finally found a solution.

    These packages have been copied on an external drive, if I try and install from the external drive, which is a common practice, it fails.

    If I then copy this file pkg from the outside, to the computer I install, then run it, it will to and moved very well.

    That is mind-boggling stupid, because it's rare that you have to copy the file into any computer, it is less always installed off the coast of externally, and many people in the company are pushing on the network and the management of the suites so there is a serious problem in Adobe package manager if this is the case where it cannot manage the Middle installed offshore.

    I hope that if anyone else is having problems so it suits.

  • vCO WebView error - parameter value is not defined in the list of the Webview attribute

    Hello

    I tried to create a simple web view for Orchestrator (5.5.1 1617127), who will present a link to launch a single workflow. I followed the instructions in the Guide of VMware and the VCO Team Blog, but both find themselves with similar errors, which seem to have a common root: it seems that the display of web pages can not read the attributes.

    On the web page, I'll see something similar to the following:

    WebView - an exception has occurred.

    Reason: WorkflowLink component error: value of the parameter "attribute" (alias "workflow") ("createVM") is not defined in the list of the Webview attribute

    You may continue by restarting the session.

    In the server.log, I see the following: -.

    11:46:04.717 2014-10-02 + 0100 [http-bio-xxx.xxx.xxx.xxx-8281-exec-2] {} [WebviewExceptionPage] Exception Webview INFO - message:

    org.apache.hivemind.ApplicationRuntimeException: component error WorkflowLink: "attribute" parameter value (alias "workflow") ("createVM") is not defined in the list of the Webview attribute

    The createVM attribute is set in the correct web view as an attribute with a Type of Workflow and value to create simple virtual machine. I get a similar error any attribute type I try to get out of the workflow (the example of getVirtualMachineList does not create an error on the page, but is not fill the window and creates a similar message appears in the log).

    Can someone give me directions on what to watch next? I can't find anyone else with this error, which makes me think it might be something specific to this medium, but I can't work on what it could be.

    Thanks in advance,

    Ben

    I had the time this by restarting the service after each new attribute has been added, which was far from perfect, but looking around the forums, I have seen that WebViews were being obsolete, so I'll have to look at alternatives in any case.

  • Not able to deploy Applications: "the process is not defined in the descriptor.

    All the

    I have a pretty serious problem here to try to take a LCA of an environment and get in another environment.  Source and destination environments are LCES 2.5 (LCES 2 with Service Pack 2).  I have about 6 applications and there are a few extreme dependencies (one application that refers to an asset from another application) are.  I took a STROKE of all these applications in the environment of the source and ACL matter perfectly in the destination environment, but I am unable to deploy one of the applications that have extreme dependencies.  The error that I always get when I try to deploy any application that has an extreme addiction is:

    [Process name] otherwise is not defined in the descriptor.

    I tried all of the following conditions:

    (1) combined 1 LCA applications

    (2) taking several local calling areas where each ACL contains only a single request

    (3) taking several local calling areas where each LCA includes an application as well as all the extreme dependencies for this application

    No matter what I try, they deploy.  I can import the LCA and I can get the apps in the Workbench and play with them, but they do not deploy everything simply.  I also tried to manually set all the groping in the processes themselves, but that does not work either.

    Any help would be appreciated.

    I wanted to just follow the solution to my problem.

    It seems centres issue around distant circular dependencies.  In general, it seems that LiveCycle choke when two applications of each reference to another.  Note that I'm not talkinng on the true circular referencing here in which a process in the references of the application has an application B while this process refers to the initial process request.  Indeed, although I have not tested recently, I believe that LiveCycle can actually catch this kind of question.  I'm talking about circular dependencies of distant is simply when a process requests was (let's call it a1) refers to a process in application B (let's call b1) while a process in application B (call the b2) refers to a process in applicatoin has (let's call a2).  Apparently, this type of circular reference causes the deployment of applications of such choke.

    The fix was painful because I had to manually delete all distant dependencies of these two application, deploy these two requests to get in the long term and then implement these dependencies again.

    Now it seems preferable to never have 1 direction of the dependencies for any application.

  • Perl not defined to the Oracle Applications environment. (Libraries T2K not in INC.

    Hello

    Am getting the following error when applying patches autoconfig.

    $FND_TOP/patch/115/bin/txkprepatchcheck.pl
    Perl not defined to the Oracle Applications environment. (Libraries not in the INCLUSION list T2K)
    Make sure that automatic configuration was performed and found a source correctly your environment.
    /U01/tech/appl/FND/11.5.0/patch/115/bin/txkprepatchcheck.pl line 131.
    BEGIN failed--compilation missed the line 141 /u01/tech/appl/fnd/11.5.0/patch/115/bin/txkprepatchcheck.pl

    Fine.

    (1) source the environment file
    (2) make sure that 'APPLRGF' variable is set in the environment. If this isn't the case, set it to the same value as "APPLTMP".
    (3) in the place where this patch was unzipped, patch_top/patchnumber/fnd/patch/115/bin.

    Run the utility as follows:

    Platform command line

    UNIX or Linux (must be a single line)
    ./txkprepatchcheck.pl-script = ValidateRollup-outfile = $APPLTMP/txkValidateRollup.html - appspass =

    do not FND_TOP/patch/115/bin

  • DSN of ELEMENT not defined in the APPLICATION scope

    DSN of ELEMENT not defined in the APPLICATION scope


    Hi, I'm new to see my problem is as follows:

    I have 2 files:

    application.cfm that is inside
    d:\inetpub\wwwroot\mysite\

    and

    hand. CFC
    (d:\inetpub\wwwroot\mysite\cfc)

    inside of application.cfm I set an application variable:
    < cfset Application.DSN = "mydb" >
    (and connections mydb works if they are tested in coldfusion administrator)

    inside the main.cfc, I use the application variable:

    < cffunction = 'getLogin' access returntype = name "remotely" = "struct" output = "true" >
    < name cfargument = "nickname" type = "string" required = "true" >
    < name cfargument = "password" type = "string" required = "true" >
    < cfset returnedValue = structNew () >
    < name cfquery = "q_getLogin" datasource = "#application. DSN #">"
    SELECT id, nickname
    to allieve
    etc...

    ..
    < cfreturn returnedValue >
    < / cffunction >

    I call the SWC from flash, and I get the DSN of ELEMENT error undefined in APPLICATION scope.
    Someone has an idea of what could be bad?
    Thanks in advance,
    Mitja

    Not sure now why doesn't he call application.cfm, but my solution to CF6 time should include the application.cfm within my CFC... you can add a cfinclude within the item, on the very top, not inside any function... every time that Flash calls the CFC this code will be executed before the function call.
    If this component is also used by CF, then you can wrap which include in a conditional... You can check application.applicationName...
    HTH

  • Element is not defined in the SESSION

    Anyone has an idea why a user of the site would get a message error "some element is not defined in the SESSION" and no one else? Whenever the user presses a page that calls a session variable from a previous page that has defined the variable, they get an error message of session. They get the same results with different browsers, IE and Firefox. ???

    The problem is solved itself. I don't know how. I scoured the user through a few test pages (which does not require a login) who comes to set a variable in session to text, and then on the next page shows the session variable. It has worked well. I thought: "maybe it has to do with the session during a connection.
    Then I put the test pages in a folder that requires a login and test pages worked. Then I had the user to access pages throwing error "undefined in session", after logging, and the error disappeared. I don't know what happened.

  • RADIOV element is not defined in the FORM

    Hello
    I have this.
    I want to insert values such as blue, yellow or red
    in the field of database col_Radio.

    what I have to change to make it work?

    Thank you

    ERROR:

    RADIOV element is not defined in the FORM

    Exceptions

    15:53:22.022 - term Exception - in C:\CFusionMX7\wwwroot\ACT_inputcolor.cfm: line 10
    RADIOV element is not defined in the FORM.

    Note: line 10 is "#Trim (Form.RADIOV), #

    --------------------------------------------------------

    What I need to change to the radiov element to define or is this the only mistake?

    In other words, the FORM variable name must be identical to yourname of the field.

    When you submit your form, this

    Becomes
    #FORM.group1 #.

  • PC migration - converter could not connect to the remote computer. A general error occurred: unknown internal error

    Hello

    I am brand new to fusion m v so forgive me if I miss useful information of the first post time around.

    I try to use migrate your PC, feature of VM Fusion 8 but I see the error in the title of the topic when I try to start the import operation.

    I have disabled the firewall on the PC and MAC

    I tried over ethernet and direct connections

    When I run the migration of PC Windows tool, he complains that UAC is enabled even if it is not (confirmed via Control Panel and evolution via the command prompt)

    When you try to migrate, it accepts the PIN and then shows a warning on this certificate, that I choose to browse

    He will then ask admin username/pass on the PC (I tried my only regular and also tried setting a new admin user and try this)

    After that, I see the error: the migration of PC - Converter could not connect to the remote computer. A general error occurred: unknown internal error

    Should I keep trying to get this working, or that it will be more easy to find a way less direct to turn the PC to a virtual machine on the Mac?

    I found the logs on mac and have posted what I think is the appropriate one below, but not really sure:

    LOGS *.

    2016 04-21 T 11: 12:50.090Z | usbArb | I125: Log for USB VMware pid = 3550 Arbitration Service version 12.1.0 = Build = build-3272237 option = output

    2016 04-21 T 11: 12:50.090Z | usbArb | I125: The process is 64-bit.

    2016 04-21 T 11: 12:50.090Z | usbArb | I125: Host codepage = UTF-8 encoding = UTF-8

    2016 04-21 T 11: 12:50.090Z | usbArb | I125: Host is Mac OS X 10.10.5 (14F1713), Darwin 14.5.0

    2016 04-21 T 11: 12:50.088Z | usbArb | I125: VTHREAD initialize main thread 3 'usbArb' tid 119357

    2016 04-21 T 11: 12:50.088Z | usbArb | I125: DictionaryLoad: could not open the file "/ Library/Preferences/VMware Fusion/config ': no such file or directory.

    2016 04-21 T 11: 12:50.088Z | usbArb | I125: Preference of option of PREF file found in/Library/Preferences/VMware Fusion / config. Using the default values.

    2016 04-21 T 11: 12:50.088Z | usbArb | I125: DictionaryLoad: cannot open the file ' / dev/null/Non-existing DEFAULT_LIBDIRECTORY / settings ": not a directory.

    2016 04-21 T 11: 12:50.088Z | usbArb | I125: Preference of option of PREF file not found at/dev/null / Non-existing DEFAULT_LIBDIRECTORY/settings. Using the default values.

    2016 04-21 T 11: 12:50.088Z | usbArb | I125: DictionaryLoad: cannot open the file ' / dev/null/Non-existing DEFAULT_LIBDIRECTORY / config ': not a directory.

    2016 04-21 T 11: 12:50.088Z | usbArb | I125: Preferences optional PREF file not found in/dev/null/Non-existing DEFAULT_LIBDIRECTORY / config. Using the default values.

    2016 04-21 T 11: 12:50.089Z | usbArb | I125: DictionaryLoad: could not open the file "/ var/root/Library/Preferences/VMware Fusion / config ': no such file or directory.

    2016 04-21 T 11: 12:50.089Z | usbArb | I125: Preferences optional PREF file not found in/var/root/Library/Preferences/VMware Fusion / config. Using the default values.

    2016 04-21 T 11: 12:50.089Z | usbArb | I125: Deactivation of the preferences of the user PREF because disableUserPreferences is set.

    2016 04-21 T 11: 12:50.089Z | usbArb | I125: PREF cannot load the user's preferences.

    2016 04-21 T 11: 12:50.090Z | usbArb | I125: DICT - PARAMETERS GLOBAL/dev/null / Non-existing DEFAULT_LIBDIRECTORY/settings

    2016 04-21 T 11: 12:50.090Z | usbArb | I125: DICT - NON PERSISTENT

    2016 04-21 T 11: 12:50.090Z | usbArb | I125: DICT - USER PREFERENCES

    2016 04-21 T 11: 12:50.090Z | usbArb | I125: DICT - default USER IS/var/root / Library/Preferences/VMware Fusion/config

    2016 04-21 T 11: 12:50.090Z | usbArb | I125: DICT - HOST by default IS/Library/Preferences/VMware Fusion/config

    2016 04-21 T 11: 12:50.090Z | usbArb | I125: DICT - SITE by default IS/dev/null/Non-existing DEFAULT_LIBDIRECTORY/config

    2016 04-21 T 11: 12:50.091Z | usbArb | I125: USBArbRuleStore: loading rules of "/ Library/Application Support/VMware/usbarb.rules".

    2016 04-21 T 11: 12:50.091Z | usbArb | I125: VMware USB Arbitration Service Version 15.1.7

    2016 04-21 T 11: 12:50.091Z | machPoll | I125: VTHREAD beginning thread 4 'machPoll' tid 119359

    2016 04-21 T 11: 12:50.366Z | usbArb | I125: USBArb: trying to connect to an arbitrator on/var/run/vmware/usbarbitrator-socket.

    2016 04-21 T 11: 12:50.366Z | usbArb | I125: SOCKET create new socket, connect to/var/run/vmware/usbarbitrator-socket

    2016 04-21 T 11: 12:50.366Z | usbArb | I125: SOCKET connection failed, error 2: no such file or directory

    2016 04-21 T 11: 12:50.366Z | usbArb | I125: USBArb: unable to connect to the existing arbitrator.

    2016 04-21 T 11: 12:50.398Z | usbArb | I125: USBArb: UsbArbPipeConnected: connected to the customer, outlet: 4

    2016 04-21 T 11: 12:50.399Z | usbArb | I125: USBArb: 3450 Client connected (version: 7)

    Well well just in case someone found this one in the future, the question turns out to be that my PC has been joined to a domain, but I was connected to a local account. I solved the problem by leaving the field. There may be other ways to work around this problem.

  • IPhone 5 Bluetooth icon sometimes does not appear on the status bar even though she was on

    Hello

    My iPhone 5 is a little weird lately after installing a new copy of ios 9.2.1 and I set up like new. Bluetooth icon sometimes does not appear on the status bar even if she was turned on.

    Here is my screenshot

    The application of settings

    Thanks in advance.

    I think it's one of those things. 1 you are not connected to anything with blue tooth here for you aren't really "use it" 2. Its a software problem and maybe if you take it to the apple store that they would turn you off and back on to reset it or you say to wait for the next update, if you want to save gas or if you ride or walk save energy if you the person who has a power car electric you can write a quick review with the Apple and say hey guys do a new update , I really need a heres my problem.

  • A33 satellite will not start on the hard drive even after the installation of the new system

    Hello, I need help, my A33 does not start on a hard drive. It is to see the drive hard in the bios and even by operating the drive when you go to install. But as soon as it will boot to the hard drive, it is just a black screen. It is very strange that you can see the hard drive in the bios and even with a diagnostics disk. I can see, scan it and check it by starting with a diagnostic disk, but when I start the computer, it doesn't do anything.

    Help please!

    Stand by. Your ad is so confused. When you read can you understand what you wrote?

    BIOS recognizes the HARD drive correctly, no?
    When you use bootable disk for the installation of the OS is properly recognized HDD?
    You can install OS using the original recovery disc or by using the Microsoft installation disc?

Maybe you are looking for

  • Local disk space lost when downloading to iPhoto iCloud.

    Need some clarification.  The use of iPhoto (v.9.6.1). Already have photos in iPhoto, but when I create albums and upload in iCloud, my local disk space disappears.  I do not understand why I would lose local disk space by UPLOADING images that are a

  • iPod Touch questions since 9.3.2

    Since the last update, my iPod Touch, 5th generation, has not acted the way it probably should be. Although there is nothing really wrong with my iPod, the main problem I have experienced is when I try to put my music on shuffle, or play any album, a

  • 3rd party Internet Security disables the CD on Satellite A30 player

    Sorry to post a help on the 3rd Internet security software on a toshiba forum but ive been told its doing with my toshiba cd player. Well, without installing (which i repeatdly told Norton) it works fine but with it installed autorun dosnt work and i

  • Satellite A300-1QD - how to restore Vista preinstalled?

    Hey,. I made a big mistake, two years ago. I installed windows 7 on my Satellite A300-1QD but on the laptop Windows Vista was installed and I have no recovery disk, but I have the original serialnumber of it. Are there opportunities to put Windows Vi

  • Audio files not appearing is not on iPod Nano

    Just bought the Nano and am struggling to understand how it works.  Namely: I dragged a few (.wavs and MP3) audio files from my office on the icon of the Ipod that was also on my desk.  A green "plus" sign popped up.  Good sign. I have released the f