Re: [flexcoders] AIR app as a controlled desktop

2009-07-22 Thread Tom Chiverton
On Wednesday 22 Jul 2009, simonjpalmer wrote:
 clicks?  I want to be able to start my app, have it take over the user
 experience, a bit like PowerPoint in presentation mode, and only go back to

You can't use full screen mode (ESC will always exit, right ?) - what about a 
window the size of the screen ?

-- 
Helping to enthusiastically harness advanced ROI as part of the IT team of the 
year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] Re: AMF, IE, and a non-trusted certificate

2009-07-22 Thread Tom Chiverton
On Tuesday 21 Jul 2009, Anthony DeBonis wrote:
 More information on this IE issue - we don't think its a cert issue at all
 because if we compile with the Flex 4 SDK it works fine in IE.  Any ideas?

Sounds like a cross domain policy type issue then. 

-- 
Helping to autoschediastically network eyeballs as part of the IT team of the 
year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] create www.example123.com/#/testing

2009-07-22 Thread Tom Chiverton
On Tuesday 21 Jul 2009, Yesaya handoyo wrote:
 Ic,how about using swfaddress?Is it the same?For the bug?

Dunno, as I said we use use the Adobe solution as the preloader issue doesn't 
bother us.

-- 
Helping to augmentatively seize viral mission-critical metrics as part of the 
IT team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] AIR app as a controlled desktop

2009-07-22 Thread Ian Thomas
App switch (ALT+TAB on Windows, or APPLE+TAB on OSX) will get around that one.

I don't believe it's possible in AIR.

It _may_ be possible with one of the many available wrappers - e.g.
Northcode's SWF Studio:

http://www.northcode.com/swfstudio.php

HTH,
   Ian

On Wed, Jul 22, 2009 at 10:01 AM, Tom
Chivertontom.chiver...@halliwells.com wrote:


 On Wednesday 22 Jul 2009, simonjpalmer wrote:
 clicks? I want to be able to start my app, have it take over the user
 experience, a bit like PowerPoint in presentation mode, and only go back
 to

 You can't use full screen mode (ESC will always exit, right ?) - what about
 a
 window the size of the screen ?

 --
 Helping to enthusiastically harness advanced ROI as part of the IT team of
 the
 year, '09 and '08

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
 of members is available for inspection at the registered office together
 with a list of those non members who are referred to as partners. We use the
 word ?partner? to refer to a member of the LLP, or an employee or consultant
 with equivalent standing and qualifications. Regulated by the Solicitors
 Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and may
 be confidential or legally privileged. If you are not the addressee you must
 not read it and must not use any information contained in nor copy it nor
 inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.Halliwells.com.

 


[flexcoders] Re: AMF, IE, and a non-trusted certificate

2009-07-22 Thread Anthony DeBonis
Still not working in IE - 
If it was crossdomain it should not work with Firefox but it does work with 
Firefox and Chrome - only IE is an issue. We are requesting back to the exact 
server that is serving up the Flex app so it should not trigger a crossdomain 
issue.  If we compile with Flex 4 SKD it works in IE... I tried monkey patching 
rpc.swc from 4.o  to 4.2 and that did not seam to help.

Any support would be appreciated.

Anthony


--- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... wrote:

 On Tuesday 21 Jul 2009, Anthony DeBonis wrote:
  More information on this IE issue - we don't think its a cert issue at all
  because if we compile with the Flex 4 SDK it works fine in IE.  Any ideas?
 
 Sounds like a cross domain policy type issue then. 
 
 -- 
 Helping to autoschediastically network eyeballs as part of the IT team of the 
 year, '09 and '08
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in England and 
 Wales under registered number OC307980 whose registered office address is at 
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
 of members is available for inspection at the registered office together with 
 a list of those non members who are referred to as partners.  We use the word 
 ?partner? to refer to a member of the LLP, or an employee or consultant with 
 equivalent standing and qualifications. Regulated by the Solicitors 
 Regulation Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above and may 
 be confidential or legally privileged.  If you are not the addressee you must 
 not read it and must not use any information contained in nor copy it nor 
 inform any person other than Halliwells LLP or the addressee of its existence 
 or contents.  If you have received this email in error please delete it and 
 notify Halliwells LLP IT Department on 0870 365 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.





Re: [flexcoders] getStyleDefinition

2009-07-22 Thread Rohit Sharma
  Hi,

 I am not sure about Flex 4 SDK. But earlier in Flex 3 SDK, I was using
StyleManager.getStyleDeclaration(component)
  to access styles for a particular component.
I hope it helps.

 Regards,
 Rohit

On Tue, Jul 21, 2009 at 2:26 PM, Julian Tenney 
julian.ten...@nottingham.ac.uk wrote:



 Hi,

 Maybe someone can shed some light on this.

 I need to get at runtime a list of styles a particular component
 supports. I am using the Flex 4 SDK.

 I have read about ComponentClass.getStyleDefinition() but cannot get it
 to work. I see this is a method inherited from UIComponent, but it
 always returns undefined if I trace UIComponent.getStyleDefinition

 Is this a Flash only feature or is it also in Flex? Am I missing
 something?

 Is there any other way of getting a list of supported styles for a
 component class?

 many thanks,

 Jules

 This message has been checked for viruses but the contents of an attachment
 may still contain software viruses, which could damage your computer
 system:
 you are advised to perform your own checks. Email communications with the
 University of Nottingham may be monitored as permitted by UK legislation.

  



[flexcoders] Re: Adobe has open-sourced the Text Layout Framework (TLF)

2009-07-22 Thread Dennis van Nooij
hmm. weird. I'm sure I read it yesterday, but I been reading a lot of articles 
about the TLF as well so it must have be in one of those.. I have searching 
around but can't find it anymore.

anyway. Your response probably also answered my question that tables are not 
yet supported.. Is there any news on when it is planned ?

Dennis


