THE ZEPINT NETWORK

programmer assist

Adobe Flex Adobe Flex XML Feeds

Adobe Flex Questions Adobe Flex Solutions Adobe Flex Articles

Adobe Flex delivers a standards-based programming methodology and runtime services for developing and deploying the presentation tier of applications that combine the richness of the desktop with the reach of the web: Rich Internet Applications.

Regarding Adobe Flex: Export As A PNG Image - Article by Srirangan

DiggBlinkRedditDeliciousTechnorati

question by suneeth | Moderate

below is a code snippet from the article by Srirangan..

--------------------------------------------------------------------------------
public function downloadChart():void
{
var bd:BitmapData = new BitmapData(OBJECT_ID.width, OBJECT_ID.height);
bd.draw(OBJECT_ID);
var png:ByteArray = encode( bd );
var variables:URLVariables = new URLVariables();
variables.uid = "156";
variables.item_name = "Chart";
var request:URLRequest = new URLRequest( "DownloadImage.php" );
request.data = png;
request.method = URLRequestMethod.POST;
navigateToURL( request );
}
--------------------------------------------------------------------------------

Problem -

I am not able to compile the action script class..

Questions -

what is OBJECT_ID ?
where is the method, navigateToURL (request) ?

Can somebody also explain variables.uid and variables.item_name?

Thanks in advance.

Post reply Subscriptions

Re: Regarding Adobe Flex: Export As A PNG Image - Article by Srirangan

reply by Srirangan

Suneeth,

Replace OBJECT_ID with the Id of the Flex object that you want to export in the Png.

Rgds,
Sri

Post reply Subscriptions

Got a Adobe Flex Question?

Just Sign Up and ask the top Adobe Flex experts!

Search via Google

User Login

Email Address

Password

Adobe Flex Experts

Rank Expert Points
#1 Srirangan 1000
#2 Bejaan 500
This a list of the Top Adobe Flex experts, how many points do you have?

Leading Experts

Rank Expert Points
#1 frankzzsword 4600
#2 Bejaan 2900
#3 csfreak 1100
#4 Anurag 700
#5 keyvez 700
#6 nnarasimha 600
#7 Nakata 600
#8 martinig 600
#9 mastercomputers 400
#10 Huntress 150
#11 Adkron 150
#12 Yogesh 100
#13 lexxwern 100
#14 Mustan Khan 100
#15 poizn 100
This is a list of overall best performing experts, how many points do you have?