[flexcoders] Adobe has open-sourced the Text Layout Framework (TLF)
http://eon.businesswire.com/portal/site/eon/permalink/?ndmViewId=news_view&newsId=20090720006233&newsLang=en http://opensource.adobe.com/wiki/display/tlf/Text+Layout+Framework Gordon Smith Adobe Flex SDK Team
[flexcoders] Exploit.SWF.Gen virus reported by BitDefender
Has anyone else seen this? All of a sudden, BitDefender is reporting a virus called Exploit.SWF.Gen in the every copy of the applicationupdater_ui.swc file inthe Update Framework code, even when I download a new copy from the project webpage.
[flexcoders] Re: Drag and drop
I had the same question regarding drag and drop and this is an excellent answer. I would expect it to be a little more automatic to drop an element at its dragged-to position rather than having to go through this but it's not that complex of a solution. --- In flexcoders@yahoogroups.com, dingpeng cao wrote: > > you can do this with a trick: > when you start drag > remember the mouseX and mouseY. > code list this: > // The mouseMove event handler for the Image control > // initiates the drag-and-drop operation. > private function mouseMoveHandler(event: > > MouseEvent):void > { > var dragInitiator:Image=Image(event.currentTarget); > var ds:DragSource = new DragSource(); > ds.addData(dragInitiator, "img"); > > var point:Point=new Point(dragInitiator.mouseX,dragInitiator.mouseY); > ds.addData(point, "mouseOffset"); > > > DragManager.doDrag(dragInitiator, ds, event); > } > and when you drop this target, minus mouseOffset. > code like this:// The dragDrop event handler for the Canvas container > // sets the Image control's position by > // "dropping" it in its new location. > private function dragDropHandler(event:DragEvent):void { > > var ds:DragSource=event.dragSource; > var p:Point=ds.dataForFormat("mouseOffset") as Point; > > Image(event.dragInitiator).x =Canvas(event.currentTarget).mouseX - p.x; > Image(event.dragInitiator).y =Canvas(event.currentTarget).mouseY - p.y; > } > > > On Mon, Jul 20, 2009 at 6:28 PM, kk4Nabble wrote: > > > > > > > > > Hi all, Am new to flex. Was learning with examples given in flex3 livedoc. > > > > http://livedocs.adobe.com/flex/3/html/help.html?content=dragdrop_1.html > > > > There i came across this drag and drop example. > > > > http://www.adobe.com/2006/mxml";> > > > > > > > > > > > > > > > width="500" height="500" > > borderStyle="solid" > > backgroundColor="#DD" > > dragEnter="dragEnterHandler(event);" > > dragDrop="dragDropHandler(event);"> > > > > > > > source="@Embed(source='assets/globe.jpg')" > > mouseMove="mouseMoveHandler(event);"/> > > > > > > > > here to set drag initiator , Canvas(event.currentTarget).mouseX; > > this x will be the x during mouse button release . > > > > Instead , I want the x and y of the > > shadow of the image (ie the border of the image). How will i set it? > > Please help. > > -- > > View this message in context: > > http://www.nabble.com/Drag-and-drop-tp24567297p24567297.html > > Sent from the FlexCoders mailing list archive at Nabble.com. > > > > > > > > > > -- >Dingpeng Cao > Email: caodingp...@... >
Re: [flexcoders] Drag and drop
you can do this with a trick: when you start drag remember the mouseX and mouseY. code list this: // The mouseMove event handler for the Image control // initiates the drag-and-drop operation. private function mouseMoveHandler(event: MouseEvent):void { var dragInitiator:Image=Image(event.currentTarget); var ds:DragSource = new DragSource(); ds.addData(dragInitiator, "img"); var point:Point=new Point(dragInitiator.mouseX,dragInitiator.mouseY); ds.addData(point, "mouseOffset"); DragManager.doDrag(dragInitiator, ds, event); } and when you drop this target, minus mouseOffset. code like this:// The dragDrop event handler for the Canvas container // sets the Image control's position by // "dropping" it in its new location. private function dragDropHandler(event:DragEvent):void { var ds:DragSource=event.dragSource; var p:Point=ds.dataForFormat("mouseOffset") as Point; Image(event.dragInitiator).x =Canvas(event.currentTarget).mouseX - p.x; Image(event.dragInitiator).y =Canvas(event.currentTarget).mouseY - p.y; } On Mon, Jul 20, 2009 at 6:28 PM, kk4Nabble wrote: > > > > Hi all, Am new to flex. Was learning with examples given in flex3 livedoc. > > http://livedocs.adobe.com/flex/3/html/help.html?content=dragdrop_1.html > > There i came across this drag and drop example. > > http://www.adobe.com/2006/mxml";> > > > > > > > width="500" height="500" > borderStyle="solid" > backgroundColor="#DD" > dragEnter="dragEnterHandler(event);" > dragDrop="dragDropHandler(event);"> > > > source="@Embed(source='assets/globe.jpg')" > mouseMove="mouseMoveHandler(event);"/> > > > > here to set drag initiator , Canvas(event.currentTarget).mouseX; > this x will be the x during mouse button release . > > Instead , I want the x and y of the > shadow of the image (ie the border of the image). How will i set it? > Please help. > -- > View this message in context: > http://www.nabble.com/Drag-and-drop-tp24567297p24567297.html > Sent from the FlexCoders mailing list archive at Nabble.com. > > > -- Dingpeng Cao Email: caodingp...@gmail.com
Re: [flexcoders] firefox/mozilla file upload issue
ok...thanks for the pointers.. On Mon, Jul 20, 2009 at 4:13 PM, Richard Rodseth wrote: > > > I forget all the details (it's been a while and I was mostly the scribe on > this particular issue), but reading the bug and comments might yield some > Firefox-specific information for you. I seem to recall something about > having to add session info to requests. Also "nocache" settings on the > response. Sorry to be so vague. > > > On Mon, Jul 20, 2009 at 2:29 PM, [p e r c e p t i c o n] < > percepti...@gmail.com> wrote: > >> >> >> oh yes...but here's the thing...i'm not using ssl and it still doesn't >> work...there's must be a workaround >> >> >> >> On Mon, Jul 20, 2009 at 1:50 PM, Richard Rodseth wrote: >> >>> >>> >>> If you're using SSL it might be related to my most famous bug report ever >>> :) >>> >>> http://bugs.adobe.com/jira/browse/SDK-13196 >>> >>> >>> On Mon, Jul 20, 2009 at 10:52 AM, [p e r c e p t i c o n] < >>> percepti...@gmail.com> wrote: >>> Hi Coders, I'm having an issue uploading a file to a server only when performed using firefox or chrome..IE 6 + 7 work just fine, so I was wondering what the issue might be and how does one get around it? when I upload it to the server that i'm running my web app on it loads no problem, but when i try to load it to a remote server (a server other than the one my client(swf) and web app are running on) the file gets created, but the data never makes it over. I'm getting a 500 Internal Server error but no description as to why i'm getting that error...and yes, i did use Charles to see what's on the wire... TIA percy >>> >> > >
[flexcoders] Adobe Air related ANT task
Hi flex coders, I am creating the build file for the Adobe AIR app. It works for simple application i.e. compiling, launching and packaging. But in my case the application is large with lots of sub directories. The point I am facing the problem is who to add "embed-assets" into the application. i.e. during the build it is showing me unable to resolve 'embed-assets/abc.swf' for transcoding error. actually it could not find the path to the assets which is inside some sub-directory. So how can I point to the compile target for the same. If I know the equivalent compiler option for the same, that would be a great help Using the Flex Builder, I could easily compile and run the application. Rishi
[flexcoders] Re: Synchronizing two ArrayCollections
Going to have to loop: var curTick:String = dg1.selectedItem.Ticker; for (var i:int = 0; i < dg2.dataProvider.length; i++) { if ( Object(dg2.dataProvider.getItemAt(i)).Ticker == curTick ) { dg2.selectedIndex = i; } } Depending on your model, you could use for each instead. Also, replace dg2.dataProivider with the appropriate ArrayCollection name and replace Object with your VO class name; if you're using one. I'd use the "change" event instead of "click". -TH --- In flexcoders@yahoogroups.com, "Craig" wrote: > > > Take 3... after further review, to simplify things I have bound 2 > separate ArrayCollection to separate DataGrids they both share one > common field - Ticker.. I'd like to select the corresponding row > programmatically in the second datagrid which contains the value for > 'Ticker' that is selected in the first datagrid. > > So far this does not work... > > > result is Array_OrdExt and the second is Arrray_Exits. > > The Array Build routines for both are below. > > > > [Bindable] public var Array_Exits:ArrayCollection; > > public function Exits_Result(e:ResultEvent):void { > > Array_Exits = e.result as ArrayCollection; > > for (var i:int=0;i > { > > var Current_exit:Exits = new Exits(); > > Current_exit = new > > Exits(Array_Exits.getItemAt(i)); > > Array_Exits.setItemAt(Current_exit, i); > > } > > } > > > > [Bindable] public var Array_OrdExt:ArrayCollection; > > private function OrdExt_result(e:ResultEvent):void { > > Array_OrdExt = e.result as ArrayCollection; > > for (var i:int=0;i > { > > var Current_ordext:OrdExt = new OrdExt(); > > Current_ordext = new > > OrdExt(Array_OrdExt.getItemAt(i)); > > Array_OrdExt.setItemAt(Current_ordext, i); > > } > > } > > > > These build from two WebsServices results WSDL format (XML). For the > > second one, which is Array_Exits... can I just add it to the first one > > with the same result event? I would like to use the first field of > each > > collection 'Ticker' as the WHERE Ticker=Ticker then do the Get and > > Set... > > > > The Data Model for each Array is OrdExt.as and Exits.as is structured > as > > follows: > > > > package DTO.OrdEnt > > { > > [Bindable] > > public class OrdEnt > > { > > public var Ticker:String = ""; > > public var Company:String = "";..continues > > > > public function OrdEnt(obj:Object=null){ > > if (obj!=null){ > > this.Ticker=obj.Ticker; > > this.Company=obj.Company;..continues > > > > > > > > > > > > > > > > --- In flexcoders@yahoogroups.com, "Craig" craigj@ wrote: > > > > > > I need to create a DataModel.as that will synchronize two > > > arraycollections and allow me to update a Form based on the contents > > of > > > the 2nd arraycollection.index.item(s) when the first arraycollection > > > selecteditem is clicked as the dataprovider for a datagrid. > > > > > > > > > The 2 arraycollections are populated via webservices from sql > > database, > > > (which I can not InnerJoin from 4 different tables due to > > > performance)... so I end with two separate arraycollections: > > > > > > One populates a Datagrid, the other is just resident in an > > > ArrayCollection: Here is some of the sample code: > > > > > > > > > > > headerText="Ticker"/> > > > > > headerText="Kind" > > > dataField="Kind" > > > itemRenderer="com.steury.baseClasses.CellFieldTrd"/> > > > > > labelFunction="{myPrice}" > > > dataField="EnterPrice" > > > headerText="EnterPrice"/> > > > > > labelFunction="{myClosePr}" > > > dataField="Close" > > > headerText="Price"/> > > > > > headerText="Profit" > > > dataField="Profit" > > > labelFunction="{perCent}" > > > itemRenderer="com.steury.baseClasses.CellFieldInt"/> > > > > > > > > > __ > > > > > > > > width="100%" height="50%" > > > textAlign="center" > > > dataProvider="{Array_OrdExt}" > > > itemClick="onTick4()" > > > > > > > One Array is Array_OrdEx and the other Array is Array_Exits. > > > > > > When I select an item on the dgOrdExt DataGrid, I simply want to > > > populate the text values of a Form with the appropriate Items in the > > > second datagrid... Here is the trick... they both share the same > > > 'Ticker' value, but just different other variables... so it's not > too > > > difficult, it's just trickier than my novice programming skills can > > > handle - easily. > > > > > > [Bindable] public var ExtTicker:String; > > > > > > So the OnTick4() event will contain the following code: > > > > > > ExtTicker=dgOrdExt.selectedItem.Ticker; > > > > > > Then I need to somehow update the form as follows: > > > formOrdExt.tiHigh.text=dgOrdExt.selectedItem.High; > > > formOrdExt.tiLow.text=dgOrdExt.selectedItem.Low > > > > > > > > > formOrdExt.tiStrategy.text=Array_Exists.getItemAt({ExtTicker}).Strategy; > > > > > > Or I need to build an DataModel.as class to sychronize the two > > > arraycollections... I have thought about using source.concat but > that > > > will append the two collections and I will have 2
[flexcoders] AxisRenderer Error #1009: Cannot access a property or method of a null object reference
I am using a ColumnChart with a ColumnSet of type "stacked". If I switch this ColumnSet.type property to "100%" then it works just as expected, but when I use the "stacked" type, I get the following: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.charts::AxisRenderer/calcVerticalGutters()[C:\work\flex\dmv_automatio n\projects\datavisualisation\src\mx\charts\AxisRenderer.as:2055] at mx.charts::AxisRenderer/calcRotationAndSpacing()[C:\work\flex\dmv_automa tion\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1845] at mx.charts::AxisRenderer/adjustGutters()[C:\work\flex\dmv_automation\proj ects\datavisualisation\src\mx\charts\AxisRenderer.as:1534] at mx.charts::AxisRenderer/set gutters()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\ charts\AxisRenderer.as:836] at mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\work\flex\d mv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Cart esianChart.as:2110] at mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\work\flex\ dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Car tesianChart.as:1366] at mx.core::UIComponent/validateDisplayList() at mx.managers::LayoutManager/validateClient() at mx.core::UIComponent/validateNow() at com.deere.jdlink.view.dashboard.pod::UltimatePod/set data()[C:\Documents and Settings\chad.callahan\My Documents\clients\deere\jdlink\repository\trunk\development\flex\src\com \deere\jdlink\view\dashboard\pod\UltimatePod.mxml:109] at spark.components::DataGroup/updateRenderer() at spark.components::DataGroup/http://www.adobe.com/2006/flex/mx/internal:: itemAdded() at spark.components::DataGroup/initializeDataProvider() at spark.components::DataGroup/commitProperties() at mx.core::UIComponent/validateProperties() at mx.managers::LayoutManager/validateProperties() at mx.managers::LayoutManager/doPhasedInstantiation() at mx.managers::LayoutManager/doPhasedInstantiationCallback() Which is thrown from AxisRenderer line 2055 private function calcVerticalGutters(width:Number, leftGutter:Number, rightGutter:Number, firstLabel:ARLabelData, lastLabel:ARLabelData, adjustable:Object):Object { var labelAlignOffset:Number = this.labelAlignOffset; var axisLength:Number = width - leftGutter - rightGutter; var LS:Number = firstLabel.height * labelAlignOffset; var RS:Number = firstLabel.height * (1 - labelAlignOffset); var P1:Number = firstLabel.position; var P2:Number = 1 - lastLabel.position; <---(line 255) The error is being thrown because lastLabel is null. Can anyone think of how lastLabel could possibly be null? Thanks, Chad
Re: [flexcoders] firefox/mozilla file upload issue
I forget all the details (it's been a while and I was mostly the scribe on this particular issue), but reading the bug and comments might yield some Firefox-specific information for you. I seem to recall something about having to add session info to requests. Also "nocache" settings on the response. Sorry to be so vague. On Mon, Jul 20, 2009 at 2:29 PM, [p e r c e p t i c o n] < percepti...@gmail.com> wrote: > > > oh yes...but here's the thing...i'm not using ssl and it still doesn't > work...there's must be a workaround > > > > On Mon, Jul 20, 2009 at 1:50 PM, Richard Rodseth wrote: > >> >> >> If you're using SSL it might be related to my most famous bug report ever >> :) >> >> http://bugs.adobe.com/jira/browse/SDK-13196 >> >> >> On Mon, Jul 20, 2009 at 10:52 AM, [p e r c e p t i c o n] < >> percepti...@gmail.com> wrote: >> >>> >>> >>> Hi Coders, >>> >>> I'm having an issue uploading a file to a server only when performed >>> using firefox or chrome..IE 6 + 7 work just fine, so I was wondering what >>> the issue might be and how does one get around it? >>> >>> when I upload it to the server that i'm running my web app on it loads no >>> problem, but when i try to load it to a remote server (a server other than >>> the one my client(swf) and web app are running on) the file gets created, >>> but the data never makes it over. I'm getting a 500 Internal Server error >>> but no description as to why i'm getting that error...and yes, i did use >>> Charles to see what's on the wire... >>> >>> TIA >>> >>> percy >>> >>> >> > >
[flexcoders] Modulos ? Framework ? Flex 4 ?
Dear listeros I come from using the Flex 2 version. And now version 3. But without any modules and without Framework. I want to start a project very important and big in size, so the question is .. Modules should I use? Framework that I should Cairngorn, PureMVC, Mate or Switzerland? Mate and Switzerland are not in production, some of you use it in important developments? Taking into account very close to Flex 4. I should start this new venture with Flex 4? When is the release of Flex 4? Thank you very much for everything Pablo Dario Ingelhorn La Pampa Argentina Estimados listeros Vengo utilizando Flex desde la versión 2., y actualmente la versión 3.; pero sin Modulos y sin ningún Framework. Quiero iniciar un proyecto bastante importante y grande en cuanto a tamaño, por lo tanto la pregunta es .. Me conviene utilizar Modulos ? Que Framework me conviene , Cairngorn, PureMVC, Mate o Swiz ? Mate y Swiz no estan en produccion, alguno de Uds. lo utiliza en desarrollos importantes ? Teniendo en cuenta a Flex 4 muy proximo., me conviene empezar este nuevo emprendimiento con Flex 4 ? Para cuando es la liberación de Flex 4 ? Muchas gracias por todo Pablo Dario Ingelhorn La Pampa Argentina
[flexcoders] Re: Synchronizing two ArrayCollections
Take 3... after further review, to simplify things I have bound 2 separate ArrayCollection to separate DataGrids they both share one common field - Ticker.. I'd like to select the corresponding row programmatically in the second datagrid which contains the value for 'Ticker' that is selected in the first datagrid. So far this does not work... result is Array_OrdExt and the second is Arrray_Exits. > The Array Build routines for both are below. > > [Bindable] public var Array_Exits:ArrayCollection; > public function Exits_Result(e:ResultEvent):void { > Array_Exits = e.result as ArrayCollection; > for (var i:int=0;i { > var Current_exit:Exits = new Exits(); > Current_exit = new > Exits(Array_Exits.getItemAt(i)); > Array_Exits.setItemAt(Current_exit, i); > } > } > > [Bindable] public var Array_OrdExt:ArrayCollection; > private function OrdExt_result(e:ResultEvent):void { > Array_OrdExt = e.result as ArrayCollection; > for (var i:int=0;i { > var Current_ordext:OrdExt = new OrdExt(); > Current_ordext = new > OrdExt(Array_OrdExt.getItemAt(i)); > Array_OrdExt.setItemAt(Current_ordext, i); > } > } > > These build from two WebsServices results WSDL format (XML). For the > second one, which is Array_Exits... can I just add it to the first one > with the same result event? I would like to use the first field of each > collection 'Ticker' as the WHERE Ticker=Ticker then do the Get and > Set... > > The Data Model for each Array is OrdExt.as and Exits.as is structured as > follows: > > package DTO.OrdEnt > { > [Bindable] > public class OrdEnt > { > public var Ticker:String = ""; > public var Company:String = "";..continues > > public function OrdEnt(obj:Object=null){ > if (obj!=null){ > this.Ticker=obj.Ticker; > this.Company=obj.Company;..continues > > > > > > > > --- In flexcoders@yahoogroups.com, "Craig" craigj@ wrote: > > > > I need to create a DataModel.as that will synchronize two > > arraycollections and allow me to update a Form based on the contents > of > > the 2nd arraycollection.index.item(s) when the first arraycollection > > selecteditem is clicked as the dataprovider for a datagrid. > > > > > > The 2 arraycollections are populated via webservices from sql > database, > > (which I can not InnerJoin from 4 different tables due to > > performance)... so I end with two separate arraycollections: > > > > One populates a Datagrid, the other is just resident in an > > ArrayCollection: Here is some of the sample code: > > > > > > > headerText="Ticker"/> > > > headerText="Kind" > > dataField="Kind" > > itemRenderer="com.steury.baseClasses.CellFieldTrd"/> > > > labelFunction="{myPrice}" > > dataField="EnterPrice" > > headerText="EnterPrice"/> > > > labelFunction="{myClosePr}" > > dataField="Close" > > headerText="Price"/> > > > headerText="Profit" > > dataField="Profit" > > labelFunction="{perCent}" > > itemRenderer="com.steury.baseClasses.CellFieldInt"/> > > > > > > __ > > > > > width="100%" height="50%" > > textAlign="center" > > dataProvider="{Array_OrdExt}" > > itemClick="onTick4()" > > > > > One Array is Array_OrdEx and the other Array is Array_Exits. > > > > When I select an item on the dgOrdExt DataGrid, I simply want to > > populate the text values of a Form with the appropriate Items in the > > second datagrid... Here is the trick... they both share the same > > 'Ticker' value, but just different other variables... so it's not too > > difficult, it's just trickier than my novice programming skills can > > handle - easily. > > > > [Bindable] public var ExtTicker:String; > > > > So the OnTick4() event will contain the following code: > > > > ExtTicker=dgOrdExt.selectedItem.Ticker; > > > > Then I need to somehow update the form as follows: > > formOrdExt.tiHigh.text=dgOrdExt.selectedItem.High; > > formOrdExt.tiLow.text=dgOrdExt.selectedItem.Low > > > > > formOrdExt.tiStrategy.text=Array_Exists.getItemAt({ExtTicker}).Strategy; > > > > Or I need to build an DataModel.as class to sychronize the two > > arraycollections... I have thought about using source.concat but that > > will append the two collections and I will have 2 of every Ticker, > where > > I only want 1 of every Ticker with the appropriate value (Open, High, > > Low, SellPrice, Profit, BudyDate, Exit, Strategy, etc). > > > > Can someone give me a hand? > > CS > > >
Re: [flexcoders] firefox/mozilla file upload issue
oh yes...but here's the thing...i'm not using ssl and it still doesn't work...there's must be a workaround On Mon, Jul 20, 2009 at 1:50 PM, Richard Rodseth wrote: > > > If you're using SSL it might be related to my most famous bug report ever > :) > > http://bugs.adobe.com/jira/browse/SDK-13196 > > > On Mon, Jul 20, 2009 at 10:52 AM, [p e r c e p t i c o n] < > percepti...@gmail.com> wrote: > >> >> >> Hi Coders, >> >> I'm having an issue uploading a file to a server only when performed using >> firefox or chrome..IE 6 + 7 work just fine, so I was wondering what the >> issue might be and how does one get around it? >> >> when I upload it to the server that i'm running my web app on it loads no >> problem, but when i try to load it to a remote server (a server other than >> the one my client(swf) and web app are running on) the file gets created, >> but the data never makes it over. I'm getting a 500 Internal Server error >> but no description as to why i'm getting that error...and yes, i did use >> Charles to see what's on the wire... >> >> TIA >> >> percy >> >> > >
Re: [flexcoders] firefox/mozilla file upload issue
If you're using SSL it might be related to my most famous bug report ever :) http://bugs.adobe.com/jira/browse/SDK-13196 On Mon, Jul 20, 2009 at 10:52 AM, [p e r c e p t i c o n] < percepti...@gmail.com> wrote: > > > Hi Coders, > > I'm having an issue uploading a file to a server only when performed using > firefox or chrome..IE 6 + 7 work just fine, so I was wondering what the > issue might be and how does one get around it? > > when I upload it to the server that i'm running my web app on it loads no > problem, but when i try to load it to a remote server (a server other than > the one my client(swf) and web app are running on) the file gets created, > but the data never makes it over. I'm getting a 500 Internal Server error > but no description as to why i'm getting that error...and yes, i did use > Charles to see what's on the wire... > > TIA > > percy > > >
[flexcoders] Re: better option than repeater?
Thanks for the example. I know that I could make certain things a lot easier by setting up classes and components, but I don't have a lot of practice at it. Hopefully this will get me started and I'll get it figured out. I know it would simplify my code - there are many places where I repeat the same kind of display, with different data, and so far just write functions that are result handlers from remoteobjects and the functions spit out the objects I need and addChild them. At the moment I am a bit mired in the "repeat over a recordset and spit out code" mode of thinking, thanks to years ColdFusion, Perl, asp, HTML, etc. --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > As a quick and dirty... > > > http://www.adobe.com/2006/mxml"; > layout="vertical" > xmlns:custom="Components.*"> > > > > > person="{Person(myStaff.currentItem)}" /> > > > > CheckBoxComponent.mxml: > > http://www.adobe.com/2006/mxml"; > creationComplete="onCreationComplete()"> > > > > > > Person.as: > package ValueObjects > { > [RemoteClass(alias="Classes.Testing.Person")] > [Bindable] > public class Person > { > //instance variables > private var _name:String; > private var _id:String; > > //accessor methods > public function get name():String {return _name;} > public function get id():String {return _id;} > > //mutator methods > public function set name(name:String):void {_name = name;} > public function set id(id:String):void {_id = id;} > } // end class > }//end package > > I have not included any remote object calls or result handlers. I'll > leave that up to you. > > Keep in mind that Flex is object oriented. One of the ideas behind OOP > is encapsulation. If you can encapsulate all the properties and methods > of something and then repeat that, the possibilities are endless. > > > HTH > > > > Steve > > --- In flexcoders@yahoogroups.com, "postwick" wrote: > > > > Can you give me a brief example of code that would achieve the part > where you say "create a component"? > > > > Keep in mind the number of checkboxes and their labels is not static. > There are three tables involved: staff, modules, and queues. The > checkboxes are created dynamically from the records returned from the > modules and queues tables. > > > > --- In flexcoders@yahoogroups.com, "valdhor" valdhorlists@ wrote: > > > > > > I use repeaters quite a lot and like them. > > > > > > What I do is to create a component (Which sometimes contains other > components) and the repeat that. > > > > > > In your situation, I would create a component with all of your check > boxes and save button. This component would have all of the > functionality to display which check boxes are selected as well as the > save button click handler. It would also have a public property that > would take a data object. On creation complete of this component, it > would check the values of the data object and set the check boxes > appropriately. > > > > > > Then, I would repeat this component passing in the data objects > returned from the remote object call... > > > > > > > > > person="{Person(myStaff.currentItem)}" /> > > > > > > > > > > > > HTH > > > > > > > > > > > > Steve > > > > > > > > > --- In flexcoders@yahoogroups.com, "postwick" wrote: > > > > > > > > I don't like repeaters. They are too clumsy. The biggest > drawback is an inability to access values after the repeater has finish > executing. It's not the same as, for example, looping over values and > generating static HTML using ColdFusion. I seem to always end up having > to navigate up and down through the parents/children of the objects and > storing values I need in properties like name, automationName, etc. > This is clumsy and messy. > > > > > > > > As an example, I have a section of my application where I want to > list the names of people from a table, and for each person generate a > set of checkboxes that designate access to certain areas of the > application. For example: http://www.ubeek.com/images/staffrepeater.jpg > > > > > > > > That is one main repeater that loops through the staff (records > returned from remoteObject) and inside that repeater two other repeaters > (also from remoteObjects) that generate the checkboxes. > > > > > > > > I can't simply pass the primary key of the staff for which the > Save button was clicked, by putting > click="saveClick({staffRepeater.currentItem.SEQ})" into the button > object. When I do that and click it I get an error about "repeater is > not currently executing" or something like that. > > > > > > > > I don't want to resort to a datagrid and then "click to edit" then > bring up a form kind of process. I want it as few clicks as possible. > > > > > > > > Is there a better way to display data in a custom way like this, > without using repeaters, so that I ca
[flexcoders] Re: better option than repeater?
As a quick and dirty... http://www.adobe.com/2006/mxml"; layout="vertical" xmlns:custom="Components.*"> CheckBoxComponent.mxml: http://www.adobe.com/2006/mxml"; creationComplete="onCreationComplete()"> Person.as: package ValueObjects { [RemoteClass(alias="Classes.Testing.Person")] [Bindable] public class Person { //instance variables private var _name:String; private var _id:String; //accessor methods public function get name():String {return _name;} public function get id():String {return _id;} //mutator methods public function set name(name:String):void {_name = name;} public function set id(id:String):void {_id = id;} } // end class }//end package I have not included any remote object calls or result handlers. I'll leave that up to you. Keep in mind that Flex is object oriented. One of the ideas behind OOP is encapsulation. If you can encapsulate all the properties and methods of something and then repeat that, the possibilities are endless. HTH Steve --- In flexcoders@yahoogroups.com, "postwick" wrote: > > Can you give me a brief example of code that would achieve the part where you say "create a component"? > > Keep in mind the number of checkboxes and their labels is not static. There are three tables involved: staff, modules, and queues. The checkboxes are created dynamically from the records returned from the modules and queues tables. > > --- In flexcoders@yahoogroups.com, "valdhor" valdhorlists@ wrote: > > > > I use repeaters quite a lot and like them. > > > > What I do is to create a component (Which sometimes contains other components) and the repeat that. > > > > In your situation, I would create a component with all of your check boxes and save button. This component would have all of the functionality to display which check boxes are selected as well as the save button click handler. It would also have a public property that would take a data object. On creation complete of this component, it would check the values of the data object and set the check boxes appropriately. > > > > Then, I would repeat this component passing in the data objects returned from the remote object call... > > > > > > > > > > > > > > HTH > > > > > > > > Steve > > > > > > --- In flexcoders@yahoogroups.com, "postwick" wrote: > > > > > > I don't like repeaters. They are too clumsy. The biggest drawback is an inability to access values after the repeater has finish executing. It's not the same as, for example, looping over values and generating static HTML using ColdFusion. I seem to always end up having to navigate up and down through the parents/children of the objects and storing values I need in properties like name, automationName, etc. This is clumsy and messy. > > > > > > As an example, I have a section of my application where I want to list the names of people from a table, and for each person generate a set of checkboxes that designate access to certain areas of the application. For example: http://www.ubeek.com/images/staffrepeater.jpg > > > > > > That is one main repeater that loops through the staff (records returned from remoteObject) and inside that repeater two other repeaters (also from remoteObjects) that generate the checkboxes. > > > > > > I can't simply pass the primary key of the staff for which the Save button was clicked, by putting click="saveClick({staffRepeater.currentItem.SEQ})" into the button object. When I do that and click it I get an error about "repeater is not currently executing" or something like that. > > > > > > I don't want to resort to a datagrid and then "click to edit" then bring up a form kind of process. I want it as few clicks as possible. > > > > > > Is there a better way to display data in a custom way like this, without using repeaters, so that I can more easily access the child objects and their properties? > > > > > > Thanks, > > > Paul > > > > > >
Re: [flexcoders] Re: better option than repeater?
I'm talking in theory right now cause its late here ... you should have all your data structured in the model. As you have nested repeaters you can use nested lists Both of the are fed via data providers. Inside the first list you override the data setter and you there you can feed the second list dynamically.Keep in mind that you can inject data into the renderer where you have the nested list. Use binding also if you can (bind the list to the model data)... If you cannot manage it give me a private message or a reply to this tomorrow and I'll try to sketch something maybe you can send me your data structure and I'll mock something on that ... C From: postwick To: flexcoders@yahoogroups.com Sent: Monday, July 20, 2009 9:54:46 PM Subject: [flexcoders] Re: better option than repeater? Can you give me a brief example of how you would convert a single repeater with two nested repeaters into a List with custom item renderers? Thanks, Paul --- In flexcod...@yahoogro ups.com, claudiu ursica wrote: > > I'd use lists with custom item renderers. Repeaters are killers for > perormance even when you tell them to cache children > > C > > > > > _ _ __ > From: valdhor > To: flexcod...@yahoogro ups.com > Sent: Monday, July 20, 2009 9:45:44 PM > Subject: [flexcoders] Re: better option than repeater? > > > I use repeaters quite a lot and like them. > > What I do is to create a component (Which sometimes contains other > components) and the repeat that. > > In your situation, I would create a component with all of your check boxes > and save button. This component would have all of the functionality to > display which check boxes are selected as well as the save button click > handler. It would also have a public property that would take a data object. > On creation complete of this component, it would check the values of the data > object and set the check boxes appropriately. > > Then, I would repeat this component passing in the data objects returned from > the remote object call... > > > > > > HTH > > Steve > > --- In flexcod...@yahoogro ups.com, "postwick" wrote: > > > > I don't like repeaters. They are too clumsy. The biggest drawback is an > > inability to access values after the repeater has finish executing. It's > > not the same as, for example, looping over values and generating static > > HTML using ColdFusion. I seem to always end up having to navigate up and > > down through the parents/children of the objects and storing values I need > > in properties like name, automationName, etc. This is clumsy and messy. > > > > As an example, I have a section of my application where I want to list the > > names of people from a table, and for each person generate a set of > > checkboxes that designate access to certain areas of the application. For > > example: http://www.ubeek. com/images/ staffrepeater. jpg > > > > That is one main repeater that loops through the staff (records returned > > from remoteObject) and inside that repeater two other repeaters (also from > > remoteObjects) that generate the checkboxes. > > > > I can't simply pass the primary key of the staff for which the Save button > > was clicked, by putting click="saveClick( {staffRepeater. currentItem. > > SEQ})" into the button object. When I do that and click it I get an error > > about "repeater is not currently executing" or something like that. > > > > I don't want to resort to a datagrid and then "click to edit" then bring up > > a form kind of process. I want it as few clicks as possible. > > > > Is there a better way to display data in a custom way like this, without > > using repeaters, so that I can more easily access the child objects and > > their properties? > > > > Thanks, > > Paul > > >
[flexcoders] Re: better option than repeater?
Can you give me a brief example of how you would convert a single repeater with two nested repeaters into a List with custom item renderers? Thanks, Paul --- In flexcoders@yahoogroups.com, claudiu ursica wrote: > > I'd use lists with custom item renderers. Repeaters are killers for > perormance even when you tell them to cache children > > C > > > > > > From: valdhor > To: flexcoders@yahoogroups.com > Sent: Monday, July 20, 2009 9:45:44 PM > Subject: [flexcoders] Re: better option than repeater? > > > I use repeaters quite a lot and like them. > > What I do is to create a component (Which sometimes contains other > components) and the repeat that. > > In your situation, I would create a component with all of your check boxes > and save button. This component would have all of the functionality to > display which check boxes are selected as well as the save button click > handler. It would also have a public property that would take a data object. > On creation complete of this component, it would check the values of the data > object and set the check boxes appropriately. > > Then, I would repeat this component passing in the data objects returned from > the remote object call... > > > > > > HTH > > Steve > > --- In flexcod...@yahoogro ups.com, "postwick" wrote: > > > > I don't like repeaters. They are too clumsy. The biggest drawback is an > > inability to access values after the repeater has finish executing. It's > > not the same as, for example, looping over values and generating static > > HTML using ColdFusion. I seem to always end up having to navigate up and > > down through the parents/children of the objects and storing values I need > > in properties like name, automationName, etc. This is clumsy and messy. > > > > As an example, I have a section of my application where I want to list the > > names of people from a table, and for each person generate a set of > > checkboxes that designate access to certain areas of the application. For > > example: http://www.ubeek. com/images/ staffrepeater. jpg > > > > That is one main repeater that loops through the staff (records returned > > from remoteObject) and inside that repeater two other repeaters (also from > > remoteObjects) that generate the checkboxes. > > > > I can't simply pass the primary key of the staff for which the Save button > > was clicked, by putting click="saveClick( {staffRepeater. currentItem. > > SEQ})" into the button object. When I do that and click it I get an error > > about "repeater is not currently executing" or something like that. > > > > I don't want to resort to a datagrid and then "click to edit" then bring up > > a form kind of process. I want it as few clicks as possible. > > > > Is there a better way to display data in a custom way like this, without > > using repeaters, so that I can more easily access the child objects and > > their properties? > > > > Thanks, > > Paul > > >
Re: [flexcoders] Re: better option than repeater?
I'd use lists with custom item renderers. Repeaters are killers for perormance even when you tell them to cache children C From: valdhor To: flexcoders@yahoogroups.com Sent: Monday, July 20, 2009 9:45:44 PM Subject: [flexcoders] Re: better option than repeater? I use repeaters quite a lot and like them. What I do is to create a component (Which sometimes contains other components) and the repeat that. In your situation, I would create a component with all of your check boxes and save button. This component would have all of the functionality to display which check boxes are selected as well as the save button click handler. It would also have a public property that would take a data object. On creation complete of this component, it would check the values of the data object and set the check boxes appropriately. Then, I would repeat this component passing in the data objects returned from the remote object call... HTH Steve --- In flexcod...@yahoogro ups.com, "postwick" wrote: > > I don't like repeaters. They are too clumsy. The biggest drawback is an > inability to access values after the repeater has finish executing. It's not > the same as, for example, looping over values and generating static HTML > using ColdFusion. I seem to always end up having to navigate up and down > through the parents/children of the objects and storing values I need in > properties like name, automationName, etc. This is clumsy and messy. > > As an example, I have a section of my application where I want to list the > names of people from a table, and for each person generate a set of > checkboxes that designate access to certain areas of the application. For > example: http://www.ubeek. com/images/ staffrepeater. jpg > > That is one main repeater that loops through the staff (records returned from > remoteObject) and inside that repeater two other repeaters (also from > remoteObjects) that generate the checkboxes. > > I can't simply pass the primary key of the staff for which the Save button > was clicked, by putting click="saveClick( {staffRepeater. currentItem. SEQ})" > into the button object. When I do that and click it I get an error about > "repeater is not currently executing" or something like that. > > I don't want to resort to a datagrid and then "click to edit" then bring up a > form kind of process. I want it as few clicks as possible. > > Is there a better way to display data in a custom way like this, without > using repeaters, so that I can more easily access the child objects and their > properties? > > Thanks, > Paul >
[flexcoders] Re: better option than repeater?
Can you give me a brief example of code that would achieve the part where you say "create a component"? Keep in mind the number of checkboxes and their labels is not static. There are three tables involved: staff, modules, and queues. The checkboxes are created dynamically from the records returned from the modules and queues tables. --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > I use repeaters quite a lot and like them. > > What I do is to create a component (Which sometimes contains other > components) and the repeat that. > > In your situation, I would create a component with all of your check boxes > and save button. This component would have all of the functionality to > display which check boxes are selected as well as the save button click > handler. It would also have a public property that would take a data object. > On creation complete of this component, it would check the values of the data > object and set the check boxes appropriately. > > Then, I would repeat this component passing in the data objects returned from > the remote object call... > > > person="{Person(myStaff.currentItem)}" /> > > > > HTH > > > > Steve > > > --- In flexcoders@yahoogroups.com, "postwick" wrote: > > > > I don't like repeaters. They are too clumsy. The biggest drawback is an > > inability to access values after the repeater has finish executing. It's > > not the same as, for example, looping over values and generating static > > HTML using ColdFusion. I seem to always end up having to navigate up and > > down through the parents/children of the objects and storing values I need > > in properties like name, automationName, etc. This is clumsy and messy. > > > > As an example, I have a section of my application where I want to list the > > names of people from a table, and for each person generate a set of > > checkboxes that designate access to certain areas of the application. For > > example: http://www.ubeek.com/images/staffrepeater.jpg > > > > That is one main repeater that loops through the staff (records returned > > from remoteObject) and inside that repeater two other repeaters (also from > > remoteObjects) that generate the checkboxes. > > > > I can't simply pass the primary key of the staff for which the Save button > > was clicked, by putting click="saveClick({staffRepeater.currentItem.SEQ})" > > into the button object. When I do that and click it I get an error about > > "repeater is not currently executing" or something like that. > > > > I don't want to resort to a datagrid and then "click to edit" then bring up > > a form kind of process. I want it as few clicks as possible. > > > > Is there a better way to display data in a custom way like this, without > > using repeaters, so that I can more easily access the child objects and > > their properties? > > > > Thanks, > > Paul > > >
[flexcoders] Re: better option than repeater?
I use repeaters quite a lot and like them. What I do is to create a component (Which sometimes contains other components) and the repeat that. In your situation, I would create a component with all of your check boxes and save button. This component would have all of the functionality to display which check boxes are selected as well as the save button click handler. It would also have a public property that would take a data object. On creation complete of this component, it would check the values of the data object and set the check boxes appropriately. Then, I would repeat this component passing in the data objects returned from the remote object call... HTH Steve --- In flexcoders@yahoogroups.com, "postwick" wrote: > > I don't like repeaters. They are too clumsy. The biggest drawback is an > inability to access values after the repeater has finish executing. It's not > the same as, for example, looping over values and generating static HTML > using ColdFusion. I seem to always end up having to navigate up and down > through the parents/children of the objects and storing values I need in > properties like name, automationName, etc. This is clumsy and messy. > > As an example, I have a section of my application where I want to list the > names of people from a table, and for each person generate a set of > checkboxes that designate access to certain areas of the application. For > example: http://www.ubeek.com/images/staffrepeater.jpg > > That is one main repeater that loops through the staff (records returned from > remoteObject) and inside that repeater two other repeaters (also from > remoteObjects) that generate the checkboxes. > > I can't simply pass the primary key of the staff for which the Save button > was clicked, by putting click="saveClick({staffRepeater.currentItem.SEQ})" > into the button object. When I do that and click it I get an error about > "repeater is not currently executing" or something like that. > > I don't want to resort to a datagrid and then "click to edit" then bring up a > form kind of process. I want it as few clicks as possible. > > Is there a better way to display data in a custom way like this, without > using repeaters, so that I can more easily access the child objects and their > properties? > > Thanks, > Paul >
[flexcoders] firefox/mozilla file upload issue
Hi Coders, I'm having an issue uploading a file to a server only when performed using firefox or chrome..IE 6 + 7 work just fine, so I was wondering what the issue might be and how does one get around it? when I upload it to the server that i'm running my web app on it loads no problem, but when i try to load it to a remote server (a server other than the one my client(swf) and web app are running on) the file gets created, but the data never makes it over. I'm getting a 500 Internal Server error but no description as to why i'm getting that error...and yes, i did use Charles to see what's on the wire... TIA percy
[flexcoders] better option than repeater?
I don't like repeaters. They are too clumsy. The biggest drawback is an inability to access values after the repeater has finish executing. It's not the same as, for example, looping over values and generating static HTML using ColdFusion. I seem to always end up having to navigate up and down through the parents/children of the objects and storing values I need in properties like name, automationName, etc. This is clumsy and messy. As an example, I have a section of my application where I want to list the names of people from a table, and for each person generate a set of checkboxes that designate access to certain areas of the application. For example: http://www.ubeek.com/images/staffrepeater.jpg That is one main repeater that loops through the staff (records returned from remoteObject) and inside that repeater two other repeaters (also from remoteObjects) that generate the checkboxes. I can't simply pass the primary key of the staff for which the Save button was clicked, by putting click="saveClick({staffRepeater.currentItem.SEQ})" into the button object. When I do that and click it I get an error about "repeater is not currently executing" or something like that. I don't want to resort to a datagrid and then "click to edit" then bring up a form kind of process. I want it as few clicks as possible. Is there a better way to display data in a custom way like this, without using repeaters, so that I can more easily access the child objects and their properties? Thanks, Paul
Re: [flexcoders] create www.example123.com/#/testing
Thanks Tom,are there any disadvantage using deep linking?? On 7/20/09, Tom Chiverton wrote: > On Sunday 19 Jul 2009, yonghan79 wrote: >> Hi all,i want to ask does anyone ever before create flex 3 application >> that >> for example i click on the menu testing then the address on the browser >> address will be like www.example123.com/#/testing, > > This is Deep Linking - > http://livedocs.adobe.com/flex/3/html/help.html?content=deep_linking_6.html > > > -- > Helping to quickly establish internet collaborative frictionless corporate > platforms as part of the IT team of the year, '09 and '08 > > > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England and > Wales under registered number OC307980 whose registered office address is at > Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A > list of members is available for inspection at the registered office > together with a list of those non members who are referred to as partners. > We use the word ?partner? to refer to a member of the LLP, or an employee or > consultant with equivalent standing and qualifications. Regulated by the > Solicitors Regulation Authority. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and may > be confidential or legally privileged. If you are not the addressee you > must not read it and must not use any information contained in nor copy it > nor inform any person other than Halliwells LLP or the addressee of its > existence or contents. If you have received this email in error please > delete it and notify Halliwells LLP IT Department on 0870 365 2500. > > For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Re: Dumb overview questions -- newbie
On Friday 17 Jul 2009, Julien Nicoulaud wrote: > When you say "I want an interface file that the designers can "prettify" > without stepping on the developers toes and visa versa", I think this is > possible but you will have to pay a little attention to your application > design. Just using Code Behind may be enough here. You might want to look at things like Adobe Catalyst too, though I'm not 100% sure you can round trip from Builder to Catalyst and back again yet. -- Helping to adaptively promote patterns as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Flex builder Linux Adobe's Plans
On Monday 20 Jul 2009, Alan Burns wrote: > Have you added me to the Flexcoders group in Yahoo then? How exciting! Ahh the power of bcc to confuse. -- Tom Chiverton Developer tom.chiver...@halliwells.com 3 Hardman Square, Manchester, M3 3EB This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word “partner” to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Flex builder Linux Adobe's Plans
> Ahh the power of bcc to confuse. Oops. Confused myself :-) This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word “partner” to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] Flex builder Linux Adobe's Plans
On Sunday 19 Jul 2009, nospam allowed wrote: > http://bugs.adobe.com/jira/browse/FB-19053 > For those of you using the Flex Builder on Linux please comment that you > wish to see it stay on Linux. Please, *please*, **please* do not just comment ! Please *vote* as well. Adobe have repeatedly said that the number of votes sways them, and this has been demonstrated in the past - so vote :-) Just as an update, this issue is still the most popular one on the whole issue tracker by a large margin (#FP-444 has taken 2 years to get to ~75 less votes, #FB-19053 has only been open 3 months), and has nearly *~3 times more votes than the next nearest Flex Builder bug*. -- Helping to dynamically improve e-tailers as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
Re: [flexcoders] create www.example123.com/#/testing
On Sunday 19 Jul 2009, yonghan79 wrote: > Hi all,i want to ask does anyone ever before create flex 3 application that > for example i click on the menu testing then the address on the browser > address will be like www.example123.com/#/testing, This is Deep Linking - http://livedocs.adobe.com/flex/3/html/help.html?content=deep_linking_6.html -- Helping to quickly establish internet collaborative frictionless corporate platforms as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] FB successfully compiling but not in ANT with compc
Hello all, I am compiling a library successfully in Flex Builder but when i try with ANT it gives me a compiling error: /Users/bounce/Documents/myproj/CommonLibrary/src/net/myproj/models/Update.as(11): col: 14 Error: Type was not found or was not a compile-time constant: Company. [exec] public var Company:net.myproj.models.Company; Now admitedly it's not nice to have the varaible name the same as the type Class but it works in FB so it should work with compc. Any idea what FB is doing differently? Here is my ANT script: The "compc.exe" property must be set in ${build.dir}/build.properties. The "mxmlc.exe" property must be set in ${build.dir}/build.properties. Thanks for your help.
[flexcoders] Re: Weborb serialzing issue
You are right, .NET cannot guess that my value should be a float. Having said this an issue still remains. I believe Flex types any numerical value as a "Number" in an Object. The problem is that when we debug on the .Net side we get an int for the corresonding Number in flex. An int is only encoded on one byte and therefor cannot hold decimal values. Weborb should translate a "Number" to a "double" and then casting could work. I have read this on the weborb forum but i'm not sure the issue was resolved. Anyway, to circumvent my problem i am sending a JSON object instead of an AS Object and saving it as is in the DB. Thanks for your help. T. --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > With no strong typing on either the Flex or .NET side, how is .NET supposed > to figure out the data type for you? > > WebORB is just a set of classes and methods built in a specific language > (.NET in this case). If .NET passes WebORB a chunk of bytes, how is WebORB > meant to figure out that it contains a string, int, float or whatever? > > You will have to type these properties at some point in time. > > If it were me, I would try to coerce a value to an int first. If there was an > error, try a float. If there is still an error, try a string. > > > --- In flexcoders@yahoogroups.com, "gordofeatherfoot" > wrote: > > > > First off thanks for your reply, > > > > 1. The corresonding object on the .NET side is a Dictionnary (which is the > > equivalent of the Object in AS3 I believe). So the properties are not typed. > > > > 2. I can't send a string and explicitly cast it to a float because the > > object i am sending is dynamic (this is why we use the generic Object in > > AS3). It will have an unknown numer of properties of various types. > > > > I could setup a mechanisme whereby i send the type of the property with the > > value and then parse the object on the .net side and cast each property to > > it's specific type. > > But that seems very heavy for this simple problem. > > > > I would have excpected weborb to be able to make the difference between an > > intger and a float in a dynamic object comming from Flex. > > > > > > --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > > > > > I don't use .NET (I use PHP) but two things off the top of my head... > > > > > > The property of the corresponding object on the .NET side is typed as an > > > int. > > > > > > You are actually sending what looks like an int so .NET is coercing it > > > for you. > > > > > > You could also try sending the property as a string and then coercing it > > > to a float on the .NET side. > > > > > > > > > --- In flexcoders@yahoogroups.com, "gordofeatherfoot" > > > wrote: > > > > > > > > Hello all, > > > > > > > > I don't know if it this is the right place to ask but i have had little > > > > (not to say no) feedback from the weborb forum, so i apologize if this > > > > is not appropriate. > > > > > > > > I am sending a simple AS3 Object to my .net backend through weborb. > > > > This object has a property 'foo' with a decimal value. This object gets > > > > mapped to a dictionnary in .net but the value of 'foo' is serialized to > > > > an integer. > > > > > > > > Anyone have an idea of why this is? > > > > > > > > Thanks, > > > > Tony. > > > > > > > > > >
[flexcoders] Re: Timeline actionscript in embedded MovieClips
Thanks for the link. That helped. >From what i have understood it's not enough to link the symbol and the class >in flash, you also have to annotate the class with the EMBED tag to make a >reference to the symbol in flash so that the flex compiler can hook the two >together at compile time. I have to say that, particularly if you need to wrap your flash MovieClips in flex UIComponents, that i didn't expect the integration of flash within flex apps to be such an arduous task.
Re: [flexcoders] Re: ModuleLoader does not "really" unload ?
OK, the fact is I cannot run my application in debug mode ;) But I solved my problem by manually stopping the timers before unloading the modules. Thanks for the help ! 2009/7/20 valdhor > > > When I run my application in Debug mode I see messages in the console when > modules are loaded and unloaded. Lines begin with [SWF] when loaded and > [Unload SWF] when unloaded - no need to trace anything. > > > --- In flexcoders@yahoogroups.com , Julien > Nicoulaud wrote: > > > > Ok, I had heard of that: objects are not deleted by the garbage collector > if > > there still are event listeners set up without using weakReference... > > But the fact is that the Timer was only a really simplified example: in > the > > real case, each of my module is composed of a full Cairngorm stack, so I > > don't control most of the event listeners... > > > > I thought unloading the module would "destroy" anything internal to this > > module... > > > > @valdhor: What do you mean by "Does the Flex console show that the module > > has unloaded?" What should I trace exactly ? > > > > Thanks for the replies ! > > > > 2009/7/17 ag_rcuren > > > > > > > > > > > Could it be because you have a Timer with an event listener setup which > > > mean there is a reference to the Module. Wouldn't you have to first > remove > > > the event listener so there would be no references to that module? You > might > > > be able to use a weak reference on the listener. > > > > > > > > > --- In flexcoders@yahoogroups.com > > > 40yahoogroups.com>, > > > "valdhor" wrote: > > > > > > > > Does the Flex console show that the module has unloaded? If not, you > > > still have something attached to the module or the module has not > released > > > all its resources. > > > > > > > > > > > > --- In flexcoders@yahoogroups.com > > > > 40yahoogroups.com>, Julien > > > Nicoulaud wrote: > > > > > > > > > > Hi everyone. > > > > > > > > > > I have an application (a window manager) that loads modules using > > > > > ModuleLoader. When I unload a module, it seems it is not properly > > > unloaded: > > > > > if i setup a Timer that shows an Alert every X seconds in the > module, > > > the > > > > > Alert still shows every X seconds after the module is unloaded. > > > > > > > > > > Any hints on the subject ? > > > > > > > > > > > > > > > > > > > > > > >
[flexcoders] Re: ModuleLoader does not "really" unload ?
When I run my application in Debug mode I see messages in the console when modules are loaded and unloaded. Lines begin with [SWF] when loaded and [Unload SWF] when unloaded - no need to trace anything. --- In flexcoders@yahoogroups.com, Julien Nicoulaud wrote: > > Ok, I had heard of that: objects are not deleted by the garbage collector if > there still are event listeners set up without using weakReference... > But the fact is that the Timer was only a really simplified example: in the > real case, each of my module is composed of a full Cairngorm stack, so I > don't control most of the event listeners... > > I thought unloading the module would "destroy" anything internal to this > module... > > @valdhor: What do you mean by "Does the Flex console show that the module > has unloaded?" What should I trace exactly ? > > Thanks for the replies ! > > 2009/7/17 ag_rcuren > > > > > > > Could it be because you have a Timer with an event listener setup which > > mean there is a reference to the Module. Wouldn't you have to first remove > > the event listener so there would be no references to that module? You might > > be able to use a weak reference on the listener. > > > > > > --- In flexcoders@yahoogroups.com , > > "valdhor" wrote: > > > > > > Does the Flex console show that the module has unloaded? If not, you > > still have something attached to the module or the module has not released > > all its resources. > > > > > > > > > --- In flexcoders@yahoogroups.com , Julien > > Nicoulaud wrote: > > > > > > > > Hi everyone. > > > > > > > > I have an application (a window manager) that loads modules using > > > > ModuleLoader. When I unload a module, it seems it is not properly > > unloaded: > > > > if i setup a Timer that shows an Alert every X seconds in the module, > > the > > > > Alert still shows every X seconds after the module is unloaded. > > > > > > > > Any hints on the subject ? > > > > > > > > > > > > > >
[flexcoders] Re: Synchronizing two ArrayCollections
Actually after thinking about it, I should just add the 2nd Webservice result to the first ArrayCollection data model. They both share the same field 'Ticker' but have different fields thereafter. The first result is Array_OrdExt and the second is Arrray_Exits. The Array Build routines for both are below. [Bindable] public var Array_Exits:ArrayCollection; public function Exits_Result(e:ResultEvent):void { Array_Exits = e.result as ArrayCollection; for (var i:int=0;i wrote: > > I need to create a DataModel.as that will synchronize two > arraycollections and allow me to update a Form based on the contents of > the 2nd arraycollection.index.item(s) when the first arraycollection > selecteditem is clicked as the dataprovider for a datagrid. > > > The 2 arraycollections are populated via webservices from sql database, > (which I can not InnerJoin from 4 different tables due to > performance)... so I end with two separate arraycollections: > > One populates a Datagrid, the other is just resident in an > ArrayCollection: Here is some of the sample code: > > >headerText="Ticker"/> >headerText="Kind" > dataField="Kind" > itemRenderer="com.steury.baseClasses.CellFieldTrd"/> >labelFunction="{myPrice}" > dataField="EnterPrice" > headerText="EnterPrice"/> >labelFunction="{myClosePr}" > dataField="Close" > headerText="Price"/> >headerText="Profit" > dataField="Profit" > labelFunction="{perCent}" > itemRenderer="com.steury.baseClasses.CellFieldInt"/> > > > __ > >width="100%" height="50%" > textAlign="center" > dataProvider="{Array_OrdExt}" > itemClick="onTick4()" > > > One Array is Array_OrdEx and the other Array is Array_Exits. > > When I select an item on the dgOrdExt DataGrid, I simply want to > populate the text values of a Form with the appropriate Items in the > second datagrid... Here is the trick... they both share the same > 'Ticker' value, but just different other variables... so it's not too > difficult, it's just trickier than my novice programming skills can > handle - easily. > > [Bindable] public var ExtTicker:String; > > So the OnTick4() event will contain the following code: > > ExtTicker=dgOrdExt.selectedItem.Ticker; > > Then I need to somehow update the form as follows: > formOrdExt.tiHigh.text=dgOrdExt.selectedItem.High; > formOrdExt.tiLow.text=dgOrdExt.selectedItem.Low > > formOrdExt.tiStrategy.text=Array_Exists.getItemAt({ExtTicker}).Strategy; > > Or I need to build an DataModel.as class to sychronize the two > arraycollections... I have thought about using source.concat but that > will append the two collections and I will have 2 of every Ticker, where > I only want 1 of every Ticker with the appropriate value (Open, High, > Low, SellPrice, Profit, BudyDate, Exit, Strategy, etc). > > Can someone give me a hand? > CS >
Re: [flexcoders] Flex cache problem
can i know the why u want to clear cache? if your facing problem while loading a external file better add this "http://domainname/"+"?cachebuster="+new Date().getTime(); pass the URL to the URL Loader From: yamuna priya To: flexcoders@yahoogroups.com Sent: Sunday, 19 July, 2009 8:31:45 PM Subject: [flexcoders] Flex cache problem Hi Can any one help for clear cache(SWF) using flex? Adance Thanks... Love Cricket? Check out live scores, photos, video highlights and more. Click here. Looking for local information? Find it on Yahoo! Local http://in.local.yahoo.com/
[flexcoders] Drag and drop
Hi all, Am new to flex. Was learning with examples given in flex3 livedoc. http://livedocs.adobe.com/flex/3/html/help.html?content=dragdrop_1.html There i came across this drag and drop example. http://www.adobe.com/2006/mxml";> here to set drag initiator , Canvas(event.currentTarget).mouseX; this x will be the x during mouse button release . Instead , I want the x and y of the shadow of the image (ie the border of the image). How will i set it? Please help. -- View this message in context: http://www.nabble.com/Drag-and-drop-tp24567297p24567297.html Sent from the FlexCoders mailing list archive at Nabble.com.
[flexcoders] flash/flex global error handler
In the Adobe bug system (http://bugs.adobe.com/jira/browse/FP-444) i found promising solution by Pavel Simek >> Please add an "onerror" parameter to Flash Player parameters that can be assigned by a javascript function name. Any error is then passed to this function (only if "allowscriptaccess" is set to true, of course). Then, developer can pass the error object back to Flash via ExternalInterface. Simple, sufficient. Inspired by Silverlight. << I think tat onerror is error event handler of tag. I'm testing but plashplayer nothing executes. Below my code. I think that someone tested with maybe with success package { import flash.display.Sprite; import flash.events.MouseEvent; import flash.external.ExternalInterface; import flash.utils.setTimeout; [SWF(width=500, height=500, backgroundColor=0x00)] public class ErrorInSpriteTest extends Sprite { public function ErrorInSpriteTest() { super(); ExternalInterface.call('onFlashPlayerError', 'test js handle') var s:Sprite=new Sprite() addChild(s) s.graphics.beginFill(0xff) s.graphics.drawCircle(100, 100, 50) s.graphics.endFill() s.addEventListener(MouseEvent.MOUSE_DOWN, function(e:MouseEvent):void { triggerError('trigger 3') }) setTimeout(triggerError, 1000, 'trigger 2') } private function triggerError(msg:String):void { throw new Error(msg) } } } firebug console traces 'test js handle' but nothing more
Re: [flexcoders]using sdk 4 on flex 3
On Thursday 16 Jul 2009, Gustavo Duenas wrote: > I did as you said and nothing happens, and odd error that he cannot > load textlayout.swc or something, Might just have been missing from the libraries assigned to the project. -- Helping to synergistically evolve synergistic eligible CEOs as part of the IT team of the year, '09 and '08 This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com.
[flexcoders] Re: Flex cache problem
http://tech.groups.yahoo.com/group/flexcoders/message/135077 --- In flexcoders@yahoogroups.com, yamuna priya wrote: > > Hi > Can any one help for clear cache(SWF) using flex? > > > Adance Thanks... > > > > > Yahoo! recommends that you upgrade to the new and safer Internet > Explorer 8. http://downloads.yahoo.com/in/internetexplorer/ >