--- In flexcoders@yahoogroups.com, Gordon Smith gosm...@... wrote:

 I searched the businesswire article for the word table and didn't find it. 
 Where do you see this?
 
 Gordon Smith
 Adobe Flex SDK Team
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of Dennis van Nooij
 Sent: Tuesday, July 21, 2009 5:07 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Adobe has open-sourced the Text Layout Framework 
 (TLF)
 
 
 
 that's great. The first article states that tables are also supported, but if 
 I remember correct that used to be reserved for a later version?
 
 thanks,
 Dennis
 
 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
 Gordon Smith gosmith@ wrote:
 
  http://eon.businesswire.com/portal/site/eon/permalink/?ndmViewId=news_viewnewsId=20090720006233newsLang=en
 
  http://opensource.adobe.com/wiki/display/tlf/Text+Layout+Framework
 
  Gordon Smith
  Adobe Flex SDK Team
 





[flexcoders] hi, having problem with print function

2009-07-22 Thread subba reddy
can any one give me the code to convert html page to pdf using flex, iText.
How to add external CSS to generated pdf file.
-- 
Thanks and Regards,
V.V.Subba Reddy.


[flexcoders] LCDS: Destination inheritance - is this a working feature?

2009-07-22 Thread gordon_greg
Greetings,

I've got a problem with setting up a model hierarchy that requires using the 
extends attribute of a DataService Destination in LCDS, but it doesn't 
exactly work.

I'm noticing some rather obvious issues (bugs?) that involve lazy associations 
on sub-classes when there is no lazy association on the base class.

Furthermore, if I point to my hierarchical class(es) from a separate class (one 
that actually requires a join table in between), then none of the subclass 
properties are loaded at all, only the base class properties are loaded.

I'm happy to provide as much information as necessary if anyone has any 
guidance for me.

Thanks,

Greg Gordon 



[flexcoders] Flex 4 query

2009-07-22 Thread Purnima S
I want to know how flex 4(Gumbo) works


[flexcoders] Creating Children in CommitProperties?

2009-07-22 Thread harkeeharkee
I have a custom list component, that takes in XML and displays a UI object for 
each element. Each of these UI objects can grow and shrink in size, and might 
have to overlap, so I cannot use an itemrenderer. The custom container has a 
commitProperties method that goes roughly like this:

protected override function commitProperties():void {   

super.commitProperties();

if(_dataProviderDirty){
for each(var el:XML in dataProvider){
var newChild:CustomUITile = new 
CustomUITile();
newChild.data = el;
addChild(newChild);
}
}
_dataProviderDirty = false;

}


I'm wondering if this commitProperties method is the right place to do these 
child instantiations? The CustomUITiles are kinda detailed, and can take ~30ms 
to construct and add a single object. If there are 50 object, that leads to 
noticable slowdown for users.

Is there a better way I should be handling these constructions? I don't mind if 
the overall time to create the objects is unchanged, but I don't want the UI to 
lock up.

I've been experimenting with breaking up the instantiations using a Timer, so 
Flash can update the screen in between workloads, but I'm wondering if I'm just 
making bad use of the Flex component lifecycle, and that is causing the delay...

Thanks for any advice!



[flexcoders] Flex Compilation takes long time

2009-07-22 Thread ondemand_mayur
Hi folks,

I have a project crated with Flex 3 ( SDK 3.2 ).
When ever I compile it really takes much long time min 4 to 5 mins ( i.e. 240 
to 300 seconds).

That really make my developers crazy and it is so frustrating.

Has any one any suggestions how to make compilation process faster.

 *   I have already set   -incremental=true   for flex compiler in Flex 
Builder 3.
 *   I have around six diff. modules in my project. ( And I have noticed 
after modularization of my application it takes some more time for compilation 
I know that in the process - flex builder has to call another tool for module 
compilation other then MXMLC )


I Need some tech. Tips and suggestions to reduce the time for compilation.


Thanking you in advance.

Mayur




Re: [flexcoders] Flex Compilation takes long time

2009-07-22 Thread Jeffry Houser


Closing unused projects will help. 
If you have a project with multiple Application files; remove the 
unused application files.
Give Flex Builder / eclipse more memory.  There are settings that will 
help, but they escape me at the moment. 


ondemand_mayur wrote:
 


Hi folks,

I have a project crated with Flex 3 ( SDK 3.2 ).
When ever I compile it really takes much long time min 4 to 5 mins ( 
i.e. 240 to 300 seconds).


That really make my developers crazy and it is so frustrating.

Has any one any suggestions how to make compilation process faster.

* I have already set  -incremental=true  for flex compiler in Flex 
Builder 3.
* I have around six diff. modules in my project. ( And I have noticed 
after modularization of my application it takes some more time for 
compilation I know that in the process - flex builder has to call 
another tool for module compilation other then MXMLC )


I Need some tech. Tips and suggestions to reduce the time for compilation.

Thanking you in advance.

Mayur




--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



[flexcoders] Re: variables name are in array

2009-07-22 Thread markflex2007
Hi,

Do you have a idea if I want to assign values in for loop?I already have two 
arrays(one is for variable names,other is for variable values)

I have many values to assign and I want to assign them in loop.otherwise I have 
to repeat many same assign statements.

Do you have a idea how to do this.

Thanks

Mark



[flexcoders] Re: variables name are in array

2009-07-22 Thread postwick
This is very dangerous, IMO.  It opens you up for getting things misaligned 
and then you have the wrong value in the wrong variable.

Why aren't you storing the variable name AND the value in the same array?

--- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote:

 Hi,
 
 Do you have a idea if I want to assign values in for loop?I already have two 
 arrays(one is for variable names,other is for variable values)
 
 I have many values to assign and I want to assign them in loop.otherwise I 
 have to repeat many same assign statements.
 
 Do you have a idea how to do this.
 
 Thanks
 
 Mark





Re: [flexcoders] Flex 4 query

2009-07-22 Thread Tom Chiverton
On Wednesday 22 Jul 2009, Purnima S wrote:
 I want to know how flex 4(Gumbo) works

The same way as Flex 3 does.
Maybe you could be more specific ?

