GotoAndplay from the instance on stage to MovieClip in Library

Hi
I am trying to learn ActionScript 3. I have a MovieClip called Ship in the library and have made class of it called ship. The Ship movieClip glows from Frame 6 to indicate when it crashes into an asteroid.
The myShipMovieClip child is controlled by arrow keys and asteroid approaches. The hitTest works but I can’t get the ship to glow i.e. from the timeline go to the Ship MovieCli in the library and go to frame 6 to start it to glow. I have managed to do this in ActionScript 2 but have tried for the last few days to try and do it in AS3.
Please can anyone give me any guidance ?
here is my code :
import flash.events.KeyboardEvent;
import flash.events.Event;
import flash.display.MovieClip;
var myShipMovieClip:MovieClip = new ship();
addChild(myShipMovieClip);
myShipMovieClip.x =40;
myShipMovieClip.y =210;
var myMovieClip:MovieClip = new asteroid();
addChild(myMovieClip);
myMovieClip.x =500;
myMovieClip.y =210;
addEventListener(Event.ENTER_FRAME,shipgo);
function shipgo(e:Event):void
myMovieClip.x--;
var key_left:Boolean = false;
var key_right:Boolean = false;
var key_up:Boolean = false;
var key_down:Boolean = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN,KeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP,KeyUp);
addEventListener(Event.ENTER_FRAME,Main);
function Main(event:Event)
                CheckKeys();
