Re: [flexcoders] getting the sum of values in list datafield.

2014-08-29 Thread Scott Fanetti scott.fane...@gmail.com [flexcoders]
IMHO - you should create a separate bindable string and set the value to that 
instead of directly setting the .text property of a text field.  Your reduce 
function seems ok - just run each object through the filter function to see if 
it returns true. Only objects that return true should be added to the sum. 

You are 99% of the way there.  What is tripping you up? 

Sent from my iPhone

 On Aug 29, 2014, at 4:55 AM, stinas...@yahoo.com [flexcoders] 
 flexcoders@yahoogroups.com wrote:
 
 Hello, i have a flex list that is populated by an arraycollection. in the 
 arraycollection i have a field subTotal and i would like to calculate the 
 subtotals from that field and pin them to a text component and i would like 
 to do that even when the list is filtered. below is my code
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=vertical
 width=100%
 height=100%
 verticalAlign=top
 verticalGap=0
 paddingTop=0
 paddingBottom=0
 paddingLeft=0
 paddingRight=0
 xmlns:ns1=ascript.*
 creationComplete=init()
 initialize=initDate()
 xmlns:ns2=components.*
 
 mx:Style source=css/styleSheet.css/
 
 mx:Script
 ![CDATA[
 import components.newEntryForm;
 import mx.collections.ArrayCollection;
 import mx.controls.Alert;
 import mx.managers.CursorManager;
 import mx.managers.PopUpManager;
 import mx.rpc.events.ResultEvent;
 import mx.events.CollectionEvent;
 
 protected const MAX_DATE:Date=new Date(2020, 11, 31);
 
 /*** code to Filter based on Date Range 
 */
 
 protected const MIN_DATE:Date=new Date(2014, 0, 1);
 
 /*** Start Pop Ups */
 private var add_win:newEntryForm;
 
 
 /*** code to get Expense Details 
 */
 [Bindable]
 private var expenseAr:ArrayCollection;
 
 protected function arrColl_filterFunc(item:Object):Boolean
 {
 var cDate:Number=Date.parse(item.hireDate);
 
 if (!sDate || !eDate)
 {
 return true;
 }
 
 if (sDate.selectedDate  eDate.selectedDate)
 {
 return (sDate.selectedDate.time = cDate)  
 (eDate.selectedDate.time = cDate);
 }
 else if (sDate.selectedDate)
 {
 return sDate.selectedDate.time = cDate;
 }
 else if (eDate.selectedDate)
 {
 return eDate.selectedDate.time = cDate;
 }
 else
 {
 return true;
 }
 
 //expenseAr.addEventListener(CollectionEvent.COLLECTION_CHANGE, calculateSum);
 }
 
 protected function initDate():void
 {
 sDate.selectedDate=MIN_DATE;
 sDate.selectableRange={rangeStart: MIN_DATE, rangeEnd: 
 MAX_DATE};
 
 eDate.selectedDate=MAX_DATE;
 eDate.selectableRange=sDate.selectableRange;
 }
 
 private function createdaddPopup():void
 {
 add_win=newEntryForm(PopUpManager.createPopUp(this, 
 newEntryForm, true));
 }
 
 private function expenseResult(event:ResultEvent):void
 {
 expenseAr=event.result as ArrayCollection;
 expenseAr.filterFunction=arrColl_filterFunc;
 expenseAr.refresh();
 }
 
 private function init():void
 {
 moRentalsSvc.getExpense();
 
 //expenseAr.addEventListener(CollectionEvent.COLLECTION_CHANGE, calculateSum);
 }
 
 public function calculateSum(event:CollectionEvent):void
 {
 var amt:Number=0;
 var n:int=expenseAr.length;
 for (var i:int=0; i  n; i++)
 {
 var expenseEntry:Object=expenseAr.getItemAt(i);
 amt+=expenseEntry.subTotal;
 }
 sum.text=ugxftr.format(amt.toString());
 }
 ]]
 /mx:Script
 
 mx:RemoteObject id=moRentalsSvc
  destination=ColdFusion
  source=moRentals.src.CFCs.crud
  showBusyCursor=true
  
 fault=CursorManager.removeBusyCursor();Alert.show(event.fault.message)
 
 mx:method name=getExpense
  

Re: [flexcoders] Re: Future Scope of Flex

2014-08-18 Thread Scott Fanetti scott.fane...@gmail.com [flexcoders]
Wow - I really don't think this is the forum for character assassination. I've 
been a polyglot developer and architect for 20 years.  One thing in technology 
is constant - that is change.  

Adapt.  It is childish to cling to a technology like a fanboy.  

Dynamic languages use different paradigms than strongly typed languages.  In 
these contexts functional styles and extension through composition are favored 
over extension through inheritance.  But these are all just tools for 
communication between the dev and the user.  

The users have chosen a route that no longer needs flex/flash. That is neither 
good nor bad - it just is.  

You may dislike parts of technology A and think it's inferior to technology B - 
but have you considered the notion that possibly you may be trying I hammer 
nails with a saw? You may dislike that JS does not have the type safety of AS. 
But if you are relying on type checking you are missing the boat. The compiler 
can't check if your logic is bad. It can only check that something like tab a 
is in slot b. 

You still have to unit test. All the skills you bring to solve a problem are 
only marginally helped by the compiler bitching that a class does not have a 
method to support an interface.  There is nothing inherently bad about 
prototypical inheritance as opposed to class based inheritance. As a matter of 
fact you typically don't need to use inheritance in JS.  

Tell me - is it cleaner to devolve functionality into representations that can 
be decorated onto any object - and you test the functionality itself? Or to 
HAVE to inherit from class A in order to get the features if class A? You can't 
do multiple inheritance in AS - so you have to hack around with interfaces and 
utils or you must repeat yourself.  

In JS - just decorate what you need with what you need it to do.  

It's all good bro. I'm just saying that as a seasoned flex dev that feared 
moving to JS - in my experience - it was an easy transition.  But whatever. 
Have a great day!

And I accept the apology you certainly forgot to add by calling me a manager 
:). I realize it's hard to be civil when someone is wrong on the internet.  

Sent from my iPhone

 On Aug 18, 2014, at 9:50 AM, danielpr...@yahoo.com [flexcoders] 
 flexcoders@yahoogroups.com wrote:
 
  js is almost exactly like Actionscript.
 
 Typical of a JS advocate, no real knowledge of object oriented structures and 
 concepts. Bet this is by another manager type that doesn't know an array from 
 a variable (actually that WOULD be the same level of knowledge in this case 
 wouldn't it.)
 


[flexcoders] Re: Future Scope of Flex

2014-08-16 Thread Scott Fanetti scott.fane...@gmail.com [flexcoders]
Technologies come and go. When I was a kid - the coolest thing in the world was 
the NextStep computer. It died but eventually reemerged as the Mac OS. 
Languages come and go as well. Flex and AS were great for a time - but the 
proprietary nature of the language killed it a few years ago.  The web in 
general has moved away from plugin based interfaces.  As standards have come 
together - the browser makes have adopted js as the language of choice with 
CSS/HTML for templates and styles. 

That's not something to fear - that's just the way technology works. It's a 
tool.  

JS is easy to learn - so learn it.  The tools available today in various 
platforms are easy to pick up as well. JS has some truly great parts - like 
promises - that were never really implemented in Flex/flash.  

I think it's a good idea as a dev to always keep learning.  It doesn't matter 
that tech A is killed by tech B --- if you keep learning you will always have a 
job. 

Sent from my iPhone

Re: [flexcoders] Re: Future Scope of Flex

2014-08-16 Thread Scott Fanetti scott.fane...@gmail.com [flexcoders]
I built the Rosetta Stone user interface in flex and the EA Pogo flex games 
interface and online store were also built by me. I was using flash when it was 
the Futuresplash player. I was a very early adopter. 

Adobe F'd it in the A  by mismanaging the technology that WAS really great.  
But - time goes on and you change technologies.  I wrote a ton of Lingo in 
director too - along with vbscript for IE only interfaces. I've had my share of 
dead end technologies.  Technologies rise and fall - a good dev realizes it's 
all pretty much the same from tech to tech - the syntax changes but the 
patterns are transferable. 

Now though - there is no justifiable reason to do any development in flex.  
Adobe has given up on it. It is not going to be a viable platform for the 
future.

Luckily - js is almost exactly like Actionscript. Anybody that is good at AS 
can write JS in no time. 

Sent from my iPhone

 On Aug 16, 2014, at 8:22 PM, danielpr...@yahoo.com [flexcoders] 
 flexcoders@yahoogroups.com wrote:
 
 I notice you don't compare it to your prior experience developing user 
 interfaces in flash?
 
 


Re: [flexcoders] Problems creating/updating DB record with selection from DropDownList

2012-02-05 Thread Scott Fanetti
It looks like you are setting the status on the change in the drop down list 
but not casting it. Is that your issue? The change handler does not seem 
attached - what is triggering it?  When you debug it - what are the contents of 
the drop down list data provider?  

Sent from my iPhone

On Feb 5, 2012, at 8:31 AM, hermeszfineart hermeszfine...@comcast.net wrote:

 I have been trying to migrate certain form fields from s:TextInput/ to 
 s:DropDownList/ where the DB columns have foreign keys to different tables 
 (i.e. Status, Categories, Dimensions) so the user does not need to type the 
 values. When I attempt to update the DB record it populates the field with 
 [object Status]. This implementation is primarily for the back office 
 management of the application but some of this type of functionallity will be 
 used to drive the front end as well in the future.
 
 I know I must be missing something very simple so any help is appreciated.
 
 Here is the applicable code:
 
 fx:Script
 
 ![CDATA[
 
 import mx.binding.utils.BindingUtils;
 
 import mx.collections.IList;
 
 importmx.collections.errors.ItemPendingError;
 
 import mx.controls.Alert;
 
 import mx.events.FlexEvent;
 
 import mx.rpc.AsyncResponder;
 
 import mx.rpc.AsyncToken;
 
 import mx.rpc.Fault;
 
 import mx.rpc.events.FaultEvent;
 
 import mx.rpc.events.ResultEvent;
 
 import spark.events.GridItemEditorEvent;
 
 import spark.events.GridSelectionEvent;
 
 import spark.events.IndexChangeEvent;
 
 import valueObjects.Categories;
 
 import valueObjects.Dimensions;
 
 import valueObjects.Editions;
 
 import valueObjects.Mediums;
 
 import valueObjects.Status;
 
 import valueObjects.Styles;
 
 import valueObjects.Subjects;
 
 [Bindable] private var _selectedStatus:String = Available ;
 
 private function statusChanged(event:IndexChangeEvent):void{
 
 if (event.newIndex == -1) return;
 
 _selectedStatus = statusList.getItemAt(event.newIndex) as String;
 
 }
 
 protected function button_clickHandler(event:MouseEvent):void{
 
 originals.inventoryno = inventorynoTextInput.text;
 
 originals.title = titleTextInput.text;
 
 originals.price = priceTextInput.text;
 
 originals.status = _selectedStatus; // Original version -- originals.status = 
 statusTextInput.text:
 
 originals.category = categoryTextInput.text;
 
 // Output omitted
 
 if (originals.originalid==0){
 
 createOriginalResult.token = artServices.createOriginal(originals);
 
 }
 
 else{
 
 updateOriginalResult.token = artServices.updateOriginal(originals);
 
 }
 
 }
 
 ]]
 
 /fx:Script
 
 fx:Declarations
 
 s:AsyncListView id=statusList list={getAllArtStatusResult.lastResult}/ 
 !-- DataProvider --
 
 /fx:Declarations
 
 !-- output omitted for brevity --
 
 s:FormItem label=Status styleName=formLabel
 
 s:TextInput id=statusTextInput styleName=formContent 
 text={originals.status}/ !-- this is one of the fields I am trying to 
 replace --
 
 s:DropDownList id=dropDownStatusList
 
 labelField=status styleName=formContent 
 skinClass=CustomSkins.CustomDropDownListSkin dataProvider={statusList} 
 prompt={originals.status}
 
 change={_selectedStatus = dropDownStatusList.selectedItem} 
 creationComplete=dropDownList_creationCompleteHandler(event)
 
 symbolColor=#FF borderColor=#c3c3c3 width=157 color=#00
 
 /s:DropDownList
 
 /s:FormItem
 
 


Re: [flexcoders] You are the product

2011-12-17 Thread Scott Fanetti
Do you have any examples that look better than what flash 5 delivered?  

Sent from my iPhone

On Dec 17, 2011, at 1:44 PM, Guy Morton g...@alchemy.com.au wrote:

 Using HTML/JS/CSS you CAN do apps that look every bit as nice as Flash apps, 
 and they run everywhere.
 
 
 Yes, there are challenges. Yes, IE is still a problem, if you choose to 
 support it directly (personally I like the Google Chrome Frame solution to 
 IE), but libraries such as JQuery and Raphael solve a lot of problems. 
 
 Yes, you will have to learn some new stuff. But, on the upside, you get a 
 true cross-platform delivery - the ONLY one that delivers on all devices.
 
 Guy
 
 
 On 17/12/2011, at 8:36 AM, Scott Fanetti wrote:
 
  
 
 Except for the fact that HTML 5 apps look like shit compared to flash, the 
 run like shit, they can be freely stolen by anyone - and generally they rely 
 on lots of browser and CSS hacks to be pseudo consistent. 
 
 Html5 really sucks - its just a shame the world has decided Flash must no 
 longer be used for anything. 
 
 Sent from my iPhone
 
 On Dec 16, 2011, at 1:15 PM, Guy Morton g...@alchemy.com.au wrote:
 
  
 SVG + Javascript + Canvas ARE the equivalent to Flash in the web standards 
 world.
 
 
 
 On 17/12/2011, at 5:16 AM, Bill Brutzman wrote:
 
  
 
 My sense is that Adobe has realized that it close to impossible to port 
 Flash to the staggering proliferation of tablets, smart phones, and other 
 devices.
 
  
 
 Does anybody expect Flash to run on a Kindle or a Nook?
 
  
 
 In my little world of fantasy… I wish I knew how Flash worked… Perhaps a 
 standards-based Flash lite could be cranked into HTML-6.
 
  
 
 --Bill
 
  
 
 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On 
 Behalf Of Kevin MacDonald
 Sent: Friday, December 16, 2011 12:50 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] You are the product
 
  
 
  
 
 Good points. Thanks for responding. I'm not sure why you conflate me 
 knocking Adobe for a lack of willingness to learn. I code on a daily basis 
 in half a dozen languages for a small company struggling to reach 
 profitability. Our client application is one piece of that. The 'learning' 
 in this case is that some companies can be trusted more than others. Adobe 
 puts forth a consistent marketing message to software developers: Trust 
 us! Follow us!, and they consistently fail to live up to that in order to 
 sell us the next round of developer tools. Microsoft, while clearly 
 capable of various brands of skulduggery, has consistently maintained a 
 level of loyalty to their developers, and it has succeeded famously for 
 them. Have you every noticed that 15 year old programs still run on 
 Windows 7? I don't expect that from Adobe. But the heavy sell job on AIR 
 followed by stepping at arms length from it irks me. 
 
 Kevin
 
 
 2011/12/16 Csomák Gábor csom...@gmail.com
 
  
 
 technology simply changes. i met a guy who was the lead engineer of 
 commodore 64. do you think when he was on the top of his career, he 
 stopped learning? this segment changes a lot. it is a lifelong learning. 
 get used to it.
 
  
 
 html5 is not ready. even w3c says it'll be in 2014 (as i remember). and i 
 think, it won't kill air. neither flash. of course it will depend on a lot 
 of things, but the two technologies are good in different segments. you 
 cannot do a prezi.com in html5, and you cannot do an entire webpage in 
 flash. (login remembers will not work, etc...)
 
 the key is to know both, and know when to use what. 
 
 On Wed, Dec 14, 2011 at 7:02 PM, Kevin MacDonald 
 kevinmacdon...@gmail.com wrote:
 
  
 
 Hello developers,
 
  
 
 I have come to some unfortunate conclusions about how Adobe operates. I 
 would be interested to get your opinions on the matter. 
 
  
 
 Some years ago I helped build out a desktop application using Macromedia 
 Director. It ran on both Mac and Windows, and was heavily backed by web 
 services. In principle it was much like an Adobe AIR app might be today. 
 After a few years Adobe bought Macromedia Director, with promises to the 
 developer community that they would continue to support it. They came out 
 with a few maintenance releases that were extremely buggy, enough so that 
 we tried to roll back to the previous version. However, Adobe made sure 
 there were some gotchas that made it painful to either stay on the current 
 version or roll back. Shortly thereafter they killed Director altogether. 
 
  
 
 An Adobe evangelist came to our office and sold us hard on moving to Adobe 
 AIR, which we did. We completely re-wrote our application on that 
 platform. Now, several years later, Adobe is very obviously moving away 
 from AIR and towards HTML5, again with promises to their loyal developers 
 to continue supporting it. 
 
  
 
 Based on their history what I expect Adobe to do is kill AIR before too 
 long. And you should have no doubts that they can make it very painful to 
 remain on that platform

Re: [flexcoders] You are the product

2011-12-16 Thread Scott Fanetti
Except for the fact that HTML 5 apps look like shit compared to flash, the run 
like shit, they can be freely stolen by anyone - and generally they rely on 
lots of browser and CSS hacks to be pseudo consistent. 

Html5 really sucks - its just a shame the world has decided Flash must no 
longer be used for anything. 

Sent from my iPhone

