[flexcoders] Zoneinfo database to use for AIR applications.

2008-09-26 Thread george_w_canada
Anyone knows are there any best way to use the public zoneinfo
database (from original Olson database) in AIR applications?

http://en.wikipedia.org/wiki/Zoneinfo



[flexcoders] Air NativeWindow in StageScaleMode.SHOW_ALL

2008-07-30 Thread george_w_canada
My project includes a main AIR window and another presentation window
to be displayed in a second large monitor. I have to use SHOW_ALL
scale mode to scale everything in that window but not layout for sure.

The problem is the presentation window is built with Flex
containers/components, in my short test, it scaled, but quite buggy. I
know Alex has discussed about this for Flex in browsers, but there's
somewhere else to adjust settings in html, but not Flex nativewindows
in AIR applications.

My experiments code as follow. Any help appriciated.

Thanks,
George

===
main.mxml:


?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute applicationComplete=this.init()
mx:Script
![CDATA[
import mx.core.Application;
private var subWindow:PresentationWindow = null;

private function init():void
{
}

private function openNewWindow():void
{
if(!this.subWindow){
this.subWindow = new 
PresentationWindow();
this.subWindow.open();
} else {
this.subWindow.open();
}
}

private function maxNewWindow():void
{
if(this.subWindow){
//this.subWindow.maximize();
this.subWindow.test();
}
}

]]
/mx:Script
mx:Button x=165 y=105 label=open presentation window
click=this.openNewWindow()/
mx:Label x=165 y=135 text=Drag presentation window to second
monitor/
mx:Button x=165 y=189 label=maximize new window
click=this.maxNewWindow()/
/mx:WindowedApplication


PresentationWindow.mxml


?xml version=1.0 encoding=utf-8?
mx:Window xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
width=443 height=265 alwaysInFront=true title=Presentation
Window showFlexChrome=false type={NativeWindowType.NORMAL}
mx:Script
![CDATA[

public function test():void
{
this.maximize();
this.stage.scaleMode = StageScaleMode.SHOW_ALL;
/*
trace(this.stage.fullScreenWidth+ ' '+ 
this.stage.fullScreenHeight);
trace(this.x + ' '+ this.y);
trace(this.width + ' '+ this.height);
var tx:Number = this.x;
var ty:Number = this.y;
var tw:Number = this.width;
var th:Number = this.height;
this.stage.displayState = StageDisplayState.NORMAL;
this.x = tx;
this.y = 0;
this.width = tw;
this.height = th;*/
}
]]
/mx:Script
mx:Button label=Presentation Window left=10 top=10 width=148/
/mx:Window




[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-04 Thread george_w_canada
I bought my first Macbook last November for home projects.

If you need dual-monitor for development, and has big monitor larger than 
1280X800, buy a 
MBP.


--- In flexcoders@yahoogroups.com, scottyale2008 [EMAIL PROTECTED] wrote:

 How many Flex developers here are using a Mac for development?  I've 
 been a die hard Microsoft guy since ... well, since Microsoft first 
 started.   I went from CPM on a Morrow Meadows to Microsoft DOS (on 
 computers with a Turbo button!), then Windows, now Vista.  I do have an 
 iPhone and it is an incredible device and the GUI is extremely well 
 done.   I've never used a Mac, but many of my friends have taken the 
 plunge.  Is it time to make the switch?   I'm thinking about a Mac Book 
 Pro.  Is a Mac Book even worth considering for a Flex dev machine or is 
 a Mac Book Pro the way to go?   Anybody else make the switch recently 
 from Windows to Mac?






[flexcoders] How to change positions of Alert popups in SHOW_ALL mode

2007-09-18 Thread george_w_canada
In Flex the SHOW_ALL mode couldn't function correctly for default
popups, like Alert. I didn't find a way to fit them in center of
browser screen automatically. Occasional Alert popups (usually server
side errors) not belong to any views so to make an customized version
of Alert class will cost lots of time to dig. Any suggestions?

Thanks a lot!
George



[flexcoders] Flash/Flex Event collision on TextField input

2007-08-30 Thread george_w_canada
I have a component extend UIComponent with lots of classes inside
using Flash Player API. Today I tried to add TextEvent.TEXT_INPUT
listener for a TextField.

private function inputHandler(e:MouseEvent):void
{
   this._tf.setSelection(0,1);
   //this._tf.addEventListener(TextEvent.TEXT_INPUT, textInputHandler,
false, 0, true);
}

