3 Replies Latest reply on Dec 21, 2011 1:16 PM by Flex harUI

    creation completion method invocation

    Ananth Flex Level 1

      hi dude's

       

       

      when i try to invoke a flex component from other, the applications creation completion method is not invoking....

       

      <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"

                           xmlns:s="library://ns.adobe.com/flex/spark"

                           xmlns:dragable="components.*"

                           xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"  creationComplete="init()">

       

       

      import mx.core.UIComponent;

                                    import mx.events.CloseEvent;

                                    import mx.events.DragEvent;

                                    public var vbox:VBox;

                                    var data:Object=new Object();

                                    var menu_label:String;

                                    var array_panel:Array=new Array();

                                    public function init():void

                                    {

                                              var emailgrid:String=data.document_deleted;

                                              var doc_parentfolder_id:String=data.document_folder_id;

                                              var doc_folder_id=data.document_id;

                                              var doc_parentfolder_id:String=data.document_parent_folder_id;

                                              var doc_name:String=data.document_long_name;

       

                                              if(menu_label=="Folder Subset")

                                              {

                                                        data.IST.invokeFileListBysubFolder(doc_folder_id,data.CURRENT_FO LDER.currentFolderId);

                                              }

                                              else if(menu_label=="Upload a File")

                                              {

                                                        data.IST.invokeUpload_File();

                                              }

                                              else if(menu_label=="View")

                                              {

                                                        var urlsubFolder:String ="/ist_docstor/file_access/display_file.cfm";

       

                                                        var urlSubFolder:URLRequest= new URLRequest(urlsubFolder );

                                                        var variables:URLVariables = new URLVariables();

       

                                                        variables.from_where =data.document_id;

                                                        variables.document_id = data.document_parent_folder_id;

                                                        variables.order_by="";

                                                        variables.window_close_string="file_view";

                                                        variables.open_or_download="Open";

       

                                                        urlSubFolder.data=  variables;

                                                        urlSubFolder.method = "POST"

                                                        navigateToURL(urlSubFolder,"ISTDownload");

                                              }

                        

                                              else if(menu_label=="Attributes")

                                              {

                                                        attributcfc.fnatt("view", data.document_id  ,data.document_deleted);

                                              }

                                              else if(menu_label=="Delete File")

                                              {

                                                        Alert.show("Are you sure you want to delete this file?"+

                                                                  "\n\n"+data.document_long_name, "Delete Confirmation", mx.controls.Alert.OK | mx.controls.Alert.CANCEL,this,alertListener_DeleteDocment,null,Alert.OK);

                                              }

                                              else if(menu_label=="Move By ID")

                                              {

                             

                                              }

                                              else if(menu_label=="Copy File")

                                              {

                             

                                              }

                                              else if(menu_label=="Email")

                                              {

                                                        var Obj1:Object=new Object();

                                                        var obj2:Object=new Object();

       

                                                        obj2.from_where="email_file";

                                                        obj2.document_id=data.document_id;

       

                                                        Obj1.FORM_DATA=obj2;

                                                        EmailFolder.fnProcessData(Obj1);

                                              }

                                              else if(menu_label=="Edit Attributes")

                                              {

       

                                                                                                                                 

                                              }

                                              else if(menu_label=="Edit Storage Profile")

                                              {

       

                                              }

       

                                              {

                                                        var document_deleted:String="0";

                                                        data.IST.invokeDoc_Access_Register(doc_folder_id,document_delete d);

                                              }

                                              else if(menu_label=="Reprocess File")

                                              {

                                                        data.PANEL.a.show("dakjfgasdjgf")

                                              }

                                    }

                                    function EnterKey_move_by_Id_Fun(event:KeyboardEvent):void

                                    {

       

                                    }

                    public function invoke_common_menu(lable:String,obj:Object):void

                                    {

                                              menu_label=lable;

                                              data=obj;

                                              //init();

                                    }

       

      invoke_common_menu is the function that i call from other component....... i dont know wats the prob behind it.....

      because of this i'm unable to proceed my wrk...........