How to declare an instance of custom actionscript classes, extending a component Flex

SOLVED.  Failed to add the '. '. ' * ' after the name of the directory.

You can instance in two ways

(1) as mxml tag

If you want to use as an mxml tag, you must specify the namespace in the Application tag

http://www.Adobe.com/2006/mxml" xmlns:custom =" "com.myComponents. *" layout = "absolute" / > "

xmlns:custom = "" com.myComponents. * "/ / components created in the myComponents directory will be included in the application"

the custom is the namespace and MyText is the class that you have declared in the myComponents and the name of the instance is txt

(2) as actionscript object

    
import com.myComponents. *.
      
public var txt:MyText;   Declaration of instance of the MyText (custom component)
]]>
        
If this post answered your question of aid, please mark it as such.

Tags: Flex

Similar Questions

  • How to get the instance name in the custom filter code

    Hello

    I want to read the name of the instance from custom filter code, I tried to use the below code but its do not receive

    String instanceName = binder.getLocal ("IDC_Name");

    Is there a way to read the name of the Instance?


    Thank you...

    Use this:

    String instanceName = binder.getEnvironmentValue ("IDC_Name");

  • How to map an instance record as A Local or network drive in Windows 7?

    How to map an instance record as A Local or network drive in Windows 7?

    Try this list of steps and see if it helps.

    Step 1: Open my computer and click on the button 'map network drive '.
    Step 2: Name the folder and select "connect using different credentials and then click on"connect to a Web site that you can use to store your documents and photos. "
    Step 3 - click on "next".
    Step 4 - Select "Choose a custom network location" and then click "Next".
    Step 5 - Type in 'ftp://yourwebsite.com/' as address network or Internet
    Step 6 - uncheck "Log anonymously" and type your user name for FTP access.
    Step 7: type a name for this location.
    Step 8 - click on finish
    Step 9 - now, when you double-click your new network location, you must open a session. Type the password, uncheck the box "connect anonymously and finally check the backup password, unless you want to enter each time.
    Step 10 - transfer your files of images to the server, as it is a folder on your PC.

  • How can I install my graphic custom, self-created Persona / theme that I use on my XP on my Win7Firefox?

    How can I install my graphic custom, self-created Persona / theme that I use on my XP computer on my Windows 7 Firefox? (Firefox 17.0.1 Windows 7 64 bit home edition? (There is, as far as I know, no 'little Fox' icon visible below on the left!) I use a downloaded "Persona" or "Theme" ((je vous souhaite vous les gens ne changerait pas les termes importants à la baisse d'un chapeau!)) and it works very well...

    You need to install the Persona more extension to easily install a character via its files instead of via the internet.

  • How can I get my calendars customized calendar 8.0 now that 10.11.3 updated?

    I have a MacBook Pro. How can I get my calendars customized calendar 8.0 now that 10.11.3 updated? I clicked on view > update and nothing is displayed.

    Synchronize calendars with a network like iCloud or Google service?

  • How to store a QHash of custom QSetting objects

    Hello

    I have a custom host class that extends QObjects, I want to keep a bunch of instances of the host in QSetting. However, he got the error "in this context" when I try to compile. Here is my code

    //create the server
    Host host = new Host();
    ...some initialization for the host
    
    //load setting
    QSettings settings(m_author, m_appName);
    QHash *hosts = new QHash();
    
    //put the new host to the hash
    hosts.insert(host->name(), QVariant(host)); //this is where i got "within this context"settings.setValue("hosts", hosts); //same error on this line
    

    I do know that if it's a good approach, I don't even know if storable settings on QHash, as far as I'm testing, I can put some like a but I guess because QString Qvariant if it worked.

    Hello

    Please see if this helps:

    http://developer.Nokia.com/community/wiki/Saving_custom_structures_and_classes_to_QSettings

    Basically, you need to implement custom type serialization management and save them using qRegisterMetaTypeStreamOperators.

    BTW, written QSettings are not atomic, and it may lose data occasionally (this is not resolved even in 5 Qt).

    If you need to store the data in a reliable way, consider it serialization to the file manually. Ideally, the data should be saved in a temporary file by renaming the file in the original, so the operation is atomic.

  • How to disable a custom button field, extending the field 4.5

    Hi all

    I'm working on an application that builds in 4.5, but should work on almost all BlackBerry 4.5 devices from.

    My query is, I need to enable and disable a button custom field that extends the class of the field. I do use if the methods navigationMovement() and moveFocus() for devices not tactile, but on BB 9800 (Tourch) when I touch the button on the screen, it is worn.

    I don't want to use any API touch, can all about suggest me how disabled button on the ground without the help of the Touch API. Please don't suggest also on setEnable(), coz this is not supported in 4.5.

    Thank you

    Let isFocusable return false, for example

  • BlackBerry smartphone how to move incoming emails to Custom application folder

    Hello

    Please someone give me soloution of the programaticaly application how to move incoming emails to custom. Please its too urgent in my project.

    Hi mohdfarhanakram

    Automatically move e-mail messages to a different folder is available only when you're using BlackBerry® Enterprise Server.  Messages will be filtered on the mail server but would appear in these folders on the BlackBerry® smartphone.

    I hope that answers your question!

    Thank you

  • During the creation of domestic demand, we enter the destination location, but when IR is converted to ISO how this system pick up the customer?

    During the creation of domestic demand, we enter the destination location, but when IR is converted to ISO how this system pick up the customer?

    Hello

    The location is added to the customer (internal part).

    Kind regards

    Isabelle Syed

  • How to identify a one time customer Oracle Apps AR

    Hello

    How to identify a one time customer in Oracle APps AR?

    Is it possible to know how many number of transactions a customer made so that, if the number of transactions is 1, then the customer is a customer of time. Otherwise, it is not?

    Thank you
    Bob

    Hi Bob,

    to my knowledge, I can't recall a report seeded by oracle that could meet your requirement. You can try running the Transaction Register report date of your live Go far, so that the system generates a list of all bills and the name of the customer, then you could export to Excel and sort, filter and group by to get the desired result...
    However if you are a person with technical expertise, check table RA_CUSTOMER_TRX_ALL this option stores all the transaction information you can select TRX_NUMBER, BILL_TO_CUSTOMER_ID from this table and perform a count by customer... (I'm not sure about the syntax and use of sql functions) you can get the desired effect...

    Also in the future, while creating a new customer if you know in advance that this customer is going to be a ONE TIME CUSTOMER, you can enter this information in any unused field on the client configuration can allow a FDF and capture this information, so that it becomes very easy to identify these customers or have a report based on this is based...

    I guess there's an objecive behind trying to find a new subscribers or customers with a single transaction history... are you planning disable/end date / idle clients...?

    Kind regards
    Ivruksha

  • How to get in touch with customer service?

    How to get in touch with customer service? Twice I had a cat and I would get an answer in the coming days. Never heard a thing! I need an invoice for my accounts but I can't download it. It is said: the customer service contact. But I chatted for 2 times, tried to call, they don't answer the phone. Where is the customer service!

    Hi Regine43b,

    Please visit the following link to get your monthly bill: http://helpx.adobe.com/x-productkb/policy-pricing/print-creative-cloud-receipt.html

    If in case still encounter you problems, please contact support @ https://helpx.adobe.com/contact

    Kind regards

    Sheena.

  • How do you get the Adobe customer service to give an a contact email? I have problems!

    How can I get the Adobe customer to give me an e-mail address? I have problems!

    Experience shows that in most cases, one becomes faster and better help by posting questions on these forums. And it's free.

  • How to migrate once instance subscriptions to another

    Hello

    How to migrate once instance subscriptions to another. ?

    Thank you
    Agnes.

    Please see (command/tool to Upload/Download Business objects of Ebs Instances of events [557181.1 ID]).

    Thank you
    Hussein

  • How can I tell what version of Actionscript I use?

    I really apologize in advance for this question, but as someone new to Flash how can I know which version of Actionscript is using my .fla file?  1.0, 2.0, or 3.0?  I'm using Flash CS4.

    Go to the file menu-> publication settings... and click the Flash tab, there you will see what script version that you are using

  • How to declare a global xml element in as2?

    How to declare a global xml element in as2?

    _Global.XML = new XML();

Maybe you are looking for