I also bind textInput on the top of the component, as TextInput class did:

[Event(name=textInput, type=flash.events.TextEvent)]

But each time when I try to input, error fired:

TypeError: Error #1034: Type Coercion failed: cannot convert
flash.events::[EMAIL PROTECTED] to mx.events.IndexChangedEvent.

And when I add the listener (uncomment above), another error:
TypeError: Error #1034: Type Coercion failed: cannot convert
flash.events::[EMAIL PROTECTED] to mx.controls.TextInput.
(why it was binded to TextInput???)

I have no idea how could get it work. I wonder whether I have to code
it with Flash CS3 and use UIMovieClip with Flex component kit. (Not
sure whether it still problem!?)

I googled this problem, found a bug report but Adobe seems no desire
to fix that bug.
https://bugs.adobe.com/jira/browse/SDK-11156

Any ideas?

Thanks,
George




[flexcoders] Re: Flash/Flex Event collision on TextField input

2007-08-30 Thread george_w_canada
Sorry. The second RTE was a code mistake. But the first one is there
every time, though if not Flash debugger player still work fine.

--- In flexcoders@yahoogroups.com, george_w_canada [EMAIL PROTECTED] wrote:

 I have a component extend UIComponent with lots of classes inside
 using Flash Player API. Today I tried to add TextEvent.TEXT_INPUT
 listener for a TextField.
 
 private function inputHandler(e:MouseEvent):void
 {
this._tf.setSelection(0,1);
//this._tf.addEventListener(TextEvent.TEXT_INPUT, textInputHandler,
 false, 0, true);
 }
 
 I also bind textInput on the top of the component, as TextInput
class did:
 
 [Event(name=textInput, type=flash.events.TextEvent)]
 
 But each time when I try to input, error fired:
 
 TypeError: Error #1034: Type Coercion failed: cannot convert
 flash.events::[EMAIL PROTECTED] to mx.events.IndexChangedEvent.
 
 And when I add the listener (uncomment above), another error:
 TypeError: Error #1034: Type Coercion failed: cannot convert
 flash.events::[EMAIL PROTECTED] to mx.controls.TextInput.
 (why it was binded to TextInput???)
 
 I have no idea how could get it work. I wonder whether I have to code
 it with Flash CS3 and use UIMovieClip with Flex component kit. (Not
 sure whether it still problem!?)
 
 I googled this problem, found a bug report but Adobe seems no desire
 to fix that bug.
 https://bugs.adobe.com/jira/browse/SDK-11156
 
 Any ideas?
 
 Thanks,
 George





[flexcoders] Re: Word Wrap in FlexBuilder

2006-07-24 Thread george_w_canada
There's a tiny plug-in available.
http://www.eclipsezone.com/eclipse/forums/t74384.html

--- In flexcoders@yahoogroups.com, hank williams [EMAIL PROTECTED] wrote:

 Oh... you mean in the actual text editor.
 
 Nope, I dont think so. At least I have never seen it either in Flex
or in
 Java. As a general rule I try to
 keep all text within the width of the page. For strings I tend to
just break
 the text into pieces and concatenate. it makes for much more
readable code.
 And even if eclipse were to word wrap, it would be ugly because it
wouldnt
 respect any indentation. Eclipse prints this way, and I hate it
because I
 find it difficult to read automatically wordwrapped text because the
wrapped
 text starts all the way at the left edge of the page.
 
 Regards
 Hank
 
 On 7/24/06, Clarke Bishop [EMAIL PROTECTED] wrote:
 
  Thanks Jester, but I meant is there a way to turn on word wrap in
Eclipse?
  Thanks if anybody knows.
 
 Clarke
 
 
  On 7/23/06, JesterXL  [EMAIL PROTECTED] wrote:
  
  Text  TextArea I believe has this turned on by default, if
not turn
   it on.
  
   Label is always one line.
  
   TextInput is always one line.
  
  
   - Original Message - *From:* Clarke
Bishop[EMAIL PROTECTED]
   *To:* flexcoders@yahoogroups.com
   *Sent:* Saturday, July 22, 2006 5:07 PM
   *Subject:* [flexcoders] Word Wrap in FlexBuilder
  
   Is there a way to turn on Word Wrap in FlexBuilder?
  
   I have some long text strings that are used for instructions.
Without,
   Word Wrap, they are really hard to edit. And, if I manually
insert returns,
   it messes up the formatting when displayed.
  
   What's the best practice for handling this situation?
  
  
  
 








 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/TktRrD/gOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Flex 2 released tomorrow

