New AC3 programmer confused over 'packages' -

Hi everyone,
So, I've been slowly teaching myself AC3 - largely using examples from online tutorials and a collection of books I've bought. I can get simple exercises to work, but I'm losing my way when things get complicated.
For example - packages - I am unclear on how these work and interact with my main programming stream. Now I'm getting to the point where this question seems to be coming up all of the time. But, for some reason, I just can't seem to connect the dots.
Is there anyone out there that could sum up a easy to understand path to enlightenment!
Much appreciated!
Have a great day!
Tekla

The more you continue to program in as3 you will slowly be introduced to what is known as Object Oriented Programming, or OOP.
Its the belief to think of code in terms of an object.
So if you were building a car you might be overwhelmed and say omg where do i start, but if you embrace OOP you can say well lets begin wilth the tires.
And you can focus strictly on 1 object at a time and then use recursive composition which entails of building increasingly complex elements from simplier ones.
Now package can be a folder but consider a package to be a repository for like items.  when developing our Tire system, to make up this package we might have sub folders for tread and lug nuts and hub caps.
But i dont want to mix my tires with hub caps, so i might make sub packages in the tire class.   tires.hubcaps.  and ta-dah!  you have packages of packages.

Similar Messages

  • Still confused over fup changes to Total BB option...

    There still seems to be confusion over the planned changes for Total BB Option 1 customers.
    Although KerryG has informed us that the monthly allowance will remain at 10Gb and the charge for additional use will be changing to £5 per 5Gb, BT customer services seem to think the extra usage charge remains the same as it is now.
    Please see posts from KerryG and bobm here -
    http://community.bt.com/t5/BB-in-Home/WHERE-IS-OUR​-USAGE-MONITOR-BT/m-p/41085#M24680
    Does anyone have any further info please ?

    Hi Del
    I can confirm that the info I provided on the earlier thread was correct.  I am sorry if people have received other information when calling in.  I have fed this back to the relevant teams to make sure all advisors are aware of these recent changes. 
    To clarify, the position for BT Total Broadband Option 1 is:
    Usage allowance – will remain at 10GB
    Additional usage charges – they will be charged at 5GB for £5 (rather than 1GB for £1) as from November 1st 2010.
    As mentioned before, there are a couple of links that may be useful for those who think they may be likely to incur additional usage charges and wish to review which broadband option is best for them:
    Details of usage allowances for each option
    Details of options for upgrading your broadband package
    Thx
    Kerry
    Retired BTCare Community Manager - StephanieG and SeanD are your new Community Managers
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Confusion over Native Query Result List

    I have this confusion over the field object of a resultList of a Native query. This is because it has contradicted the idea of the books for me.
    This is a pure example
    @SqlResultSetMapping(name="LoanCapitalization.reportMapping",
    columns={
        @ColumnResult(name="policy_number"),
        @ColumnResult(name="policy_holder"),
        @ColumnResult(name="amount"),
        @ColumnResult(name="outstanding_loan"),
        @ColumnResult(name="interest"),
        @ColumnResult(name="amount_to_date"),
        @ColumnResult(name="effective_date"),
        @ColumnResult(name="sub_system_code")
    @NamedNativeQuery(name="LoanCapitalization.aggregateStatement", query="SELECT   l.policy_number, l.last_name || ' ' || l.first_name as " +
            "policy_holder, l.amount, c.out_principal_bf as outstanding_loan, c.out_interest_bf as interest, " +
            "SUM (r.repayment_amount) as amount_to_date, c.effective_date, l.sub_system_code FROM loan l JOIN v_latest_capitalization c " +
            "ON l.loan_id = c.loan_id JOIN loan_repayment r ON l.loan_id = r.loan_id WHERE " +
            "c.effective_date BETWEEN ?1 AND ?2 GROUP BY l.policy_number, l.last_name, l.first_name, l.amount, " +
            "c.out_principal_bf, c.out_interest_bf, c.effective_date, l.sub_system_code order by l.sub_system_code, l.last_name",
            resultSetMapping="LoanCapitalization.reportMapping")and
    Query query = entityManager.createNamedQuery("LoanCapitalization.aggregateStatement");
            AggregateStatementLoanBalanceReportData data = null;
            List<AggregateStatementLoanBalanceReportData> returnList = new ArrayList<AggregateStatementLoanBalanceReportData>();
            query.setParameter(1, reportCriteria.getFromDate());
            query.setParameter(2, reportCriteria.getToDate());
            List<Object[]> resultList = query.getResultList();
            System.out.println("resultList.size() >>>>>>>>>> " + resultList.size());
            for (Object[] obj : resultList){
                data = new AggregateStatementLoanBalanceReportData();
                System.out.println("(String)obj[1] >>>>>>>>>> " + (String)obj[1]);
                System.out.println("(String)obj[2] >>>>>>>>>> " + (String)obj[2]);
                System.out.println("(String)obj[3] >>>>>>>>>> " + (String)obj[3]);
                System.out.println("(String)obj[4] >>>>>>>>>> " + (String)obj[4]);
                System.out.println("(String)obj[5] >>>>>>>>>> " + (String)obj[5]);
                System.out.println("(String)obj[6] >>>>>>>>>> " + (String)obj[6]);
                data.setPolicyNumber((String)obj[0]);
                data.setName((String)obj[1]);
    .......My first shocking surpise is that all the System.out.println() return nulls but
    System.out.println("resultList.size() >>>>>>>>>> " + resultList.size()); returned 1.
    so can anyone suggest what the problem may be.
    Regards,
    Michael

    I came across your post as I experienced the same problem. As I found no answers I tried different let's say stupid solutions.
    The one that solved my problem was to write the name for the @ColumnResult in capitals as I noticed that Oracle transforms the alias column names into capitals. I guess otherwise the mapping doesn't occur correctly.
    My example:
    @SqlResultSetMappings({
    @SqlResultSetMapping(
    name = "Customers.searchCustomers",
    entities =
    @EntityResult(entityClass = Customers.class)
    columns =
    @ColumnResult(name = "CONTACTDATE"),
    @ColumnResult(name = "CONTRACTDATE")
    String queryString =
    "SELECT c.CUSTOMER_ID, c.LAST_NAME, c.FIRST_NAME, c.OPU, c.CUSTOMER_CORE_ID, " +
    "to_char(con.CONTACT_DATE, 'yyyy-dd-mm') AS CONTACTDATE, to_char(contr.CONTRACT_DATE, 'yyyy-dd-mm') AS CONTRACTDATE " +
    "FROM CUSTOMERS c " +
    "LEFT JOIN CONTACTS con ON con.CUSTOMER_ID = c.CUSTOMER_ID AND con.ACTIVE = '1' " +
    "LEFT JOIN CONTRACTS contr ON contr.CUSTOMER_ID = c.CUSTOMER_ID AND contr.ACTIVE = '1' " +
    "WHERE c.CAMPAIGN_ID = ?1 AND upper(c.LAST_NAME) LIKE ?2 AND upper(c.FIRST_NAME) LIKE ?3";
    query = em.createNativeQuery(queryString,
    "Customers.searchCustomers");

  • HELP NEEDED!! Recently upgraded my ipad air to the new update, charged it over night, now it will not come on? i plug in the charger but comes up the normal charging sign but still no life in it?

    HELP NEEDED!! Recently upgraded my ipad air to the new update, charged it over night, now it will not come on? i plug in the charger but comes up the normal charging sign but still no life in it? Seems as though theres either a problem it charging or starting up. Had the ipad for about a year and a month or 2.. what can i do to source the problem?

    Its just started up with the apple sign, then it goes to an off black coloured screen so its on but nothing showing just a dark screen but not jet black.. ahhh help!! thank you in advance

  • In pages(not the New version) footer is over to the left, so when i put the page numbers in they don't sit right. How do i move the footer

    In pages(not the New version) footer is over to the left, so when i put the page numbers in they don't sit right. How do i move the footer

    The footer is not only to the left. To get the page number to the right you can use Format > Align right. That will make all page numbers move to the right. Is that what you want?

  • Why when I click on a bookmark it doesn't open a new window, it takes over a window I am working on

    Why when I click on a bookmark it doesn't open a new window, it takes over a window I am working on

    Also, if you right click, the menu will include; '''''Open New Tab''''' and
    '''''Open New Window'''''.

  • I am having problems importing my Iphoto pics into new Photo programme. I am inporting approx 11,000 pics that all seem fine in Iphoto but the iport rejects around 7,000 of them with incorrect mete data. What can I do to import these?

    I am having problems importing my I photo pics into new Photo programme. I am importing approx 11,000 pics that all seem fine in I photo but the import rejects around 7,000 of them with incorrect mete data. What can I do to import these?

    I have the same problem.
    Thread here: Import fails - "Unable to get metadata"

  • Adding new Feature in already deployed package

    Hi!
    Please consider the following scenario:
    I have a SP Project that contains a Package and a Feature. This package has been deployed and the feature has been activated already in a farm. Now I want to add a new Feature in the existing package and redeploy it in order to activate the new feature
    without affecting the old one.
    I'm using Update-SPSolution to update the package in the farm but it seems that the new feature does not appear in the list of features of the sites. I read this
    http://sharepoint.stackexchange.com/questions/45675/how-do-i-update-an-already-existing-wsp-on-farm which suggests that if I want to add a new feature I need to uninstall and reinstall the package. But if I do that the old feature will be deactivated which
    means that data will be lost!
    Isn't there any other way?
    Dimitris Papadimitriou, Software Development Professional

    Try running
    Install-SPFeature manually and check. The feature folder would be available on all servers since it was part of the solution.
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • How can I set up new sites to open in new pages and not over the top of the current open page?

    how can I set up new sites to open in new pages and not over the top of the current open page?

    Middle-click ''(press down mouse scroll wheel)'' <br />
    or <br />
    {Ctrl + Click} <br />
    or <br />
    Right-click and use '''''Open in a New Tab'''''

  • How do the application servers connect the new database after failing over from primary DB to standby DB

    How do the application servers connect the new database after failing over from primary DB to standby DB?
    We have setup a DR environment with a standalone Primary server and a standalone Physical Standby server on RHEL Linux 6.4. Now our application team would like to know:
    When the primary DB server is crashed, the standy DB server will takeover the role of primary DB through the DataGuard fast failover. As the applications are connected by the primary DB IP before,currently the physical DB is used as a different IP or listener. If this is happened, they need to stop their application servers and re-configure their connection so the they coonect the new DB server, they cannot tolerate these workaround. 
    Whether does oracle have the better solution for this so that the application can automatically know the role's transition and change to the new IP without re-confige any connection and shutdown their application?
    Oracle support provides us the answer as following:
    ==================================================================
    Applications connected to a primary database can transparently failover to the new primary database upon an Oracle Data Guard role transition. Integration with Fast Application Notification (FAN) provides fast failover for integrated clients.
    After a failover, the broker publishes Fast Application Notification (FAN) events. These FAN events can be used in the following ways:
    Applications can use FAN without programmatic changes if they use one of these Oracle integrated database clients: Oracle Database JDBC, Oracle Database Oracle Call Interface (OCI), and Oracle Data Provider for .NET ( ODP.NET). These clients can be configured for Fast Connection Failover (FCF) to automatically connect to a new primary database after a failover.
    JAVA applications can use FAN programmatically by using the JDBC FAN application programming interface to subscribe to FAN events and to execute event handling actions upon the receipt of an event.
    FAN server-side callouts can be configured on the database tier.
    FAN events are published using Oracle Notification Services (ONS) and Oracle Streams Advanced Queuing (AQ).
    =======================================================================================
    Who has the experience and the related documentation or other solutions? we don't have the concept of about FAN.
    Thank very much in advance.

    Hi mesbeg,
    Thanks alot.
    For example, there is an application JBOSS server connecting the DB, we just added another datasource and put the standby IP into the configuration file except adding a service on DB side like this following:
            <subsystem xmlns="urn:jboss:domain:datasources:1.0">
            <datasources>
                    <datasource jta="false" jndi-name="java:/jdbc/idserverDatasource" pool-name="IDServerDataSource" enabled="true" use-java-context="true">
                        <connection-url>jdbc:oracle:thin:@<primay DB IP>:1521:testdb</connection-url>
                        <connection-url>jdbc:oracle:thin:@<standby DB IP>:1521:testdb</connection-url>
                        <driver>oracle</driver>
                        <pool>
                            <min-pool-size>2</min-pool-size>
                            <max-pool-size>10</max-pool-size>
                            <prefill>true</prefill>
                        </pool>
                        <security>
                            <user-name>TEST_USER</user-name>
                            <password>Password1</password>
                        </security>
                        <validation>
                            <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleValidConnectionChecker"/>
                            <validate-on-match>false</validate-on-match>
                            <background-validation>false</background-validation>
                            <use-fast-fail>false</use-fast-fail>
                            <stale-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleStaleConnectionChecker"/>
                            <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleExceptionSorter"/>
                        </validation>
                    </datasource>
                    <drivers>
                        <driver name="oracle" module="com.oracle.jdbc">
                            <xa-datasource-class>oracle.jdbc.OracleDriver</xa-datasource-class>
                        </driver>
                    </drivers>
                </datasources>
            </subsystem>
    If the failover is occurred, the JBOSS will automatically be pointed to the standby DB. Additional actions are not needed.

  • How do i increase the resolution on my screen in CC, my old CS6 was fine the new CC programme makes everything look like placed low-res files?

    ow do i increase the resolution on my screen in CC, my old CS6 was fine the new CC programme makes everything look like placed low-res files?

    yes doc set to high res, hard to get an example as screenshot is low-res anyway

  • Why would a game developer opt for AIR over Packager?

    Have been developing games in Flash for a while and  considering  trying out some application markets.
    Most of my games are point and click games, so they would lend themselves to flash environments.
    Along with AIR, Adobe offers something called "Packager for Iphone". One of the advantages- from my viewpoint- is that is seems to be compatible with IOS versions preceeding the 3gs. What are AIR's advantages over Packager in developing apps for the iphone?

    To confirm, when packaging for iOS in CS5.5, it utilizes all the 2.6 and all its capabilities?
    Because it gives options for the following:
    AIR 2.5
    AIR 2.6
    AIR for iOS    and more
    I suppose the AIR for 2.6 is for desktop deployment. But it does not say that the iOS uses 2.6.
    However, it does say 2.6 in the generated xml, so I guess  thats that.
    Thanks Colin.

  • Deploying manually CC PKG file built with CC Packager. Not using any third party deployment tool. However after each 5 installations, the PKG files corrupt and cannot be use for a 6th installation. I have to build a new PKG file using CC packager.  Why ?

    Deploying manually CC PKG file built with CC Packager. Not using any third party deployment tool. However after each 5 installations, the PKG files corrupt and cannot be use for a 6th installation. I have to build a new PKG file using CC packager.  Why ?

    http://helpx.adobe.com/creative-cloud/packager.html
    http://forums.adobe.com/community/download_install_setup/creative_suite_enterprise_deploym ent

  • CCC or Disk Utility to clone a Mac HD of one new iMac to another, over ThunderBolt, we are getting I/O errors. Even though the clone fails, the destination  system does boot and log in, however, the logins take a very very very long time.

    When using CCC (Carbon Cophy Cloner) or Disk Utility to clone a Mac HD of one new iMac to another, over ThunderBolt, we are getting I/O errors. Even though the clone fails, the destination  system does boot and log in, however, the logins take a very very very long time.
    Thoughts.
    Edit: Already ran Disk Utility. Also reinstalled a fresh OS on top of the cloned OS and it seemed to remedy the problem. Then, cloned to next machine in the row of the lab. Same problem.

    OK, by that I assume that you used Disk Utility to repair the subject disk and it reported "The volume (name) appears to be OK" in green.
    Also verify you followed the instructions here: http://help.bombich.com/kb/usage-scenarios/i-want-to-clone-my-entire-hard-drive- to-a-new-hard-drive-or-a-new-machine
    If so, the Thunderbolt connection begins to look suspicious.
    Reinstalling OS X subsequent to the "clone" operation may be an acceptable workaround but you should not have had the I/O errors you describe, nor should the login times (subsequent to the initial login, that is) be unacceptably long. It calls into question the integrity of all the information that was transferrred.
    I'll try to attract the attention of a CCC expert who will likely provide more competent assistance. You can also try the Bombich support site: http://help.bombich.com

  • New repository with old kde3 packages

    For any people who might still wish to go back to the old kde3
    A new repository with old kde3 packages
    http://www.schlunix.org/
    http://www.schlunix.org/archlinux
    For x86_64 packages:
    http://www.schlunix.org/archlinux/extra/os/x86_64/
    For i686 packages:
    http://www.schlunix.org/archlinux/extra/os/i686/
    Me? I'm getting more and more comfortable with kde4.1
    Last edited by archdave (2008-08-17 23:51:56)

    azleifel wrote:I've come across this as well.  Like mforce said, it should work if makepkg is run as root (don't forget to add the --asroot switch to the makepkg command).
    Yeah, that worked for me, but it's an indication that some work needs to be done. One needs to AVOID running this as root, and so I think thats going to be the first challenge for the amarok1 maintainer. The ONLY thing we should use root for is the actual installation, not the compilation.

Maybe you are looking for

  • IChat Bonjour on our network

    Hi - I've asked this on the iChat support page and have been directed by an expert to this group. We have two computers on the same wifi network (airport extreme) both running iChat 4.0.7 (616). We can see each other on the iChat Bonjour list, but on

  • I cant use my iphone

    I recently bought a iphone 3 second hand i put in my virgin sim card but cannot use the internet facility on it because i dont have the settings virgin cant help and apple wont help because i dont have details of the person who owned it before me but

  • How to add Substitution fields after prerequisite (in step)

    Hi, Can anybody help me how to add substituion fields after prerequisites.Any configuration steps would be helpful except sap help.com. Thanks&regards,

  • How can I better use my mac to link it with school work?

    I would like to take full advatage of my mac, right now it just seems like I am using it for the internet and word.

  • Can we save the printing preference of FR reporting per report per user?

    We are using Hyperion Planning and Financial Reporting version 11.1.1.1. Some of our users will generate PDF for printing (HTML format is badly printed out). However can we have the option to save the printing preference of each FR report? As some re