aodz

remove "Flex Data Visualization Trial" using actionscript

Posted by: flexevent on: May 20, 2009

Today Imtiyaz and I did a small hack in the Flex charting code and removed the Trial message from the Charting component by writing 1 simple actionscript lines.

what you need to do is in the creationcomplete of any charting component write the following code

//            var arra : Array = new Array();
//            for(var i:int =0;i<this.numChildren;i++){
//                arra.push(this.getChildAt(i));
//            }

// the above 4 lines are just to check  what r the childs added

(this.getChildAt(this.numChildren-1) as TextField).htmlText = ” “;

we  tried to set visible false but that dint work we also tried to remove the textfield child alltogether  but that too dint work :P but finally it was the html text property of the textfield that gave way :D

now you can also add your custom  trial message to your application :)

just replace the blank with your text for example:

(this.getChildAt(this.numChildren-1) as TextField).htmlText = ” YOUR MESSAGE”;

But its better that you buy your own licence key for charting. The above example was basically for educational purpose. have fun :)

trial

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

calendar

May 2009
M T W T F S S
« Mar    
 123
45678910
11121314151617
18192021222324
25262728293031

Categories

Blog Stats

  • 261 hops

follow me

Archives

Linkedin Blogger Twitter Youtube Orkut

Top Clicks

  • None

Top Posts

  • None

latest flickr photos

deep in the jungle

little umbrella

poor jumbo!

solitude

over the rice paddy!

More Photos
Follow

Get every new post delivered to your Inbox.