Posted on August 23rd, 2010 by egiles
Create an ActionScript function to reload a page that can be called from Adobe Flex / Flash. This uses javascript to call a page reload.
private function reloadPage(event:Event):void
{
var ref:URLRequest = new URLRequest(”javascript:location.reload(true)”);
navigateToURL(ref, “_self”);
}
Filed under: Technology | 23 Comments »
Posted on August 23rd, 2010 by egiles
This is a great example of a file uploader for Adobe Flex. It’s in com.everythingflex.components.Uploader.mxml.
<?xml version=”1.0″ encoding=”utf-8″?>
<!– Authored by Rich Tretola (rich@richtretola.com) EverythingFlex.com
Feel free to use within your appplications. Track changes at EverythingFlex.com
Sample Syntax:
<eFlexComponents:Uploader uploadButtonLabel=”Browse for New Image”
uploadToURL=”http://www.yourdomain.com/uploads/uploader.cfm”
imagesFilter=”*.jpg;*.gif;*.png”
displayNewImage=”true”
displayImagePath=”http://www.yourdomain.coms/uploads”
maxUploadSize=”100000″/>
–>
<mx:Canvas xmlns:mx=”http://www.adobe.com/2006/mxml” width=”100%” height=”100%”>
<mx:Script>
<![CDATA[
import mx.controls.Label;
import mx.controls.Alert;
import flash.net.FileFilter;
import flash.net.FileReference;
import flash.net.URLRequest;
private var uploadURL:URLRequest;
private var file:FileReference;
[Bindable]
public var uploadButtonLabel:String = “Browse for [...]
Filed under: Technology | 18 Comments »