Load swf from memory into FlashPlayer ActiveX (Visual C++)

Hello,
I am developing an application which must load a swf file
into the
activex directly from memory. My development is almost
complete but I
have a problem with the last part of the implementation.
I am using an implementation of IBindHost, and passing the
stream
trough an IMoniker implementation.
I don't know if someone here can help me, if so I will
explain deeply
my question.
Thanks,
Vicente.

Hello,
I am developing an application which must load a swf file
into the
activex directly from memory. My development is almost
complete but I
have a problem with the last part of the implementation.
I am using an implementation of IBindHost, and passing the
stream
trough an IMoniker implementation.
I don't know if someone here can help me, if so I will
explain deeply
my question.
Thanks,
Vicente.

Similar Messages

  • Load swf from memory into FlahPlayer ActiveX

    Hello,
    I am developing an application which must load a swf file
    into the
    activex directly from memory. My development is almost
    complete but I
    have a problem with the last part of the implementation.
    I am using an implementation of IBindHost, and passing the
    stream
    trough an IMoniker implementation.
    I don't know if someone here can help me, if so I will
    explain deeply
    my question.
    Thanks,
    Vicente.

    Hello,
    I am developing an application which must load a swf file
    into the
    activex directly from memory. My development is almost
    complete but I
    have a problem with the last part of the implementation.
    I am using an implementation of IBindHost, and passing the
    stream
    trough an IMoniker implementation.
    I don't know if someone here can help me, if so I will
    explain deeply
    my question.
    Thanks,
    Vicente.

  • How to effectively remove a loaded SWF from the stage?

    I can not figure out a proper coding to remove a loded SWF from the stage.
    Here is my set up.
    I have a layout segmented into labeled section. In the section labeled "products" I have a layout consisting of product images acting as buttons which bring a user to another labeled section "prdctsPopUps"
    In the "prdctsPopUps" section I have placed an instance of LoaderMax placed into an mc container. Placing LoaderMax into an mc container automatically resolved an issue of clearing loaded SWFs from stage when I come back to "products" section.
    I specified the variable in the "products" section with the following set up:
    var sourceVar_ProductsPopUps:String;
    function onClickSumix1PopUp(event:MouseEvent):void {
                        sourceVar_ProductsPopUps="prdcts_popups/sumix1-popup_tl.swf";
                        gotoAndPlay("prdctsPopUps");
    So each button has its own "....swf" URL and they all open fine and I can come back to "products" section without any issues.
    However inside the swf (which loads through LoaderMax which is placed into an mc) there are other buttons which bring a user to labeled section "xyz". Which also functions properly. It opens as it is supposed to be and without any previously loaded "...swf" on the stage.
    At the labeled section "xyz" there is a limited set of buttons repeating from section "products" which has to bring a user back to the same set up in the "prdctsPopUps" labeled section and open a corresponding "...swf" .
    However only the last opened "...swf" will appear in that section. Effectively the one which was originally opened from the "prdctsPopUps" section and not the one which was supposed to be opened from the "xyz" section.
    I can not understand why it would work from one labeled section and not from another. I can not figure out on which section which code/function needed to be placed.
    Here is the set up from a button from the "xyz" section whcih supposed to bring a user to the same "prdctsPopUps" section but to load a different "...swf"
    var sourceVar_ProductsPopUps_fromXYZ:String;
    function onClick_floralytePopUp_fromXYZ(event:MouseEvent) :void {
                        sourceVar_ProductsPopUps_fromXYZ="prdcts_popups/floralyte-popup_tl.swf";
                        gotoAndPlay("prdctsPopUps");
    Here is the code set up for the LoaderMax from the "prdctsPopUps" section:
    var loaderProductPopUps:SWFLoader = new SWFLoader(sourceVar_ProductsPopUps,
                                                                                                        estimatedBytes:5000,
                                                                                                        container:holderMovieClip,
                                                                                                        onProgress:progressHandler,
                                                                                                        onComplete:completeHandler,
                                                                                                        centerRegistration:true,
                                                                                                        alpha:1,
                                                                                                        scaleMode:"none",
                                                                                                        width:540,
                                                                                                        height:730,
                                                                                                        crop:true,
                                                                                                        autoPlay:false
    function progressHandler(event:LoaderEvent):void{
              progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress;
    function completeHandler(event:LoaderEvent):void{
              var loadedImage:ContentDisplay = event.target.content;
              TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25});
    loaderProductPopUps.load();
    Is there something which needs to be imported, or specific function needs to be specified in a specific labeled section?

    actually, i think you'll need to use something like:
    var loaderProductPopUps:SWFLoader;
    if ((loaderProductPopUps){
    if(loaderProductPopUps.content)){
       loaderProductPopUps.unload();
    loaderProductPopUps= new SWFLoader(sourceVar_ProductsPopUps, //the value of sourceVar_ProductsPopUps allows to load mulitple SWFs from the products page.
                                                                                                         estimatedBytes:5000 ,
                                                                                                         container:holderMov ieClip,// more convinient and easier to manage if to place the LoaderMax into an empty mc (holderMovieClip)
                                                                                                                                                                         // if not will work as well. Then the line container:holderMovieClip, has to be replaced with container:this,
                                                                                                                                                                         // can be any size, can not be scaled as it distorts the content
                                                                                                         onProgress:progress Handler,
                                                                                                         onComplete:complete Handler,
                                                                                                         centerRegistration: true,
                                                                                                         //x:-260, y:-320, //no need for this is if used: centerRegistration:true,
                                                                                                         alpha:1,
                                                                                                         scaleMode:"none",
                                                                                                         //scaleX:0, scaleY:0,
                                                                                                         //vAlign:"top",
                                                                                                         width:540,
                                                                                                         height:730,//scales proportionally but I need to cut off the edges
                                                                                                         crop:true,
                                                                                                         autoPlay:false
    function progressHandler(event:LoaderEvent):void{
              progressBarPopUp_mc.gradientbarPopUp_mc.scaleX = loaderProductPopUps.progress;
    function completeHandler(event:LoaderEvent):void{
              var loadedImage:ContentDisplay = event.target.content;
              //TweenMax.to(loadedImage, 1.5, {alpha:1, scaleX:1, scaleY:1});//only need this line if corresponding values are changed in SWF loader constructor
              TweenMax.to(progressBarPopUp_mc, 1.5, {alpha:0, scaleX:0.25, scaleY:0.25});
    loaderProductPopUps.load();

  • Load PDF From Memory using Adobe Acrobat SDK

    Load PDF From Memory using Adobe Acrobat SDK

    //The below variables are global;
    DWORD FileSize;//size of main PDF file
    char * lpBuffer;//PDF buffer,please save binary PDF data into this buffer
    DWORD dwDataSize;//size of main PDF file
    DWORD dwDataIndex;//is a pointer for lpBuffer position.ex. lpBuffer[dwDataIndex]
    //write the following code in the initialzation of your application
    ASFileSys myFileSys;
    memset (&MyFileSys, 0, sizeof(ASFileSysRec));
    MyFileSys.size = sizeof(ASFileSysRec);
    MyFileSys.open = ASCallbackCreateProto (ASFileSysOpenProc, MyASFileSysOpenProc);
    MyFileSys.close = ASCallbackCreateProto (ASFileSysCloseProc, MyASFileSysCloseProc);
    MyFileSys.flush = ASCallbackCreateProto (ASFileSysFlushProc, MyASFileSysFlushProc);
    MyFileSys.setpos = ASCallbackCreateProto (ASFileSysSetPosProc, MyASFileSysSetPosProc);
    MyFileSys.getpos = ASCallbackCreateProto (ASFileSysGetPosProc, MyASFileSysGetPosProc);
    MyFileSys.seteof = ASCallbackCreateProto (ASFileSysSetEofProc, MyASFileSysSetEofProc);
    MyFileSys.geteof = ASCallbackCreateProto (ASFileSysGetEofProc, MyASFileSysGetEofProc);
    MyFileSys.read = ASCallbackCreateProto (ASFileSysReadProc, MyASFileSysReadProc);
    MyFileSys.write = ASCallbackCreateProto (ASFileSysWriteProc, MyASFileSysWriteProc);
    MyFileSys.remove = ASCallbackCreateProto (ASFileSysRemoveProc, MyASFileSysRemoveProc);
    MyFileSys.rename = ASCallbackCreateProto (ASFileSysRenameProc, MyASFileSysRenameProc);
    MyFileSys.isSameFile = ASCallbackCreateProto (ASFileSysIsSameFileProc, MyASFileSysIsSameFileProc);
    MyFileSys.getName = ASCallbackCreateProto (ASFileSysGetNameProc, MyASFileSysGetNameProc);
    MyFileSys.getNameAsASText = ASCallbackCreateProto (ASFileSysGetNameAsASTextProc, MyASFileSysGetNameAsASTextProc);
    MyFileSys.getTempPathName = ASCallbackCreateProto (ASFileSysGetTempPathNameProc, MyASFileSysGetTempPathNameProc);
    MyFileSys.copyPathName = ASCallbackCreateProto (ASFileSysCopyPathNameProc, MyASFileSysCopyPathNameProc);
    MyFileSys.diPathFromPath = ASCallbackCreateProto (ASFileSysDiPathFromPathProc, MyASFileSysDiPathFromPathProc);
    MyFileSys.pathFromDIPath = ASCallbackCreateProto (ASFileSysPathFromDIPathProc, MyASFileSysPathFromDIPathProc);
    MyFileSys.disposePathName = ASCallbackCreateProto (ASFileSysDisposePathNameProc, MyASFileSysDisposePathNameProc);
    MyFileSys.getFileSysName = ASCallbackCreateProto (ASFileSysGetFileSysNameProc, MyASFileSysGetFileSysNameProc);
    MyFileSys.getStorageFreeSpace = ASCallbackCreateProto (ASFileSysGetStorageFreeSpaceProc, MyASFileSysGetStorageFreeSpaceProc);
    MyFileSys.flushVolume = ASCallbackCreateProto (ASFileSysFlushVolumeProc, MyASFileSysFlushVolumeProc);
    MyFileSys.createPathName = ASCallbackCreateProto (ASFileSysCreatePathNameProc, MyASFileSysCreatePathNameProc);
    MyFileSys.getItemProps = ASCallbackCreateProto (ASFileSysGetItemPropsProc, MyASFileSysGetItemPropsProc);
    MyFileSys.firstFolderItem = ASCallbackCreateProto (ASFileSysFirstFolderItemProc, MyASFileSysFirstFolderItemProc);
    MyFileSys.nextFolderItem = ASCallbackCreateProto (ASFileSysNextFolderItemProc, MyASFileSysNextFolderItemProc);
    MyFileSys.destroyFolderIterator = ASCallbackCreateProto (ASFileSysDestroyFolderIteratorProc, MyASFileSysDestroyFolderIteratorProc);
    MyFileSys.urlFromPath = ASCallbackCreateProto (ASFileSysURLFromPathProc, MyASFileSysURLFromPathProc);
    MyFileSys.getParent = ASCallbackCreateProto (ASFileSysGetParentProc, MyASFileSysGetParentProc);
    MyFileSys.createFolder = ASCallbackCreateProto (ASFileSysCreateFolderProc, MyASFileSysCreateFolderProc);
    MyFileSys.removeFolder = ASCallbackCreateProto (ASFileSysRemoveFolderProc, MyASFileSysRemoveFolderProc);
    MyFileSys.displayStringFromPath = ASCallbackCreateProto (ASFileSysDisplayStringFromPathProc, MyASFileSysDisplayStringFromPathProc);
    MyFileSys.setTypeAndCreator = ASCallbackCreateProto (ASFileSysSetTypeAndCreatorProc, MyASFileSysSetTypeAndCreatorProc);
    MyFileSys.getTypeAndCreator = ASCallbackCreateProto (ASFileSysGetTypeAndCreatorProc, MyASFileSysGetTypeAndCreatorProc);
    //These need to be implemented for 7.0 Windows
    MyFileSys.acquirePlatformPath = ASCallbackCreateProto (ASFileSysAcquirePlatformPathProc, MyASFileSysAcquirePlatformPathProc);
    MyFileSys.releasePlatformPath = ASCallbackCreateProto (ASFileSysReleasePlatformPathProc, MyASFileSysReleasePlatformPathProc);
    //MYFileSys Callbacks Functions definations
    static ACCB1 ASInt32 ACCB2 MyASFileSysOpenProc (ASPathName pathName, ASUns16 mode, MDFile *fP)
    dwDataIndex = 0;
    dwDataSize  = FileSize;//size of main PDF file
    return 0;
    static ACCB1 ASInt32 ACCB2 MyASFileSysCloseProc (MDFile f)
    dwDataIndex = 0;//set PDF buffer pointer to zero
    return 0;
    static ACCB1 ASInt32 ACCB2 MyASFileSysFlushProc (MDFile f)
    return 0;
    static ACCB1 ASInt32 ACCB2 MyASFileSysSetPosProc (MDFile f, ASUns32 pos)
    dwDataIndex = (DWORD)pos;
    return 0;
    static ACCB1 ASInt32 ACCB2 MyASFileSysGetPosProc (MDFile f, ASUns32 *pos)
    *pos = (ASFilePos)dwDataIndex;
    return 0;
    static ACCB1 ASInt32 ACCB2 MyASFileSysSetEofProc (MDFile f, ASUns32 pos)
    return 0;
    static ACCB1 ASInt32 ACCB2 MyASFileSysGetEofProc (MDFile f, ASUns32 *pos)
    *pos = (ASFilePos)dwDataSize;
    return 0;
    static ACCB1 ASSize_t ACCB2 MyASFileSysReadProc (void *ptr, ASSize_t size, ASSize_t count, MDFile f, ASInt32 *pError)
    *pError = 0;
    if ( ptr == NULL )
      return 0;
    DWORD dwRemaining = dwDataSize - dwDataIndex;
    DWORD dwReadSize = min( dwRemaining, (DWORD)( size * count ) );
    CopyMemory(ptr, &lpBuffer[ dwDataIndex ], dwReadSize );
    dwDataIndex += dwReadSize;
    return (ASSize_t)dwReadSize;
    static ACCB1 ASSize_t ACCB2 MyASFileSysWriteProc (void *ptr, ASSize_t size, ASSize_t count, MDFile f, ASInt32 *pError)
    return 0;
    static ACCB1 ASInt32 ACCB2 MyASFileSysRemoveProc (ASPathName pathName)
    return 0;
    static ACCB1 ASInt32 ACCB2 MyASFileSysRenameProc (ASMDFile* f, ASPathName oldPath, ASPathName newPath)
    return 0;
    static ACCB1 ASBool ACCB2 MyASFileSysIsSameFileProc (ASMDFile f, ASPathName pathName, ASPathName newPathName)
    return 0;
    static ACCB1 ASInt32 ACCB2 MyASFileSysGetNameProc (ASPathName pathName, char *name, ASInt32 maxLength)
    return 0;
    static ACCB1 ASInt32 ACCB2 MyASFileSysGetNameAsASTextProc (ASPathName pathName, ASText name)
    return 0;
    static ACCB1 ASPathName ACCB2 MyASFileSysGetTempPathNameProc (ASPathName pathName)
    return (ASPathName)PDF_MEMORY_FILESYS;
    static ACCB1 ASPathName ACCB2 MyASFileSysCopyPathNameProc (ASPathName pathName)
    return (ASPathName)PDF_MEMORY_FILESYS;
    static ACCB1 char * ACCB2 MyASFileSysDiPathFromPathProc (ASPathName path, ASPathName relativeToThisPath)
        return NULL;
    static ACCB1 ASPathName ACCB2 MyASFileSysPathFromDIPathProc (const char * diPath, ASPathName relativeToThisPath)
    return (ASPathName)PDF_MEMORY_FILESYS;
    static ACCB1 void ACCB2 MyASFileSysDisposePathNameProc (ASPathName pathName)
    static ACCB1 ASAtom ACCB2 MyASFileSysGetFileSysNameProc (void)
    return NULL;
    static ACCB1 ASUns32 ACCB2 MyASFileSysGetStorageFreeSpaceProc (ASPathName pathName)
    return INT_MAX;
    static ACCB1 ASInt32 ACCB2 MyASFileSysFlushVolumeProc (ASPathName pathName)
    return 0;
    static ACCB1 ASPathName ACCB2 MyASFileSysCreatePathNameProc (ASAtom pathSpecType, const void *pathSpec, const void *mustBeZero)
    return (ASPathName)PDF_MEMORY_FILESYS;
    static ACCB1 ASInt32 ACCB2 MyASFileSysGetItemPropsProc (ASPathName pathName, ASFileSysItemProps props)
    return 0;
    static ACCB1 ASFolderIterator ACCB2 MyASFileSysFirstFolderItemProc (ASPathName folderPath, ASFileSysItemProps props, ASPathName *itemPath)
    return NULL;
    static ACCB1 ASBool ACCB2 MyASFileSysNextFolderItemProc (ASFolderIterator folderIter, ASFileSysItemProps props, ASPathName *itemPath)
    return 0;
    static ACCB1 void ACCB2 MyASFileSysDestroyFolderIteratorProc (ASFolderIterator folderIter)
    static ACCB1 char * ACCB2 MyASFileSysURLFromPathProc (ASPathName path)
    return NULL;
    static ACCB1 ASPathName ACCB2 MyASFileSysGetParentProc (ASPathName path)
    return NULL;
    static ACCB1 ASInt32 ACCB2 MyASFileSysCreateFolderProc (ASPathName path)
    return 0;
    static ACCB1 ASInt32 ACCB2 MyASFileSysRemoveFolderProc (ASPathName path)
    return 0;
    static ACCB1 char * ACCB2 MyASFileSysDisplayStringFromPathProc (ASPathName path)
        return NULL;
    static ACCB1 void ACCB2 MyASFileSysSetTypeAndCreatorProc (ASPathName path, unsigned long type, unsigned long creator)
    static ACCB1 void ACCB2 MyASFileSysGetTypeAndCreatorProc (ASPathName path, unsigned long *type, unsigned long *creator)
    static ACCB1 ASInt32 ACCB2 MyASFileSysAcquirePlatformPathProc(ASPathName path, ASAtom platformPathType, ASPlatformPath *platformPath)
    return 0;
    static ACCB1 void ACCB2 MyASFileSysReleasePlatformPathProc(ASPlatformPath platformPath)
    //write the following code in your open PDF file procedure
    FileSize = //size of your PDF File;
    lpBuffer = (char *)malloc(FileSize);
    PDDoc pdDoc = PDDocOpen( (ASPathName)PDF_MEMORY_FILESYS, &MyFileSys, NULL, true );
    ASFile asFile = PDDocGetFile(pdDoc);
    ASText title = ASTextFromScriptText ("PDF File Name",kASRomanScript);
    AVDoc targetDoc = AVDocOpenFromASFileWithParams (asFile, title, NULL);
    //Thanks

  • How to load data from Quikbooks into PeopleSoft General Ledger module ?

    Folks,
    Hello.
    My client's data is currently stored in Quikbooks.
    After install PeopleSoft FSCM 9.0, I need to load the data from Quickbooks into PeopleSoft General Ledger module. But I don't know how to use PeopleSoft Integration Broker to integrate with Quikbooks.
    Can any folks tell me how to load data from Quikbooks into PeopleSoft General Ledger module ?

    Hi,
    If the data load is one time process, then you can use PL/SQL or datamover to load the data to PeopleSoft application.
    If you want to load the data in real time, then you need to create In-bound and out-bound nodes to perform the transaction.
    Thanks
    Soundappan

  • Loading Variables from ASP into Flash

    I can find plenty of tutorials detailing how to load
    variables from a defined asp page into Flash, but here's my
    dilemma...
    I have an asp page that is reading a URL with a unique
    identifier in it (www.sampleURL.com?id=123456), and then turns the
    id number from the URL into a variable. On the same page then, sits
    my swf where I need to use LoadVars to pull in that ASP variable
    via Actionscript. If I don't have a static asp page to pull the
    variables in from and I want to pass the variable within the same
    asp page the swf is located on, how do I do it? Many thanks in
    advance...

    "bonzomn65" <[email protected]> wrote in
    message
    news:ej0630$pjh$[email protected]..
    >I can find plenty of tutorials detailing how to load
    variables from a
    >defined
    > asp page into Flash, but here's my dilemma...
    >
    > I have an asp page that is reading a URL with a unique
    identifier in it
    > (www.sampleURL.com?id=123456), and then turns the id
    number from the URL
    > into a
    > variable. On the same page then, sits my swf where I
    need to use LoadVars
    > to
    > pull in that ASP variable via Actionscript. If I don't
    have a static asp
    > page
    > to pull the variables in from and I want to pass the
    variable within the
    > same
    > asp page the swf is located on, how do I do it? Many
    thanks in advance...
    >
    You don't need LoadVars for this at all. You can just pass
    the variable to
    your Flash movie by specifying a query string when you are
    calling the
    movie.
    If you are using the straight object, embed method then it
    would look
    something like this:
    <param name="movie" value="movie.swf?id=11111">
    <embed src="movie.swf?id=11111" ... >
    If you are using the ActiveContent JavaScript for your movie
    then you just
    leave off the .swf... so
    "name", "movie?id=11111"
    Then, in flash you can access the value of id from the _root,
    like
    var idInFlash:Number = _root.id;
    Of course in the above example you would replace 11111 with
    the proper
    syntax for printing a variable's value in ASP.

  • Unable to load swf from different domain through html wrapper in Chrom

    Hi All,
           I am trying a embed a swf from different domain. My html wrapper was in one domain and swf was in another domain. I have embedded the swf into the html wrapper. When i run the html file it is loading the swf in firefox and working fine. But when i try to run the same html in chrom or IE the swf is aborted. I have crossdomain.xml file in both the servers which is also allowing both the domains. I was not able to figure out the issue. Can anybody help on this.
    regards,
    Jayagopal.

    Are you getting any errors or warnings?

  • Load SWF from text link?

    Hi
    I have navigation movieclips which load external SWF's into
    my "loader_mc" empty movie clip on my stage, however I need to add
    some text onto certain pages and from this text create hyperlinks
    which are meant to load external SWF's also into the same loader_mc
    movie clip.
    Firstly, is this even possible - i.e. load external swf's
    from text links?
    Secondly, if so, how? When i select the text, the actions
    panel is always disabled.
    Any suggestions or advice would be greatly appreciated.
    Thanks

    I just have stop(); on the swf
    this is the code for adding the swf
    addBubbles(e.currentTarget);
            private function addBubbles(e:Object):void
                var xx:Number = e.x;
                var yy:Number = e.y;
                var bubble:boxg = new boxg();
                bubble.x = xx;
                bubble.y = yy;
                e.parent.addChild(bubble);
                bubble.gotoAndPlay(1);
    But when i run the debug i get an error on this line - e.parent.addChild(bubble);
    Error #1009: Cannot access a property or method of a null object reference.
        at InventoryItem/addBubbles()[C:\Documents and Settings\frida\Desktop\hello99\hello3\InventoryItem.as:39]
        at InventoryItem/mouseClickHandler()[C:\Documents and Settings\frida\Desktop\hello99\hello3\InventoryItem.as:28]
    what that means?
    Thank you

  • Load SWF with instances into MC

    Hello,
    I have a SWF called "player.swf", and it contains instances
    like: "head", "body" etc...
    I want to load that SWF into another SWF
    ("display_player.swf"), and to load ANOTHER SWF to replace the
    "head" instance, like:
    "_root.p" is a transparent red colored movie clip inside
    "display_player.swf"
    I tried doing this:
    _root.p.loadMovie("player.swf");
    trace(_root.p.head);
    "_root.p" said to be "_level0.p" and is displayed correctly,
    but "_root.p.head" said to be undefined (NaN)...
    Does anyone has an idea on how to load a SWF inside a movie
    clip, and use it's instances?

    The point here is to demostrate, or at least determine, what
    the problem is. I have stated that it is probably likely that you
    are making the call to _root.p.head previous to it being
    instatiated on the timeline. you must wait for the swf to load
    before the clip within the loaded swf can be made available to
    target. A better method would be to use the MovieClipLoader class,
    and then use the onLoadInit handler, this handler is displatched
    when the swf becomes available to the timeline, then within the
    handler you could call your trace, or load into the 'head' instance
    at the correct time.
    I have made an example to demostrate this, using
    representations of you clips and swfs:
    HERE
    PS. launch the items from within the folder.

  • How to load hierarchy from file into InfoObject with compounding Attr & LN

    Hi,
    I have created an InfoObject called YCOSTC0 which has a compounding attribute 0CO_AREA. and Text is Lanugage dependent, hence the key is YCOSTC0, 0CO_AREA and LANGUAGE, now when i load hierarchy from flat file as mentioned below, it creates duplicate blank rows in master data table, becuase the flat file contains only the YCOSTC0 Info Object and this data gets loaded into 0CO_AREA column in master data table which is the first column. how can i load hierarchies from flat file into an InfoObject that has a compounding attribute and Language dependent. please provide me a sample file structure with data.
    NodeID     InfoObject     Node Name     Link Name     Parent ID     Language     Short Text     Medium Text     Long Text
    1     0HIER_NODE     CC_HIER               EN     Cost Center Heirarchy     Cost Center Heirarchy     Cost Center Heirarchy
    2     YCOSTC0     C001          1     EN     CC 1     Cost Center 1     Cost Center 1
    3     YCOSTC0     C002          2     EN     CC 2     Cost Center 2     Cost Center 2
    4     YCOSTC0     C003          2     EN     CC 3     Cost Center 3     Cost Center 3
    5     YCOSTC0     C004          3     EN     CC 4     Cost Center 4     Cost Center 4
    6     YCOSTC0     C005          3     EN     CC 7     Cost Center 7     Cost Center 7
    7     YCOSTC0     C006          4     EN     CC 5     Cost Center 5     Cost Center 5
    8     YCOSTC0     C007          4     EN     CC 8     Cost Center 8     Cost Center 8
    9     YCOSTC0     C008          4     EN     CC 10     Cost Center 10     Cost Center 10
    10     YCOSTC0     C009          7     EN     CC 6     Cost Center 6     Cost Center 6
    11     YCOSTC0     C010          6     EN     CC 9     Cost Center 9     Cost Center 9
    Thanks
    Akila R

    Hi -
        Check the following link.
    Hierarchy Upload from Flat files
    Anesh B

  • Load swf from a tree

    Could someone show me how to load swf file from a link on a
    tree node? The tree would come from embeded xml.
    Thanks

    I am getting 1034 Type coercion error. I have Googled it this
    error must have hundreds of links. Is it a bug in Flex 3? Here is
    the code. The problem only occurs when I link to a swf.
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="vertical"
    verticalAlign="middle"
    backgroundColor="white">
    <mx:Script>
    <![CDATA[
    import mx.events.ListEvent;
    import mx.managers.*;
    import mx.flash.*;
    import mx.controls.treeClasses.*;
    private var t:Tree;
    private var dataObj:Object;
    private var suffix:String;
    private function tree_itemClick(evt:ListEvent):void {
    var t:Tree = evt.currentTarget as Tree;
    var dataObj:Object = evt.itemRenderer.data;
    if (dataObj.hasOwnProperty("@src")) {
    swfLoader.source = dataObj.@src;
    } else if (t.dataDescriptor.isBranch(t.selectedItem)) {
    swfLoader.source = null;
    panel.status = "";
    private function tree_labelFunc(item:Object):String {
    var suffix:String = "";
    if (tree.dataDescriptor.isBranch(item)) {
    suffix = " (" + item.children().length() + ")";
    return item.@label + suffix;
    private function swfLoader_complete(evt:Event):void {
    panel.status = (swfLoader.bytesTotal/1024).toFixed(2) +
    'KB';
    ]]>
    </mx:Script>
    <mx:XML id="dp" source="data/dp.xml" />
    <mx:HDividedBox width="100%" height="100%">
    <mx:Panel width="200" height="100%">
    <mx:Tree id="tree"
    dataProvider="{dp}"
    labelFunction="tree_labelFunc"
    showRoot="false"
    width="100%"
    height="100%"
    itemClick="tree_itemClick(event);" />
    </mx:Panel>
    <mx:Panel id="panel"
    width="100%"
    height="100%"
    backgroundColor="white">
    <mx:SWFLoader id="swfLoader"
    scaleContent="true"
    width="100%"
    height="100%"
    complete="swfLoader_complete(event);"/>
    <mx:ControlBar>
    <mx:LinkButton label="{swfLoader.source.toString()}"
    />
    </mx:ControlBar>
    </mx:Panel>
    </mx:HDividedBox>
    </mx:Application>

  • Flushing loaded swfs from stage target mc?

    Hi, I'm using buttons to send the playhead to frames in which swfs are then loaded into an otherwise blank movieclip called "stage_target_mc" ...how can I then flush out the previously loaded swf so only a newly loaded swf displays in "stage_target_mc"?  For example, after clicking upon the 'about' button the 'about' swf loads...then if the 'concepts' button is clicked the 'concepts' swf loads -- but the previously loaded 'about' swf still plays...I would like to be able to flush the 'about' swf so only 'concepts' is display, in this example.  Thanks!
    code associated with buttons used to send playhead to frames "concepts" or "about":
    about_btn.addEventListener(MouseEvent.CLICK, displayAbout);
    function displayAbout(e:MouseEvent):void {
    root.gotoAndStop("about");
    concepts_btn.addEventListener(MouseEvent.CLICK, displayConcepts);
    function displayConcepts(e:MouseEvent):void {
    root.gotoAndStop("concepts");
    code on frame called "concepts":
    stage_target_loader.load(new URLRequest("swfs/stages/concepts.swf"));
    MovieClip(root).stage_target_mc.addChild(stage_target_loader);
    code on frame called "about":
    stage_target_loader.load(new URLRequest("swfs/stages/about.swf"));
    MovieClip(root).stage_target_mc.addChild(stage_target_loader);

    Before loading, try using the unloadAndStop() method of the Loader class if you are using a newr version of Flash

  • Controlling loaded swf from main timeline

    Hello,
    I'm working on loading external swf files for ios. I am able to load the swf files and set them to visible or invisible in different frames. I am having trouble controlling the loaded swf files from the main timeline. Specifically, I would like to have a button on the main timeline, that when clicked will move a loaded swf to frame 1.
    Here is a code that loads one swf file:
    var myLoader1:Loader;
    var loaderContext1:LoaderContext = new LoaderContext(false, ApplicationDomain.currentDomain, null);
    if(myLoader1 == null)
              myLoader1 = new Loader();
              addChild(myLoader1);
    myLoader1.load(new URLRequest("folder/file1.swf"),loaderContext1);
    myLoader1.visible = true;
    backbutton.addEventListener(MouseEvent.MOUSE_DOWN, backbutton1);
    function backbutton1(myEvent:MouseEvent):void {???????????? myLoader1.gotoAndStop(1);}  (this line does not work)
    (Once I load file1.swf, within the file1.swf I click a forward button to move to different frames. My question is: how do I code the 'backbutton' on the main timeline so that it causes the loaded file1.swf to go to frame 1?)
    Thank you for your help.

    sure.
    if the movieclip on the loaded swf's main timeline has reference mc, you would use:
    MovieClip(myLoader.content).mc.gotoAndStop(1);
    p.s.  you might find the following helpful,  http://kb2.adobe.com/community/publishing/918/cpsid_91887.html

  • Not authorized...cannot load songs from iTunes into iMovie

    Hello,
    I was importing some songs from iTunes into iMovie, something I've always done and never had a problem with before, until this wknd. After I had loaded in the songs into my iMovie timeline, and they played just fine, I then started getting pop-up boxes with the msg. stating: "This computer is not authorized to play...mp4... If you purchased this song you can open iTunes and authorize this computer to play this song by entering your Apple ID password." I did indeed click on the link to authorize, and put in my password, and then when I tried loading the song again, I got another pop-up box w/an Error msg. What gives? I have never seen this before. I checked out the authorization on my computer in iTunes, and it did state that I am authorized (I am the only one who uses the computer). I read some of the posts, do I have to De-authorize, then authorize again? I just don't understand the problem. I even tried burning the songs I wanted onto a disc, then tried re-importing them to iTunes, and it was still the same problem! I thought the whole idea of iTunes was to be able to play them with a project.
    Any suggestions would be most appreciated, thank you.

    It is a bug that Apple is aware of and apparently working on. I think it is an iTunes bug since it seems to effect both iDVD and iMovie. See these for a few examples...
    http://discussions.apple.com/thread.jspa?messageID=5183605&#5183605
    http://discussions.apple.com/thread.jspa?messageID=5247887&#5247887
    http://discussions.apple.com/thread.jspa?messageID=5051259&#5051259
    http://discussions.apple.com/thread.jspa?messageID=5311086&#5311086
    Patrick

  • Load swf-version=17 into swf-version=10  -  VerifyError: Error #1014.......

    Hi Guys,
    I have very interesting situation, and I would like to ask you for any help.
    History: I've started the new project for "one" company (my project is small web game). The first and the main requirement for this project was using Stage3D. The company I'm working for, has it's own "SWF-Container" for all projects (about 1000+ small projects). The second requirement was using this "SWF-Container" to load my project inside.
    Main Issue: "SWF-Container" can't be changed/modified (a lot of functionality + a lot of project already online). "SWF-Container" wroted using Flex SDK 3.6 ("A long time ago in a galaxy far, far away...."  ) -swf-version=10. When I'm trying to load the new project ("-swf-version=17") into this old container - I'm receiving the error:
    [Fault] exception, information=VerifyError: Error #1014: Class flash.display::Stage3D could not be found.
    (and I thing the same will be for all new classes like: JSON, Context3D, etc...)
    No errors if I'm opening my project stand-alone.
    My ideas/suggestions:
    1) Ask for new "SWF-Container" - Failed. No resources to support a few "SWF-Container"s.
    2) Ask for change "SWF-Container" to be "-swf-version=17" - Failed. No simple way to change SWF version using Flex SDK 3.6 + a lot of conflicts with current projects (at least global class "JSON").
    3) Find some solution with loading the new SWF to the old SWF - in progress. Currently - with no success.
    Projects:
    I've created two project that simulate my situation: https://drive.google.com/file/d/0Bw4xj8VbNvNuZ1gybzFYcEpkLVk/edit?usp=sharing
    By using next URL you can find ZIP with two FlashDeveloper projects inside:
    a) OldContainer - project that simulate "SWF-Container" (Flex SDK 3.6)
    b) NewGame - project that simulate my new project (Flex SDK 4.6).
    I will be very grateful for any help in finding a solution for this problem.
    With best regards, Vadym.

    Hi kglad,
    Thank you for good point. But there are no way to change current mehanisms to embed/load "SWF-Container".
    Imaging, that "SWF-Container" is not a simple empty SWF, but it's site core, that display in one time a lot of different widgets - small AS3 projects with really different functionality (one of these widgets should be my small game).
    Thanks, Vadym.

Maybe you are looking for