On Dec 16, 2011, at 1:15 PM, Guy Morton g...@alchemy.com.au wrote:

 SVG + Javascript + Canvas ARE the equivalent to Flash in the web standards 
 world.
 
 
 
 On 17/12/2011, at 5:16 AM, Bill Brutzman wrote:
 
  
 
 My sense is that Adobe has realized that it close to impossible to port 
 Flash to the staggering proliferation of tablets, smart phones, and other 
 devices.
 
  
 
 Does anybody expect Flash to run on a Kindle or a Nook?
 
  
 
 In my little world of fantasy… I wish I knew how Flash worked… Perhaps a 
 standards-based Flash lite could be cranked into HTML-6.
 
  
 
 --Bill
 
  
 
 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On 
 Behalf Of Kevin MacDonald
 Sent: Friday, December 16, 2011 12:50 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] You are the product
 
  
 
  
 
 Good points. Thanks for responding. I'm not sure why you conflate me 
 knocking Adobe for a lack of willingness to learn. I code on a daily basis 
 in half a dozen languages for a small company struggling to reach 
 profitability. Our client application is one piece of that. The 'learning' 
 in this case is that some companies can be trusted more than others. Adobe 
 puts forth a consistent marketing message to software developers: Trust us! 
 Follow us!, and they consistently fail to live up to that in order to sell 
 us the next round of developer tools. Microsoft, while clearly capable of 
 various brands of skulduggery, has consistently maintained a level of 
 loyalty to their developers, and it has succeeded famously for them. Have 
 you every noticed that 15 year old programs still run on Windows 7? I don't 
 expect that from Adobe. But the heavy sell job on AIR followed by stepping 
 at arms length from it irks me. 
 
 Kevin
 
 
 2011/12/16 Csomák Gábor csom...@gmail.com
 
  
 
 technology simply changes. i met a guy who was the lead engineer of 
 commodore 64. do you think when he was on the top of his career, he stopped 
 learning? this segment changes a lot. it is a lifelong learning. get used to 
 it.
 
  
 
 html5 is not ready. even w3c says it'll be in 2014 (as i remember). and i 
 think, it won't kill air. neither flash. of course it will depend on a lot 
 of things, but the two technologies are good in different segments. you 
 cannot do a prezi.com in html5, and you cannot do an entire webpage in 
 flash. (login remembers will not work, etc...)
 
 the key is to know both, and know when to use what. 
 
 On Wed, Dec 14, 2011 at 7:02 PM, Kevin MacDonald kevinmacdon...@gmail.com 
 wrote:
 
  
 
 Hello developers,
 
  
 
 I have come to some unfortunate conclusions about how Adobe operates. I 
 would be interested to get your opinions on the matter. 
 
  
 
 Some years ago I helped build out a desktop application using Macromedia 
 Director. It ran on both Mac and Windows, and was heavily backed by web 
 services. In principle it was much like an Adobe AIR app might be today. 
 After a few years Adobe bought Macromedia Director, with promises to the 
 developer community that they would continue to support it. They came out 
 with a few maintenance releases that were extremely buggy, enough so that we 
 tried to roll back to the previous version. However, Adobe made sure there 
 were some gotchas that made it painful to either stay on the current version 
 or roll back. Shortly thereafter they killed Director altogether. 
 
  
 
 An Adobe evangelist came to our office and sold us hard on moving to Adobe 
 AIR, which we did. We completely re-wrote our application on that platform. 
 Now, several years later, Adobe is very obviously moving away from AIR and 
 towards HTML5, again with promises to their loyal developers to continue 
 supporting it. 
 
  
 
 Based on their history what I expect Adobe to do is kill AIR before too 
 long. And you should have no doubts that they can make it very painful to 
 remain on that platform. For example, AIR apps use whatever version of Adobe 
 Reader is installed on the client machine. Adobe Reader updates happen 
 independently of updates to the AIR run time. The latest update to Adobe 
 Reader broke certain aspects of our client application, something that might 
 directly hurt our business. What can you do when the HTMLLoader object no 
 longer correctly displays a PDF? What I expected Adobe to do - and what the 
 evangelist led me to believe - was that Adobe would evolve AIR and Flash 
 Builder towards HTML5 over time, bringing all of us along with them. But 
 they don't do that. They scorch the earth and start over.
 
  
 
 So, what's next? I suppose we will hear from Adobe before too long that we 
 

[flexcoders] Re: getting the total of values of an array collection that is updated manually

2011-12-15 Thread Scott Fanetti
The textfield has change events - you can use that to get the new value - then 
recompute the sum.  Pseudocode:

script

private function onChange( e:Event  ):void {
doSum();
}

private function doSum():void {
...
}

/script


s:/ texInput change=onChange(event)

Re: [flexcoders] getting the total of values of an array collection that is updated manually

2011-12-03 Thread Scott Fanetti
The way I would do this is to add a change event listener to the array 
collection - and in the listener I would iterate through the collection to sum 
the  values. I would also create a value object to hold your data in a type 
safe fashion. You could then use data binding to get UI updates in the item 
renderer. 

You should also create a model to hold your applications state. Update the sum 
in the model and bind the model's sum value to the view's display. 

Sent from my iPhone

On Dec 2, 2011, at 7:43 AM, ZIONIST stinas...@yahoo.com wrote:

 Hi Guys, i would like to get the total price calculated as an array 
 collection for a list is populated plus i would like to update the total when 
 the quantity changes too. Here is the code i have so far, could someone 
 please help me correct it.
 
 Main App
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=horizontal
 xmlns:ns1=*
 mx:states
 mx:State name=dark
 mx:SetProperty target={product}
 name=text
 value=Dark Chocolate/
 mx:SetProperty target={price}
 name=text
 value=50/
 /mx:State
 mx:State name=spread
 mx:SetProperty target={product}
 name=text
 value=Drinking Chocolate/
 mx:SetProperty target={price}
 name=text
 value=100/
 /mx:State
 /mx:states
 
 mx:Script
 ![CDATA[
 import mx.controls.listClasses.ListData;
 import mx.collections.ArrayCollection;
 
 [Bindable]
 private var orderColl:ArrayCollection=new ArrayCollection();
 
 private function addProduct():void
 {
 
 //Create an object to hold the data
 var obj:Object=new Object();
 //Assign the variables to it
 obj.Product=product.text;
 obj.Price=price.text;
 //Add the object to the list
 orderColl.addItem(obj);
 
 }
 
 private function deleteOrder():void
 {
 
 //Remove the item from the array collection
 orderColl.removeItemAt(products.selectedIndex);
 
 }
 
 private function init():void
 {
 var n:int=orderColl.length;
 var total:Number=0;
 for (var i:int=0; i  n; i++)
 {
 //total+=orderColl[i][products.item.Price];
 total+=orderColl[i].Price++;
 }
 sum.text=total.toString();
 
 }
 ]]
 /mx:Script
 
 mx:Canvas width=500
 height=300
 mx:Label x=10
 y=10
 text=Milk Chocolate
 id=product/
 mx:Label x=10
 y=36
 text=10
 id=price/
 mx:Button x=10
 y=62
 label=submit
 click=addProduct();init()/
 mx:Button x=10
 y=92
 label=Change State
 click=currentState='dark'/
 mx:Button x=10
 y=122
 label=Drinking Chocolate
 click=currentState='spread'/
 /mx:Canvas
 
 mx:VBox width=340
 height=340
 horizontalAlign=center
 verticalAlign=middle
 mx:List id=products
 width=300
 height=300
 dataProvider={orderColl}
 itemRenderer=orderRenderer/
 mx:HBox
 mx:Label text=Total:
 color=#FF
 fontWeight=bold/
 mx:Label id=sum
 text=${}/
 /mx:HBox
 /mx:VBox
 
 /mx:Application
 
 Item Renderer (orderRenderer.mxml)
 
 ?xml version=1.0 encoding=utf-8?
 mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml;
 width=100%
 height=100%
 horizontalAlign=center
 verticalAlign=middle
 horizontalGap=0
 
 mx:Image source=assets/trashcan.gif/
 mx:Label text={data.Product}
 styleName=orderLabel/
 mx:Spacer width=100%/
 mx:Label id=price
 text=${Number(qty.text)* Number(oldPrice.text)}
 styleName=orderLabel/
 mx:TextInput id=qty
 width=30
 height=20
 text=1
 styleName=qtyInput/
 
 mx:Label id=oldPrice
 text={data.Price}
 visible=false
 includeInLayout=false/
 
 /mx:HBox
 
 


Re: [flexcoders] image is caching

2011-11-20 Thread Scott Fanetti
You should hash the images and use the hash as the name - that way image will 
not be cached if it changes. Or just change the name each time- append the date 
for instance. 

Sent from my iPhone

On Nov 18, 2011, at 9:03 AM, Michael Sumner msum...@nationsbestsports.com 
wrote:

 Working on a home owners association site.  I am uploading a pet picture, it 
 is getting to the server, being processed, I am changing the name to 
 reference the residence and the pet.  In the tab for pets I have a spark 
 image and I use the source property and relative paths to the image.  Once an 
 image is uploaded, if someone would want to change it in the same session the 
 picture uploads and changes on the server but the image does not change 
 particularly if you use IE.  After a successful upload I have tried setting 
 the source to null, to a default blank image until the user picks a pet in a 
 datagrid.  If I clear the browser cache in IE it will change but that is 
 about it.  Firefox works well – change the image and it will show the new 
 image.  Most of the residents will probably have IE, I am hosted on a 
 ColdFusion server and have added cfheader tags on my local box but that makes 
 no difference either.
 
  
 
 Any suggestions are welcome.
 
  
 
 Thanks,
 
  
 
 Mike
 
  
 
  
 
 


[flexcoders] Re: Transitions - How to

2011-10-12 Thread Scott Fanetti
It's not clear from your example what's is going on. Is the textArea even 
created by the time the outer container changes state?  

Sent from my iPhone

[flexcoders] Re: problem with the sand box on air app

2011-10-08 Thread Scott Fanetti
Have you tried dispatching events from the remote file for doing things like 
managing the stage - and letting the swf in the local security domain ( app: 
iglesia.swf ) do the calls for scaleMode and such?  

Sent from my iPhone

[flexcoders] Re: problem with the sand box on air app

2011-10-08 Thread Scott Fanetti
Read:

http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e3f.html

It goes into detail about the security sandbox an application exists within. 
What exactly are you trying to do?  

Sent from my iPhone

[flexcoders] Child of a child custom event handler

2010-07-12 Thread Scott
 

I've got a parent component that contains a child panel that contains a
popup window.  When the user enters the information and submits, I want
to notify the top parent that a change has been made to refresh the
other components.

 

grandparent-Panel-PopupWindow

 

In the popup window component I have:

 

[CDATA ...[

 

public static const REFRESHEVENT:String = refreshItems;

 

protected function validateInput():int

{

  var refreshScreen:Event = new Event( REFRESHEVENT, true, true );

 

... validate code

 

  dispatchEvent( refreshScreen );

...

}

 

That should bubble all the way up now...

 

 

In the grandparent component I have:

 

init():void

{

addEventListener( NewReservation.REFRESHEVENT, testevent );

}

 

private function testevent():void

{

  Alert.show(heard it);

}

 

 

Any ideas on how to troubleshoot this?  I can't seem to find anything in
the debugger to watch this...

 

Thanks!

 sj



RE: [flexcoders] Re: Child of a child custom event handler

2010-07-12 Thread Scott
That makes a lot of sense. But...

 

How do I reference the popup at the top level?  Is it PopUpmanager.POPUP
or?

 

Is there a way to look at this in the debugger?

 

Thanks!

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of valdhor
Sent: Monday, July 12, 2010 11:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Child of a child custom event handler

 

  

Popup windows are parented by the system manager.

What you would need to do is add an event listener to the system manager
at the application level. When that event fires, you would then inject
it into your component.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Scott h...@... wrote:

 
 
 I've got a parent component that contains a child panel that contains
a
 popup window. When the user enters the information and submits, I want
 to notify the top parent that a change has been made to refresh the
 other components.
 
 
 
 grandparent-Panel-PopupWindow
 
 
 
 In the popup window component I have:
 
 
 
 [CDATA ...[
 
 
 
 public static const REFRESHEVENT:String = refreshItems;
 
 
 
 protected function validateInput():int
 
 {
 
 var refreshScreen:Event = new Event( REFRESHEVENT, true, true );
 
 
 
 ... validate code
 
 
 
 dispatchEvent( refreshScreen );
 
 ...
 
 }
 
 
 
 That should bubble all the way up now...
 
 
 
 
 
 In the grandparent component I have:
 
 
 
 init():void
 
 {
 
 addEventListener( NewReservation.REFRESHEVENT, testevent );
 
 }
 
 
 
 private function testevent():void
 
 {
 
 Alert.show(heard it);
 
 }
 
 
 
 
 
 Any ideas on how to troubleshoot this? I can't seem to find anything
in
 the debugger to watch this...
 
 
 
 Thanks!
 
 sj





-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] Getting Started with AMFPHP and PureMVC

2010-07-10 Thread Scott
I've done a couple of projects with this.  Post your questions, I'll see
if I (or someone else on here) can answer them.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jeremy Mitchell
Sent: Friday, July 09, 2010 11:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Getting Started with AMFPHP and PureMVC

 

  

Is anyone else using PureMVC with AMFPHP?  I'm have a few questions to
clarify my understanding of the framework that maybe one could
answer...thank you!!!

 

jeremy m.
 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] DateTimeAxis - day + hour:minute

2010-07-10 Thread Scott
You need to use a dateformatter.  I haven't done this before but it's
probably just like the other components that I've done similar things
with.

 

Check out the viewer comments on this page; it may help you.
http://blog.sunild.com/2008/05/creating-line-charts-in-flex-3_12.html

 

 

  sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Richard Rodseth
Sent: Friday, July 09, 2010 6:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DateTimeAxis - day + hour:minute

 

  

I have a Flex 3 LineChart which displays data for one day or one week,
in 15-minute increments. In the week version I need the axis labels to
include day name (not specific date) + hour:minute, or perhaps someway
to indicate the day only on the 0:00 hour:minute label.

Thanks for any suggestions.




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] Regenerating service calls

2010-07-09 Thread Scott
In the beta, I seem to remember the service calls automatically
regenerating themselves if something was updated in the .CFC.  Now, the
calls are not regenerating and if I add in a new DB field I have to
delete the .AS service call files and remove the objects from my code
then re-create the service call.

 

Is anyone aware of a quicker/easier way than this?

 

 Thanks

  Scott



RE: [flexcoders] How to print full content of TextArea component ?

2010-07-09 Thread Scott
I don't know the resolution but I can see why this is happening.

 

The sprite capture will just capture the screen area and what was within
the rectangle during the snapshot.  It doesn't care or know what
components are under the sprite rectangle.

 

This guy talks about the issue a bit:
http://mildlyannoyedaussie.wordpress.com/2007/11/27/flex-printing-breakt
hrough-and-more/

 

I've been thinking about printing since this is something I will have to
do in the future as well.  I'm actually considering building a .PDF file
which could be printed or downloaded.

 

 sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ramalingam G
Sent: Thursday, July 08, 2010 9:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to print full content of TextArea component ?

 

  

Hello everyone,
I am re-posting this. The print() function listed below prints only the
visible area (scrolled somewhere) of the TextArea component. But, I want
to print full contents of the TextArea.

private function print():void{
var printResult:PrintJob = new PrintJob();
var output:Sprite = new Sprite();
var rect1:Rectangle = new Rectangle(0, 0, 0, 0);

output = Sprite(Result);
if(printResult.start()){
printResult.addPage(output, rect1);
printResult.send();
}
else printResult = null;
}

s:TextArea id=Result height=327 width=290 fontSize=18
paddingBottom=6 fontFamily=Arial x=13 y=28 editable=false
contentBackgroundColor=#A8C6AE borderVisible=false textAlign=right
fontWeight=normal/

s:Button x=13 y=366 id=Print label=Print width=49 height=30
click=print(); toolTip=CTRL + P/

Any one can help me?
Thanks in advance.
Ramalingam




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] Input formatter?

2010-07-06 Thread Scott
Yes, you can use formatters...
http://livedocs.adobe.com/flex/3/html/help.html?content=formatters_2.htm
l   Bind the component to the variable.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Nick Middleweek
Sent: Tuesday, July 06, 2010 4:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Input formatter?

 

  

Hello,

Is it possible to have a data entry/ input formatter?

For example, I have a DateField and I want to override the data entry so
that they can only type 1 or 2 numbers followed by a slash, then 1 or 2
numbers followed by a slash, then 4 numbers.

Is there such thing in Flex as an Input Data Formatter or something
similar?

How do others handle this?


Thanks,
Nick




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] Input formatter?

2010-07-06 Thread Scott
Sorry, my bad.  I missunderstood.  You'll need to either extend the
textinput or use a custom component already created for this.  I've seen
a few but I can't find the one I used last winter...  I did find this
one on Adobe.  It's for 2.01 but it should work ok.
http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetailex
tid=1049969

 

GL.

 

Sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Nick Middleweek
Sent: Tuesday, July 06, 2010 8:06 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Input formatter?

 

  

Hi scott,

Thanks for the link, this only seems to format the 'string' when I focus
out the field... What I'd like is on every key press, the entry field
validates the character at each position... So taking this as an entry
format...

DD/MM/, or perhaps I should write it as #0/#0/ where a #
represents an optional number and 0 means any number.

The users can type 10 and if they type 7 as the third character, it
automatically puts in the slash character and uses  as the fourth
character, typing slash now should pad out the month into 07 and then
the next 4 numbers would represent the year...

I'm after a data entry filter to help the users not enter invalid
entries.


Thanks,
Nick





On 6 July 2010 13:10, Scott h...@netprof.us mailto:h...@netprof.us 
wrote:

  

Yes, you can use formatters...
http://livedocs.adobe.com/flex/3/html/help.html?content=formatters_2.htm
l
http://livedocs.adobe.com/flex/3/html/help.html?content=formatters_2.ht
mlBind the component to the variable.

 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] send email from flex

2010-07-05 Thread Scott
You will definitely need a SMTP server to send the emails from.  Without
a properly setup SMTP server, emails will be dropped as spam...  So
you'll need a server side like Coldfusion or PHP to do that work.  You
can then submit the email to be sent from FB to the server who will
forward it for you.

 sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Fotis Chatzinikos
Sent: Monday, July 05, 2010 9:14 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] send email from flex

 

  

You normally do that from the server not the client (flex).

 

Usually you have a visual component that people use to type their mail
(header, text, sent to list etc) and then you send all the info to your
server in order to create and send the real email...

On Mon, Jul 5, 2010 at 5:01 PM, cholid cholid cholid_rid...@yahoo.com
mailto:cholid_rid...@yahoo.com  wrote:

  

hi all
have someone create some application to send email using flex?
i've try it from tutorial at web but doesnt work
thanks 

 








-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] datagrid itemrenderer breaks custom tooltip

2010-07-02 Thread Scott
I have a normal dataGrid that I created a rollover event to display a
custom tooltip on each box.  When I added in an itemRenderer this
functionality was broken.  I'm assuming it's because the itemRenderer is
overriding the rollover event?  Is that true?

 

