You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/10/01 10:41:49 UTC

[GitHub] [royale-asjs] Dakshinads commented on issue #488: How to retrieve image after browsing

Dakshinads commented on issue #488: How to retrieve image after browsing   
URL: https://github.com/apache/royale-asjs/issues/488#issuecomment-536978385
 
 
   protected function Cmb_Label_clickHandler1(event:Event):void
            {
               myBrowser.browse();
                
            } 
   		 protected function modelChangedHandler(event:org.apache.royale.events.Event):void
   			{
   				myFileProxy.model.addEventListener("blobChanged", blobChangedHandler);
   				trace('loading: ' +  myFileProxy.name);
   				myLoader.load();
   			}
   
   			private var fileModel:FileModel;
   			private function blobChangedHandler(e:org.apache.royale.events.Event):void
   			{
   				fileModel= myFileProxy.model as FileModel;
   				Alert.show(myFileProxy.size + " bytes of " + fileModel.name + " were loaded");
   				//imageButton.src="D:\121.png";
   				imageButton.src=myFileProxy.name;
   				Alert.show(fileModel.name);
   			}
   
   
   	<j:Button   emphasis="secondary" text="Browse" click="Cmb_Label_clickHandler1(event)" width="100"/>
   					<js:FileProxy id="myFileProxy" modelChanged="modelChangedHandler(event)">
   			<js:beads>
   				<js:FileModel/>
   				<js:FileBrowser id="myBrowser"/>
   				<js:FileLoader id="myLoader"/>
   			</js:beads>
   					</js:FileProxy>
   
   		<j:ImageButton id="imageButton"  click="imageButtonClick(event)" width="750" height="400"/>
   
   
   I want to retrieve image in image button after browsing image.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services