-- 
Helping to challengingly compete eigth-generation attention-grabbing 
industry-wide paradigms as part of the IT team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] Flex Compilation takes long time

2009-07-22 Thread Tom Chiverton
On Wednesday 22 Jul 2009, ondemand_mayur wrote:
  *   I have already set   -incremental=true   for flex compiler in
 Flex Builder 3. 

And your not using optimise=true either ?

 I Need some tech. Tips and suggestions to reduce the time for compilation.

Use the Flex Compiler Shell (fcsh) and/or an updated SDK.

-- 
Helping to evangelistically facilitate six-generation granular industry-wide 
advanced market-growth as part of the IT team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] Flex Compilation takes long time

2009-07-22 Thread Richard Rodseth
I too get frustrated by FlexBuilder build times on a project with a few
libraries and an application.

As a side note, maven builds using flex-mojos are *really* fast.

On Wed, Jul 22, 2009 at 8:23 AM, Tom Chiverton tom.chiver...@halliwells.com
 wrote:



 On Wednesday 22 Jul 2009, ondemand_mayur wrote:
  * I have already set  -incremental=true  for flex compiler in
  Flex Builder 3.

 And your not using optimise=true either ?

  I Need some tech. Tips and suggestions to reduce the time for
 compilation.

 Use the Flex Compiler Shell (fcsh) and/or an updated SDK.

 --
 Helping to evangelistically facilitate six-generation granular
 industry-wide
 advanced market-growth as part of the IT team of the year, '09 and '08

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
 of members is available for inspection at the registered office together
 with a list of those non members who are referred to as partners. We use the
 word ?partner? to refer to a member of the LLP, or an employee or consultant
 with equivalent standing and qualifications. Regulated by the Solicitors
 Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged. If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.Halliwells.com.
  



[flexcoders] Re: AxisRenderer Error #1009: Cannot access a property or method of a null object reference

2009-07-22 Thread EddieBerman
I have no solution for you, but have come across this problem as well. If you 
have a simple app that demonstrates this error, you should create a new bug on 
the Adobe Bug Base and attach the code. My app is too huge at this point, and I 
haven't yet distilled it down to a submittable size.