The itemRenderer does work ok, it changes the color of my text
correctly.

 

How do I stop the itemRenderer from killing my tooltip?

 

Code:

Datagrid:

mx:DataGrid x=0 y=20 width={CELLWIDTH} height=80 id=dgAppts
headerHeight=0 dataProvider={acAppts} wordWrap=true
editable=false disabledColor=#c3c7c7 enabled={!bDisabled}
visible={!bDisabled} itemRollOut=deleteToolTip(event)

itemRollOver=createToolTip(event)
itemClick=ShowReservationDetails();   

  mx:columns

mx:DataGridColumn dataField=szReservation
itemRenderer=ColorColumnRenderer/  

  /mx:columns 

/mx:DataGrid

 

ColorColumnRenderer:

 

?xml version=1.0 encoding=utf-8?

s:MXDataGridItemRenderer xmlns:fx=http://ns.adobe.com/mxml/2009; 

 
xmlns:s=library://ns.adobe.com/flex/spark 

 
xmlns:mx=library://ns.adobe.com/flex/mx 

  focusEnabled=true

 
dataChange=dataChangeHandler(event);



!--  s:Label text={data}/--

fx:Script

  ![CDATA[

private const txtColor:Object = 1 ? green :
red; // force setting color for testing



protected function
dataChangeHandler(evt:Event):void

{

  lblApptTxt.setStyle(color, txtColor );


}



  ]]

/fx:Script



  s:Label id=lblApptTxt top=0 left=0 right=0 bottom=0
text={dataGridListData.label} /

/s:MXDataGridItemRenderer



RE: [flexcoders] Custom Tree Renderer for ADG in Flex 4

2010-07-02 Thread Scott
I was just* reading about this while researching another issue I was
having...

 

http://help.adobe.com/en_US/flex/using/WS03d33b8076db57b9-1c32bcb9124dea
dc3e9-8000.html

 

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of mregert
Sent: Thursday, July 01, 2010 3:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom Tree Renderer for ADG in Flex 4

 

  

Is it possible to override the Advanced Data Grid's tree renderer with a
custom tree renderer? I have created a customized tree renderer, and
have not found a way to override the default tree renderer for the ADG.
This is in Flex 4.




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] datagrid column sorting

2010-07-01 Thread Scott
Take this scenario:

 

.

 

[Bindable] public var acAppts:ArrayCollection = new ArrayCollection();

 

private function sortDate(itemA:Object, itemB:Object):int 

{

return ObjectUtil.dateCompare( itemA.dtCreated,itemB.dtCreated);

}

 

 

...

 

mx:DataGrid x=0 y=20 width={CELLWIDTH} height=80 id=dgAppts
headerHeight=0 dataProvider={acAppts} wordWrap=true
editable=false disabledColor=#c3c7c7 enabled={!bDisabled}
visible={!bDisabled} itemRollOut=deleteToolTip(event)

  itemRollOver=createToolTip(event)
itemClick=ShowReservationDetails(); change=sortArray() 

  mx:columns

mx:DataGridColumn dataField=szReservation/  

mx:DataGridColumn dataField=dtCreated
sortCompareFunction=sortDate visible=true /

  /mx:columns 

/mx:DataGrid

 

 

I should be sorting on the dtCreated field which is a date.  However,
it's not occurring.  If I set a breakpoint on the sortDate function, it
never gets hit.

 

I'm not sure if the reason is because the parent component populates the
acAppts which doesn't cause a trigger for the dataGrid to run the sort
function or what.  Anyone have an idea on what is going on with this?



RE: [flexcoders] Re: datagrid column sorting

2010-07-01 Thread Scott
Ah, I read it wrong then...
 
The problem is that the component/object will be created/completed well before 
the data is populated.  I've also removed the header from the function 
(header=0) and I actually only have one visible column in the datagrid.  
I'm using the dataGrid as sort of an advanced list object.
 
Is there a way to sort as items are placed in the arraycollection?



From: flexcoders@yahoogroups.com on behalf of valdhor
Sent: Thu 7/1/2010 8:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: datagrid column sorting


  

Are you expecting the datagrid to sort when first shown or when you click on 
the column header? The code you have will only be called when you click on the 
column header.

To sort when first shown you will need a creation complete function where you 
would create a new sort and refresh.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
Scott h...@... wrote:

 Take this scenario:
 
 
 
 .
 
 
 
 [Bindable] public var acAppts:ArrayCollection = new ArrayCollection();
 
 
 
 private function sortDate(itemA:Object, itemB:Object):int 
 
 {
 
 return ObjectUtil.dateCompare( itemA.dtCreated,itemB.dtCreated);
 
 }
 
 
 
 
 
 ...
 
 
 
 mx:DataGrid x=0 y=20 width={CELLWIDTH} height=80 id=dgAppts
 headerHeight=0 dataProvider={acAppts} wordWrap=true
 editable=false disabledColor=#c3c7c7 enabled={!bDisabled}
 visible={!bDisabled} itemRollOut=deleteToolTip(event)
 
 itemRollOver=createToolTip(event)
 itemClick=ShowReservationDetails(); change=sortArray() 
 
 mx:columns
 
 mx:DataGridColumn dataField=szReservation/ 
 
 mx:DataGridColumn dataField=dtCreated
 sortCompareFunction=sortDate visible=true /
 
 /mx:columns 
 
 /mx:DataGrid
 
 
 
 
 
 I should be sorting on the dtCreated field which is a date. However,
 it's not occurring. If I set a breakpoint on the sortDate function, it
 never gets hit.
 
 
 
 I'm not sure if the reason is because the parent component populates the
 acAppts which doesn't cause a trigger for the dataGrid to run the sort
 function or what. Anyone have an idea on what is going on with this?






-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is 
believed to be clean. 
winmail.dat

RE: [flexcoders] how to filter our a column in datagrid?

2010-07-01 Thread Scott
You could set the column width to 0...

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of coder3
Sent: Thursday, July 01, 2010 1:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how to filter our a column in datagrid?

 

  


Hi

it's a little complicated.

i have a datagrid with student info:

name | class | grade

what i want is, if the row has no class and grade data, i want to remove
this row from the datagrade.

I don't want to change the object in the datagrid dataprovider array,
because the array needs to be used some other places. 

how do i do it?

thanks

C.
-- 
View this message in context:
http://old.nabble.com/how-to-filter-our-a-column-in-datagrid--tp29049075
p29049075.html
Sent from the FlexCoders mailing list archive at Nabble.com.




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] Working with date/Time in FB

2010-06-29 Thread Scott
Thanks for your help everyone.  I found the issue and it's fixed.  The
JVM has a bug in it and required upgrading it on the server.  Now if I
can stop getting these silly timewasting bugs I can finish my project!
=)

 

Thanks a ton!

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Monday, June 28, 2010 6:41 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Working with date/Time in FB

 

  

I am using remoteobject.

 

The following code returns the same timezone information as my
workstation is in.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Paul Hastings
Sent: Sunday, June 27, 2010 10:59 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Working with date/Time in FB

 

  

 mx:DataGrid x= 68  y= 446  id= dataGrid  dataProvider= {
 getAlltblreservationResult.lastResult }  visible= false  

uh, are you using a web service instead of remote object?

how did you confirm your cf server's in the same tz as your w/s? it's
possible 
that the OS  JVM that cf's running under are using different tz. what
dos the 
following snippet tell you?

cfscript
jre=createObject(java,java.lang.System);
JREname=jre.getProperty(java.runtime.name);
JREversion=jre.getProperty(java.runtime.version);
tz=createObject(java,java.util.TimeZone).getDefault();
tzName=tz.getDisplayName(true,tz.LONG);
dstSavings=tz.getDSTSavings()/360;
writeoutput(jre:=#JREname# #JREversion#brtz:=#tzName#brdst 
savings:=#dstSavings#brin DST:=#tz.inDaylightTime(now())# );
/cfscript


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] Working with date/Time in FB

2010-06-28 Thread Scott
I am using remoteobject.

 

The following code returns the same timezone information as my
workstation is in.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Paul Hastings
Sent: Sunday, June 27, 2010 10:59 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Working with date/Time in FB

 

  

 mx:DataGrid x= 68  y= 446  id= dataGrid  dataProvider= {
 getAlltblreservationResult.lastResult }  visible= false  

uh, are you using a web service instead of remote object?

how did you confirm your cf server's in the same tz as your w/s? it's
possible 
that the OS  JVM that cf's running under are using different tz. what
dos the 
following snippet tell you?

cfscript
jre=createObject(java,java.lang.System);
JREname=jre.getProperty(java.runtime.name);
JREversion=jre.getProperty(java.runtime.version);
tz=createObject(java,java.util.TimeZone).getDefault();
tzName=tz.getDisplayName(true,tz.LONG);
dstSavings=tz.getDSTSavings()/360;
writeoutput(jre:=#JREname# #JREversion#brtz:=#tzName#brdst 
savings:=#dstSavings#brin DST:=#tz.inDaylightTime(now())# );
/cfscript




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] Melbourne Flex User Group Thursday

2010-06-28 Thread Scott
I've always wanted to go to Australia! =)

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Dale Fraser
Sent: Sunday, June 27, 2010 11:44 PM
To: cfaus...@googlegroups.com; flexaus...@googlegroups.com;
flexcoders@yahoogroups.com
Subject: [flexcoders] Melbourne Flex User Group Thursday

 

  

Melbourne Adobe Flex User Group this Thursday 1st July, Manipulating 2D
objects in 3D space please RSVP @ http://mfug.groups.adobe.com/
http://mfug.groups.adobe.com/ 

 

Regards

Dale Fraser

 

http://dale.fraser.id.au http://dale.fraser.id.au 

http://cfmldocs.com http://cfmldocs.com/ 

http://learncf.com http://learncf.com 

http://flexcf.com http://flexcf.com 

 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] Working with date/Time in FB

2010-06-27 Thread Scott
There's something I'm not completely understanding yet.  I've coded
around it but I'm not feeling comfortable with my solution.

 

My FB4 app links up with CF9 and I'm working with dates and times.

 

When I pull up a date from CF9 into a FB4 datagrid the time shows off by
one hour.  Eg.

 

2010-06-01 23:30:00 is in my MySQL DB (11:30pm).  When I load the time
from CF9 to a FB4 dataGrid it shows 2010-06-02 as the date and 12:30:00
as the time so the day advances because the time is one hour ahead.  

 

My initial thought is that it's something to do with either the timezone
or day light savings time.  Right now I just set a variable that I call
DST, set it to -1 and then subtract it from the date before I manipulate
the date and time.

 

Even getting the UTC date/time then using the timezone still gets it off
one hour without accounting for DST (that's why I think I'm dealing with
daylight savings time)

 

Can anyone confirm this or shed any light on what is going on?  I don't
want FB to worry about date and time; I want to do all of this through
CF9 on the server side.  I don't want to worry if the user has their
computer set correctly for their timezone and daylight savings time.  I
just want FB to display the time it pulls directly from the CF9 object I
provide it.

 

 Thanks a ton.

   sj



RE: [flexcoders] Send SMS

2010-06-27 Thread Scott
That's a serverside issue...  I use the builtin SMS features of
Coldfusion to perform this task.

 

sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Christophe
Sent: Sunday, June 27, 2010 3:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Send SMS

 

  

Hello, 

Which component can I use for sending SMS from my AS3 application ? 

Thx,
Christophe, 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] Working with date/Time in FB

2010-06-27 Thread Scott
I just verified both server and client are at the same time and same
timezone.

 

I wasn't doing anything special with the object I was returning
initially when it was giving me the wrong time.  I literally assigned
the dataGrid to the CFobject that was being passed.

 

 

  mx:DataGrid x=68 y=446 id=dataGrid
dataProvider={getAlltblreservationResult.lastResult} visible=false

mx:columns

  mx:DataGridColumn headerText=pkReservationID
dataField=pkReservationID/

  mx:DataGridColumn headerText=fkPilotID
dataField=fkPilotID/

  mx:DataGridColumn headerText=fkPlaneID
dataField=fkPlaneID/

  mx:DataGridColumn headerText=szSourceAirport
dataField=szSourceAirport/

  mx:DataGridColumn headerText=szDestAirport
dataField=szDestAirport/

  mx:DataGridColumn headerText=dtStart
dataField=dtStart/

  mx:DataGridColumn headerText=dtEnd
dataField=dtEnd/

  mx:DataGridColumn headerText=szSpecialRequests
dataField=szSpecialRequests/

  mx:DataGridColumn headerText=pkPilotID
dataField=pkPilotID/

  mx:DataGridColumn headerText=szPilotLastName
dataField=szPilotLastName/

  mx:DataGridColumn headerText=szDescription
dataField=szDescription/

  mx:DataGridColumn headerText=szPilotFirstName
dataField=szPilotFirstName/

/mx:columns

  /mx:DataGrid

 

 

Both dtStart and dtEnd were exactly one hour ahead of where they should
be when I made the CF call.



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Smin Rana
Sent: Sunday, June 27, 2010 7:30 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Working with date/Time in FB

 

  

Are you sure server and FB got same timezone?

I think you got some problem with your manipulation of before you set it
to datagrid
can you show the code where you set date on datagrid?
Response date as a string from cf and set it on datagrid without any
formatting?

-Original Message-
From: Scott
Sent: 06-27-2010 19:19:40
Subject: [flexcoders] Working with date/Time in FB

There's something I'm not completely understanding yet. I've coded
around it but I'm not feeling comfortable with my solution.

My FB4 app links up with CF9 and I'm working with dates and times.

When I pull up a date from CF9 into a FB4 datagrid the time shows off by
one hour. Eg.

2010-06-01 23:30:00 is in my MySQL DB (11:30pm). When I load the time
from CF9 to a FB4 dataGrid it shows 2010-06-02 as the date and 12:30:00
as the time so the day advances because the time is one hour ahead. 

My initial thought is that it's something to do with either the timezone
or day light savings time. Right now I just set a variable that I call
DST, set it to -1 and then subtract it from the date before I manipulate
the date and time.

Even getting the UTC date/time then using the timezone still gets it off
one hour without accounting for DST (that's why I think I'm dealing with
daylight savings time)

Can anyone confirm this or shed any light on what is going on? I don't
want FB to worry about date and time; I want to do all of this through
CF9 on the server side. I don't want to worry if the user has their
computer set correctly for their timezone and daylight savings time. I
just want FB to display the time it pulls directly from the CF9 object I
provide it.

Thanks a ton.

sj




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] Working with date/Time in FB

2010-06-27 Thread Scott
Both the server and workstation are in the CST timezone/North America.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Andriy Panas
Sent: Sunday, June 27, 2010 3:43 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Working with date/Time in FB

 

  

What is timezone value at the client? If you are at one of the region 

 

On Windows XP the behavior can be reproduced with: 

Beirut (Lebanon) 
Brasilia (Brasil) 
Buenos Aires (Argentina) 
Amman (Jordany) 
Cairo (Egypt) 
Manaus (Brasil) 
Santiago (Chile)

 

 then wait for the winter for DST time to be gone =)

 

Flash Player https://bugs.adobe.com/jira/browse/FP 


 https://bugs.adobe.com/jira/images/icons/link_out_bot.gif  Date class
Bug


 

https://bugs.adobe.com/jira/browse/FP-1760
https://bugs.adobe.com/jira/browse/FP-1760 

https://bugs.adobe.com/jira/browse/FP-1760 
--
Best regards,
Andriy Panas




On 27 June 2010 23:22, Smin Rana sminr...@gmail.com
mailto:sminr...@gmail.com  wrote:

  

You are getting data as xml from cf, so everthing should be fine.
if you return A you should get A.
now it looks like thing is very interesting, cant you help you in this
case, again debug the code and take a look of the network monitor
Of FB.



-Original Message-
From: Scott
Sent: 06-28-2010 03:27:00
Subject: RE: [flexcoders] Working with date/Time in FB

I just verified both server and client are at the same time and same
timezone.

I wasn't doing anything special with the object I was returning
initially when it was giving me the wrong time. I literally assigned
the dataGrid to the CFobject that was being passed.

mx:DataGrid x=68 y=446 id=dataGrid
dataProvider={getAlltblreservationResult.lastResult} visible=false

mx:columns

mx:DataGridColumn headerText=pkReservationID
dataField=pkReservationID/

mx:DataGridColumn headerText=fkPilotID
dataField=fkPilotID/

mx:DataGridColumn headerText=fkPlaneID
dataField=fkPlaneID/

mx:DataGridColumn headerText=szSourceAirport
dataField=szSourceAirport/

mx:DataGridColumn headerText=szDestAirport
dataField=szDestAirport/

mx:DataGridColumn headerText=dtStart
dataField=dtStart/

mx:DataGridColumn headerText=dtEnd
dataField=dtEnd/

mx:DataGridColumn headerText=szSpecialRequests
dataField=szSpecialRequests/

mx:DataGridColumn headerText=pkPilotID
dataField=pkPilotID/

mx:DataGridColumn headerText=szPilotLastName
dataField=szPilotLastName/

mx:DataGridColumn headerText=szDescription
dataField=szDescription/

mx:DataGridColumn headerText=szPilotFirstName
dataField=szPilotFirstName/

/mx:columns

/mx:DataGrid

Both dtStart and dtEnd were exactly one hour ahead of where they should
be when I made the CF call.



From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
Behalf Of Smin Rana
Sent: Sunday, June 27, 2010 7:30 AM
To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
Subject: RE: [flexcoders] Working with date/Time in FB

Are you sure server and FB got same timezone?

I think you got some problem with your manipulation of before you set it
to datagrid
can you show the code where you set date on datagrid?
Response date as a string from cf and set it on datagrid without any
formatting?

-Original Message-
From: Scott
Sent: 06-27-2010 19:19:40
Subject: [flexcoders] Working with date/Time in FB

There's something I'm not completely understanding yet. I've coded
around it but I'm not feeling comfortable with my solution.

My FB4 app links up with CF9 and I'm working with dates and times.

When I pull up a date from CF9 into a FB4 datagrid the time shows off by
one hour. Eg.

2010-06-01 23:30:00 is in my MySQL DB (11:30pm). When I load the time
from CF9 to a FB4 dataGrid it shows 2010-06-02 as the date and 12:30:00
as the time so the day advances because the time is one hour ahead. 