2006-06-27 Thread george_w_canada
Thanks, hope we could have Flash 9 AS 3 alpha also.

--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 What is your timezone, 4pm is probably wrong :-)
 
 We are on track for releasing very very very soon.  





 Yahoo! Groups Sponsor ~-- 
Great things are happening at Yahoo! Groups.  See the new email design.
http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Please Adobe. Unanswered questions, and building the community

2006-06-23 Thread george_w_canada
I'd rather to sit and wait the release day of Flex 2. There's only
several days left (next week?) it will save your time a lot with the
official release but not beta version. You could buy or try it or use
SDK only.

George

--- In flexcoders@yahoogroups.com, sourcecoderia [EMAIL PROTECTED] wrote:

 IMHO a community is not at all built this way, any answer is better 
 then no answer. For developers we ask a question if it goes without 
 response we think either they are ignoring the question, can't be 
 bothered, or it's a bug. Since the first thought is that they can't 
 be bothered we continue to try and find a solution to the problem, 
 until completely frustrated. 
 
 Theses things are very important (to me at least) when choosing to 
 switch from a dot net development environment to something such as 
 flex. I've been working with flex for a year now, and of course I'm 
 very happy with it, however I feel that the community involvement 
 from adobe is rather lacking. 
 
 You can't hope to build a solid community that supports it self, we 
 are not the experts, you are. We need your help, and you need our 
 help. But; the communication, and participation in the building of 
 the community has to work both way's. I've answered far more 
 questions then I have had answered, I participated in the alpha 
 testing, I've reported bug's in this forum. All this I'm very willing 
 to do, and continue doing. However your community support people 
 could at least take the time and read the question, and either 
 confirm it as a bug, not possible, or give an idea of where to look. 
 
 I'm not unhappy with Flex, I'm rather impressed and energized. 
 Learning a new language, and platform is difficult, and time 
 consuming. 
 
 Why are there no tutorials except the few you have done to get people 
 up to speed, where is all the learn by example stuff, tips, general 
 community building. Surly you can invest in some full time community 
 support personnel.
 
 Flex is moving Adobe into a developer realm, as apposed to the 
 designer realm. I think if you hope to convince the developer realm 
 (a more demanding task) community involvement from Abode needs to be 
 greatly increased. A couple blog entries a week will not do it. A 
 couple of questions answered here, and there will not do it. We need 
 to see that your behind us, that you want to help us succeed with 
 your product, that you continue to listen, and that you're doing 
 everything humanly possible to help get us up to speed. 
 
 Flex has the potential to be more then just some other platform. In 
 order to go head to head with MS, and unlock the dedicated developer 
 community they've built, you need to greatly increase your community 
 involvement.
 
 Hopefully in posting this I've not managed to get on the spam/ignore 
 list of all Adobe support :)
 
 
 Here are some example things with no response, I'm sure if asked, 
 every person in this forum could repost at least 1 or 2 unanswered 
 questions. Any answer is better then none.
 
 Garbage collection and removeChild [Flex 2 beta 3]?
 
 http://groups.yahoo.com/group/flexcoders/message/40262
 
 
 E4X Interpreter:
 
 http://groups.yahoo.com/group/flexcoders/message/40342?
 threaded=1var=1p=1
 
 I can't get a xml chain to bind here.
 
 [Bindable]
 public var boundtarget:XML = new XML
 (itemnamexJason/namex/item);
 private var owatch:ChangeWatcher;
   
 private function Init_TargetBinding():void{
   //build the array for the property chain
   owatch = BindingUtils.bindProperty(text1, text,this,
 [ boundtarget,namex]);
   trace(owatch.isWatching());
 }
 
 mx:TextInput id=text1 width=100%/
 
 as well as being able to do the below
 
 BindingUtils.bindProperty( txtField, text, this, 
 [xdata,item,(@id=='3456'),description] );
 
 
 
 Bug confirmation please ? Felx 2.0 b3
 
 http://groups.yahoo.com/group/flexcoders/message/39228
 
 FileReference upload bytes FB2
 
 http://groups.yahoo.com/group/flexcoders/message/35364
 
 
 Still problems with Tree, and drag and drop Flex 2.0 b3
 
 http://groups.yahoo.com/group/flexcoders/message/37927
 
 Cursor questions Flex 2.0 B3
 
 http://groups.yahoo.com/group/flexcoders/message/38461








 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/