function KeyDown(event:KeyboardEvent){
                if(event.keyCode == 37){                            
                                key_left = true;
                if(event.keyCode == 39){                            
                                key_right = true;
                if(event.keyCode == 38){                            
                                key_up = true;
                if(event.keyCode == 40){                            
                                key_down = true;
function KeyUp(event:KeyboardEvent){
                if(event.keyCode == 37){                            
                                key_left = false;
                if(event.keyCode == 39){                            
                                key_right = false;
                if(event.keyCode == 38){                            
                                key_up = false;
                if(event.keyCode == 40){                            
                                key_down = false;
function CheckKeys()
                if(key_left){
                                myShipMovieClip.x -= 5;
                if(key_right){
                                myShipMovieClip.x += 5;
                if(key_up){
                                myShipMovieClip.y -= 5;
                if(key_down){
                                myShipMovieClip.y += 5;
myMovieClip.addEventListener(Event.ENTER_FRAME,shipHit);
function shipHit(event:Event):void
                if(myMovieClip.hitTestObject(myShipMovieClip))
                this.removeChild(myMovieClip);
                myMovieClip.removeEventListener(Event.ENTER_FRAME,shipHit);
                myShipMovieClip.Ship.gotoAndPlay(6)
                else

try:
import flash.events.KeyboardEvent;
import flash.events.Event;
import flash.display.MovieClip;
var myShipMovieClip:MovieClip = new ship();
addChild(myShipMovieClip);
myShipMovieClip.x =40;
myShipMovieClip.y =210;
var myMovieClip:MovieClip = new asteroid();
addChild(myMovieClip);
myMovieClip.x =500;
myMovieClip.y =210;
addEventListener(Event.ENTER_FRAME,shipgo);
function shipgo(e:Event):void
myMovieClip.x--;
var key_left:Boolean = false;
var key_right:Boolean = false;
var key_up:Boolean = false;
var key_down:Boolean = false;
stage.addEventListener(KeyboardEvent.KEY_DOWN,KeyDown);
stage.addEventListener(KeyboardEvent.KEY_UP,KeyUp);
addEventListener(Event.ENTER_FRAME,Main);
function Main(event:Event)
                CheckKeys();
function KeyDown(event:KeyboardEvent){
                if(event.keyCode == 37){                            
                                key_left = true;
                if(event.keyCode == 39){                            
                                key_right = true;
                if(event.keyCode == 38){                            
                                key_up = true;
                if(event.keyCode == 40){                            
                                key_down = true;
function KeyUp(event:KeyboardEvent){
                if(event.keyCode == 37){                            
                                key_left = false;
                if(event.keyCode == 39){                            
                                key_right = false;
                if(event.keyCode == 38){                            
                                key_up = false;
                if(event.keyCode == 40){                            
                                key_down = false;
function CheckKeys()
                if(key_left){
                                myShipMovieClip.x -= 5;
                if(key_right){
                                myShipMovieClip.x += 5;
                if(key_up){
                                myShipMovieClip.y -= 5;
                if(key_down){
                                myShipMovieClip.y += 5;
myMovieClip.addEventListener(Event.ENTER_FRAME,shipHit);
function shipHit(event:Event):void
                if(myMovieClip.hitTestObject(myShipMovieClip))
                this.removeChild(myMovieClip);
                myMovieClip.removeEventListener(Event.ENTER_FRAME,shipHit);
                myShipMovieClip.gotoAndPlay(6)
                else

Similar Messages

  • How do I transfer or backup tv shows I downloaded on my iPad from the iPad into my computer's iTunes library?

    How do I transfer or backup tv shows I downloaded on my iPad from the iPad into my computer's iTunes library? I have a bunch of tv episodes on my iPad that I want to delete but first i want to back them up onto my computer so i have them. If I check "Sync TV Shows" in the iPad in TV shows it tells me all the shows on the iPad will be replaced by what is in my library. I tried going into iTunes store to redownload but it tells me they are "downloaded." Any thoughts?

    See Here...
    How to transfer or sync content to your computer
    From Here...
    http://www.apple.com/support/ipad/syncing/

  • How to Purge ONLY multiple STALE instances from the Instances Tab in a sing

    Hi BPEL Gurus,
    In BPEL Process Manager (Instances Tab), I am able to see all the
    instances (Active, Completed, Faulted, Aborted and Stale).
    We are using Oracle's SOA Suite 10.1.3.1
    The Instances Tab also gives me an option to filter out different
    state of instances, with this kind of filtering,
    I am able to view either Active instances or only Stale instances.
    But my primary concern is after doing this filtering,
    If I want to delete all the 100 Stale instances in a single command,
    How do I achieve this ?
    I am able to delete only single instance at a time, which is really
    a time-consuming activity.
    Is there some kind of SQL Script (Delete statement), which does
    the above activity to delete 100 Stale instances in one go.
    If there is any SQL Script, please do provide me with the same,
    since this is a critical production issue for us.
    Also on which Oracle schema, do I need to execute the above SQL Script.
    All BPEL Geeks, please do help me.
    Thanks & Regards,
    Gopal D. Kalsekar
    Senior Software Developer
    Business Solutions (eGroup)
    M.H. Alshaya Company W.L.L.
    www.alshaya.com
    P :- (965) 224 3598
    F :- (965) 224 2488
    E :- [email protected]

    Hi Riko,
         Marc Kelderman has done an excellent job by writing
         purge_bpel_dehydration Stored Procedure.
         But after having a look at ORABPEL schema,
         no records are visible in any of the tables.
         (Is there any way to unhide these records in TOAD 6.3.2 ?)
         Also the script mentions about CUBE_INSTANCE table.
         In this table, there is a STATE column.
         What number do I need to specify in the WHERE clause
         of my SELECT query for this STATE column, so that I can
         only retrieve and delete STALE instances.
         Also as we are using SOA Suite 10.1.3.1, there is no
         such table by the name of WFTASK.
         I can see only 2 tables PC_TASK and TASK in ORABPEL schema.
         From which table, do I need to delete.
         Please confirm.
    Thanks & Regards,
    Gopal D. Kalsekar

  • How to modify the code to use the image on stage instead of in library?

    Hi, The following code I found on website is for working with the image which is in library. But how to modify it to work with the image on stage. Because I don't want to use it from the library. The second question ------ Is it the AS2 code or AS3. If it is AS2 code then please let me know how to modify it to work with AS3. animator = CreateEmptyMovieClip('animator',1);
    bg_1 = animator.attachMovie('bg_mc','bg_1',1);
    bg_2 = animator.attachMovie('bg_mc','bg_2',2);
    bg_1._x = bg_1._width/2:
    bg_2._x = bg_2._width/2:
    speed = 1;
    cloudWidth = 380;
    animator.onEnterFrame = function(){
    bg_1._x -= speed:
    bg_2._x -= speed:
    if(bg_1._x <= -bg_1._width) bg_1._x = cloudWidth;
    if(bg_2._x <= -bg_2._width) bg_2._x = cloudWidth;
    } Thanks.

    There is no need for attach the clip if it is not in the library and it is the AS2 code below is the relevant code in AS3 when it is in stage:
    i) Convert your first image into a movieclip with the instance name "bg_1"
    ii) Convert your second image into a movieclip with the instance name "bg_2"
    iii) Actions:
        var speed:Number = 1;
        var cloudWidth:Number = 380;
        bg_1.x = bg_1.width/2:
        bg_2.x = bg_2.width/2:
        this.addEventListener(Event.ENTER_FRAME,fn);
        function fn(e:Event):void{
            bg_1.x -= speed:
            bg_2.x -= speed:
            if(bg_1.x <= -bg_1.width) bg_1.x = cloudWidth;
            if(bg_2.x <= -bg_2.width) bg_2.x = cloudWidth;

  • Attach a movieclip from the main timeline inside another movieclip.

    I need help with the game I am working currently. On the main timeline Actions frame I have a loader class called myLoader. I attached that to a movieclip called currentSWF. I have a movieclip called SpinningCard in the library which I dynamically attached to the stage. Inside the SpinningCard movieclip there is another movieclip Card. In the Card movieclip I have 10 frames and on each frame I want to attach a different instance of the movieclip currentSWF. How can I do achieve that?
    here's what I have till now...
    On the main timeline Actions frame...
    var loader:Loader=new Loader();
    loader.load(new URLRequest("CardGraphics.swf"))
    var currentSWF:MovieClip;
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
       function swfLoaded(e:Event):void {
       currentSWF = MovieClip(loader.contentLoaderInfo.content);
       addChild(currentSWF);
    Inside the Card movieclip on the first frame I have this code...
    var a1:MovieClip = MovieClip(parent.parent.getChildByName('currentSWF'));
    CardFrame1.addChild(a1);
    //CardFrame1 is an empty movieclip which is there on the frame 1 of Card Moveiclip.
    I am getting error : Parameter must be non-null. How can I solve. Can anyone please help me.

    Hi Nabren
    I'm also looking to load a library based movie-clip into a stage based movie-clip, so that I can inturn swap it with other movie clips to act as different pages (page2_mc etc) which will be used in different sections of the application to give chapters as such.
    I've had a go at the above but can't get a result, though it did not throw an error. I also had a trace() on each side and both of those triggered.
    The stage based mc I called pageMC and the content mc I called content the same as your example
    trace('loader - cx');
    var loader:Loader=new Loader();
    var pageMC:MovieClip;
    loader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
    function swfLoaded(e:Event):void {
    pageMC = MovieClip(loader.contentLoaderInfo.content);
    pageMC.name = "pageMC";
    addChild(pageMC);
    trace("Menu 4");
    I'd appreciate some assistance. I would like to use internal MC's as I want to put the application to iOS and Android and believe by using movieclips I should be able to have some code with them whereas importing swf's I can't.
    Thanks

  • Resume the download from the last stopped stage by How?

    If a client send a request to the server using RTSP to download a photo,doc,audio file. it locates the file by using path which is stored in database.the source file want to store in a cache,because it will send back to client,at that time whether connection problem may occur due to network problem between server and client,when i get re-connection i need to resume the remaining part of files to download,i don't need to download from starting stage,wht is coding for that?
    Thank You.

    See [/questions/761494]
    * Move the old .part partial download and the final file without the .part that has size 0 to another location.
    * Start a new download and pause it, don't close Firefox.
    * Copy the two files (.part and 0 byte final) that you moved above back to the download location to replace the new files that were created.
    * Resume the download in Firefox.

  • Can iTunes take songs from the Shuffle and create a new album library.

    .. or is it a one way street? if i accept the prompt given:
    The iPod "edjshuffle" is linked to another iTunes music library. Do you want to change the link to this iTunes library and replace all existing songs on this iPod with those from this library? <YES><NO>
    ... by selecting <YES> I'm afraid I will lose all the songs currently on my iPod Shuffle. But if I say no my Shuffle remains unrecognized by iTunes.
    ... and yes WindowsXP does recognize my Shuffle as a USB drive.
    Can't I simply rename or remove the new library with my old iTunes Music Library??? [tried this and it gave the same prompt.
    HELP!

    The iTunes/shuffle synchronization is (mostly) a one way street, and the shuffle can only belong to one computer at a time.
    srb

  • HT4915 songs have downloaded into my iCloud that I did not want there. How do I delete them from the cloud but keep them in my library?

    I recently downloaded the iCloud/iTunes Match.. both of which I still have no idea how to use.. my songs began automatically downloading somewhere on my iPhone.. there are alot of songs in my iTunes Library on my MacBook.. and I didnt want all of them to get downloaded to my iCloud/iPhone..how do I start over and choose what gets downloaded? Also, I have purchased several songs from iTunes Store that did not get downloaded to my purchased list.. for example: I purchased 2 Katy Perry Songs, only one was uploaded to my phone..why and how do i fix it? I've never owned an iPhone and I fear my phone is smarter than me.. Help.. How does all this stuff work?

    Welcome to the Apple community.
    When you subscribe to iTunes match, you cannot selectively choose tunes to add to it, it's either or nothing. When you then enable iTunes match on your iPhone, none of the tunes are downloaded to your phone, you simply get a list of everything that is available in your iTunes library and the ability to download them as and when you want.

  • Why are songs from the same album being separated in my library?

    My library is currently sorted by "Album by Artist." I have 5 songs from a particular album and the library is grouping only 4 of them together, while singling out and listing 1 song separately, just beneath the other 4 songs. The text in the Artist, Album Artist, and Album fields are exactly identical for all 5 songs, so why is 1 being singled out? I've tried quitting and restarting iTunes (version 9.1.1) and this doesn't solve the problem.

    If you read the Grouping tracks into albums article you will see that this technique is just one among many and only works in particular circumstances. There will, no doubt, be other steps that you need to take to merge the tracks into a single cover in this case.
    tt2

  • I try to open itunes from the desktop and It says that my library is locked

    ya thats my problem

    According to a random website... the HTC Wildfire S uses a Qualcomm MSM7225 processor. This processor unfortunately does not support the full ARM version 7 instruction set, so Firefox cannot run on it.

  • I am trying to download music from the istore. It is in by library, but it will not go to my nano 7th

    I have tried resetting to factory settings, I can see the music on my library list, but every time I try to send it to my nano, it says that they cannot find the songs?

    Hi ...
    If you use a different Apple ID to sync your iPhone then used originally, the sync process will delete your iTunes purchases.

  • Calling gotoAndPlay from external AS

    Hello
    I have two files, the regular .fla file and an external .as file.
    Basicly at one point in the .as file I get information of what tag to send the timeline and play and have to use the function gotoAndPlay from the timeline in the .fla file.
    This is the .as file:
            import flash.display.Sprite;
         import flash.events.Event;
         import flash.events.IOErrorEvent;
         import flash.events.MouseEvent;
         import flash.net.URLRequest;
         import flash.net.URLLoader;
         import flash.net.*
         public class MenuDinamico extends Sprite{
            private function montar():void {
            botonMenu.addEventListener(MouseEvent.CLICK, fMenuDinamico);
            function fMenuDinamico(event:MouseEvent):void{
              _level1._root.menuMoverA(event.currentTarget.id);
    I don't know how to redirect to wherever I want in the timeline from the .as file.
    Thanks for the help!

    U need to make some changes in your contructer function to accept the one arguemnt
    For examaple
    Code on main timeline
    var myClass=new MyClass(this)
    Code in class
    import flash.display.MovieClip
    public class MyClass extends Sprite {
    protected var stageRef:MovieClip   
         public function MyClass(mc:MovieClip){
              stageRef=mc
    public function jumpTo(){
              stageRef.gotoAndStop(frameLable)
    Test it

  • NullPointerException was thrown while extracting a value from an instance

    Dear all,
    We have got a null point exception during commit call. According to the stack trace shown below, it seems that it is a problem due to instance variable accessor. As we know toplink use reflection to access the instance variable value. I am curious whether the exception we got is related to any class-loader setting. Thanks a lot.
    =================
    Stack Trace:
    Exception [TOPLINK-69] (OracleAS TopLink - 10g (9.0.4.5) (Build 040930)): oracle
    .toplink.exceptions.DescriptorException
    Exception Description: A NullPointerException was thrown while extracting a valu
    e from the instance variable [versionID] in the object [com.oocl.csc.frm.pom.tes
    t.model.Company].
    Internal Exception: java.lang.NullPointerException
    Mapping: oracle.toplink.mappings.DirectToFieldMapping[versionID-->COMPANY.VERSIO
    NID]
    Descriptor: Descriptor(com.oocl.csc.frm.pom.test.model.Company --> [DatabaseTabl
    e(COMPANY)])
    at oracle.toplink.exceptions.DescriptorException.nullPointerWhileGetting
    ValueThruInstanceVariableAccessor(DescriptorException.java:1022)
    at oracle.toplink.internal.descriptors.InstanceVariableAttributeAccessor
    .getAttributeValueFromObject(InstanceVariableAttributeAccessor.java:68)
    at oracle.toplink.mappings.DatabaseMapping.getAttributeValueFromObject(D
    atabaseMapping.java:304)
    at oracle.toplink.mappings.DirectToFieldMapping.iterate(DirectToFieldMap
    ping.java:355)
    at oracle.toplink.internal.descriptors.ObjectBuilder.iterate(ObjectBuild
    er.java:1438)
    at oracle.toplink.internal.descriptors.DescriptorIterator.iterateReferen
    ceObjects(DescriptorIterator.java:258)
    at oracle.toplink.internal.descriptors.DescriptorIterator.startIteration
    On(DescriptorIterator.java:407)
    at oracle.toplink.publicinterface.UnitOfWork.discoverUnregisteredNewObje
    cts(UnitOfWork.java:1368)
    at oracle.toplink.publicinterface.UnitOfWork.discoverAllUnregisteredNewO
    bjects(UnitOfWork.java:1290)
    at oracle.toplink.publicinterface.UnitOfWork.assignSequenceNumbers(UnitO
    fWork.java:326)
    at oracle.toplink.publicinterface.UnitOfWork.collectAndPrepareObjectsFor
    Commit(UnitOfWork.java:664)
    at oracle.toplink.publicinterface.UnitOfWork.commitToDatabaseWithChangeS
    et(UnitOfWork.java:1130)
    at oracle.toplink.publicinterface.UnitOfWork.commitRootUnitOfWork(UnitOf
    Work.java:956)
    at oracle.toplink.publicinterface.UnitOfWork.commit(UnitOfWork.java:771)
    ====================
    ====================
    Mapping Description:
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <project>
    <project-name>POM-TEST</project-name>
    <login>
    <database-login>
    <platform>oracle.toplink.oraclespecific.Oracle9Platform</platform>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <connection-url>jdbc:oracle:thin:@sjcngdb2:1521:cdrfrmdv</connection-ur
    l>
    <user-name>pomowner</user-name>
    <password>BB742416276274A47F360CCDD2711570</password>
    <uses-native-sequencing>false</uses-native-sequencing>
    <sequence-preallocation-size>50</sequence-preallocation-size>
    <sequence-table>SEQUENCE</sequence-table>
    <sequence-name-field>SEQ_NAME</sequence-name-field>
    <sequence-counter-field>SEQ_COUNT</sequence-counter-field>
    <should-bind-all-parameters>false</should-bind-all-parameters>
    <should-cache-all-statements>false</should-cache-all-statements>
    <uses-byte-array-binding>true</uses-byte-array-binding>
    <uses-string-binding>false</uses-string-binding>
    <uses-streams-for-binding>false</uses-streams-for-binding>
    <should-force-field-names-to-upper-case>false</should-force-field-names
    -to-upper-case>
    <should-optimize-data-conversion>true</should-optimize-data-conversion>
    <should-trim-strings>true</should-trim-strings>
    <uses-batch-writing>false</uses-batch-writing>
    <uses-jdbc-batch-writing>true</uses-jdbc-batch-writing>
    <uses-external-connection-pooling>false</uses-external-connection-pooli
    ng>
    <uses-external-transaction-controller>false</uses-external-transaction-
    controller>
    <type>oracle.toplink.sessions.DatabaseLogin</type>
    </database-login>
    </login>
    <java-class>com.oocl.csc.frm.pom.test.model.Company</java-class>
    <tables>
    <table>COMPANY</table>
    </tables>
    <primary-key-fields>
    <field>COMPANY.COMPANY_KEY</field>
    </primary-key-fields>
    <descriptor-type-value>Normal</descriptor-type-value>
    <identity-map-class>oracle.toplink.internal.identitymaps.SoftCacheWeakI
    dentityMap</identity-map-class>
    <remote-identity-map-class>oracle.toplink.internal.identitymaps.SoftCac
    heWeakIdentityMap</remote-identity-map-class>
    <identity-map-size>100</identity-map-size>
    <remote-identity-map-size>100</remote-identity-map-size>
    <should-always-refresh-cache>false</should-always-refresh-cache>
    <should-always-refresh-cache-on-remote>false</should-always-refresh-cac
    he-on-remote>
    <should-only-refresh-cache-if-newer-version>false</should-only-refresh-
    cache-if-newer-version>
    <should-disable-cache-hits>false</should-disable-cache-hits>
    <should-disable-cache-hits-on-remote>false</should-disable-cache-hits-o
    n-remote>
    <alias>Company</alias>
    <copy-policy>
    <descriptor-copy-policy>
    <type>oracle.toplink.internal.descriptors.CopyPolicy</type>
    </descriptor-copy-policy>
    </copy-policy>
    <instantiation-policy>
    <descriptor-instantiation-policy>
    <type>oracle.toplink.internal.descriptors.InstantiationPolicy</ty
    pe>
    </descriptor-instantiation-policy>
    </instantiation-policy>
    <query-manager>
    <descriptor-query-manager>
    <existence-check>Check cache</existence-check>
    </descriptor-query-manager>
    </query-manager>
    <event-manager>
    <descriptor-event-manager empty-aggregate="true"/>
    </event-manager>
    <mappings>
    <database-mapping>
    <attribute-name>companyKey</attribute-name>
    <read-only>false</read-only>
    <field-name>COMPANY.COMPANY_KEY</field-name>
    <type>oracle.toplink.mappings.DirectToFieldMapping</type>
    </database-mapping>
    <database-mapping>
    <attribute-name>contact</attribute-name>
    <read-only>false</read-only>
    <reference-class>com.oocl.csc.frm.pom.test.model.Contact</referen
    ce-class>
    <is-private-owned>false</is-private-owned>
    <uses-batch-reading>false</uses-batch-reading>
    <indirection-policy>
    <mapping-indirection-policy>
    <type>oracle.toplink.internal.indirection.NoIndirectionPoli
    cy</type>
    </mapping-indirection-policy>
    </indirection-policy>
    <uses-joining>false</uses-joining>
    <foreign-key-fields>
    <field>COMPANY.CONTACT_OID</field>
    </foreign-key-fields>
    <source-to-target-key-field-associations>
    <association>
    <association-key>COMPANY.CONTACT_OID</association-key>
    <association-value>CONTACT.POID</association-value>
    </association>
    </source-to-target-key-field-associations>
    <type>oracle.toplink.mappings.OneToOneMapping</type>
    </database-mapping>
    <database-mapping>
    <attribute-name>createdBy</attribute-name>
    <read-only>false</read-only>
    <field-name>COMPANY.CREATED_BY</field-name>
    <type>oracle.toplink.mappings.DirectToFieldMapping</type>
    </database-mapping>
    <database-mapping>
    <attribute-name>creationClientID</attribute-name>
    <read-only>false</read-only>
    <field-name>COMPANY.CREATION_CLIENTID</field-name>
    <type>oracle.toplink.mappings.DirectToFieldMapping</type>
    </database-mapping>
    <database-mapping>
    <attribute-name>creationTime</attribute-name>
    <read-only>false</read-only>
    <field-name>COMPANY.CREATION_TIME</field-name>
    <type>oracle.toplink.mappings.DirectToFieldMapping</type>
    </database-mapping>
    <database-mapping>
    <attribute-name>employeeList</attribute-name>
    <read-only>false</read-only>
    <reference-class>com.oocl.csc.frm.pom.test.model.Person</referenc
    e-class>
    <is-private-owned>false</is-private-owned>
    <uses-batch-reading>false</uses-batch-reading>
    <indirection-policy>
    <mapping-indirection-policy>
    <type>oracle.toplink.internal.indirection.NoIndirectionPoli
    cy</type>
    </mapping-indirection-policy>
    </indirection-policy>
    <container-policy>
    <mapping-container-policy>
    <container-class>com.oocl.csc.frm.pom.impl.FWPersistentArra
    yList</container-class>
    <type>oracle.toplink.internal.queryframework.ListContainerP
    olicy</type>
    </mapping-container-policy>
    </container-policy>
    <relation-table>EMPLOYEMENT</relation-table>
    <source-key-fields>
    <field>COMPANY.COMPANY_KEY</field>
    </source-key-fields>
    <source-relation-key-fields>
    <field>EMPLOYEMENT.EMPLOYER_KEY</field>
    </source-relation-key-fields>
    <target-key-fields>
    <field>PERSON.POID</field>
    </target-key-fields>
    <target-relation-key-fields>
    <field>EMPLOYEMENT.EMPLOYEE_ID</field>
    </target-relation-key-fields>
    <type>oracle.toplink.mappings.ManyToManyMapping</type>
    </database-mapping>
    <database-mapping>
    <attribute-name>lastUpdateClientID</attribute-name>
    <read-only>false</read-only>
    <field-name>COMPANY.LAST_UPDATE_CLIENTID</field-name>
    <type>oracle.toplink.mappings.DirectToFieldMapping</type>
    </database-mapping>
    <database-mapping>
    <attribute-name>lastUpdatedBy</attribute-name>
    <read-only>false</read-only>
    <field-name>COMPANY.LAST_UPDATED_BY</field-name>
    <type>oracle.toplink.mappings.DirectToFieldMapping</type>
    </database-mapping>
    <database-mapping>
    <attribute-name>lastUpdateTime</attribute-name>
    <read-only>false</read-only>
    <field-name>COMPANY.LAST_UPDATE_TIME</field-name>
    <type>oracle.toplink.mappings.DirectToFieldMapping</type>
    </database-mapping>
    <database-mapping>
    <attribute-name>name</attribute-name>
    <read-only>false</read-only>
    <field-name>COMPANY.NAME</field-name>
    <type>oracle.toplink.mappings.DirectToFieldMapping</type>
    </database-mapping>
    <database-mapping>
    <attribute-name>partner</attribute-name>
    <read-only>false</read-only>
    <reference-class>com.oocl.csc.frm.pom.test.model.Company</referen
    ce-class>
    <is-private-owned>false</is-private-owned>
    <uses-batch-reading>false</uses-batch-reading>
    <indirection-policy>
    <mapping-indirection-policy>
    <type>oracle.toplink.internal.indirection.NoIndirectionPoli
    cy</type>
    </mapping-indirection-policy>
    </indirection-policy>
    <uses-joining>false</uses-joining>
    <foreign-key-fields>
    <field>COMPANY.PARTNER</field>
    </foreign-key-fields>
    <source-to-target-key-field-associations>
    <association>
    <association-key>COMPANY.PARTNER</association-key>
    <association-value>COMPANY.COMPANY_KEY</association-value>
    </association>
    </source-to-target-key-field-associations>
    <type>oracle.toplink.mappings.OneToOneMapping</type>
    </database-mapping>
    <database-mapping>
    <attribute-name>persistentCtxt</attribute-name>
    <read-only>false</read-only>
    <reference-class>com.oocl.csc.frm.pom.impl.FWPOMPersistentContext
    </reference-class>
    <is-null-allowed>false</is-null-allowed>
    <aggregate-to-source-field-name-associations>
    <association>
    <association-key>OWNERID</association-key>
    <association-value>COMPANY.OWNERID</association-value>
    </association>
    <association>
    <association-key>ROOTID</association-key>
    <association-value>COMPANY.ROOTID</association-value>
    </association>
    </aggregate-to-source-field-name-associations>
    <type>oracle.toplink.mappings.AggregateObjectMapping</type>
    </database-mapping>
    <database-mapping>
    <attribute-name>poid</attribute-name>
    <read-only>false</read-only>
    <field-name>COMPANY.POID</field-name>
    <type>oracle.toplink.mappings.DirectToFieldMapping</type>
    </database-mapping>
    <database-mapping>
    <attribute-name>version</attribute-name>
    <read-only>false</read-only>
    <field-name>COMPANY.VERSION</field-name>
    <type>oracle.toplink.mappings.DirectToFieldMapping</type>
    </database-mapping>
    <database-mapping>
    <attribute-name>versionID</attribute-name>
    <read-only>false</read-only>
    <field-name>COMPANY.VERSIONID</field-name>
    <type>oracle.toplink.mappings.DirectToFieldMapping</type>
    </database-mapping>
    </mappings>
    <type>oracle.toplink.publicinterface.Descriptor</type>
    </descriptor>
    </descriptors>
    </project>
    ====================
    ====================
    Session Creation Method:
    SessionBroker broker = (SessionBroker) manager.getSession(brokerName, Thread.currentThread().getContextClassLoader());
    broker.getLogin().getPlatform().getConversionManager().setLoader(Thread.currentThread().getContextClassLoader());
    ====================
    ===================
    Class Hierarchy:
    Object extends> ..xxx.. extends> FWObject extends> Company
    The problematic attribute -- versionID -- is defined at "FWObject" level.
    ===================
    ===================
    Environment Configuration:
    Application Server version: 10.1.2
    TopLink version : 9.0.4.5
    TopLink classpath: specified at container level
    FWObject classpath: specified at container level
    Company classpath: specified at application level
    ===================
    Thanks and regards,
    William

    Dear All,
    We have loaded the toplink.jar to container level instead of application level. Don't know whether it is a possible source of error. Moreover, what is the purpose of loading antlr.jar? What is this jar for?
    Thanks and regards,
    William

  • How to call a function in a class from the main timeline?

    Hey Guys
    I have a project in Flash with four external AS files, which are linked to items in the library using AS linkage.
    What I want to do is call a function in one of these files from the main timeline, how would I go about doing this? I'm not currently using a document class, most of the code is in Frame 1 of the main timeline.
    Thanks

    // change type to the class name from the instance
    ClassNameHere(this.getChildByName('instance_name')).SomeFunction();

  • Calling a page from root instance when multiple instances

    Hi
    I have 2 CF instances on my application server. One domain, same files, but 2 instances. I want to run a page from the root instances or a scope which is upper level from the instances. Because I want to apply some settings by coding to the all instances at the same time.
    How can I reach the root instance or how can I call a CFC? What is the true path for root instance? Is there an alternative method to do this?

    There's no such thing as a "root" instance.
    [Advertising links in signature removed by moderator]

Maybe you are looking for

  • Problem with VS2012 and Sharepoint 2013 Solution

    Hello everyone I've got a problem that's driving me crazy. I'm migrating a Sharepoint 2010/Visual Studio 2010 Solution to Sharepoint 2013/visual Studio 2012 with the developer tools. My solution consists of 3 class libraries (common, data access laye

  • Can you add page numbers to the PDF version?

    Can you add page numbers to the PDF version?

  • Wall charger dead out of box...

    Got my iPad on Friday, the day of the release in Canada. My iPad charged fine on my iMac and Mac Book Pro. However, it wouldn't charge with the included charger. I returned the charger to FutureShop, and they replaced it with a new one from the 10W c

  • Very much regret upgrading to Infinity!

    We were plagued by calls from the company BT use to sell Infinity for over a year, often receiving 2 calls per week! We were quite happy with standard broadband which was fast enough for our BB needs and didn't want to incur any additional monthly co

  • Servlet failed with Exception java.lang.LinkageError: Class javax/servlet/ServletConfig

              Hi           I registered a web app with Weblogic 5.1 in the weblogic.properties file. I try           to run the web app from my browser typing http://localhost:7001/xxx(Webapp name)           and a jsp page. Following is the error I get.