My initial thought is that it's something to do with either the timezone
or day light savings time. Right now I just set a variable that I call
DST, set it to -1 and then subtract it from the date before I manipulate
the date and time.

Even getting the UTC date/time then using the timezone still gets it off
one hour without accounting for DST (that's why I think I'm dealing with
daylight savings time)

Can anyone confirm this or shed any light on what is going on? I don't
want FB to worry about date and time; I want to do all of this through
CF9 on the server side. I don't want to worry if the user has their
computer set correctly for their timezone and daylight savings time. I
just want FB to display the time it pulls directly from the CF9 object I
provide it.

Thanks a ton.

sj

-- 
This message has been scanned for viruses and 

dangerous content by MailScanner http://www.mailscanner.info/
http://www.mailscanner.info/  , and is

believed to be clean. 

 




-- 
This message has been scanned for viruses

RE: [flexcoders] Working with date/Time in FB

2010-06-27 Thread Scott
Interesting and odd...

 

The actual item that I'm receiving is one hour in advance over the time
that is logged in the MySQL DB.  I just verified for a 3rd time that
everything is set correctly in my Coldfusion9 server.  Perhaps this is a
third bug that I just found with accessing a CF data source...?

 

I'm going to run a few more tests here to ensure it's not my issue then
submit another bug report if everything checks out.  I'm going to run
this by another CF developer and see what he thinks.  I should also
write a .CFM to test the function to ensure that coldfusion is providing
the correct information.

 

Thanks, Tracy.  You rock.

 

 sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tracy Spratt
Sent: Sunday, June 27, 2010 7:01 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Working with date/Time in FB

 

  

Instead of binding, use a result handler and inspect the actual xml.
Have you set resultFormat=e4x?

 

Tracy Spratt,

Lariat Services, development services available



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Sunday, June 27, 2010 4:27 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Working with date/Time in FB

 

  

I just verified both server and client are at the same time and same
timezone.

 

I wasn't doing anything special with the object I was returning
initially when it was giving me the wrong time.  I literally assigned
the dataGrid to the CFobject that was being passed.

 

 

  mx:DataGrid x=68 y=446 id=dataGrid
dataProvider={getAlltblreservationResult.lastResult} visible=false

mx:columns

  mx:DataGridColumn headerText=pkReservationID
dataField=pkReservationID/

  mx:DataGridColumn headerText=fkPilotID
dataField=fkPilotID/

  mx:DataGridColumn headerText=fkPlaneID
dataField=fkPlaneID/

  mx:DataGridColumn headerText=szSourceAirport
dataField=szSourceAirport/

  mx:DataGridColumn headerText=szDestAirport
dataField=szDestAirport/

  mx:DataGridColumn headerText=dtStart
dataField=dtStart/

  mx:DataGridColumn headerText=dtEnd
dataField=dtEnd/

  mx:DataGridColumn headerText=szSpecialRequests
dataField=szSpecialRequests/

  mx:DataGridColumn headerText=pkPilotID
dataField=pkPilotID/

  mx:DataGridColumn headerText=szPilotLastName
dataField=szPilotLastName/

  mx:DataGridColumn headerText=szDescription
dataField=szDescription/

  mx:DataGridColumn headerText=szPilotFirstName
dataField=szPilotFirstName/

/mx:columns

  /mx:DataGrid

 

 

Both dtStart and dtEnd were exactly one hour ahead of where they should
be when I made the CF call.



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Smin Rana
Sent: Sunday, June 27, 2010 7:30 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Working with date/Time in FB

 

  

Are you sure server and FB got same timezone?

I think you got some problem with your manipulation of before you set it
to datagrid
can you show the code where you set date on datagrid?
Response date as a string from cf and set it on datagrid without any
formatting?

-Original Message-
From: Scott
Sent: 06-27-2010 19:19:40
Subject: [flexcoders] Working with date/Time in FB

There's something I'm not completely understanding yet. I've coded
around it but I'm not feeling comfortable with my solution.

My FB4 app links up with CF9 and I'm working with dates and times.

When I pull up a date from CF9 into a FB4 datagrid the time shows off by
one hour. Eg.

2010-06-01 23:30:00 is in my MySQL DB (11:30pm). When I load the time
from CF9 to a FB4 dataGrid it shows 2010-06-02 as the date and 12:30:00
as the time so the day advances because the time is one hour ahead. 

My initial thought is that it's something to do with either the timezone
or day light savings time. Right now I just set a variable that I call
DST, set it to -1 and then subtract it from the date before I manipulate
the date and time.

Even getting the UTC date/time then using the timezone still gets it off
one hour without accounting for DST (that's why I think I'm dealing with
daylight savings time)

Can anyone confirm this or shed any light on what is going on? I don't
want FB to worry about date and time; I want to do all of this through
CF9 on the server side. I don't want to worry if the user has their
computer set correctly for their timezone and daylight savings time. I
just want FB to display the time it pulls directly from the CF9 object I
provide it.

Thanks a ton.

sj


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean

[flexcoders] Accessing an object within an array

2010-06-26 Thread Scott
I've got an mxml component that I've created.  Below is a simple code
sample of what I'm experiencing...

 

Basically I've got a component creating an array of another component.
All code hinting was working great for a while.  Then, for no apparent
reason it stopped working.  Now I can still access items within the
component if I type it manually... HOWEVER Anything new I add into
the child component is not accessible no matter if it's typed in
correctly or not.  It's like the compiler is stuck or is forgetting to
update the code.  I did try to clean the project to no avail.  I had a
similar issue happen when I nested a variable increment in an if
statement like this:

If ( nVar++  10 )

 

I've also seen issues where FB4 doesn't pick up that you forget the end
semicolon ';'  and still lets you compile and run.  I've gone over this
code many times and I know that this isn't the case as well...

 

The difference with that statement is that it broke all code hinting on
the component.  I was thinking it was the same type of thing so I
commented out all by the necessary code to do this operation and had the
same issue.  There were no complex statements when I ran that test.

 

Any ideas on what I'm experiencing?

 

 Thanks.

   Scott

 

-

 

day.mxml sample:



public function  setNumber( nNumber:number ):void

{

_nNumber = nNumber;

}



 



Parent component: month.mxml

 

private var aryOfDays:array = new array[];

 

private function init():void

{

private var dcDay:day;

 

// at this point I can do a dcDay.[controlspace] and code hinting works
just fine and I can see the setNumber function

 

aryOfDays.push(dcDay);

 

for( var nLoop:int = 0; nLoop  10; nLoop++ )

{

dcDay = new day();

dcDay.setNumber = 1;  

aryofDays.push(dcDay);

}

 

// now if I try accessing something within the array of days no code
hinting works

 

for( nLoop = 0; nLoop  10; nLoop++)

{

aryOfDays[nLoop].// no code hinting works.  However, I can access
some properties of the object if I type it in manually so if I do this:

 

aryOfDays[nLoop].setNumber(1);  // this works.  No big deal I can type
it in manually BUT

 

}

 

}

 

 

 



RE: [flexcoders] Accessing an object within an array

2010-06-26 Thread Scott
Ah.  I found a better way to handle this after all this time I spent on
it...  I assigned a for each loop and modified the object that was
assigned to the individual array object.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Saturday, June 26, 2010 7:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Accessing an object within an array

 

  

I've got an mxml component that I've created.  Below is a simple code
sample of what I'm experiencing...

 

Basically I've got a component creating an array of another component.
All code hinting was working great for a while.  Then, for no apparent
reason it stopped working.  Now I can still access items within the
component if I type it manually... HOWEVER Anything new I add into
the child component is not accessible no matter if it's typed in
correctly or not.  It's like the compiler is stuck or is forgetting to
update the code.  I did try to clean the project to no avail.  I had a
similar issue happen when I nested a variable increment in an if
statement like this:

If ( nVar++  10 )

 

I've also seen issues where FB4 doesn't pick up that you forget the end
semicolon ';'  and still lets you compile and run.  I've gone over this
code many times and I know that this isn't the case as well...

 

The difference with that statement is that it broke all code hinting on
the component.  I was thinking it was the same type of thing so I
commented out all by the necessary code to do this operation and had the
same issue.  There were no complex statements when I ran that test.

 

Any ideas on what I'm experiencing?

 

 Thanks.

   Scott

 

-

 

day.mxml sample:



public function  setNumber( nNumber:number ):void

{

_nNumber = nNumber;

}



 



Parent component: month.mxml

 

private var aryOfDays:array = new array[];

 

private function init():void

{

private var dcDay:day;

 

// at this point I can do a dcDay.[controlspace] and code hinting works
just fine and I can see the setNumber function

 

aryOfDays.push(dcDay);

 

for( var nLoop:int = 0; nLoop  10; nLoop++ )

{

dcDay = new day();

dcDay.setNumber = 1;  

aryofDays.push(dcDay);

}

 

// now if I try accessing something within the array of days no code
hinting works

 

for( nLoop = 0; nLoop  10; nLoop++)

{

aryOfDays[nLoop].// no code hinting works.  However, I can access
some properties of the object if I type it in manually so if I do this:

 

aryOfDays[nLoop].setNumber(1);  // this works.  No big deal I can type
it in manually BUT

 

}

 

}

 

 

 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] line returns in a tooltip field

2010-06-26 Thread Scott
I'm scratching my head on this one...  Can't be any more simple than it
is...

 

http://livedocs.adobe.com/flex/3/html/help.html?content=tooltips_3.html

 

I'm trying to set/format the toolTip on a dataGrid so that there's
multiple lines in the toolTip.

 

On the dataGrid I have toolTip=This is a very #13; tooltip placed
#13; on multiple lines.

 

This doesn't work on the dataGrid, but it sure does on the button:

mx:Button id=b2 label=Submit width=100 toolTip=Click this button
#13; to submit the form./

 

Anyone have an idea?



[flexcoders] AS3 nested groups

2010-06-21 Thread Scott
I'm trying to draw a calendar grid using HGroup and VGroup

 

If I do the follow it draws 7 boxes:

 

 

for (var nDay:int = 0; nDay  7; nDay++)

{

  var bcBox:BorderContainer = new BorderContainer();

  var lblCalText:Label = new Label();

  var vgWeek:VGroup = new VGroup();

  bcBox.height = 100;

  bcBox.width = 133;

  vgWeek.height = 100;

  vgWeek.width = 133;

  

  lblCalText.text = test;

  vgWeek.addElement(lblCalText);

  bcBox.addElement(vgWeek);

  hgTest.addElement(bcBox);

}

 

...

 

s:HGroup x=5 y=27 width=957 height=100 id=hgTest/

 

 

I was thinking great... No problem...

 

So I decided to draw 5 weeks worth of boxes so I added in the following
code:

 

for ( var nWeek:int = 0; nWeek  5; nWeek++)

{

 

  var hgWeek:HGroup = new HGroup(); // row of Days

  hgWeek.height = 100;

  hgWeek.width = 957;

  hgWeek.x = 25;

  hgWeek.y = 5 + ( nWeek * 100); // shift the row down 100px

 

for (var nDay:int = 0; nDay  7; nDay++)

{

var bcBox:BorderContainer = new BorderContainer(); // Box
around the day

var lblCalText:Label = new Label(); // 

var vgWeek:VGroup = new VGroup(); // Days in the Row

bcBox.height = 100;

bcBox.width = 133;

vgWeek.height = 100;

vgWeek.width = 133;

  

lblCalText.text = test;

vgWeek.addElement(lblCalText);

bcBox.addElement(vgWeek);

hgWeek.addElement(bcBox);

  }

}

 

When I add in the weeks nothing draws.  If I point the last
hgTest.addElement in then it works just fine...

 

Any ideas on what I'm doing wrong?

 

Thanks!



RE: [flexcoders] Flex 4 datagrid paging AND filtering

2010-06-20 Thread Scott
You need to modify the PHP function to do the filtering then modify the
FB4 code to work with the function.  Out of the box, FB4 does not
provide that functionality.

 

It sounds like you did the auto-generated php wizard.  If you did that,
you'll need to remove the service from the datagrid and delete the
service that you had created.  Then re-generate the service and modify
the paging PHP function BEFORE you link it to your datagrid.  I just ran
into this as an issue last week; it's not regenerating the AS3 service
handlers properly...

 

After you have the PHP function filtering properly then enable it for
paging and re-link it to your table.

 

I'd read up on the PHP side of things to learn how to work with the
data.  You should probably test that either in the test service call or
create a .php file to reference the service calls and test it in your
browser to make sure it works properly before you try linking it in FB4.
You'll have nothing but headaches otherwise.

 

Also, keep in mind I haven't been able to find good docs on PHP and
zendauth which is what you need to secure your data.  I still haven't
gotten that to work right yet.

 

 sj

 

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of kbond1...@rocketmail.com
Sent: Saturday, June 19, 2010 8:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 4 datagrid paging AND filtering

 

  

Using flex 4 w/ a mysql database w/ about 5 million records. I've got
Zend and PHP. I've got paging enabled in my datagrid. How do I add
filtering? I'm guessing I would need some sort of server-side filtering
but can't for the life of me figure it out. Can anyone point me to a
tutorial...been googling all day and can't find any. thx!




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] Flex 4 datagrid paging AND filtering

2010-06-20 Thread Scott
BTW, when you delete the service I mean delete the AS files associated
with the service...

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Sunday, June 20, 2010 3:03 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 4 datagrid paging AND filtering

 

  

You need to modify the PHP function to do the filtering then modify the
FB4 code to work with the function.  Out of the box, FB4 does not
provide that functionality.

 

It sounds like you did the auto-generated php wizard.  If you did that,
you'll need to remove the service from the datagrid and delete the
service that you had created.  Then re-generate the service and modify
the paging PHP function BEFORE you link it to your datagrid.  I just ran
into this as an issue last week; it's not regenerating the AS3 service
handlers properly...

 

After you have the PHP function filtering properly then enable it for
paging and re-link it to your table.

 

I'd read up on the PHP side of things to learn how to work with the
data.  You should probably test that either in the test service call or
create a .php file to reference the service calls and test it in your
browser to make sure it works properly before you try linking it in FB4.
You'll have nothing but headaches otherwise.

 

Also, keep in mind I haven't been able to find good docs on PHP and
zendauth which is what you need to secure your data.  I still haven't
gotten that to work right yet.

 

 sj

 

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of kbond1...@rocketmail.com
Sent: Saturday, June 19, 2010 8:21 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 4 datagrid paging AND filtering

 

  

Using flex 4 w/ a mysql database w/ about 5 million records. I've got
Zend and PHP. I've got paging enabled in my datagrid. How do I add
filtering? I'm guessing I would need some sort of server-side filtering
but can't for the life of me figure it out. Can anyone point me to a
tutorial...been googling all day and can't find any. thx!


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] How much does FXG affect performance?

2010-06-18 Thread Scott
Sorry, OT, but I just had to...

 

LMAO!

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Gregor Kiddie
Sent: Friday, June 18, 2010 4:45 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How much does FXG affect performance?

 

  

Surely on a geek list like this, the only reasonable answer is 42.

 

Your questions may vary...

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: 18 June 2010 07:49
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How much does FXG affect performance?

 

  

Maybe, yes, none, n/a, no, yes (17), no, depends, bribery, no thank you.
Not necessarily in that order.


On 6/17/10 7:15 PM, dorkiedorkfromdorkt...@gmail.com
dorkiedorkfromdorkt...@gmail.com wrote:


 
 
   

I saw a comment recently that large FXG usage can affect
performance.
For example, FXG in skins. But I also read it affects file
size??? If
it's vector shouldn't it in most cases be smaller in size than a
rasterized representation of the vector? What about If the
vector skin
art is relatively static how much of it is getting redrawn every
frame? If it is redrawn every frame what is the use of Show
redrawn
regions in the Flash Player context menu?

To quote Ted P, Internally the player sweeps the DisplayList
and
processes all graphics, then processes all frame bytecode, then
processed events. If there are things to do in each phase, the
phase
will expand potentially slowing down the frame speed.
http://tinyurl.com/2erm72a http://tinyurl.com/2erm72a 

Has this behavior changed in Flash Player 10.1? BTW Is there a
limit
to the number of questions I can ask in a single post? Have I
past
that limit? If so will any of my questions get answered or is
the
whole post disqualified? If so how do I get it re-qualified?
Separate
posts for each question?

JP
 
   





-- 
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] Interesting paradox with data service call

2010-06-18 Thread Scott
I modified the call for my data_paged function to allow for the userID.
I then refreshed the data service call and it picked up the new user.  I
did the same for the count() service call.

 

Now, if I put in the userID I get an error:

Description   Resource  Path Location   Type

1137: Incorrect number of arguments.  Expected no more than 0.
yourinfo.mxml   /PlaneScheduler/src   line 147 Flex Problem

 

However, if I remove it I get a CFC error that it's expecting it.
Something isn't picking up the change.  Again, the data service call
shows (nUserID : Number).  Any ideas on what is getting hung up?



RE: [flexcoders] Interesting paradox with data service call

2010-06-18 Thread Scott
I was able to fix it by deleting the data service completely and
re-creating it.  That was a major hassle.  Anyone know how to force the
dataservice to update without going through this process?

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Friday, June 18, 2010 5:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Interesting paradox with data service call

 

  

I modified the call for my data_paged function to allow for the userID.
I then refreshed the data service call and it picked up the new user.  I
did the same for the count() service call.

 

Now, if I put in the userID I get an error:

Description   Resource  Path Location   Type

1137: Incorrect number of arguments.  Expected no more than 0.
yourinfo.mxml   /PlaneScheduler/src   line 147 Flex Problem

 

However, if I remove it I get a CFC error that it's expecting it.
Something isn't picking up the change.  Again, the data service call
shows (nUserID : Number).  Any ideas on what is getting hung up?




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] datagrid refresh

2010-06-17 Thread Scott
When I use CF9 as the datasource; I'm missing the option to refresh the
dataProvider.

 

Eg. getAllRecords_paged.lastResult.Refresh() is missing.

 

Does anyone know how I can refresh the datagrid?

 

Thanks. 

  sj



RE: [flexcoders] datagrid refresh

2010-06-17 Thread Scott
Nevermind; it's been moved.  However, code hinting doesn't bring it up
either.

 

