SWF Loader Error Message :: As security error Error #2044: Unhandled securityError:. text=Error #2140.

SWFLOADER EXAMPLE:

i) A Lot of Sample flash components are in Internet, but i can’t embed this into Flex Application.
ii) It is easy to embed flash alone component without any assets and any XML.
iii)Example of flash components works in flex builder: “cloudstorm1.swf” is an flash file

Example:- <mx:SWFLoader source=”cloudstorm1.swf” />

<mx:SWFLoader source=”cloudstorm1.swf” height=”482″ width=”752″/>

iv) I am running this project an entire application running successfully.

v) But i got an error when i am running the same application in bin_debug folder.

As security error Error #2044: Unhandled securityError:. text=Error #2140.

The Solution is:
Goto flex builer—> in same application click menubar Project—>Properties—>flexcompiler—>Additional compiler Arguments—> copy and paste the txt: -use-network=false
Select—> Apply—> ok
After that run the same application in bin_debug folder. the application runs successfully.

<mx:SWFLoader source=”cloudstorm1.swf” height=”482″ width=”752″/>

Posted in SWF Loader | Tagged | Leave a comment

Check Box as item Renderer in a DataGrid

<?xml version=”1.0″ encoding=”utf-8″?>

<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml&#8221; layout=”absolute” backgroundColor=”white”>

<mx:Script>

<![CDATA[

<strong>import</strong> mx.collections.ArrayCollection;

<strong>import</strong> mx.controls.*;

[<strong>Bindable</strong>]

<strong>public</strong> <strong>var</strong> arr:ArrayCollection=<strong>new</strong> ArrayCollection([{label:<strong>”User 1″</strong>, data:<strong>”1″</strong>, chkVal:<strong>false</strong>},{label:<strong>”User 2″</strong>, data:<strong>”2″</strong>, chkVal:<strong>false</strong>},{label:<strong>”User 3″</strong>, data:<strong>”3″</strong>, chkVal:<strong>false</strong>},{label:<strong>”User 4″</strong>, data:<strong>”4″</strong>, chkVal:<strong>false</strong>},{label:<strong>”User 5″</strong>, data:<strong>”5″</strong>, chkVal:<strong>false</strong>}]);

<strong>public</strong> <strong>function</strong> fnChange(chk:Object):<strong>void</strong>{arr.getItemAt(dg1.selectedIndex).chkVal=CheckBox(chk).selected;}

]]></mx:Script>

<mx:DataGrid x=”161″ y=”197″font-size: 10pt; font-family: “Courier New”; color: rgb(153, 0, 0);”>dg1″ height=”115″

horizontalGridLines=”true” horizontalGridLineColor=”#cccccc” dataProvider=”{arr}”><mx:columns>

<mx:DataGridColumn headerText=”Column 1″ width=”150″ dataField=”chkVal”><mx:itemRenderer><mx:Component>

<mx:VBox height=”30″ horizontalAlign=”center”>

<mx:CheckBoxfont-size: 10pt; font-family: “Courier New”; color: rgb(153, 0, 0);”>chk” change=”{outerDocument.fnChange(chk)}” selected=”{data.chkVal}” />

</mx:VBox>

</mx:Component>

</mx:itemRenderer>

</mx:DataGridColumn>

<mx:DataGridColumn headerText=”Column 2″ dataField=”label” />

</mx:columns>

</mx:DataGrid></mx:Application>

Posted in check box, datagrid, item renderer | Tagged , , | Leave a comment

Datatip, item Renderer in Datagrid & how it effects Memory

http://www.axelscript.com/2008/02/20/use-a-datatip-for-each-record-in-a-datagrid-in-flex-and-a-memory-consumption-note/

http://axelscript.com/wp-content/cfwtExamples/UsingDataTipInDataGrid/bin/UsingDataTipInDataGrid.html

Posted in datagrid, datatip, item renderer, memory consumption | Tagged , , , | Leave a comment

Mobile Application Development Tools

http://www.pinoyideas.com/technology/mobile-application-development-tools

Posted in Android, BlackBerry, iphone, Mobile App Development | Tagged , , , , | Leave a comment

Date Selection Problem

http://www.javaworld.com/javaworld/jw-07-2003/jw-0704-toolbox.html?page=1

Posted in Date Selection | Tagged | Leave a comment

Design Patterns

http://ntt.cc/2009/03/10/design-patterns-in-actionscript-final-note.html

http://www.developer.com/design/article.php/1577941/Applying-Design-Patterns-to-Solve-Design-Issues.htm

http://www.javacamp.org/designPattern/

http://www.teachervision.fen.com/problem-solving/teaching-methods/48900.html

http://www.oracle.com/technetwork/java/mvc-140477.html

Posted in Uncategorized | Tagged | Leave a comment

Decorator Pattern Flex Actionscript

http://www.devarticles.com/c/a/Flash/A-Simple-Decorator-Pattern-Example/1/

Posted in Design Patterns | Tagged , | Leave a comment