--- In flexcoders@yahoogroups.com, Chad Callahan chad.calla...@... wrote:

 I am using a ColumnChart with a ColumnSet of type stacked.  If I
 switch this ColumnSet.type property to 100% then it works just as
 expected, but when I use the stacked type, I get the following:
 
  
 
  
 
  
 
 TypeError: Error #1009: Cannot access a property or method of a null
 object reference.
 
 at
 mx.charts::AxisRenderer/calcVerticalGutters()[C:\work\flex\dmv_automatio
 n\projects\datavisualisation\src\mx\charts\AxisRenderer.as:2055]
 
 at
 mx.charts::AxisRenderer/calcRotationAndSpacing()[C:\work\flex\dmv_automa
 tion\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1845]
 
 at
 mx.charts::AxisRenderer/adjustGutters()[C:\work\flex\dmv_automation\proj
 ects\datavisualisation\src\mx\charts\AxisRenderer.as:1534]
 
 at mx.charts::AxisRenderer/set
 gutters()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\
 charts\AxisRenderer.as:836]
 
 at
 mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\work\flex\d
 mv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Cart
 esianChart.as:2110]
 
 at
 mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\work\flex\
 dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Car
 tesianChart.as:1366]
 
 at mx.core::UIComponent/validateDisplayList()
 
 at mx.managers::LayoutManager/validateClient()
 
 at mx.core::UIComponent/validateNow()
 
 at com.deere.jdlink.view.dashboard.pod::UltimatePod/set
 data()[C:\Documents and Settings\chad.callahan\My
 Documents\clients\deere\jdlink\repository\trunk\development\flex\src\com
 \deere\jdlink\view\dashboard\pod\UltimatePod.mxml:109]
 
 at spark.components::DataGroup/updateRenderer()
 
 at
 spark.components::DataGroup/http://www.adobe.com/2006/flex/mx/internal::
 itemAdded()
 
 at spark.components::DataGroup/initializeDataProvider()
 
 at spark.components::DataGroup/commitProperties()
 
 at mx.core::UIComponent/validateProperties()
 
 at mx.managers::LayoutManager/validateProperties()
 
 at mx.managers::LayoutManager/doPhasedInstantiation()
 
 at
 mx.managers::LayoutManager/doPhasedInstantiationCallback()
 
  
 
  
 
 Which is thrown from AxisRenderer line 2055
 
  
 
 private function calcVerticalGutters(width:Number,
 
  leftGutter:Number,
 
  rightGutter:Number,
 
  firstLabel:ARLabelData,
 
  lastLabel:ARLabelData,
 
  adjustable:Object):Object
 
 {
 
 var labelAlignOffset:Number = this.labelAlignOffset;
 
 var axisLength:Number = width - leftGutter - rightGutter;
 
 
 
 var LS:Number = firstLabel.height * labelAlignOffset;
 
 var RS:Number = firstLabel.height * (1 - labelAlignOffset);
 
 var P1:Number = firstLabel.position;
 
 var P2:Number = 1 - lastLabel.position;
 ---(line 255)
 
  
 
  
 
  
 
 The error is being thrown because lastLabel is null.  Can anyone think
 of how lastLabel could possibly be null?  
 
  
 
 Thanks,
 
 Chad





[flexcoders] Event's cancelable

2009-07-22 Thread markflex2007
The format for Event constructor like this
Event(event_type:String, bubbles:Boolean, cancelable:Boolean)

I do not understand what the cancelable used for and how to use  it.

Please give me a idea.

Thanks


Mark



[flexcoders] Re: Event's cancelable

2009-07-22 Thread postwick
Events propagate through the hierarchy of objects.  If necessary, you can stop 
them (cancel them) once they get to a certain point in the propagation.

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

Specifically, the section on Bubbling answers your question.

--- In flexcoders@yahoogroups.com, markflex2007 markflex2...@... wrote:

 The format for Event constructor like this
 Event(event_type:String, bubbles:Boolean, cancelable:Boolean)
 
 I do not understand what the cancelable used for and how to use  it.
 
 Please give me a idea.
 
 Thanks
 
 
 Mark





Re: [flexcoders] Re: Event's cancelable

2009-07-22 Thread Julien Nicoulaud
You can cancel an event with myEvent.preventDefault(). This is often useful.
For example, KeyboardEvents are not cancelable, this is an important thing
to know when you override text inputs default behaviour.

Julien Nicoulaud
http://flex.aixo.fr

2009/7/22 postwick p...@ubeek.com



 Events propagate through the hierarchy of objects. If necessary, you can
 stop them (cancel them) once they get to a certain point in the propagation.

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

 Specifically, the section on Bubbling answers your question.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 markflex2007 markflex2...@... wrote:
 
  The format for Event constructor like this
  Event(event_type:String, bubbles:Boolean, cancelable:Boolean)
 
  I do not understand what the cancelable used for and how to use it.
 
  Please give me a idea.
 
  Thanks
 
 
  Mark
 

  



[flexcoders] fontFamily style: inconsistency between ASDocs and developers guide.

2009-07-22 Thread Dave Glasser

In every ASDoc description of the fontFamily style that I've read, it says, 
Unlike in a full CSS implementation, comma-separated lists are not supported. 
But in the Adobe Flex 3 Developer Guide, on the first page of chapter 19 (Using 
Fonts), it says, This property can take a list of fonts, as the following 
example shows:

... 

fontFamily: Arial, Helvetica;

...

Am I misunderstanding something, or are these to statements entirely 
contradictory, and if so, which one is correct? Are comma-delimited lists only 
supported in external stylesheets, and not by the setStyle() method?

Also, on page 667 (Using device fonts), it shows this example:

mx:Style
.myClass {
fontFamily: Arial, Helvetica, _sans;

and goes on to say You must surround device font names with quotation marks 
when defining them with style declarations. How would you do it with the 
setStyle() method.?


[flexcoders] Flash Builder 4 and WebServices: Error with CrossDomain?

2009-07-22 Thread Rogerio Gonzalez
Hi there!

I am doing some tests with FB4 and Webservices, and got security errors, but
when compiled on FB3, is all fine.

The crossdomain is this:

?xml version=1.0?
!DOCTYPE cross-domain-policy SYSTEM 
http://www.adobe.com/xml/dtds/cross-domain-policy.dtd;
cross-domain-policy
site-control permitted-cross-domain-policies=master-only/
allow-access-from domain=* to-ports=*/
allow-http-request-headers-from domain=* headers=SOAPAction/
/cross-domain-policy


Any help?

Thanks

Rogério Gonzalez


RE: [flexcoders] Re: AxisRenderer Error #1009: Cannot access a property or method of a null object reference

2009-07-22 Thread Chad Callahan
My application grew too large to pull a snippet out of as well.  I began
to put a sample application together but while doing so found where my
error stemmed from.  I got the error when the numeric data points on the
chart were of values greater than 6 digits.  What fixed it for me was
setting the canDropLabels property of AxisRenderer to false.  It appears
that the values were too large so the AxisRenderer was dropping those
labels, and when it tried to calculate the vertical gutters to make room
for the labels, the labels that were dropped were then null, causing a
null object reference error.  I hope this helps you as well.

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of EddieBerman
Sent: Wednesday, July 22, 2009 11:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AxisRenderer Error #1009: Cannot access a
property or method of a null object reference

 

  

I have no solution for you, but have come across this problem as well.
If you have a simple app that demonstrates this error, you should create
a new bug on the Adobe Bug Base and attach the code. My app is too huge
at this point, and I haven't yet distilled it down to a submittable
size.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Chad Callahan chad.calla...@... wrote:

 I am using a ColumnChart with a ColumnSet of type stacked. If I
 switch this ColumnSet.type property to 100% then it works just as
 expected, but when I use the stacked type, I get the following:
 
 
 
 
 
 
 
 TypeError: Error #1009: Cannot access a property or method of a null
 object reference.
 
 at

mx.charts::AxisRenderer/calcVerticalGutters()[C:\work\flex\dmv_automatio
 n\projects\datavisualisation\src\mx\charts\AxisRenderer.as:2055]
 
 at

mx.charts::AxisRenderer/calcRotationAndSpacing()[C:\work\flex\dmv_automa
 tion\projects\datavisualisation\src\mx\charts\AxisRenderer.as:1845]
 
 at

mx.charts::AxisRenderer/adjustGutters()[C:\work\flex\dmv_automation\proj
 ects\datavisualisation\src\mx\charts\AxisRenderer.as:1534]
 
 at mx.charts::AxisRenderer/set

gutters()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\
 charts\AxisRenderer.as:836]
 
 at

mx.charts.chartClasses::CartesianChart/updateAxisLayout()[C:\work\flex\d

mv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Cart
 esianChart.as:2110]
 
 at

mx.charts.chartClasses::CartesianChart/updateDisplayList()[C:\work\flex\

dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\Car
 tesianChart.as:1366]
 
 at mx.core::UIComponent/validateDisplayList()
 
 at mx.managers::LayoutManager/validateClient()
 
 at mx.core::UIComponent/validateNow()
 
 at com.deere.jdlink.view.dashboard.pod::UltimatePod/set
 data()[C:\Documents and Settings\chad.callahan\My

Documents\clients\deere\jdlink\repository\trunk\development\flex\src\com
 \deere\jdlink\view\dashboard\pod\UltimatePod.mxml:109]
 
 at spark.components::DataGroup/updateRenderer()
 
 at

spark.components::DataGroup/http://www.adobe.com/2006/flex/mx/internal::
http://www.adobe.com/2006/flex/mx/internal:: 
 itemAdded()
 
 at spark.components::DataGroup/initializeDataProvider()
 
 at spark.components::DataGroup/commitProperties()
 
 at mx.core::UIComponent/validateProperties()
 
 at mx.managers::LayoutManager/validateProperties()
 
 at mx.managers::LayoutManager/doPhasedInstantiation()
 
 at
 mx.managers::LayoutManager/doPhasedInstantiationCallback()
 
 
 
 
 
 Which is thrown from AxisRenderer line 2055
 
 
 
 private function calcVerticalGutters(width:Number,
 
 leftGutter:Number,
 
 rightGutter:Number,
 
 firstLabel:ARLabelData,
 
 lastLabel:ARLabelData,
 
 adjustable:Object):Object
 
 {
 
 var labelAlignOffset:Number = this.labelAlignOffset;
 
 var axisLength:Number = width - leftGutter - rightGutter;
 
 
 
 var LS:Number = firstLabel.height * labelAlignOffset;
 
 var RS:Number = firstLabel.height * (1 - labelAlignOffset);
 
 var P1:Number = firstLabel.position;
 
 var P2:Number = 1 - lastLabel.position;
 ---(line 255)
 
 
 
 
 
 
 
 The error is being thrown because lastLabel is null. Can anyone think
 of how lastLabel could possibly be null? 
 
 
 
 Thanks,
 
 Chad






[flexcoders] AdvancedDataGrid GroupItemRenderer - Text disappears sometimes after Scrolling

2009-07-22 Thread tombuechler
Hi there,

i've been experiencing a weird problem when using a GroupItemRenderer
with an extended TextArea in it:

When i just watch the ADG or scroll up and down, the GroupItemRenderer
woks fine. as soon as i click on any row and continue scrolling around,
the text in the GIR disappears on random rows. sometimes when i scroll
back and forth again it reappears. I'm really gettin mad at this
problem, any ideas what could cause this behaviour?

Here the code for the GroupItemRenderer:

package
{
 import com.tw.community.components.SupSubTextArea;

 import flash.text.StyleSheet;

 import mx.controls.Image;
 import
mx.controls.advancedDataGridClasses.AdvancedDataGridGroupItemRenderer;
 import mx.events.ToolTipEvent;

 public class newADGGroupItemRenderer extends
AdvancedDataGridGroupItemRenderer
 {
 private var myImage:Image=new Image();
 private var myLabel:SupSubTextArea=new SupSubTextArea();
 private var myComments:String=;

 public function newADGGroupItemRenderer()
 {
 super();
 }

 override protected function createChildren():void {
 super.createChildren();

 myImage.source = assets/nfo.gif;
 myImage.setStyle( verticalAlign, middle );
 myImage.width = 11;
 myImage.height = 11;
 myImage.visible = false;
 myImage.addEventListener(ToolTipEvent.TOOL_TIP_CREATE,
showToolTip);

 addChild(myImage);

 //myLabel.styleName = this.styleName;
 myLabel.x = label.x;
 myLabel.x = label.x;
 myLabel.width = label.width;
 myLabel.height = label.height;
 myLabel.selectable = false;
 myLabel.editable = false;
 myLabel.wordWrap = true;

 label.visible = false;
 addChild(myLabel);
 }

 override public function set data(value:Object):void {
 super.data = value;
 invalidateDisplayList();
 myComments = da...@comments;

 if(myComments.length 0) {
 myImage.visible =true;
 myImage.toolTip = myComments;
 } else {
 myImage.visible =false;
 myImage.toolTip = myComments;
 }
 }

 override protected function commitProperties():void {
 super.commitProperties();

 if (data != null)
 {
 myLabel.htmlText = super.listData.label;
 }
 }

 override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
 super.updateDisplayList(unscaledWidth,unscaledHeight);
 myLabel.x = label.x;
 myLabel.x = label.x;
 myLabel.width = label.getExplicitOrMeasuredWidth();
 myLabel.height = myLabel.trueTextHeight;
 }

 private function showToolTip(event:ToolTipEvent):void {
 var ptt:PanelToolTip = new PanelToolTip();
 ptt.bodyText = myComments;
 event.toolTip = ptt;
 }

 }
}

And here the SupSubTextArea i am using in it (this sometimes disappears,
i can only see the sub/sup-chars - they stay unformatted):

package com.tw.community.components{

 import flash.text.StyleSheet;
 import flash.text.TextLineMetrics;

 import mx.controls.TextArea;

 public class SupSubTextArea extends TextArea
 {
 //[Embed(source='/assets/assets.swf', fontName='Arial')]
 //private var baseFont:Class;

 [Embed(source='/assets/fonts/ARIALSUP.TTF', fontName='ArialSup',
mimeType='application/x-font')]
 private var superscriptFont:Class;

 [Embed(source='/assets/fonts/ARIALSUB.TTF', fontName='ArialSub',
mimeType='application/x-font')]
 private var subscriptFont:Class;

 public function SupSubTextArea()
 {
 super();
 this.selectable=false;
 }

 override protected function createChildren():void
 {
 super.createChildren();
 this.setStyle(fontFamily,Arial);

 var ss:StyleSheet = new StyleSheet();

 if(this.styleSheet == null){
 this.styleSheet = new StyleSheet();
 }
 this.styleSheet.setStyle(sup, { display: inline,
fontFamily: ArialSup, fontWeight:normal});
this.styleSheet.setStyle(sub, { display: inline,
fontFamily: ArialSub, fontWeight:normal});
 }

 override protected function measure():void
 {
 super.measure();

measuredMinHeight = measuredHeight = trueTextHeight;
 }


 public function get trueTextHeight():uint
 {

 var nLines:uint = this.textField.numLines;
 var nChars:uint = this.length;
 var metrics:TextLineMetrics =
this.measureHTMLText(this.htmlText);
 

[flexcoders] html scale embed

2009-07-22 Thread grimmwerks
Hey guys - am having trouble trying to figure out the way to properly  
scale a flex/flash app.

There's an overlay that needs to be set at a pixel size within this  
rather than a percentage because it's got a tileList with items that  
are of specific size as well...

Rather than write percentages for the whole thing why can't I have  
something that's say 800x600 and scale it down in the embed 400x300 -  
but whenever I do it's only showing the corner of the 800x600.

I've tried exactfit, noborder and default -- what am I missing? Much  
appreciated.


[flexcoders] String validators and turning off the red

2009-07-22 Thread timgerr
Hello all, I have a question for ya.  

I have a text input that I attach a string validator so the text input is 
required.  So I put my mouse in the box then take it out, not the box is red.  
I then hit a button to turn the string validator off, but the box remains red.  
How can I tell a text input to not be red anymore.  Here is some code:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute
mx:Script
![CDATA[
public function TurnOff(e:Event):void
{
sv.enabled = false;
}
]]
/mx:Script
mx:TextInput id=test/
mx:Button label=Hello/
mx:StringValidator id=sv required=true source={test} 
property=text enabled=true/
/mx:Application

Thanks,
Timgerr



[flexcoders] Re: String validators and turning off the red

2009-07-22 Thread Tim Hoff

Here's a simple way:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute

mx:Script
  ![CDATA[
   public function turnOff(e:Event):void
   {
sv.enabled = false;
test.errorString = ;
   }



   public function turnOn(e:Event):void
   {
sv.enabled = true;
   }
  ]]
/mx:Script

mx:TextInput id=test/

mx:Button top=60 label=Turn Off click=turnOff(event)/

mx:Button top=60 left=100 label=Turn On click=turnOn(event)/

mx:StringValidator id=sv required=true source={test}
property=text enabled=true/

/mx:Application

-TH

--- In flexcoders@yahoogroups.com, timgerr tgallag...@... wrote:

 Hello all, I have a question for ya.

 I have a text input that I attach a string validator so the text input
is required. So I put my mouse in the box then take it out, not the box
is red. I then hit a button to turn the string validator off, but the
box remains red. How can I tell a text input to not be red anymore. Here
is some code:

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
 mx:Script
 ![CDATA[
 public function TurnOff(e:Event):void
 {
 sv.enabled = false;
 }
 ]]
 /mx:Script
 mx:TextInput id=test/
 mx:Button label=Hello/
 mx:StringValidator id=sv required=true source={test}
property=text enabled=true/
 /mx:Application

 Thanks,
 Timgerr





[flexcoders] Combobox emtpy inside of tabNavigator

2009-07-22 Thread flexaustin
So I have a tabNavigator with 3 tabs. I have set creationPolicy =all so that 
to the user it displays quickly. 

The issue that I have a combobox on tab#3 of the tabNav. and when I set 
creation=all and tab#3 is selected the combobox is empty. If set the 
creationpolicy=auto the data shows up in the combobox.

I assume that what is happening is that tab#3 is getting created imeediately 
before the data arrives. FYI the data is requested the minute the entire tab is 
shown, which when creation is complete always shows tab #1. Thus I think the 
vbox and its children are getting created without the data.

So I assume some how I need to invalideSize and invalidateProps on the combobox 
when tab#3 is clicked so it will pull in the data?

TIA, J





[flexcoders] Re: Combobox emtpy inside of tabNavigator

2009-07-22 Thread Tim Hoff

If you cast your service call result to a [Bindable] collection, and
bind the collection to the ComboBox's dataProvider, the ComboBox should
display populated.  With binding you don't have to worry about timing. 
When the ComboBox is instantiated it will pull the data; if it exists. 
If not, the data will get pushed to the ComboBox; when it arrives.

-TH

--- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote:

 So I have a tabNavigator with 3 tabs. I have set creationPolicy =all
so that to the user it displays quickly.

 The issue that I have a combobox on tab#3 of the tabNav. and when I
set creation=all and tab#3 is selected the combobox is empty. If set
the creationpolicy=auto the data shows up in the combobox.

 I assume that what is happening is that tab#3 is getting created
imeediately before the data arrives. FYI the data is requested the
minute the entire tab is shown, which when creation is complete always
shows tab #1. Thus I think the vbox and its children are getting created
without the data.

 So I assume some how I need to invalideSize and invalidateProps on the
combobox when tab#3 is clicked so it will pull in the data?

 TIA, J






[flexcoders] Problem with Flex tree and arraycollection

2009-07-22 Thread timgerr
Hello all,
I have troubles with my trees when I use an array collection.  What happens is 
the highlighting doesn't work, I can highlight some things nodes but not 
others.  Anyone have this happen?

Thanks,
timgerr 



[flexcoders] Enterprise Architect + AS3/PureMVC

2009-07-22 Thread artur_desig2dev
hello wise list,

we just downloaded EA and are trying to figure out how to reverse engineer our 
PureMVC app.

Is there pureMVC template (for code generation) that we need to create for EA? 
or can someone share theirs?


thanks so much



Re: [flexcoders] Enterprise Architect + AS3/PureMVC

2009-07-22 Thread Paul Andrews
artur_desig2dev wrote:
 hello wise list,

 we just downloaded EA and are trying to figure out how to reverse engineer 
 our PureMVC app.

 Is there pureMVC template (for code generation) that we need to create for 
 EA? or can someone share theirs?


 thanks so much
   
Isn't this just a case of telling EA where your class sources are and it 
does the rest?

There's nothing special about PureMVC as far as EA is concerned.

EA generates code from UML models and reverse engineers from code sources.

I'm not sure why this discussion is now taking place across two mailing 
lists either.


[flexcoders] help with videos

2009-07-22 Thread Gustavo Duenas
I want to do this, I have a xml list with images, description and  
links to flvs.
Ok, then I'm making a repeater out of a vbox and using a canvas and  
the buttons of the repeater point to the links
where the videos are and I don't know how to make it on the videos, I  
can use a swf loader or a.?


Any ideas or tutorials.

Gustavo







Re: [flexcoders] Enterprise Architect + AS3/PureMVC

2009-07-22 Thread Jeffry Houser


Last time I used it--albeit a while ago--Enterprise Architect only 
supported one way code generation.  It was not able to parse code and 
generate diagrams. 

This may have changed, of course. 


artur_desig2dev wrote:
 


hello wise list,

we just downloaded EA and are trying to figure out how to reverse 
engineer our PureMVC app.


Is there pureMVC template (for code generation) that we need to create 
for EA? or can someone share theirs?


thanks so much




--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] help with videos

2009-07-22 Thread Tandon, Rishi
Gustavo,

You can use the following classes for displaying video in flash/ flex/ air

NetConnection;
NetStream;
Video;
Check this link for the complete demo
http://blog.flexexamples.com/2008/03/01/displaying-a-video-in-flex-using-the-netconnection-netstream-and-video-classes/

Rishi





From: Gustavo Duenas gdue...@leftandrightsolutions.com
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 22, 2009 3:19:29 PM
Subject: [flexcoders] help with videos

  
I want to do this, I have a xml list with images, description and links to flvs.
Ok, then I'm making a repeater out of a vbox and using a canvas and the buttons 
of the repeater point to the links
where the videos are and I don't know how to make it on the videos, I can use a 
swf loader or a.?

Any ideas or tutorials.

Gustavo



 

   


  

Re: [flexcoders] Enterprise Architect + AS3/PureMVC

2009-07-22 Thread Paul Andrews

Jeffry Houser wrote:




 Last time I used it--albeit a while ago--Enterprise Architect only 
supported one way code generation.  It was not able to parse code and 
generate diagrams. 


 This may have changed, of course.

It has.


artur_desig2dev wrote:
 


hello wise list,

we just downloaded EA and are trying to figure out how to reverse 
engineer our PureMVC app.


Is there pureMVC template (for code generation) that we need to 
create for EA? or can someone share theirs?


thanks so much


--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust




RE: [flexcoders] Re: variables name are in array

2009-07-22 Thread Gordon Smith
Suppose you have a class in which you have declared

public var foo:int;
public var bar:int;

and that in a method you have two arrays

var names:Array = [ foo, bar ];
var values:Array = [ 1, 2 ];

Then the code

var n:int = names.length;
for (var i:int = 0; i  n; i++)
{
this[names[i]] = values[i];
}

will set foo to 1 and bar to 2. This works because you can access foo by name 
as  this[foo].

Does that help?

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of postwick
Sent: Wednesday, July 22, 2009 8:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: variables name are in array



This is very dangerous, IMO. It opens you up for getting things misaligned 
and then you have the wrong value in the wrong variable.

Why aren't you storing the variable name AND the value in the same array?

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
markflex2007 markflex2...@... wrote:

 Hi,

 Do you have a idea if I want to assign values in for loop?I already have two 
 arrays(one is for variable names,other is for variable values)

 I have many values to assign and I want to assign them in loop.otherwise I 
 have to repeat many same assign statements.

 Do you have a idea how to do this.

 Thanks

 Mark




RE: [flexcoders] Problem with Flex tree and arraycollection

2009-07-22 Thread Alex Harui
If there are duplicate items (items with the same UID) it may not work correctly

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of timgerr
Sent: Wednesday, July 22, 2009 2:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with Flex tree and arraycollection



Hello all,
I have troubles with my trees when I use an array collection. What happens is 
the highlighting doesn't work, I can highlight some things nodes but not 
others. Anyone have this happen?

Thanks,
timgerr



RE: [flexcoders] Re: Event's cancelable

2009-07-22 Thread Gordon Smith
Canceling an event -- calling event.preventDefault() -- doesn't stop it from 
bubbling. This is what event.stopPropogation() and 
event.stopImmediatePropogation() do.

Calling event.preventDefault() simply sets a flag in the event object which can 
later be queried by calling event.isDefaultPrevented(). This flag doesn't 
affect event propogation. It's up to the class that dispatched the event -- or 
subsequent listeners -- to decide what to do if this flag gets set, indicating 
a request for event cancellation. For example, if you cancel a 'textInput 
event dispatched by a TextField, then TextField won't insert the characters.

The typical pattern in a dispatcher in this case is

var event:Event = new SomeEvent(aboutToDoSomething);
dispatchEvent(event);
if (!event.isDefaultPrevented())
   doSomething();

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Julien Nicoulaud
Sent: Wednesday, July 22, 2009 11:20 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Event's cancelable



You can cancel an event with myEvent.preventDefault(). This is often useful.
For example, KeyboardEvents are not cancelable, this is an important thing to 
know when you override text inputs default behaviour.

Julien Nicoulaud
http://flex.aixo.fr
2009/7/22 postwick p...@ubeek.commailto:p...@ubeek.com


Events propagate through the hierarchy of objects. If necessary, you can stop 
them (cancel them) once they get to a certain point in the propagation.

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

Specifically, the section on Bubbling answers your question.


--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
markflex2007 markflex2...@... wrote:

 The format for Event constructor like this
 Event(event_type:String, bubbles:Boolean, cancelable:Boolean)

 I do not understand what the cancelable used for and how to use it.

 Please give me a idea.

 Thanks


 Mark





RE: [flexcoders] fontFamily style: inconsistency between ASDocs and developers guide.

2009-07-22 Thread Alex Harui
I think the new TLF handles comma separated lists

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Dave Glasser
Sent: Wednesday, July 22, 2009 12:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] fontFamily style: inconsistency between ASDocs and 
developers guide.



In every ASDoc description of the fontFamily style that I've read, it says, 
Unlike in a full CSS implementation, comma-separated lists are not supported. 
But in the Adobe Flex 3 Developer Guide, on the first page of chapter 19 (Using 
Fonts), it says, This property can take a list of fonts, as the following 
example shows:

...

fontFamily: Arial, Helvetica;

...

Am I misunderstanding something, or are these to statements entirely 
contradictory, and if so, which one is correct? Are comma-delimited lists only 
supported in external stylesheets, and not by the setStyle() method?

Also, on page 667 (Using device fonts), it shows this example:

mx:Style
.myClass {
fontFamily: Arial, Helvetica, _sans;

and goes on to say You must surround device font names with quotation marks 
when defining them with style declarations. How would you do it with the 
setStyle() method.?



RE: [flexcoders] fontFamily style: inconsistency between ASDocs and developers guide.

2009-07-22 Thread Gordon Smith
I think TextField also started accepting fontFamily with a comma-separate list 
in Player 9. I believe this ASDoc is incorrect. Can you file a doc bug at 
http://bugs.adobe.com/flex?

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Wednesday, July 22, 2009 4:06 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] fontFamily style: inconsistency between ASDocs and 
developers guide.


I think the new TLF handles comma separated lists

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Dave Glasser
Sent: Wednesday, July 22, 2009 12:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] fontFamily style: inconsistency between ASDocs and 
developers guide.



In every ASDoc description of the fontFamily style that I've read, it says, 
Unlike in a full CSS implementation, comma-separated lists are not supported. 
But in the Adobe Flex 3 Developer Guide, on the first page of chapter 19 (Using 
Fonts), it says, This property can take a list of fonts, as the following 
example shows:

...

fontFamily: Arial, Helvetica;

...

Am I misunderstanding something, or are these to statements entirely 
contradictory, and if so, which one is correct? Are comma-delimited lists only 
supported in external stylesheets, and not by the setStyle() method?

Also, on page 667 (Using device fonts), it shows this example:

mx:Style
.myClass {
fontFamily: Arial, Helvetica, _sans;

and goes on to say You must surround device font names with quotation marks 
when defining them with style declarations. How would you do it with the 
setStyle() method.?



RE: [flexcoders] Re: Adobe has open-sourced the Text Layout Framework (TLF)

2009-07-22 Thread Gordon Smith
I asked the TLF team and they said they're considering adding basic table 
support -- but perhaps not as complete as in HTML -- for TLF 2.0.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Dennis van Nooij
Sent: Wednesday, July 22, 2009 6:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Adobe has open-sourced the Text Layout Framework (TLF)



hmm. weird. I'm sure I read it yesterday, but I been reading a lot of articles 
about the TLF as well so it must have be in one of those.. I have searching 
around but can't find it anymore.

anyway. Your response probably also answered my question that tables are not 
yet supported.. Is there any news on when it is planned ?

Dennis

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Gordon 
Smith gosm...@... wrote:

 I searched the businesswire article for the word table and didn't find it. 
 Where do you see this?

 Gordon Smith
 Adobe Flex SDK Team

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of Dennis van Nooij
 Sent: Tuesday, July 21, 2009 5:07 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: Adobe has open-sourced the Text Layout Framework 
 (TLF)



 that's great. The first article states that tables are also supported, but if 
 I remember correct that used to be reserved for a later version?

 thanks,
 Dennis

 --- In 
 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
  Gordon Smith gosmith@ wrote:
 
  http://eon.businesswire.com/portal/site/eon/permalink/?ndmViewId=news_viewnewsId=20090720006233newsLang=en
 
  http://opensource.adobe.com/wiki/display/tlf/Text+Layout+Framework
 
  Gordon Smith
  Adobe Flex SDK Team
 




[flexcoders] Re: Problem with Flex tree and arraycollection

2009-07-22 Thread Tim Gallagher
What is the uid for the tree ui?

Thanks,
Timgerr

Sent from my iPhone


[flexcoders] FileReference.load()

2009-07-22 Thread Richard Rodseth
I was hoping to provide an optional feature that requires reading a local
file if Player 10 is available, without requiring 10 for the whole
application.

But it appears that I can't compile code that uses FileReference.load()
without setting the target player in FlexBuilder.

Anyone dealt with this situation?


RE: [flexcoders] FileReference.load()

2009-07-22 Thread Gordon Smith
Try this:

if (load in fileReference)
fileReference[load]();

That should compile against the Player 9 version of playerglobal.swc, but, in 
Player 10, detect that the method exists and call it by name.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Richard Rodseth
Sent: Wednesday, July 22, 2009 6:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FileReference.load()



I was hoping to provide an optional feature that requires reading a local file 
if Player 10 is available, without requiring 10 for the whole application.

But it appears that I can't compile code that uses FileReference.load() without 
setting the target player in FlexBuilder.

Anyone dealt with this situation?



Re: [flexcoders] Flex 4 query

2009-07-22 Thread Purnima S
i have flex4 sdk. iam not understanding how to work in it.

On Wed, Jul 22, 2009 at 8:51 PM, Tom Chiverton tom.chiver...@halliwells.com
 wrote:



 On Wednesday 22 Jul 2009, Purnima S wrote:
  I want to know how flex 4(Gumbo) works

 The same way as Flex 3 does.
 Maybe you could be more specific ?

 --
 Helping to challengingly compete eigth-generation attention-grabbing
 industry-wide paradigms as part of the IT team of the year, '09 and '08

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
 of members is available for inspection at the registered office together
 with a list of those non members who are referred to as partners. We use the
 word ?partner? to refer to a member of the LLP, or an employee or consultant
 with equivalent standing and qualifications. Regulated by the Solicitors
 Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged. If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.Halliwells.com.
  



[flexcoders] images inside text htmltext as in IM application

2009-07-22 Thread guy.tomer
Hi,

We're trying to build something which behaves like an IM application in that 
icons/emoticons can be embedded inside text. 

Using the htmlText property we only manage to get the images aligned to the 
sides of the text but not as integral part of it.

We did read Adobe documentation but can't figure out whether this is a known 
limitation of the component, does anyone know?

Thanks
Guy



[flexcoders] Re:Problem with Flex tree and arraycollection

2009-07-22 Thread Tim Gallagher
It looks like the only part that I can hilight is the last node that  
was added.

Timgerr

Sent from my iPhone


RE: [flexcoders] Re: Problem with Flex tree and arraycollection

2009-07-22 Thread Alex Harui
Trace out the UIDUtil.getUID of each item in the ArrayCollection.  See if any 
are the same.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Tim Gallagher
Sent: Wednesday, July 22, 2009 4:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problem with Flex tree and arraycollection



What is the uid for the tree ui?

Thanks,
Timgerr

Sent from my iPhone