It's now:

 

dataGrid.dataprovider.refresh();

 

addItem() appears to take as well so I assume it's there too.  Neither
show in code hinting.

 

sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Thursday, June 17, 2010 2:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] datagrid refresh

 

  

When I use CF9 as the datasource; I'm missing the option to refresh the
dataProvider.

 

Eg. getAllRecords_paged.lastResult.Refresh() is missing.

 

Does anyone know how I can refresh the datagrid?

 

Thanks. 

  sj




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] ConflictDetector... Why?

2010-06-16 Thread Scott
I've been arguing with the FB4 / CF9 conflict detector the past couple
of days and it's become very apparent that I'm misunderstand something.

 

I have a datagrid component that is populated from a CF9/MySQL
datasource.  I set the datagrid to editable and created the associated
functions to update the datagrid.  My first issue was that the function
was giving me an error : Attempt to use managed delete method with an
item that is not managed on this client.After hours of playing
around with this I ended up enabling datamanagement on the object for
the delete and update functions which took care of that error mesasge.  

 

I now get an error: Local item has changes to properties that conflict
with remote change.  I can run the data service call manually in FB4
just fine using Test Operation so I know the function works.  But when
I try to update a record I get that error message.  The data I'm
presenting to the user would only be modified/changed/updated by the
data owner.  I know the items are different; that's why I'm updating the
remote DB!

 

1)   Why is there a conflict checker and is there a good reason that
this is in place?  

2)   Is there an easy way to turn this functionality off?

 

There's very little documentation out there on this subject

 

Thanks

  SJ



RE: [flexcoders] ConflictDetector... Why?

2010-06-16 Thread Scott
Ok, I'm encountering yet another bug.  3 found in the past 4 days...
I'm beginning to think the FB4 data management is pretty buggy and not a
lot of time was spent cleaning it up...

 

I'm still not sure I understand the data management functionality very
well but I found this article that helped a bit as far as code goes:
http://www.adobe.com/devnet/flex/articles/fcf_managing_data_print.html

 

The issue seems to be that the update function doesn't like it when
there are multiple fields being updated in the single call.  I had a
foreign key that I was not adding to a dataGrid for display so that
value was coming up null in my update function.

 

Here's the buggy part

 

I added a DataGridColumn for that field and set visible=false then
re-ran the program and received the same error:

 

Local item has changes to properties that conflict with remote change.

 

I decided I wanted to see that value to make sure it was getting
populated correctly so I set it to visible=true then re-ran...

 

All of a sudden it was working.  The value should still exist if
visible=false is set on the DataGridColumn.

 

2 days of wasted time on this one... UG.  I wish I could have found
better documentation on how the process works (or any documentation at
all...)  I would have at least realized that it's expecting to update
only one field at a time.

 

sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Wednesday, June 16, 2010 8:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ConflictDetector... Why?

 

  

I've been arguing with the FB4 / CF9 conflict detector the past couple
of days and it's become very apparent that I'm misunderstand something.

 

I have a datagrid component that is populated from a CF9/MySQL
datasource.  I set the datagrid to editable and created the associated
functions to update the datagrid.  My first issue was that the function
was giving me an error : Attempt to use managed delete method with an
item that is not managed on this client.After hours of playing
around with this I ended up enabling datamanagement on the object for
the delete and update functions which took care of that error mesasge.  

 

I now get an error: Local item has changes to properties that conflict
with remote change.  I can run the data service call manually in FB4
just fine using Test Operation so I know the function works.  But when
I try to update a record I get that error message.  The data I'm
presenting to the user would only be modified/changed/updated by the
data owner.  I know the items are different; that's why I'm updating the
remote DB!

 

1)   Why is there a conflict checker and is there a good reason that
this is in place?  

2)   Is there an easy way to turn this functionality off?

 

There's very little documentation out there on this subject

 

Thanks

  SJ




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] FB4 CF data wizard bugs?

2010-06-14 Thread Scott
Man did this make a mess; it took my hours to figure this BS out.  I'm
posting this in case someone else runs into it and needs a quick
workaround.

 

I've been using the CF Wizard to generate the base coldfusion component
then modify it to what I need.  If you have a DB (for sure MySQL) that
has any fields with the datatype BIGINT the autogenerated components
will have a variable check in the query CF_SQL_BIGINT.  I was able to
get around this by modifying the CF_SQL_BIGINT to CF_SQL_NUMERIC.  I'm
not sure if this will allow numbers in the BIGINT range but it will at
least get things working.

 

Don't forget to select a component function in data/services, configure
input types, and re-add the new data to the object.

 

I still can't tell if it's CF or FB4 having the issue with
CF_SQL_BIGINT

 

 sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Sunday, June 13, 2010 2:46 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] FB4 CF data wizard bugs?

 

  

Ok, I found the issue and it's more than likely a bug.  But I'm not sure
if it's a bug with FB4 or CF9 though...

 

The issue is that in my MySQL tables the foreign keys are of type
BIGINT.  Any/every database field with BIGINT assigned to it will be
discovered by FB4 as type STRING.  

 

To get around this, I went into my database and changed the field types
from BIGINT to INT (which is ok right now because I'm just in
development).   I then went into the service and re-configured the
return type and selected the auto-detect.  It then showed the correct
type and I then selected the original datatype which just updates the
current object with the new information.  

 

After I did that, I went back into the DB and reset the fields to BIGINT
and everything seems to be staying; at least until I need to update that
object or service call again.  Then I assume I'm going to go through all
of this once again.

 

Anyway... A bug.  Anyone have any thoughts on who could be the culprit?

 

sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Sunday, June 13, 2010 1:05 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] FB4 CF data wizard bugs?

 

  

Ok, this is a much bigger issue than I thought it would be this time.
The autogenerated objects regenerate with the wrong variable types.  I
don't know of a work around either...  When it generates the objects it
shows the wrong variable type but it won't let me set it.

 

If I have a coldfusion object with type object as the parameter, then
assign FB4 to that CF object, it runs a query against it to see what the
variables are in that object.  There's something very wrong with the
variable detection on larger objects (~15 fields).

 

If I try to run a refresh on the dataservice call it still does not
detect the object correctly.  If I go into the object's .as file I see
that it's wrong, if I modify the file to the correct type it regenerates
with the wrong data.  Where is it pulling this from?  Is it re-running
the query?

 

Also, if right click on the dataservice call in FB4 there's an option
for configure input type.  If I select this it just shows my bad
object; not the object contents.  

 

Is there a quick way around this issue?

 

 Thanks.

 sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Sunday, June 13, 2010 10:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FB4 CF data wizard bugs?

 

  

I've been using the FB4 data wizards to make the initial connections to
my CF functions then modify them to do exactly what I want them to.
(saves a heck of a lot of time!)

 

I've been noticing that frequently the data wizard detects my DB fields
wrong.  My private keys for instance are almost always numbers and FB4
thinks they are strings.  This is also true for the form generation.

 

Is anyone else running into this?

 

 sj


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] Crazy... Why does FB4 prevent me from deleting a record?

2010-06-14 Thread Scott
Ok, I just tried to link a delete function for the first time in FB4 and
came across a weird error...  

The following line causes the error: Attempt to use managed delete
method with an item that is not managed on this client

deletetbllogResult.token =
tbllogService.deletetbllog(dgLogBrowser.selectedItem.pkLogID);

The delete function itself works fine, I can do a test operation and
it deletes the record a-ok.

I stumbled on one other person that had the same error on the web and
what he said was that because the provider didn't provide the ID to
delete that it will throw this error.  His work around was to read the
record then delete it.  

Sure, I set up a read on the record first then deleted the object that
was returned.  Why cause an additional data operation to delete a
record? How counterproductive is this??

Let me worry about the security of the function; this is really silly
IMHO.  Can someone from Adobe explain why this is?

sj


[flexcoders] FB4 CF data wizard bugs?

2010-06-13 Thread Scott
I've been using the FB4 data wizards to make the initial connections to
my CF functions then modify them to do exactly what I want them to.
(saves a heck of a lot of time!)

 

I've been noticing that frequently the data wizard detects my DB fields
wrong.  My private keys for instance are almost always numbers and FB4
thinks they are strings.  This is also true for the form generation.

 

Is anyone else running into this?

 

 sj



RE: [flexcoders] FB4 CF data wizard bugs?

2010-06-13 Thread Scott
Ok, this is a much bigger issue than I thought it would be this time.
The autogenerated objects regenerate with the wrong variable types.  I
don't know of a work around either...  When it generates the objects it
shows the wrong variable type but it won't let me set it.

 

If I have a coldfusion object with type object as the parameter, then
assign FB4 to that CF object, it runs a query against it to see what the
variables are in that object.  There's something very wrong with the
variable detection on larger objects (~15 fields).

 

If I try to run a refresh on the dataservice call it still does not
detect the object correctly.  If I go into the object's .as file I see
that it's wrong, if I modify the file to the correct type it regenerates
with the wrong data.  Where is it pulling this from?  Is it re-running
the query?

 

Also, if right click on the dataservice call in FB4 there's an option
for configure input type.  If I select this it just shows my bad
object; not the object contents.  

 

Is there a quick way around this issue?

 

 Thanks.

 sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Sunday, June 13, 2010 10:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FB4 CF data wizard bugs?

 

  

I've been using the FB4 data wizards to make the initial connections to
my CF functions then modify them to do exactly what I want them to.
(saves a heck of a lot of time!)

 

I've been noticing that frequently the data wizard detects my DB fields
wrong.  My private keys for instance are almost always numbers and FB4
thinks they are strings.  This is also true for the form generation.

 

Is anyone else running into this?

 

 sj




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] FB4 CF data wizard bugs?

2010-06-13 Thread Scott
Ok, I found the issue and it's more than likely a bug.  But I'm not sure
if it's a bug with FB4 or CF9 though...

 

The issue is that in my MySQL tables the foreign keys are of type
BIGINT.  Any/every database field with BIGINT assigned to it will be
discovered by FB4 as type STRING.  

 

To get around this, I went into my database and changed the field types
from BIGINT to INT (which is ok right now because I'm just in
development).   I then went into the service and re-configured the
return type and selected the auto-detect.  It then showed the correct
type and I then selected the original datatype which just updates the
current object with the new information.  

 

After I did that, I went back into the DB and reset the fields to BIGINT
and everything seems to be staying; at least until I need to update that
object or service call again.  Then I assume I'm going to go through all
of this once again.

 

Anyway... A bug.  Anyone have any thoughts on who could be the culprit?

 

sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Sunday, June 13, 2010 1:05 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] FB4 CF data wizard bugs?

 

  

Ok, this is a much bigger issue than I thought it would be this time.
The autogenerated objects regenerate with the wrong variable types.  I
don't know of a work around either...  When it generates the objects it
shows the wrong variable type but it won't let me set it.

 

If I have a coldfusion object with type object as the parameter, then
assign FB4 to that CF object, it runs a query against it to see what the
variables are in that object.  There's something very wrong with the
variable detection on larger objects (~15 fields).

 

If I try to run a refresh on the dataservice call it still does not
detect the object correctly.  If I go into the object's .as file I see
that it's wrong, if I modify the file to the correct type it regenerates
with the wrong data.  Where is it pulling this from?  Is it re-running
the query?

 

Also, if right click on the dataservice call in FB4 there's an option
for configure input type.  If I select this it just shows my bad
object; not the object contents.  

 

Is there a quick way around this issue?

 

 Thanks.

 sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Sunday, June 13, 2010 10:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FB4 CF data wizard bugs?

 

  

I've been using the FB4 data wizards to make the initial connections to
my CF functions then modify them to do exactly what I want them to.
(saves a heck of a lot of time!)

 

I've been noticing that frequently the data wizard detects my DB fields
wrong.  My private keys for instance are almost always numbers and FB4
thinks they are strings.  This is also true for the form generation.

 

Is anyone else running into this?

 

 sj


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] Button in dataGrid (Flashbuilder 4)

2010-06-06 Thread Scott
Ok, it appears that placing buttons in datagrids have changed in Flash
Builder 4...

 

Typically I'd do something like this:

mx:DataGridColumn headerText=Paid dataField=dtPaid
labelFunction=Paid_LabelFunc width=60

  mx:itemRenderer 

mx:Component

  mx:Button label=Pay Now/

/mx:Component

/mx:itemRenderer

/mx:DataGridColumn

 

However these components have changed, but they do not work...

 

mx:DataGridColumn headerText=Paid dataField=dtPaid
labelFunction=Paid_LabelFunc width=60

  mx:itemRenderer 

fx:Component

  s:Button label=Pay Now/

/fx:Component

/mx:itemRenderer

/mx:DataGridColumn

 

Gives me the error:

 

TypeError: Error #1034: Type Coercion failed: cannot convert
yourinfoinnercla...@133490a1 to
mx.controls.listClasses.IListItemRenderer.

 

Moreover; I'm trying to figure out how to either place a text label
PAID or a button if the item has not been paid. Any ideas on how this
is done?

 

 Thanks

Scott



[flexcoders] Get URL that user typed in

2010-05-27 Thread Scott
Is there any way to get the URL that the user typed in to get to the
website?

 

For example, if the user loads IE, Chrome, etc... and goes to
http://www.mysite.com http://www.mysite.com/  is there anyway that I
can pull that information in FB?

 

I know I could do this in Apache but I want do something a little more
dynamic.  If I have multiple URLS pointing to my server I'd like to know
what the original URL was to provide the correct content.

 

 Thanks!

 

Scott



[flexcoders] Flash builder skins

2010-05-19 Thread Scott
Does anyone have a unique skin for Flash builder 4 available for
download?  Or know of a site that has Flash Builder 4 skins for
download?

 

 Thanks much.



[flexcoders] SWC's vs. source

2010-04-14 Thread Scott
What are the ramifications of using precompiled SWC vs. source in a
project?  Does the whole SWC load into memory or just the classes that
are being used?  I'm experimenting with other libraries out there and
have access to both the source and SWC.  It seems accessing the SWC is a
lot easier, but I'm not necessarily looking for what's easier.  I want
what's most efficient.

 

 Thanks

   Scott



RE: [flexcoders] SWC's vs. source

2010-04-14 Thread Scott
What about file size?  Does it link the whole SWC into the final
product?

 

 Scott

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Oleg Sivokon
Sent: Wednesday, April 14, 2010 1:04 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] SWC's vs. source

 

  

Generally, SWC should be more efficient in terms of compilation time
since you will be using already compiled code vs the code the compiler
still needs to analyse or resources to encode.

However, I haven't benchmarked that. So, could be there's something
which escaped my attention.

 

Best.

 

Oleg




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] Re: SWC's vs. source

2010-04-14 Thread Scott
Great; thanks.  I guess I'll play with the SWCs then which will make my
life easier anyway.

 

 sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jeffry Houser
Sent: Wednesday, April 14, 2010 1:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: SWC's vs. source

 

  

We are told that the SWF compiler optimizes to remove unused classes.

However, I have had some inconsistent results:

http://www.flextras.com/blog/index.cfm/2009/6/25/How-does-SWC-size-affet
-SWF-size
http://www.flextras.com/blog/index.cfm/2009/6/25/How-does-SWC-size-affe
t-SWF-size 

I suspect--but never verified--that this is due to static classes or
classes w/ static methods. 

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Scott h...@... wrote:

 What about file size? Does it link the whole SWC into the final
 product?
 
 
 
 Scott
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Oleg Sivokon
 Sent: Wednesday, April 14, 2010 1:04 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: Re: [flexcoders] SWC's vs. source
 
 
 
 
 
 Generally, SWC should be more efficient in terms of compilation time
 since you will be using already compiled code vs the code the compiler
 still needs to analyse or resources to encode.
 
 However, I haven't benchmarked that. So, could be there's something
 which escaped my attention.
 
 
 
 Best.
 
 
 
 Oleg
 
 
 
 
 -- 
 This message has been scanned for viruses and 
 dangerous content by MailScanner http://www.mailscanner.info/
http://www.mailscanner.info/  , and is
 
 believed to be clean.





-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] Google map mashup

2010-04-01 Thread Scott
You could use the get html to a place like:
http://www.geobytes.com/ipLocator.htm

 

You'll never be extremely accurate with the location though.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Christophe
Sent: Thursday, April 01, 2010 3:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Google map mashup

 

  

Hello, 

For a Flex/Google map mashup, how to get longitude and latitude from an
IP address ? 

Thank you,
Christophe, 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] Display mySql Table in Flex

2010-04-01 Thread Scott
That's a pretty broad question...

 

To learn this better, I'd upgrade to Flash Builder 4 and use the builtin
code generator to see examples of how this is created.  This code
generator creates the php classes to create, update, and delete records
in mysql.  However, this is all using the Zend framework.  After playing
with this I've switched completely over to the Zend framework because of
the native support in Flash Builder.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Christophe
Sent: Thursday, April 01, 2010 3:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Display mySql Table in Flex

 

  

Hello, 

For a back office, how to display the mySql tables (I use amfphp) inside
the flex application ? 

Is there is a solution to modify from flex the values in the table ?

Thank you,
Christophe, 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] Purplexing error

2010-03-30 Thread Scott
This is running on the Beta2.  I haven't gotten around to getting the
official version yet... I'm trying to figure out if I want the CF
builder or not before I make the purchase.

 

I've been running into a lot of issues with php superclass
generation/regeneration.  I certainly hope the beta version is the
issue...

 

sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Ryan Stewart
Sent: Monday, March 29, 2010 10:19 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Purplexing error

 

  

Hey Scott, was this the release version of FB4 or was it a beta version?

 

=Ryan

r...@adobe.com

On Mon, Mar 29, 2010 at 8:20 PM, Scott h...@netprof.us
mailto:h...@netprof.us  wrote:

  

I think I found the issue... And I think it's a bug...

 

I used the FB4 function to create the base PHP class.  I then modified
the FB4 created update function to use an object instead of an
integer.  FB didn't re-adjust the superclasses after I made that change.
What I did to fix it was to create a whole new update function and the
error went away.

 

sj

 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Scott
Sent: Monday, March 29, 2010 6:04 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] Purplexing error

 

  

 

I'm getting a weird error when updating a mysql table through PHP.  I've
tested the function using PHP and it works perfect.  I've also made sure
the variables match the object.

 

When I fill in my textbox and click submit, I get this error:

 

ArgumentError: updateItem called with an item which is not managed on
this client: tblGroupsRPCDataManager.tblGroupsRPCDataManager:#:3

at
mx.data::ConcreteDataService/updateItem()[C:\depot\DataServices\branches
\dune_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:106
6]

at
mx.data::DataManager/updateItem()[C:\depot\DataServices\branches\dune_rc
\frameworks\projects\data\src\mx\data\DataManager.as:2139]

at Function/http://adobe.com/AS3/2006/builtin::apply()
http://adobe.com/AS3/2006/builtin::apply() 

at
mx.data::ManagedOperation/updateItemProxy()[C:\depot\DataServices\branch
es\dune_rc\frameworks\projects\data\src\mx\data\ManagedOperation.as:495]

at
mx.rpc.remoting::Operation/send()[E:\dev\gumbo_beta2\frameworks\projects
\rpc\src\mx\rpc\remoting\Operation.as:212]

at
_Super_TblGroupsService/updateTblGroups()[X:\PackRat\www\src\services\tb
lgroupsservice\_Super_TblGroupsService.as:254]

at
Config/button_clickHandler()[X:\PackRat\www\src\Config.mxml:73]

at
Config/__button_click()[X:\PackRat\www\src\Config.mxml:131]

 

 

I'm not sure what it's trying to tell me...  Any ideas out there?

 

-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 

 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] Dataprovider and events

2010-03-29 Thread Scott
I know I've ran into this before but for some reason my memory isn't
kicking in.

I've got a listbox that depends on a combobox to load before it fires
its dataprovider.  Without having the combobox loaded, the data provider
for the listbox is null and it throws an error: #1009: Cannot access a
property or method of a null object reference.

I know why it's happening but I can't seem to figure out a workaround...
Any ideas?



RE: [flexcoders] Dataprovider and events

2010-03-29 Thread Scott
It's throwing because the cbGroupSelect.selectedItem.pkGroupID doesn't
exist when it's trying to call it the list_update function...  The
combobox cbGroupSelect pulls its data from the provider first which
gives the index fields for the list object.  I'm doing creation_complete
on the list object, but the object is created before the data provider
for the combobox has filled its data.

 

Here's the dump:

 

TypeError: Error #1009: Cannot access a property or method of a null
object reference.

  at
Config/list_creationCompleteHandler()[X:\PackRat\www\src\Config.mxml:25]

  at
Config/__lstItemList_creationComplete()[X:\PackRat\www\src\Config.mxml:9
8]

  at flash.events::EventDispatcher/dispatchEventFunction()

  at flash.events::EventDispatcher/dispatchEvent()

  at
mx.core::UIComponent/dispatchEvent()[E:\dev\gumbo_beta2\frameworks\proje
cts\framework\src\mx\core\UIComponent.as:11749]

  at mx.core::UIComponent/set
initialized()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\co
re\UIComponent.as:1525]

  at
mx.managers::LayoutManager/validateClient()[E:\dev\gumbo_beta2\framework
s\projects\framework\src\mx\managers\LayoutManager.as:988]

  at
mx.core::UIComponent/validateNow()[E:\dev\gumbo_beta2\frameworks\project
s\framework\src\mx\core\UIComponent.as:7249]

  at
mx.core::UIComponent/creationCompleteHandler()[E:\dev\gumbo_beta2\framew
orks\projects\framework\src\mx\core\UIComponent.as:10846]

  at flash.events::EventDispatcher/dispatchEventFunction()

  at flash.events::EventDispatcher/dispatchEvent()

  at
mx.core::UIComponent/dispatchEvent()[E:\dev\gumbo_beta2\frameworks\proje
cts\framework\src\mx\core\UIComponent.as:11749]

  at mx.core::UIComponent/set
initialized()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\co
re\UIComponent.as:1525]

  at
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\gumbo_beta2\fr
ameworks\projects\framework\src\mx\managers\LayoutManager.as:759]

  at
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\gumbo_
beta2\frameworks\projects\framework\src\mx\managers\LayoutManager.as:106
9]

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Monday, March 29, 2010 2:47 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Dataprovider and events

 

  

Post the entire stacktrace so we can see why it throws.


On 3/29/10 11:33 AM, Scott h...@netprof.us wrote:


 
 
   

I know I've ran into this before but for some reason my memory
isn't
kicking in.

I've got a listbox that depends on a combobox to load before it
fires
its dataprovider.  Without having the combobox loaded, the data
provider
for the listbox is null and it throws an error: #1009: Cannot
access a
property or method of a null object reference.

I know why it's happening but I can't seem to figure out a
workaround...
Any ideas?

 
   




-- 
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] Re: Dataprovider and events

2010-03-29 Thread Scott
I should spend some time with FB4 (which is what I'm using right now)
and result events.  The remote object calls are a lot different than in
FB3... Callresponders are a little different when it comes to this.  I
don't see any references to result event like what I had in FB3...

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of valdhor
Sent: Monday, March 29, 2010 3:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Dataprovider and events

 

  

How does the combobox get its data? If it is using remoting, you can
wait for the resultevent to fire and then populate the listbox.

Also, you could populate the dataprovider with dummy blank data so it's
not null and then update it when the data arrives.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Scott h...@... wrote:

 I know I've ran into this before but for some reason my memory isn't
 kicking in.
 
 I've got a listbox that depends on a combobox to load before it fires
 its dataprovider. Without having the combobox loaded, the data
provider
 for the listbox is null and it throws an error: #1009: Cannot access a
 property or method of a null object reference.
 
 I know why it's happening but I can't seem to figure out a
workaround...
 Any ideas?





-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] Purplexing error

2010-03-29 Thread Scott
 

I'm getting a weird error when updating a mysql table through PHP.  I've
tested the function using PHP and it works perfect.  I've also made sure
the variables match the object.

 

When I fill in my textbox and click submit, I get this error:

 

ArgumentError: updateItem called with an item which is not managed on
this client: tblGroupsRPCDataManager.tblGroupsRPCDataManager:#:3

at
mx.data::ConcreteDataService/updateItem()[C:\depot\DataServices\branches
\dune_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:106
6]

at
mx.data::DataManager/updateItem()[C:\depot\DataServices\branches\dune_rc
\frameworks\projects\data\src\mx\data\DataManager.as:2139]

at Function/http://adobe.com/AS3/2006/builtin::apply()

at
mx.data::ManagedOperation/updateItemProxy()[C:\depot\DataServices\branch
es\dune_rc\frameworks\projects\data\src\mx\data\ManagedOperation.as:495]

at
mx.rpc.remoting::Operation/send()[E:\dev\gumbo_beta2\frameworks\projects
\rpc\src\mx\rpc\remoting\Operation.as:212]

at
_Super_TblGroupsService/updateTblGroups()[X:\PackRat\www\src\services\tb
lgroupsservice\_Super_TblGroupsService.as:254]

at
Config/button_clickHandler()[X:\PackRat\www\src\Config.mxml:73]

at
Config/__button_click()[X:\PackRat\www\src\Config.mxml:131]

 

 

I'm not sure what it's trying to tell me...  Any ideas out there?



RE: [flexcoders] Dataprovider and events

2010-03-29 Thread Scott
I just got done adding that in.  The result event was moved to the
CallResponder.

 

Thanks!

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Monday, March 29, 2010 5:44 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Dataprovider and events

 

  

Instead of using creationComplete, you might want to wait until you get
a resultEvent from the server.


On 3/29/10 1:12 PM, Scott h...@netprof.us wrote:


 
 
   

It's throwing because the cbGroupSelect.selectedItem.pkGroupID
doesn't exist when it's trying to call it the list_update function...
The combobox cbGroupSelect pulls its data from the provider first which
gives the index fields for the list object.  I'm doing creation_complete
on the list object, but the object is created before the data provider
for the combobox has filled its data.
 
Here's the dump:
 
TypeError: Error #1009: Cannot access a property or method of a
null object reference.
  at
Config/list_creationCompleteHandler()[X:\PackRat\www\src\Config.mxml:25]
  at
Config/__lstItemList_creationComplete()[X:\PackRat\www\src\Config.mxml:9
8]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at
mx.core::UIComponent/dispatchEvent()[E:\dev\gumbo_beta2\frameworks\proje
cts\framework\src\mx\core\UIComponent.as:11749]
  at mx.core::UIComponent/set
initialized()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\co
re\UIComponent.as:1525]
  at
mx.managers::LayoutManager/validateClient()[E:\dev\gumbo_beta2\framework
s\projects\framework\src\mx\managers\LayoutManager.as:988]
  at
mx.core::UIComponent/validateNow()[E:\dev\gumbo_beta2\frameworks\project
s\framework\src\mx\core\UIComponent.as:7249]
  at
mx.core::UIComponent/creationCompleteHandler()[E:\dev\gumbo_beta2\framew
orks\projects\framework\src\mx\core\UIComponent.as:10846]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at
mx.core::UIComponent/dispatchEvent()[E:\dev\gumbo_beta2\frameworks\proje
cts\framework\src\mx\core\UIComponent.as:11749]
  at mx.core::UIComponent/set
initialized()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\co
re\UIComponent.as:1525]
  at
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\gumbo_beta2\fr
ameworks\projects\framework\src\mx\managers\LayoutManager.as:759]
  at
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\gumbo_
beta2\frameworks\projects\framework\src\mx\managers\LayoutManager.as:106
9]





From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Alex Harui
Sent: Monday, March 29, 2010 2:47 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Dataprovider and events

  

Post the entire stacktrace so we can see why it throws.


On 3/29/10 11:33 AM, Scott h...@netprof.us wrote:



 
 
   

I know I've ran into this before but for some reason my
memory isn't
kicking in.

I've got a listbox that depends on a combobox to load
before it fires
its dataprovider.  Without having the combobox loaded,
the data provider
for the listbox is null and it throws an error: #1009:
Cannot access a
property or method of a null object reference.

I know why it's happening but I can't seem to figure out
a workaround...
Any ideas?

 
   

 


-- 
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] Purplexing error

2010-03-29 Thread Scott
I think I found the issue... And I think it's a bug...

 

I used the FB4 function to create the base PHP class.  I then modified
the FB4 created update function to use an object instead of an
integer.  FB didn't re-adjust the superclasses after I made that change.
What I did to fix it was to create a whole new update function and the
error went away.

 

sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Monday, March 29, 2010 6:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Purplexing error

 

  

 

I'm getting a weird error when updating a mysql table through PHP.  I've
tested the function using PHP and it works perfect.  I've also made sure
the variables match the object.

 

When I fill in my textbox and click submit, I get this error:

 

ArgumentError: updateItem called with an item which is not managed on
this client: tblGroupsRPCDataManager.tblGroupsRPCDataManager:#:3

at
mx.data::ConcreteDataService/updateItem()[C:\depot\DataServices\branches
\dune_rc\frameworks\projects\data\src\mx\data\ConcreteDataService.as:106
6]

at
mx.data::DataManager/updateItem()[C:\depot\DataServices\branches\dune_rc
\frameworks\projects\data\src\mx\data\DataManager.as:2139]

at Function/http://adobe.com/AS3/2006/builtin::apply()

at
mx.data::ManagedOperation/updateItemProxy()[C:\depot\DataServices\branch
es\dune_rc\frameworks\projects\data\src\mx\data\ManagedOperation.as:495]

at
mx.rpc.remoting::Operation/send()[E:\dev\gumbo_beta2\frameworks\projects
\rpc\src\mx\rpc\remoting\Operation.as:212]

at
_Super_TblGroupsService/updateTblGroups()[X:\PackRat\www\src\services\tb
lgroupsservice\_Super_TblGroupsService.as:254]

at
Config/button_clickHandler()[X:\PackRat\www\src\Config.mxml:73]

at
Config/__button_click()[X:\PackRat\www\src\Config.mxml:131]

 

 

I'm not sure what it's trying to tell me...  Any ideas out there?




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] Flash Builder super-class regeneration

2010-03-26 Thread Scott
Does anyone know what triggers the super-class regeneration to pick up
new variables?

 

I generated a php class from Flash Builder then modified the code and
removed functions that I didn't want.  I then discovered that I needed
an additional DB field in my MySQL table so I added the DB field and
re-modified me PHP class to reflect the additional data field.

 

I went back into flash builder and found that it wasn't allowing me to
set the new variable from the object instance.  I then opened up (and
without reading the top of the file) the superclass.as file for the
object.  I added in the variable throughout the class and saved it.
After that I was able to compile and run the program.  Once I closed off
and went back into FB4 it was giving me the variable doesn't exist error
again.  I re-opened the superclass.as file and found that my changes
were gone and at the same time I saw at the top of the file that it will
self update.

 

Question is, it's seeing all the other variables, why isn't it picking
up the new one?  What triggers the regeneration to pick up the new
variable?

 

 Thanks.

  sj



[flexcoders] flash builder 4 and Zend framework

2010-03-08 Thread Scott
I've built an application in Flash Builder 4 and am working on the final
piece; the security.

 

Not knowing much of anything about the zend framework, I've done a few
searches on the Internet looking for examples on how to use zend_auth
and zend_acl.

 

All of the examples I found are written for the MVC, which I really
never cared for in Flex 3 and my code was similar to Flash Builder 4.
Regardless, I just can't seem to grasp the concept of how zend_auth and
zend_acl work.  To make matters worse, I'm a coldfusion guy and know
only a fair amount of PHP.  (I'm using the project to learn more about
PHP)

 

Has anyone worked with Flashbuilder 4/zend_acl/zend_auth and care to
share the process?

 

 Thanks much.

  sj



RE: [flexcoders] flash builder 4 and Zend framework

2010-03-08 Thread Scott
Ok, I found a blog entry that was written last Friday that answered all
my questions.

 

http://www.flexphperia.net/en/programming/php/client-authentication-and-
authorization-in-zend-amf-server

 

 sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Monday, March 08, 2010 4:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flash builder 4 and Zend framework

 

  

I've built an application in Flash Builder 4 and am working on the final
piece; the security.

 

Not knowing much of anything about the zend framework, I've done a few
searches on the Internet looking for examples on how to use zend_auth
and zend_acl.

 

All of the examples I found are written for the MVC, which I really
never cared for in Flex 3 and my code was similar to Flash Builder 4.
Regardless, I just can't seem to grasp the concept of how zend_auth and
zend_acl work.  To make matters worse, I'm a coldfusion guy and know
only a fair amount of PHP.  (I'm using the project to learn more about
PHP)

 

Has anyone worked with Flashbuilder 4/zend_acl/zend_auth and care to
share the process?

 

 Thanks much.

  sj




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


Re: [flexcoders] Re: Future Of Flex Developers?

2010-02-11 Thread Scott Langeberg
I'm developing Flex 3 apps in FlashBuilder 4 beta 2, right now - not too
many probs


On Thu, Feb 11, 2010 at 7:15 AM, GeorgeB grg_b...@yahoo.com wrote:



 Exactly Paul!

 I am now using Flex Builder3.x and will (when time comes) upgrade to
 whatever they call it. As I will have to. Obviously!

 The only question I have for the time being (but will have to wait) is what
 will be the upgrade policy from 3 to 4?
 As I mentioned elsewhere I have been invoiced close to 700 euros (including
 VAT) locally for this software and I don't want to face any surprises on
 this subject, because a name was changed..

 Thanks
 George


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Paul
 Andrews p...@... wrote:
 
  GeorgeB wrote:
   Hi Pravin,
  
   Another thing for you to consider is that due to Adobe's dropping the
 name Flex Builder in favor of Flash Builder, obviously the future for Flex
 developers is rather gloomy, as they should be called Flash developers!!!
  
  I don't think being a Flex developer has anything to do with Adobe's
  product name - we will still be using the Flex framework.
 
  Sadly it all goes to show how Adobe's naming strategy is a branding mess.
   Of course this is a bitter joke, but as you ask:
  
   ...which will I guess help lot of confused minds.
  
   I feel we are already confused enough. LOL
  
   Thanks
   George
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, 
   p...@uttarwar pravinuttarwar@
 wrote:
  
   Hi Guys,
  
   I don't know whether this is the right place to ask question like this
 or
   not.
  
   I am working on Flex from last couple of years and
   as far as current market requirements, It seems that the demand of
 flex
   developers is quite high.
  
   But still I want to know from all of you the answer to this question
 which
   will I guess help lot of confused minds.
  
   Also If got time please go through the link and answer this question:
  
   http://www.surveymonkey.com/s/JNW6MQL
  
   Thanks  Regards,
   Pravin Uttarwar
  
  
  
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Alternative FAQ location:
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
   Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links
  
  
  
  
  
 

  



[flexcoders] FB4 - PHP object call

2010-02-08 Thread Scott
I've got to be missing something simple here...  I've spent hours trying
to figure out why my lastresult is not getting set my remote call.

 

I define an object to fill in the input variables:

 

private var objSearchControl:Tblbrowserrecord = new Tblbrowserrecord();

 

Then I make the call to the php object:

 

protected function
dataGrid_creationCompleteHandler(event:FlexEvent):void 

{

  // assign variables to object

objSearchControl.szUserID = tiUserID.text;

objSearchControl.szIP =  tiIP.text;

objSearchControl.szRule = tiRule.text; 

objSearchControl.szURL =  tiURL.text;

objSearchControl.dtFrom = dfFrom.text;

objSearchControl.dtTo = dfTo.text;

objSearchControl.szReturnCode = tiCode.text; 

 

getTblbrowserrecord_search_pagedResult.token =
tblbrowserrecordService.getTblbrowserrecord_search_paged(
objSearchControl);

}

 

I'm able to test the object successfully from FB4; it returns the data
set I'm expecting.

 

When I watch getTblbrowserrecord_search_pagedResult, the lastresult
remains undefined.

 

Any ideas?



RE: [flexcoders] Flash builder 4 List control (remove items)

2010-02-01 Thread Scott
Weird..  When I looked in the code hint box I didn't see it but if I
typed it mostly out then hit control space it found it.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Monday, February 01, 2010 1:24 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flash builder 4 List control (remove items)

 

  

The List's dataprovider is an IList or ICollectionView.  Ilist has a
removeItem.


On 2/2/10 3:56 PM, Scott h...@netprof.us wrote:


 
 
   

I'm using Flash Builder 4 with PHP.
 
I've used lists before with no issue but I can't seem to find
the removeItem() anywhere.  Does anyone know if they changed the
function for removing an item out of a list?
 
 Thanks.
  sj

   




-- 
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] Flash builder 4 List control (remove items)

2010-01-31 Thread Scott
I'm using Flash Builder 4 with PHP.

 

I've used lists before with no issue but I can't seem to find the
removeItem() anywhere.  Does anyone know if they changed the function
for removing an item out of a list?

 

 Thanks.

  sj



[flexcoders] Re: Flex/PHP securing functions

2010-01-26 Thread Scott
That is what I was looking for. Thanks!

 

 Regards,

  Scott

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of seanmcmonahan
Sent: Tuesday, January 26, 2010 1:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex/PHP securing functions

 

  

Have you looked into remoting with Zend AMF?

When using Zend AMF you can use Zend's authentication features. Examples
here: http://framework.zend.com/manual/en/zend.amf.server.html
http://framework.zend.com/manual/en/zend.amf.server.html 

Authentication/access control stuff is at the bottom.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Scott h...@... wrote:

 I've worked a lot with coldfusion and flex using cflogin/roles. I have
 a project that I'm working on now that the backend will be done in
PHP.
 Since this is a pet project I'm using flash builder 4 to learn
before
 the release (And I'm really liking it!)
 
 
 
 I've found documentation with connecting flex to php through an
 httpservice call. I modified this using a php class/function call
 instead of calling a httpservice. However, this doesn't protect the
php
 functions on the server. Is there a method like the coldfusion
 cflogin/roles in php? I'm assuming that session information is not
 available in PHP (as it isn't in coldfusion as well).
 
 
 
 Thanks
 
 Scott





-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


[flexcoders] Flex/PHP securing functions

2010-01-25 Thread Scott
I've worked a lot with coldfusion and flex using cflogin/roles.  I have
a project that I'm working on now that the backend will be done in PHP.
Since this is a pet project I'm using flash builder 4 to learn before
the release (And I'm really liking it!)

 

I've found documentation with connecting flex to php through an
httpservice call.  I modified this using a php class/function call
instead of calling a httpservice.  However, this doesn't protect the php
functions on the server.  Is there a method like the coldfusion
cflogin/roles in php?  I'm assuming that session information is not
available in PHP (as it isn't in coldfusion as well).

 

 Thanks

   Scott



Re: [flexcoders] click and doubleClick on the same button?

2009-09-01 Thread Beau Scott
The only way I've been able to accomplish this is to use a timer to filter
out a double click, and then ferry the original click event to an eventual
click handler. The downside to this is the hardcoded timer delay doesn't
reflect the user's system's double-click delay, and I'm not sure how to read
that in (I'm not even sure that Flex uses this anyway).

Example:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=horizontal xmlns:local=*
mx:Script
![CDATA[

private var doubleClickFilterTimer:Timer;
private var pendingMouseEvent:MouseEvent;

private function button_doubClickHandler(event:MouseEvent):void
{
if(doubleClickFilterTimer)
   doubleClickFilterTimer.stop();
trace('double clicked');
}

private function button_clickHandler(event:MouseEvent):void
{
if(!doubleClickFilterTimer)
{
doubleClickFilterTimer = new Timer(200, 1);

doubleClickFilterTimer.addEventListener(TimerEvent.TIMER_COMPLETE,
doubleClickFilterTimer_timerCompleteHandler);
}
else
{
doubleClickFilterTimer.reset();
}
pendingMouseEvent = event;
doubleClickFilterTimer.start();
}

private function
doubleClickFilterTimer_timerCompleteHandler(event:TimerEvent):void
{
finishClickHandler(pendingMouseEvent);
pendingMouseEvent = null;
}

private function finishClickHandler(event:MouseEvent):void
{
trace('clicked');
}
]]
/mx:Script

mx:Button label=Click or Double-Click Me
click=button_clickHandler(event)
doubleClickEnabled=true
doubleClick=button_doubClickHandler(event) /

/mx:Application



Hope that helps,

Beau

On Tue, Sep 1, 2009 at 9:27 AM, Nick Middleweek n...@middleweek.co.ukwrote:



 Hello,

 I'm having difficulty setting both a click and a doubleClick event on the
 same button. Is it possible?


 Thanks,
 Nick

  




-- 
Beau D. Scott
Software Engineer


Re: [flexcoders] Stopping double-click of a button 'bubble' to the datagrid row

2009-09-01 Thread Beau Scott
Event.stopPropagation() or stopImmediatePropagation() (depending on whether
you want events on the current node to be executed before the event stops or
not:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=horizontal xmlns:local=*
mx:Script
![CDATA[
[Bindable]
public var dp:Array = [
{foo: button 1},
{foo: button 2},
{foo: button 3},
{foo: button 4},
{foo: button 5},
{foo: button 6},
];

private function dg_doubleClickHandler(event:Event):void
{
trace('dg double click');
}
]]
/mx:Script

mx:AdvancedDataGrid id=dg doubleClickEnabled=true
doubleClick=dg_doubleClickHandler(event) dataProvider={dp}
mx:columns
mx:AdvancedDataGridColumn dataField=foo 
mx:itemRenderer
mx:Component
mx:Button doubleClickEnabled=true
label={listData.label}
doubleClick=trace(listData.label + ' double
click'); event.stopImmediatePropagation(); /
/mx:Component
/mx:itemRenderer
/mx:AdvancedDataGridColumn
/mx:columns
/mx:AdvancedDataGrid

/mx:Application


Beau

On Tue, Sep 1, 2009 at 10:55 AM, Nick Middleweek n...@middleweek.co.ukwrote:



 Hello,

 I've got an advancedDataGrid (AvDG) and the first column has an item
 renderer which has a button on it. The button has a click handler.

 There is also a itemDoubleClick handler on the AvDG.

 Users are double-clicking the button so this is firing the click of the
 button handler but the doubleClick event is also being fired on the AvDG row
 item.

 I'm guessing this is related to event bubbling or capturing?

 I'm trying to stop the AvDG.row doubleClick event being fired if the user
 double clicks on the button.

 Anyone got any ideas? I've tried to put a doubleClick on the button in hope
 that it would handle it and therefore stop the row event from being fired
 but ti didn't work.


 Now I think i need to capture the doubleClick cancel event in the button
 object and prevent it from bubbling from the button to the AvDG. Where do I
 set event.cancelable = true?


 Thanks,
 Nick

  




-- 
Beau D. Scott
Software Engineer


[flexcoders] creationcomplete firing when a component is disabled

2009-09-01 Thread Scott
I've got a troubling issue...

 

On my main page I have a tabNavigator that has several different pages
for my app.  This navigator is disabled until the user logs in.
However, even though the navigator is disabled; it still fires off the
creationcomplete which is giving me grief because the data connection
hasn't been built yet.

 

Falling short of creating a custom event, is there a way to fire off the
init() function when the component is enabled instead of when it's
creationComplete?

 

 Thanks

  Scott



RE: [flexcoders] RE: creationcomplete firing when a component is disabled

2009-09-01 Thread Scott
Makes sense, but I tried that already...

 

mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=100%
height=100% enabled=false creationComplete=init() 

 


Still causes the init() to fire...  Is this a bug?

 

sj



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Tuesday, September 01, 2009 1:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: creationcomplete firing when a component is
disabled

 

  

Disabling is about interactivity, not creation, which is why
creationComplete fires.

 

Somewhere you probably have code that sets enabled=true, and that code
can call init().

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. http://www.adobe.com/ 

Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Tuesday, September 01, 2009 11:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] creationcomplete firing when a component is
disabled

 

  

I've got a troubling issue...

 

On my main page I have a tabNavigator that has several different pages
for my app.  This navigator is disabled until the user logs in.
However, even though the navigator is disabled; it still fires off the
creationcomplete which is giving me grief because the data connection
hasn't been built yet.

 

Falling short of creating a custom event, is there a way to fire off the
init() function when the component is enabled instead of when it's
creationComplete?

 

 Thanks

  Scott




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] RE: creationcomplete firing when a component is disabled

2009-09-01 Thread Scott
That's in the parent component...

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Tuesday, September 01, 2009 2:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

I think you misunderstood. Where is the code that sets enable=true on
the tabnavigator?

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. http://www.adobe.com/ 

Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Tuesday, September 01, 2009 11:01 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

Makes sense, but I tried that already...

 

mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=100%
height=100% enabled=false creationComplete=init() 

 
n bsp;   nb! sp;

Still causes the init() to fire...  Is this a bug?

 

sj



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Tuesday, September 01, 2009 1:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: creationcomplete firing when a component is
disabled

 

  

Disabling is about interactivity, not creation, which is why
creationComplete fires.

 

Somewhere you probably have code that sets enabled=true, and that code
can call init().

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. http://www.adobe.com/ 

Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Tuesday, September 01, 2009 11:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] creationcomplete firing when a component is
disabled

 

  

I've got a troubling issue...

 

On my main page I have a tabNavigator that has several different pages
for my app.  This navigator is disabled until the user logs in.
However, even though the navigator is disabled; it still fires off the
creationcomplete which is giving me grief because the data connection
hasn't been built yet.

 

Falling short of creating a custom event, is there a way to fire off the
init() function when the component is enabled instead of when it's
creationComplete?

 

 Thanks

  Scott


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] RE: creationcomplete firing when a component is disabled

2009-09-01 Thread Scott
Unfortunately, it's not a manual process...

 

mx:TabNavigator x=66 y=128 width=899 height=566
enabled={GlobalVars.instance.bLoggedIn} 

 

I just have it watch the variable that tells the application the user is
logged in...

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Fotis Chatzinikos
Sent: Tuesday, September 01, 2009 2:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

No, you misunderstood. Alex meant that you need to call init when you
'manually' enable the canvas.

Ie:

you have a button where you do:

buttonClick(..)
{
myCanvas.enabled = true ;
//Here is the place to put init()
}





On Tue, Sep 1, 2009 at 9:01 PM, Scott h...@netprof.us
mailto:h...@netprof.us  wrote:

  

Makes sense, but I tried that already...

 

mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  width=100% height=100%
enabled=false creationComplete=init() 

 


Still causes the init() to fire...  Is this a bug?

 

sj



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Alex Harui
Sent: Tuesday, September 01, 2009 1:49 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] RE: creationcomplete firing when a component is
disabled

 

  

Disabling is about interactivity, not creation, which is why
creationComplete fires.

 

Somewhere you probably have code that sets enabled=true, and that code
can call init().

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. http://www.adobe.com/ 

Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 

 

From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Scott
Sent: Tuesday, September 01, 2009 11:01 AM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] creationcomplete firing when a component is
disabled

 

  

I've got a troubling issue...

 

On my main page I have a tabNavigator that has several different pages
for my app.  This navigator is disabled until the user logs in.
However, even though the navigator is disabled; it still fires off the
creationcomplete which is giving me grief because the data connection
hasn't been built yet.

 

Falling short of creating a custom event, is there a way to fire off the
init() function when the component is enabled instead of when it's
creationComplete?

 

 Thanks

  Scott

 

-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com mailto:fotis.chatzini...@gmail.com , 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] RE: creationcomplete firing when a component is disabled

2009-09-01 Thread Scott
Ok. Great. Thanks much.

 

sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Tuesday, September 01, 2009 2:23 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

If I were writing the code, GlobalVars would look like:

 

Class GlobalVars

 

[Bindable(bLoggedInChanged)]

Public function get bLoggedIn():Boolean

{

Return _bLoggedIn;

}

 

Public function set bLoggedIn(value:Boolean):void

{

If (_bLoggedIn != value)

{

_bLoggedIn = value;

dispatchEvent(new
Event(bLoggedInChanged);

}

}

 

And somewhere in the app I would do:

 

GlobalVars.instance.addEventListener(bLoggedInChanged, init);

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. http://www.adobe.com/ 

Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Tuesday, September 01, 2009 11:22 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

Unfortunately, it's not a manual process...

 

mx:TabNavigator x=66 y=128 width=899 height=566
enabled={GlobalVars.instance.bLoggedIn} 

 

I just have it watch the variable that tells the application the user is
logged in...

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Fotis Chatzinikos
Sent: Tuesday, September 01, 2009 2:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

No, you misunderstood. Alex meant that you need to call init when you
'manually' enable the canvas.

Ie:

you have a button where you do:

buttonClick(..)
{
myCanvas.enabled = true ;
//Here is the place to put init()
}







On Tue, Sep 1, 2009 at 9:01 PM, Scott h...@netprof.us
mailto:h...@netprof.us  wrote:

  

Makes sense, but I tried that already...

 

mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  width=100% height=100%
enabled=false creationComplete=init() 

 
! 

Still causes the init() to fire...  Is this a bug?

 

sj



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Alex Harui
Sent: Tuesday, September 01, 2009 1:49 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] RE: creationcomplete firing when a component is
disabled

 

  

Disabling is about interactivity, not creation, which is why
creationComplete fires.

 

Somewhere you probably have code that sets enabled=true, and that code
can call init().

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. http://www.adobe.com/ 

Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 

 

From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Scott
Sent: Tuesday, September 01, 2009 11:01 AM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] creationcomplete firing when a component is
disabled

 

  

I've got a troubling issue...

 

On my main page I have a tabNavigator that has several different pages
for my app.  This navigator is disabled until the user logs in.
However, even though the navigator is disabled; it still fires off the
creationcomplete which is giving me grief because the data connection
hasn't been built yet.

 

Falling short of creating a custom event, is there a way to fire off the
init() function when the component is enabled instead of when it's
creationComplete?

 

 Thanks

  Scott

 

-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com mailto:fotis.chatzini...@gmail.com , 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] RE: creationcomplete firing when a component is disabled

2009-09-01 Thread Scott
I've been playing around with this...

 

I added in the line

 

GlobalVars.instance.addEventListener(bLoggedInChanged), init);

 

And I got the error:

 

Access of undefined property init

 

I then tried:

 

init()

 

and got:

 

Call to a possibly undefined method init

 

I even selected it from the . auto selection which gave it the ()
after init.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Tuesday, September 01, 2009 2:23 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

If I were writing the code, GlobalVars would look like:

 

Class GlobalVars

 

[Bindable(bLoggedInChanged)]

Public function get bLoggedIn():Boolean

{

Return _bLoggedIn;

}

 

Public function set bLoggedIn(value:Boolean):void

{

If (_bLoggedIn != value)

{

_bLoggedIn = value;

dispatchEvent(new
Event(bLoggedInChanged);

}

}

 

And somewhere in the app I would do:

 

GlobalVars.instance.addEventListener(bLoggedInChanged, init);

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. http://www.adobe.com/ 

Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Tuesday, September 01, 2009 11:22 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

Unfortunately, it's not a manual process...

 

mx:TabNavigator x=66 y=128 width=899 height=566
enabled={GlobalVars.instance.bLoggedIn} 

 

I just have it watch the variable that tells the application the user is
logged in...

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Fotis Chatzinikos
Sent: Tuesday, September 01, 2009 2:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

No, you misunderstood. Alex meant that you need to call init when you
'manually' enable the canvas.

Ie:

you have a button where you do:

buttonClick(..)
{
myCanvas.enabled = true ;
//Here is the place to put init()
}







On Tue, Sep 1, 2009 at 9:01 PM, Scott h...@netprof.us
mailto:h...@netprof.us  wrote:

  

Makes sense, but I tried that already...

 

mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  width=100% height=100%
enabled=false creationComplete=init() 

 
! 

Still causes the init() to fire...  Is this a bug?

 

sj



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Alex Harui
Sent: Tuesday, September 01, 2009 1:49 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] RE: creationcomplete firing when a component is
disabled

 

  

Disabling is about interactivity, not creation, which is why
creationComplete fires.

 

Somewhere you probably have code that sets enabled=true, and that code
can call init().

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. http://www.adobe.com/ 

Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 

 

From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Scott
Sent: Tuesday, September 01, 2009 11:01 AM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] creationcomplete firing when a component is
disabled

 

  

I've got a troubling issue...

 

On my main page I have a tabNavigator that has several different pages
for my app.  This navigator is disabled until the user logs in.
However, even though the navigator is disabled; it still fires off the
creationcomplete which is giving me grief because the data connection
hasn't been built yet.

 

Falling short of creating a custom event, is there a way to fire off the
init() function when the component is enabled instead of when it's
creationComplete?

 

 Thanks

  Scott

 

-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 




-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com mailto:fotis.chatzini...@gmail.com , 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] RE: creationcomplete firing when a component is disabled

2009-09-01 Thread Scott
Nevermind.  I needed to create a new function and add that within that
function's body.

 

It's still not firing the init() function right but I'll play around
with it.

 

sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Tuesday, September 01, 2009 3:50 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

I've been playing around with this...

 

I added in the line

 

GlobalVars.instance.addEventListener(bLoggedInChanged), init);

 

And I got the error:

 

Access of undefined property init

 

I then tried:

 

init()

 

and got:

 

Call to a possibly undefined method init

 

I even selected it from the . auto selection which gave it the ()
after init.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Tuesday, September 01, 2009 2:23 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

If I were writing the code, GlobalVars would look like:

 

Class GlobalVars

 

[Bindable(bLoggedInChanged)]

Public function get bLoggedIn():Boolean

{

Return _bLoggedIn;

}

 

Public function set bLoggedIn(value:Boolean):void

{

If (_bLoggedIn != value)

{

_bLoggedIn = value;

dispatchEvent(new
Event(bLoggedInChanged);

}

}

 

And somewhere in the app I would do:

 

GlobalVars.instance.addEventListener(bLoggedInChanged, init);

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. http://www.adobe.com/ 

Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Tuesday, September 01, 2009 11:22 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

Unfortunately, it's not a manual process...

 

mx:TabNavigator x=66 y=128 width=899 height=566
enabled={GlobalVars.instance.bLoggedIn} 

 

I just have it watch the variable that tells the application the user is
logged in...

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Fotis Chatzinikos
Sent: Tuesday, September 01, 2009 2:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

No, you misunderstood. Alex meant that you need to call init when you
'manually' enable the canvas.

Ie:

you have a button where you do:

buttonClick(..)
{
myCanvas.enabled = true ;
//Here is the place to put init()
}








On Tue, Sep 1, 2009 at 9:01 PM, Scott h...@netprof.us
mailto:h...@netprof.us  wrote:

  

Makes sense, but I tried that already...

 

mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  width=100% height=100%
enabled=false creationComplete=init() 

 
! 

Still causes the init() to fire...  Is this a bug?

 

sj



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Alex Harui
Sent: Tuesday, September 01, 2009 1:49 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] RE: creationcomplete firing when a component is
disabled

 

  

Disabling is about interactivity, not creation, which is why
creationComplete fires.

 

Somewhere you probably have code that sets enabled=true, and that code
can call init().

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. http://www.adobe.com/ 

Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 

 

From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Scott
Sent: Tuesday, September 01, 2009 11:01 AM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] creationcomplete firing when a component is
disabled

 

  

I've got a troubling issue...

 

On my main page I have a tabNavigator that has several different pages
for my app.  This navigator is disabled until the user logs in.
However, even though the navigator is disabled; it still fires off the
creationcomplete which is giving me grief because the data connection
hasn't been built yet.

 

Falling short of creating a custom event, is there a way to fire off the
init() function when the component is enabled instead of when it's
creationComplete?

 

 Thanks

  Scott

 

-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 




-- 
Fotis

RE: [flexcoders] RE: creationcomplete firing when a component is disabled

2009-09-01 Thread Scott
Yeah, that got me next... I had to add in the event into the
init(evt::Event):void.

 

With all the work, I've got the same issue...

 

It's trying to initialize the remoteobject before it has the required
information provided after the login.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Tuesday, September 01, 2009 4:59 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

I assume you mis-typed the first one?  There are too many )'s.  The
params to addEventListener take a method reference, not a call to a
method, so 

 

addEventListener(bLoggedInChagned, init)

 

is correct.

 

Do you have a function init()?  Is it in the same file as this code?
Otherwise, you'll need to make it public and get access to it.  BTW, the
init() must now take an event as its parameter

 

public function init(event:Event):void

{

// call webservice or something like that

}

 

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. http://www.adobe.com/ 

Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 

 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] RE: creationcomplete firing when a component is disabled

2009-09-01 Thread Scott
Ok, it's been one of those days...  Perhaps I shouldn't program when I'm
ill.

 

I finally figured out what the heck was going on and want to post this
in case someone else runs into it.

 

I'm building an Air application that connected to a CF server.  I
created a process to pull an XML file with the server information to set
up the remote object.  This file was populated into the GlobalVars.  The
problem was the first screen initialized (including the remote object
call) before the XML file was read.  I stumbled on the answer by
accident when I went to see what was in the
GlobalVars.instance.strServer variable.  Incidentally, why doesn't the
debugger see this variable?  If I do the following:

 

Private var strTemp:string;

strTemp = GlobalVars.instance.strServer

 

I can then watch the variable in the debugger.

 

Anyway, I set the original variable to [Bindable] and my problem went
away.  It was then I realized that the remote object with the endpoint
variable was initialized in a non-configured state.

 

GRR.

 

Thanks for your help anyway, Alex.  I learned something new about
overloading variables in flex which I'm sure will come in handy later
on.

 

Scott

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Tuesday, September 01, 2009 4:20 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

Yeah, that got me next... I had to add in the event into the
init(evt::Event):void.

 

With all the work, I've got the same issue...

 

It's trying to initialize the remoteobject before it has the required
information provided after the login.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: Tuesday, September 01, 2009 4:59 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] RE: creationcomplete firing when a component
is disabled

 

  

I assume you mis-typed the first one?  There are too many )'s.  The
params to addEventListener take a method reference, not a call to a
method, so 

 

addEventListener(bLoggedInChagned, init)

 

is correct.

 

Do you have a function init()?  Is it in the same file as this code?
Otherwise, you'll need to make it public and get access to it.  BTW, the
init() must now take an event as its parameter

 

public function init(event:Event):void

{

// call webservice or something like that

}

 

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc. http://www.adobe.com/ 

Blog: http://blogs.adobe.com/aharui http://blogs.adobe.com/aharui 

 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


RE: [flexcoders] How to know that an application has createdCompleted ?

2009-08-31 Thread Scott
I would either add it into the component's creationcomplete (not the
main components creationcomplete) or create a custom event to fire...

 

sj

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of elextraana
Sent: Monday, August 31, 2009 6:07 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to know that an application has
createdCompleted ?

 

  

Hi there,

I built a little component that needs the application to be fully
completed before it starts working itself. I.e: I need to listen to the
application creationComplete event.
Now, that works if the user adds my component in the first
page...However when it is added in a state for example that is supposed
to get active later on in the application, application creationComplete
has obviously long been fired

I am sure there is a simple answer to my question, I just could not find
any flag on the application object that would tell me that it is done in
its lifecycle flow.
Thnx.




-- 
This message has been scanned for viruses and 
dangerous content by MailScanner http://www.mailscanner.info/ , and is

believed to be clean. 


Re: [flexcoders] Different Views | Same DataProvider

2009-08-31 Thread Beau Scott
The sorting is stored on the ListCollectionView dataProvider of each list
control. If you set the list controls to share the same ListCollectionView,
the sorting will be common. If you set the dataprovider to each control to
be a non-ListCollectionView object (an array for example, instead of an
ArrayCollection), the sorting will be unique between the two as different
ArrayCollection objects will be created to wrap the same source array, but
data will not be duplicated. There are some caveats: The ListCollectionView
also handles update events, so if you change the data in one list control,
it won't be shown in the other until you call other.dataProvider.refresh(),
and this can be a heavy operation as it has to reindex, sort and seek.
Here's an example:

=
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=horizontal xmlns:local=*
mx:Script
![CDATA[

[Bindable]
public var regionData:Array = [
{region: Asia, country: China, rep: Bill},
{region: Asia, country: S. Korea, rep: Bill},
{region: Asia, country: N. Korea, rep: Sue},
{region: Asia, country: Thailand, rep: Phil},
{region: Euorpe, country: United Kingdom, rep: Bill},
{region: Euorpe, country: France, rep: Sue},
{region: Euorpe, country: Italy, rep: Phil},
{region: Euorpe, country: Germany, rep: Bill},
{region: Africa, country: Zimbabwe, rep: Phil},
{region: Africa, country: S. Africa, rep: Sue},
{region: Africa, country: Kenya, rep: Bill},
{region: Africa, country: Egypt, rep: Phil},
{region: N. America, country: U.S.A., rep: Bill}
];

private function addMore():void
{
right.dataProvider.addItem(
   {region: N. America, country: U.S.A., rep: Beau}
);
}
]]
/mx:Script

mx:DataGrid id=left dataProvider={regionData} height=100%
width=50%
mx:columns
mx:DataGridColumn dataField=region /
mx:DataGridColumn dataField=country /
mx:DataGridColumn dataField=rep /
/mx:columns
/mx:DataGrid

mx:DataGrid id=right dataProvider={regionData} height=100%
width=50%
mx:columns
mx:DataGridColumn dataField=region /
mx:DataGridColumn dataField=country /
mx:DataGridColumn dataField=rep /
/mx:columns
/mx:DataGrid

mx:VBox
mx:Button click=addMore() label=Add to right grid /
mx:Button click=left.dataProvider.refresh(); label=refresh left
/
/mx:VBox

/mx:Application
=


Note that you can sort the datagrids independent of eachother. If you click
add to right grid, a new line item will be added to the right grid only.
It has been added to the regionData Array, as well, but becase Array is not
an event dispatcher, the left grid is not automatically refreshed. If you
click the refresh button, the dataProvider for left is refreshed and the new
lines show up.


Hope this helps,

Beau




On Mon, Aug 31, 2009 at 8:54 AM, ilikeflex ilikef...@yahoo.com wrote:



 Hi

 I have array collection as a data provider. I have two different views.
 User can do sorting in different views.

 But i want that the one view is not affected by another.I know i can keep
 two different copies of dataprovider for different views.

 Is there any other way. Actually my dataprovider has more than 25,000
 records.

 Need your suggestions.

 Thanks
 ilikeflex

  




-- 
Beau D. Scott
Software Engineer


Re: [flexcoders] Manage a multi lingual application

2009-08-31 Thread Beau Scott
Depends on your approach, really. If you're looking to release mutiple
distributions, each specific to a language (which really is about the only
feasible option when dealing with multi-directional language support), you
should start here:
http://livedocs.adobe.com/flex/3/html/help.html?content=l10n_2.html

Beau



On Mon, Aug 31, 2009 at 10:35 AM, christophe_jacquelin 
christophe_jacque...@yahoo.fr wrote:



 Hello,

 What is the best system to manage with Flex a multi-lingual application ?

 Do you have source examples ?

 Thank you,
 Christopher,

  




-- 
Beau D. Scott
Software Engineer


Re: [flexcoders] Store files on the customer PC

2009-08-31 Thread Beau Scott
Here's the help page for this:
http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_7.html

You're on your own for server side, as it's gonna vary depending on your
server technologies. Here's kind of the how-to for PHP:
http://us3.php.net/manual/en/features.file-upload.php

Beau


On Mon, Aug 31, 2009 at 10:37 AM, christophe_jacquelin 
christophe_jacque...@yahoo.fr wrote:



 Hello,

 There is a solution to upload files from the customer PC to the server with
 Flex.

 Did there is the equivalent to put files from the server to the customer PC
 ?

 Thank you,
 Christopher,

  




-- 
Beau D. Scott
Software Engineer


[flexcoders] CSV file: Coldfusion to Flex/Air

2009-08-31 Thread Scott
Has anyone created a dynamic query to csv through Coldfusion and been
able to receive it through Flex or Air?

 

When I was doing straight Coldfusion code I could create a CSV file on
the fly without dumping it on the webserver first.  I can't see anyway
to pass that back through to Air, does anyone know if a way?

 

sj

 



Re: [flexcoders] about FB3_WWEJ_Plugin.exe

2009-08-30 Thread Beau Scott
Sure thing, start here:
http://store1.adobe.com/cfusion/store/html/index.cfm?event=displayStoreSelectorkeyword=flex_builder_standard

Flex Builder isn't free, you will need to purchase a license (which comes
with a serial number).

Beau


On Fri, Aug 28, 2009 at 1:43 AM, 刘 fengling8...@yahoo.com.cn wrote:



  Hello,I have installed the FB3_WWEJ_Plugin.exe in my already installed
 eclipse,but whenever I want to build a flex project ,it always ask for the
 serial number.I have tried many serial numbers,but none of them is valid.Can
 anyone of you help me to answer my question??Thank you very much.
 --
 好玩贺卡等你发,邮箱贺卡全新上线!http://cn.rd.yahoo.com/mail_cn/tagline/card/*http://card.mail.cn.yahoo.com/
 




-- 
Beau D. Scott
Software Engineer


[flexcoders] Largest DataGrid

2009-08-30 Thread Scott
What's the largest DataGrid you have populated with data?  And speed
and/or memory issues with really large ones?

 

Thanks

  Scott



Re: [flexcoders] Create a directory

2009-08-28 Thread Beau Scott
Flex is a client side technology, so what you're trying to do can't be done
directly from Flex. Depending on your server technology, you can create a
script (like php, jsp, perl, asp, etc.) and call that script's url from the
Flex application and have it respond however you want.

Beau



On Fri, Aug 28, 2009 at 8:01 AM, christophe_jacquelin 
christophe_jacque...@yahoo.fr wrote:



 Hello,

 How to create a directory (and see if it exists) on the server from a flex
 application ?

 Thank you,
 Christopher,

  




-- 
Beau D. Scott
Software Engineer


Re: [flexcoders] DatagridColumn dataField question

2009-08-28 Thread Beau Scott
dataField is a property belonging to the objects within the datagrid's
dataprovider. you don't access the array directly from your datagrid column,
rather you just name the field to access. So in the case you gave of an
array of strings, you'd only be able to display properties of the string
objects themselves (such as length):

mx:DataGridColumn dataField=length/ !-- would display the length of the
string in each index --

You could use label function to just return the value of the object as well:

mx:DataGridColumn labelFunction={function(... rest):String{return rest[0]
as String;}} / !-- Will display the actual value of the string at the
index's row.

However if you make it an array of arrays of strings, you can most certain
bind columns to indexes of the arrays of strings for display:

?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
mx:Script
![CDATA[
[Bindable]
public var dp:Array = [
 ['1','2','3'],
 ['a', 'b', 'c']
   ];
]]
/mx:Script
mx:DataGrid width=100% dataProvider={dp}
mx:columns
mx:DataGridColumn dataField=0 / !-- Binds to dp[row][0]
---
mx:DataGridColumn dataField=1 / !-- Binds to dp[row][1]
---
mx:DataGridColumn dataField=2 / !-- Binds to dp[row][2]
---
/mx:columns
/mx:DataGrid
/mx:WindowedApplication


Beau

On Fri, Aug 28, 2009 at 5:28 AM, bhaq1972 mbha...@hotmail.com wrote:



 Can the dataField reference an array position eg

 var array1:Array = [hello, world, etc];

 ...

 mx:DataGridColumn dataField=array1[1] /

 at the moment the only way i can make this work is use a labelFunction
 eg
 mx:DataGridColumn dataField=array1[1] labelFunction=something/

 Just wondered if there was any other way?

 TIA
 Bod

  




-- 
Beau D. Scott
Software Engineer


Re: [Spam] Re: [flexcoders] Creating a flex library project that referencesa remote SVN path?

2009-08-28 Thread Beau Scott
You should read up on SVN Externals:
http://svnbook.red-bean.com/en/1.0/ch07s03.html

Beau



On Fri, Aug 28, 2009 at 9:55 AM, Nick Middleweek n...@middleweek.co.ukwrote:



 Ah nice one Jeffry... Thanks for your reply...

 Linked driectories... Ok, I'll look into those.

 Some guy at work has just said download teh SVN, do an export to clean the
 SVN files and use the SWC in my main flex projects lib folder... That sound
 about right?


 Cheers,
 Nick



 2009/8/28 Jeffry Houser j...@dot-com-it.com




  Most likely you would check out code from the SVN repository so that it
 is local.  After that, you can add the source code to your project in
 multiple ways.  One of them is to add a linked directory pointing to the
 source code.  Another is to compile your own SWC with the source code and
 add that swc to the library path of your project.

 Nick Middleweek wrote:



 Hello,

 Is it even possible to create a flex library project that references a
 remote SVN path?? I'm trying to use the birdeye qavis graphing library and
 I've been told to create a flex library project and set the src to the
 remote SVN location...

 How do i do that? I'm stumped...

 I'm using FB3 with Subclipse installed if that helps.


 Cheers,
 Nick


 --
 Jeffry Houser, Technical Entrepreneur
 Adobe Community Expert: 
 http://tinyurl.com/684b5hhttp://www.twitter.com/reboog711  | Phone: 
 203-379-0773
 --
 Easy to use Interface Components for Flex 
 Developershttp://www.flextras.com?c=104
 --http://www.theflexshow.comhttp://www.jeffryhouser.com
 --
 Part of the DotComIt Brain Trust


  




-- 
Beau D. Scott
Software Engineer


[flexcoders] Access system color/style scheme from AIR app?

2009-08-28 Thread Beau Scott
Anyone know if this is yet possible in AIR?

Beau


Re: [Spam] RE: [Spam] [flexcoders] Question on Flex Script Execution + Alert.show

2009-08-27 Thread Beau Scott
You have to remember that flex renders according to the component lifecycle.
There's a global timer that runs independent of everything else (according
to the FPS the movie is playing) that more or less watches the objects in
the display list and with each timer tick will re-render the objects that
have been flagged as needing such. So when you say Alert.show(...), a new
display object is created and stuck into the display list, but it won't be
set up and shown until the next sweep of this global timer. Also, flash is
not multithreaded, so your current method must finish executing before the
rendering timer event method can be executed, so semaphores are not possible
(you can't stay in a loop waiting for another operation to complete, it will
never happen). Therefor you are forced you to rely on event listeners to
interact with this object.



On Thu, Aug 27, 2009 at 4:43 AM, Nick Middleweek n...@middleweek.co.ukwrote:



 Why won't it work? I can't see why it wouldn't... I'm still learning Flex
 so perhaps I've overlooked something.

 I do agree, it is bad coding but I can't see why it wouldn't work.

 The boolAlertContinue variable is in affect acting like semaphore...


 Cheers,
 Nick




 2009/8/27 Tracy Spratt tr...@nts3rd.com



  No, no, no, this will not work.  You must use the event mechanism.



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Nick Middleweek
 *Sent:* Wednesday, August 26, 2009 7:33 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [Spam] [flexcoders] Question on Flex Script Execution +
 Alert.show





 I'm not sure if this technique is frowned upon but...


 You could have a new private var boolAlertContinue:Boolean = false;

 In your alertHandler function, you would set it to true... boolAlertContinue
 = true;

 And after the Alert.show and before the if(myAlert == 1) you need to do a
 do while loop...

 do {

   //Not sure if there's a 'dummy' command to prevent CPU hog so we'll just 
 check the time...

   var dtmNow:Date = new Date();

 }

 while (boolAlertContinue);


 or you could probably initialise your myAlert:int = null and in the do ...
 while loop check for (myAlert != null)


 Cheers,
 Nick



  2009/8/26 Angelo Anolin angelo_ano...@yahoo.com



 Hi FlexCoders,

 This has puzzled me a bit..

 I have the following scripts in my application:

 private var myAlert:int;

 private function testFunction(evt:Event):void
 {
   Alert.show('do you want to proceed', 'Title', Alert.YES | Alert.NO,
 null, alertHandler, null, Alert.YES);

   if(myAlert == 1)
   {
 // Do Something here
   }
   else
   {
 // Do other thing here
   }
 }

 Private function alertHandler(evt:CloseEvent)
 {
   if(evt.Detail == Alert.YES)
   {
 myAlert = 1;
   }
   else
   {
 myAlert = -1;
   }
 }

 Now, what puzzles me is that the script after the Alert.show is triggered,
 the scripts following it are also triggered.

 Is there a way to ensure that the script following the Alert.show alert
 box would only be executed after the Yes or No buttons has been pressed?

 I won't be able to move the scripts after the Alert.show script to the
 alertHandler event since there are some objects being set / modified prior
 to the alert being called.

 Inputs highly appreciated.

 Thanks.




  




-- 
Beau D. Scott
Software Engineer


  1   2   3   4   5   6   7   8   9   10   >