[flexcoders] Contact sharing list.

2010-06-18 Thread Josh Chernoff
I wanted to start a list for people who want to share their contact info for 
possible direct talks or just to follow them on other sites like twitter or 
facebook. 

Please feel free to reply with yours if you wish to share. I will do my best to 
follow everyone twitter. 

Josh Chernoff | AKA GFX Complex:
Flash designer/AS3 Developer, Adobe Usergroup Manager, Amfphp site director, 
all around loudmouth. 

IM's: 
Gtalk: gfxcomplex
Skype: gfxcomplex
AIM: jjjtchernoff
MSN: joshchern...@msn.com
YIM: jrcproduct

Sites:
Twitter: http://twitter.com/gfx_complex
Facebook: http://www.facebook.com/joshua.chernoff
St.Louis AS3 Adobe Usergroup: http://as3apex.com
portfolio: http://gfxcomplex.com

email: gfxcomplex{at}gmail.com

Im learning mxml right now so I don't know how much help I can be there but I 
know my way around as3 good enough to help with most questions so feel free to 
hit me up if you ever feel like it. 

FYI: Though you should know, if it's a big question it should be posted in 
forums for all to see as it will help everyone to see the question/solutions

- Josh C



[flexcoders] Re: Amfphp Error

2010-06-17 Thread Josh Chernoff
Before you even bother to look at the service browser, I would look at the 
gateway.php it will print a installed correctly message if all is good in 
amfphp land.

Next get a good proxy debugger. I like Charles Proxy debugger the best but 
there are a few out there.  This will come in handy for testing from the swf 
it's self. Plus I use it for all kinds of web work out side of flash stuff too. 
You can use Charles for free to get started. 

I would give a try from your app to see if it is calling the correct service 
class and method. If so then check to see if it's getting all the arguments it 
needs. The proxy debugger will help show you all that. 

If all else fails then I would do a simple hello world and try the service 
browser as stated before. Just to see if you can even get amfphp to do a simple 
test.

The problem with the service browser is it takes the method checking out of 
context from your app and there maybe other problems leading up to it out side 
of amfphp, example you may not be calling the correct service class. From the 
service browser at best you will only know that the server side is working or 
not. Plus any info you get in the service browser will also be seen in the 
proxy debugger so  might as well test from the app it's self to see the whole 
picture from the get go. 

FYI: if you use flash develop for editing your php that could also be a problem 
as the encode for the file when saved has massed things up for me in the past. 
Try to save in note pad or dream weaver. 

But that's just my 2 cents. 

I still don't event know mxml yet. 

- Josh Chernoff | GFX Complex




--- In flexcoders@yahoogroups.com, K~SATHYAN~M ksathy...@... wrote:

 Hi,
 
 Use this http://localhost/amfphp/browser/ and check whether your class
 is error free or not.. otherwise replace it with amfphp 1.9 version from
 www.amfphp.org
 
 
 - - - - - - - - -
 With Regards,
 Sathya Moorthi K
 
 
 
 On Thu, Jun 17, 2010 at 3:18 AM, Christophe
 christophe_jacque...@...wrote:
 
 
 
  Hello,
 
  I have this error:
  AMFPHP runtime error
 
  Do you have such an error ?
 
  Thx,
  Christophe,
 
   
 





[flexcoders] Re: How do i embed a SWF in AS3?

2010-06-17 Thread Josh Chernoff
I think you can only load a swf at runtime, via a Loader or SWFLoader

--- In flexcoders@yahoogroups.com, Clark Stevenson a.scots...@... wrote:

 Hey all,
 
 The title says it all. I know how to embed a symbol from a SWF, but
 everything i try when trying to embed a complete SWF fails:
 
 
 [Embed(source=assets/some.swf, mimeType=application/octet-stream)]
 private var MySWF:Class;
 
 
 var movie:MovieClip = new MySwf() as MovieClip
 
 
 This does not work which is slightly obvious as its a octet stream.
 
 
 So now i use a loader and try loadByes(new MySWF() as ByteArray)
 
 
 This tells me .swf contains invalid data.
 
 
 So i have no idea how to embed a SWF. Can anyone give me some help?
 
 
 Cheers,
 
 Clark.





[flexcoders] TLF code hints in Flex 3

2009-10-19 Thread Josh On
I have one installation of Flash Builder Beta 2 and on a different computer
I have a version of Flex Builder 3. 

I have an Actionscript project which uses TextLayout.

Everything works perfectly in Flash Builder Beta 2.

In the Flex 3 installation I am pointing to the Beta 2 sdk: 10485. It
compiles using ant - however, the code hints and syntax checking do not find
certain classes - e.g. ParagraphElement (all other classes in
flashx.textLayout.elements package are available as code hints).  It is as
if it is pointed to the wrong textLayout.swc - however in the build path
libraries it is pointing to the correct sdk file (and textLayout.swc is
there with suspiciously little information available about it). Is there
something else that might be causing code hinting oddities?

 

Thanks,

 

Josh



RE: [flexcoders] Re: Does the Embed metatag still work in the latest versions of the SDK?

2009-10-16 Thread Josh On
Hi,

 

 I am using a leading slash in the path to the asset:

[Embed(source='/image_assets/ui/arrow.gif')]

 

Are you talking about a different path somewhere?

 

The thing is, it does compile, I would think if it couldn't find the class
at compile time then there would be a compile error (which there is when I
don't use a leading slash).  But I get a runtime error:

 

VerifyError: Error #1014: Class mx.core::BitmapAsset could not be found.

 

I have tried explicitly importing BitmapAsset in the code, and using
BitmapAsset as the cast of the instance when I create it, all to no avail.

Can anyone else compile an actionscript project against the latest builds
(Flex 4 Beta 2 and later) using ant, that employs the {Embed] metatag?

 

I would file a bug - but I am not sure exactly where the bug lies - in the
compiler or the SDK or the player, or indeed if there is actually a bug at
all - perhaps there has been a change in the way the [Embed] metatag works,
or a new compiler instruction, or something .

 

Josh

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of seanmcmonahan
Sent: Friday, October 16, 2009 7:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Does the Embed metatag still work in the latest
versions of the SDK?

 

  


Using Flex Builder 3 I had to add the leading slash to Embeds when using Ant
as well. I'm pretty sure one of the previous posters is right: it's all
about the paths and FB does some magic behind the scenes (adds a leading
slash perhaps?) that Ant doesn't.
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
Josh On j...@... wrote:

 Thanks,
 
 
 
 I had the problem which prevented ant from seeing the asset files, and
that
 was fixed by adding a slash to the front of the asset path. That problem
 caused a compile error. This error only happens at run-time and only after
 compiling with recent builds using ant. I also tried using flex tasks and
it
 produced the same runtime errors. It all works perfectly when I compile
 using flex_sdk_4.0.0.7219, with ant or otherwise.
 
 
 
 Josh
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
On
 Behalf Of ag_rcuren
 Sent: Thursday, October 15, 2009 5:57 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Does the Embed metatag still work in the latest
 versions of the SDK?
 
 
 
 
 
 I had this problem once and it turns out that when you are using Flex
 builder it does some magic to the build path. This does not happen when
 you build with ant and I had to move some files around so that mxmlc could
 find everything. I believe that mxmlc can only see the src path and its
sub
 directories, someone correct me if I am wrong.
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com ,
 joshonemail josh@ wrote:
 
  It works when compiling using interface in flex - using all sdks. 
  I get the problem when I compile using ANT, so it is most likely my own
 doing.
  
  My build.properties file:
  SRC_DIR = ${basedir}
  DEPLOY_DIR = ../bin-debug
  # Flex 4-Beta 2 4.0.0.10485 Tue Sep 22 2009
  # Flex 4-Beta 1 4.0.0.7219 Wed May 13 2009
  # FLEX_HOME = C:\\flex_sdk_4.0.0.10547
  # FLEX_HOME = C:\\flex_sdk_4.0.0.7219
  # FLEX_HOME = C:\\flex_sdk_4.0.0.10485
  # FLEX_HOME = C:\\flex_sdk_4.0.0.10988
  FLEX_HOME = C:\\flex_sdk_4.0.0.10963
  MXMLC_EXE = ${FLEX_HOME}\\bin\\mxmlc.exe
  FLASHPLAYER_EXE =
${FLEX_HOME}\\runtimes\\player\\10\\win\\FlashPlayer.exe
  FLEX_TASK_JAR = ${FLEX_HOME}\\ant\\lib\\flexTasks.jar 
  
  My build.xml:
  ?xml version=1.0 encoding=utf-8?
  project name=EmbedTest basedir=../src/
  property file=../build/build.properties /
  echoMXMLC_EXE: ${MXMLC_EXE}/echo
  !--
  - CLEAN
  - deletes all files from bin-debug
  --
  target name=clean
  delete includeemptydirs=true
  fileset dir=${DEPLOY_DIR} includes=**/*/
  /delete
  /target
  
  !-- COMPILE --
  target name=compile_embed_test
  echoCOMPILE/echo
  exec executable=${MXMLC_EXE} dir=${basedir} failonerror=true
  arg line='${SRC_DIR}\EmbedTest.as'  /
  arg line=-o '${DEPLOY_DIR}\EmbedTest.swf'  /
  arg line=-debug  /
  /exec
  /target
  
  !-- LAUNCH --
  target name=launch
  echoLAUNCH/echo
  exec executable=${FLASHPLAYER_EXE} errorproperty=trace.output
  arg line='${DEPLOY_DIR}\EmbedTest.swf' /
  /exec
  /target
  
  target name=clean compile launch
 depends=clean,compile_embed_test,launch/
  
  /project
  
  The source:
  package
  {
  import flash.display.Bitmap;
  import flash.display.Sprite;
  
  public class EmbedTest extends Sprite
  {
  
  [Embed(source='/image_assets/ui/arrow.gif')]
  private static var Arrow:Class;
  
  public function EmbedTest()
  {
  var arrow_bm:Bitmap = new Arrow();
  addChild(arrow_bm);
  }
  }
  }
  
  I still get the same results as below when using ant with these
 parameters. Any

RE: [flexcoders] Re: Does the Embed metatag still work in the latest versions of the SDK?

2009-10-16 Thread Josh On
Try adding the -static-link-runtime-shared-libraries mxmlc option to your
build script. 

Thank you David - that did the trick - I don't know if I ever would have
worked that out!

Josh

 



RE: [flexcoders] Re: Does the Embed metatag still work in the latest versions of the SDK?

2009-10-15 Thread Josh On
Thanks,

 

I had the problem which prevented ant from seeing the asset files, and that
was fixed by adding a slash to the front of the asset path.  That problem
caused a compile error.  This error only happens at run-time and only after
compiling with recent builds using ant. I also tried using flex tasks and it
produced the same runtime errors. It all works perfectly when I compile
using flex_sdk_4.0.0.7219, with ant or otherwise.

 

Josh

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of ag_rcuren
Sent: Thursday, October 15, 2009 5:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Does the Embed metatag still work in the latest
versions of the SDK?

 

  

I had this problem once and it turns out that when you are using Flex
builder it does some magic to the build path. This does not happen when
you build with ant and I had to move some files around so that mxmlc could
find everything. I believe that mxmlc can only see the src path and its sub
directories, someone correct me if I am wrong.

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
joshonemail j...@... wrote:

 It works when compiling using interface in flex - using all sdks. 
 I get the problem when I compile using ANT, so it is most likely my own
doing.
 
 My build.properties file:
 SRC_DIR = ${basedir}
 DEPLOY_DIR = ../bin-debug
 # Flex 4-Beta 2 4.0.0.10485 Tue Sep 22 2009
 # Flex 4-Beta 1 4.0.0.7219 Wed May 13 2009
 # FLEX_HOME = C:\\flex_sdk_4.0.0.10547
 # FLEX_HOME = C:\\flex_sdk_4.0.0.7219
 # FLEX_HOME = C:\\flex_sdk_4.0.0.10485
 # FLEX_HOME = C:\\flex_sdk_4.0.0.10988
 FLEX_HOME = C:\\flex_sdk_4.0.0.10963
 MXMLC_EXE = ${FLEX_HOME}\\bin\\mxmlc.exe
 FLASHPLAYER_EXE = ${FLEX_HOME}\\runtimes\\player\\10\\win\\FlashPlayer.exe
 FLEX_TASK_JAR = ${FLEX_HOME}\\ant\\lib\\flexTasks.jar 
 
 My build.xml:
 ?xml version=1.0 encoding=utf-8?
 project name=EmbedTest basedir=../src/
 property file=../build/build.properties /
 echoMXMLC_EXE: ${MXMLC_EXE}/echo
 !--
 - CLEAN
 - deletes all files from bin-debug
 --
 target name=clean
 delete includeemptydirs=true
 fileset dir=${DEPLOY_DIR} includes=**/*/
 /delete
 /target
 
 !-- COMPILE --
 target name=compile_embed_test
 echoCOMPILE/echo
 exec executable=${MXMLC_EXE} dir=${basedir} failonerror=true
 arg line='${SRC_DIR}\EmbedTest.as'  /
 arg line=-o '${DEPLOY_DIR}\EmbedTest.swf'  /
 arg line=-debug  /
 /exec
 /target
 
 !-- LAUNCH --
 target name=launch
 echoLAUNCH/echo
 exec executable=${FLASHPLAYER_EXE} errorproperty=trace.output
 arg line='${DEPLOY_DIR}\EmbedTest.swf' /
 /exec
 /target
 
 target name=clean compile launch
depends=clean,compile_embed_test,launch/
 
 /project
 
 The source:
 package
 {
 import flash.display.Bitmap;
 import flash.display.Sprite;
 
 public class EmbedTest extends Sprite
 {
 
 [Embed(source='/image_assets/ui/arrow.gif')]
 private static var Arrow:Class;
 
 public function EmbedTest()
 {
 var arrow_bm:Bitmap = new Arrow();
 addChild(arrow_bm);
 }
 }
 }
 
 I still get the same results as below when using ant with these
parameters. Any thoughts appreciated.
 
 Josh
 
 
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
joshonemail josh@ wrote:
 
  Hi,
  I am embedding a graphic at compile using the Embed metatag in an AS3
  project using Flash Builder 4. It compiles in both Beta 1 (build
  4.0.0.7219) and Beta 2 (Flex 4-Beta 2 4.0.0.10485) - but in beta 2 it
  throw runtime errors.
  Here is how I embed:[Embed(source='/image_assets/ui/arrow.gif')] //the
  first slash is necessary for the compilerprivate static var Arrow:Class;
  Here is how I use the asset:new Scrollbar.Arrow() // as a Bitmap
  This is the runtime error I get after compiling with no errors in
  4.0.0.10485 and later:VerifyError: Error #1014: Class
  mx.core::BitmapAsset could not be found.ReferenceError: Error #1065:
  Variable Scrollbar_Arrow is not defined.
  Has the method for embedding assets changed in an Actionscript project?
  Or am I missing something? likely!
  Thanks,
  Josh
 






Re: [flexcoders] Re: Full flex site or not

2009-08-23 Thread Josh McDonald
If I were building a site, rather than an app in Flash, this is what I'd do:

1) All data exposed as 3 forks:

#1: mydomain/xml/my/content/url
#2: mydomain/xhtml/my/content/url
#3: mydomain/flash#/my/content/url

2) Flash pulls all data from #1

3) #2 is an XSLT transform (or templating engine, whatever) using the exact
same data as #1

4) Have /index make a guess based on capabilities, and redirect.

5) Allow the user to choose a different fork, easily enough. Remember this
choice with a long-life cookie.

6) Add link rel=/ elements in all 3 forks, pointing to the same content
in the other two forks.

7) Have a good long hard think about if you really need to do this. Flex is
for apps, not sites. Just not being able to middle-click a link and open a
new tab is really flaming annoying for users :)

-Josh

2009/8/24 kris range krisra...@gmail.com



 Google doesn't index anything af the hash value (#) so this doesn't
 work in a larger more dynamic websites since it looks like all content
 is provided in the single HTML source. I'm also dubious of Google
 indexing content inside of a SWF since I haven't seen any sites that
 are full-flash enabled with this...though I would love to see some! :)

 IMO for SEO, HTML is the easiest way to achieve it. Flash/Flex makes
 things difficult but achievable. SWFAddress uses a nice technique but
 I've also heard good things about the Gaia Framework. A site I am
 working on currently uses the SWFAddress technique where you provide
 an SEO friendly URL and then redirect to the hash value URL. For
 example:

 SEO URL: http://www.yourdomain.com/us/catalog/some-product/
 SWFAddress URL: http://www.yourdomain.com/us/catalog/#/someproduct/

 Kris


 On Sun, Aug 23, 2009 at 10:57 AM, Carlos 
 Roviracarlos.rov...@gmail.comcarlos.rovira%40gmail.com
 wrote:
 
 
  You could go with a full flex site that support SEO. We did it with our
 site
  at Codeoscopic:
 
  http://www.codeoscopic.com
 
  but we as well use html to get the SEO capabilities, so you get the best
 of
  both worlds ;)
 
  for example try to search for codeoscopic avant and you get something
 like
  :
 
 
 http://www.google.es/search?q=codeoscopic+avantie=utf-8oe=utf-8aq=trls=org.mozilla:es-ES:officialclient=firefox-a
 
  you can see the web in other devices not flash enabled like iPhone
 
  C.
 
 
 
  2009/8/22 Jeffry Houser j...@dot-com-it.com jeff%40dot-com-it.com
 
 
 
   But, it is largely believed that google does not yet offer a way to
  search the swf content it is indexing.
 
   Can you provide me one example that says otherwise?  Ryan Stewart had a
  contest, which just fizzled because no one could get their SWF to show
 up in
  a Google search.  Has that improved?
 
  Nate Beck wrote:
 
 
 
  Google already indexes SWF content, they talked about it at MAX last
  November.
 
  Here is a recording of the
  presentation: http://tv.adobe.com/#vi+f15384v1000
 
  On Fri, Aug 21, 2009 at 10:09 AM, toofah_gm 
  ga...@byu.edugarym%40byu.edu
 wrote:
 
 
 
  If you are a competitor of mine, build a full flex site, otherwise HTML
  is the way to go for SEO. ;)
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 christophe_jacquelin
  christophe_jacque...@... wrote:
  
   Hello,
  
   Is it better to make a full flex site or is it better to add some
 html
   pages with flex to have a better position in Google ?
  
   Thank you,
   Christopher,
  
 
 
 
 
  --
 
  Cheers,
  Nate
  
  http://blog.natebeck.net
 
 
 
  --
  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
 
 
 
 
  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] [ANN] Flexmojos 3.3.0 is out!

2009-08-23 Thread Josh McDonald
Cool, I'll be sure and try it out again next time I start a new project.

-Josh

2009/8/24 Marvin Froeder velo...@gmail.com



 Last weekend was released Flexmojos 3.3.0.
 Flexmojos http://flexmojos.sonatype.org/ provides first-class support
 for Flex and AIR development within Apache Maven. It allow maven to compile,
 optimize, test and … Flex SWF, Flex SWC, Air SWF and Air SWC.

 The main fixes are: - Dita Asdoc generation - Major refactor on generation
 API, now it supports granite 1.0 and 2.0, also has a new generator to
 generate constraints. - Improved unit test support. - Several fixes on
 Flexbuilder project metadata generation. - Html wrapper is now runnable on
 war or other non-swf project ( thanks to David Rom ). and 
 morehttps://issues.sonatype.org/browse/FLEXMOJOS/fixforversion/10297.
 Next release will include FlexUnit 4 support and more refactories on
 Flexmojos to componentize it and get it better tested. VELO
  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


[flexcoders] Populating Datagrid

2009-07-28 Thread Josh Keller
I'm new to Flex (just started looking at it 2 days ago) but I've been working 
on this problem all day long. I'm trying to create and populate a datagrid 
based on field names specified in a CSV list, with separate data that is also 
going to be CSV but from a different source in the same order if that makes 
sense.

I've figured out how to make the first section of code below work as I would 
expect, buildDG takes the CSV string and generates the columns and headers in 
the datagrid like I want. The part I need help on is getting the code in 
addDGRow to work, a function that will accept CSV data in the same order as the 
headers and add that data as a new row in the datagrid. I've been working on 
this all day and can't figure out how to do this.

Any help would be greatly appreciated. Thanks, Josh


private function init():void
{
buildDG(Col1,Col2,Col3,Col4,Col5,Col6);
}
private function buildDG(sCSV:String):void
{
var aCSV:Array = sCSV.split(,);
for ( var i:int = 0; i  aCSV.length; i++)
{
var dgc:DataGridColumn = new DataGridColumn(aCSV[i]);
var cols:Array = dgCSV.columns;
cols.push(dgc);
dgCSV.columns = cols;
}
}
private function addDGRow(sCSVData:String):void
{
// Code for adding a row to the datagrid assuming sCSVData is CSV data in the 
same order as sCSV above
}
...
mx:DataGrid id=dgCSV
/mx:DataGrid



[flexcoders] Re: Populating Datagrid

2009-07-28 Thread Josh Keller
That was exactly the information I needed to get me over that hump, thank you 
very much.

Josh

--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 You need to populate something like an ArrayCollection and then set the
 dataProvider of your DataGrid to that ArrayCollection. Here is a quick
 and dirty example:
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute
  initialize=init()
  mx:Script
  ![CDATA[
  import mx.controls.dataGridClasses.DataGridColumn;
  import mx.collections.ArrayCollection;
 
  [Bindable] private var dgCSVArrColl:ArrayCollection = new
 ArrayCollection();
 
  private function init():void
  {
  buildDG(Col1, Col2, Col3, Col4, Col5, Col6);
  addDGRow(1, 2, 3, 4, 5, 6);
  addDGRow(9, 8, 7, 6, 5, 4);
  }
  private function buildDG(sCSV:String):void
  {
  var aCSV:Array = sCSV.split(,);
  for(var i:int = 0; i  aCSV.length; i++)
  {
  var dgc:DataGridColumn = new
 DataGridColumn(aCSV[i]);
  var cols:Array = dgCSV.columns;
  cols.push(dgc);
  dgCSV.columns = cols;
  }
  }
  private function addDGRow(sCSVData:String):void
  {
  // Code for adding a row to the datagrid assuming
 sCSVData is CSV data
  // in the same order as sCSV above
  var lCSV:Array = sCSVData.split(,);
  var cols:Array = dgCSV.columns;
  if(cols.length == lCSV.length)
  {
  var dataItem:Object = new Object();
  for(var i:int = 0; i  cols.length; i++)
  {
  dataItem[(cols[i] as DataGridColumn).dataField]
 = lCSV[i];
  }
  dgCSVArrColl.addItem(dataItem);
  }
  }
 
  ]]
  /mx:Script
  mx:DataGrid id=dgCSV dataProvider={dgCSVArrColl}/
 /mx:Application
 
 
 
 --- In flexcoders@yahoogroups.com, Josh Keller jeepin95@ wrote:
 
  I'm new to Flex (just started looking at it 2 days ago) but I've been
 working on this problem all day long. I'm trying to create and populate
 a datagrid based on field names specified in a CSV list, with separate
 data that is also going to be CSV but from a different source in the
 same order if that makes sense.
 
  I've figured out how to make the first section of code below work as I
 would expect, buildDG takes the CSV string and generates the columns and
 headers in the datagrid like I want. The part I need help on is getting
 the code in addDGRow to work, a function that will accept CSV data in
 the same order as the headers and add that data as a new row in the
 datagrid. I've been working on this all day and can't figure out how to
 do this.
 
  Any help would be greatly appreciated. Thanks, Josh
 
 
  private function init():void
  {
  buildDG(Col1,Col2,Col3,Col4,Col5,Col6);
  }
  private function buildDG(sCSV:String):void
  {
  var aCSV:Array = sCSV.split(,);
  for ( var i:int = 0; i  aCSV.length; i++)
  {
  var dgc:DataGridColumn = new DataGridColumn(aCSV[i]);
  var cols:Array = dgCSV.columns;
  cols.push(dgc);
  dgCSV.columns = cols;
  }
  }
  private function addDGRow(sCSVData:String):void
  {
  // Code for adding a row to the datagrid assuming sCSVData is CSV data
 in the same order as sCSV above
  }
  ...
  mx:DataGrid id=dgCSV
  /mx:DataGrid
 





[flexcoders] Export Datagrid Flex to Excel file using JSP

2009-06-22 Thread Josh
Hi...
I want to ask about how to export datagrid in flex into excel file using JSP.. 
I'm really appreciated for your help...
Thanx..
(^_^)



Re: [flexcoders] Sending SOAP with attachment

2009-05-21 Thread Josh McDonald
Unfortunately not. It's *possible* with Player 10, but not supported in the
mx.rpc.soap implementation.

-Josh

2009/5/21 daxdr9 wub...@gmail.com



 Seems receiving of SOAP attachments is out, but does Flex support sending
 of SOAP attachments (either directly or indirectly)?

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mykola
 Dzyuba mdzy...@... wrote:
 
  I don't think SOAP attachments are supported in Flex at the moment.
  Here is some more info with a workaround option of encoding a binary
  data into a string:
 
  http://bugs.adobe.com/jira/browse/SDK-13381
 
  - Mykola
 

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: BlazeDS RemoteObject Performance

2009-05-21 Thread Josh McDonald
Intriguing, I'll look into that. Thanks for the link.

2009/5/22 erdal eta...@tideworks.com



 Would this help

 Performance tip: Use multiple duplicated remote objects to reduce the
 average response time

 http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailspostId=10663productId=2loc=en_US

 Solution Summary : You can actually use multiple duplicated remote objects
 to reduce the average response time. Think each remote object as a thread,
 so the more threads you have the quicker the work gets done.

 -erdal


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Aldo
 Bucchi aldo.buc...@... wrote:
 
  Hi,
 
  Yes!
  We figured yesterday that it is, in fact, a *client side* limitation.
  We are using AIR 1.5 BTW.
 
  Is there any workaround for this?
  We are changing the overall strategy to consolidate several queries at
  once, but it would be nice to raise the client side pool a bit more (
  having only two is sub-optimal anyway ).
 
  Thanks,
  A
 
  On Wed, May 20, 2009 at 9:51 AM, mmormando m...@... wrote:
  
  
   D'oh, you beat me to it! The only addition I can make is that this can
   usually be changed in the registry for IE, or in Firefox via the
   about:config page. I think the defaults in IE 8 and Firefox 3 are 8
   connections, IE before 8 was indeed 2.
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Fotis Chatzinikos fotis.chatzinikos@
   wrote:
  
   Are these calls all coming from the same client?
  
   Most browsers will open two concurrent connections to the same domain
 not
   more.
  
   If this is the case its not a server limitation but a client
 limitation
  
  
  
 
 
 
  --
  Aldo Bucchi
  U N I V R Z
  Office: +56 2 795 4532
  Mobile:+56 9 7623 8653
  skype:aldo.bucchi
  http://www.univrz.com/
  http://aldobucchi.com/
 
  PRIVILEGED AND CONFIDENTIAL INFORMATION
  This message is only for the use of the individual or entity to which it
 is
  addressed and may contain information that is privileged and
 confidential. If
  you are not the intended recipient, please do not distribute or copy this
  communication, by e-mail or otherwise. Instead, please notify us
 immediately by
  return e-mail.
  INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL
  Este mensaje está destinado sólo a la persona u organización al cual está
  dirigido y podría contener información privilegiada y confidencial. Si
 usted no
  es el destinatario, por favor no distribuya ni copie esta comunicación,
 por
  email o por otra vía. Por el contrario, por favor notifíquenos
 inmediatamente
  vía e-mail.
 

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Implementig IRepeater

2009-05-21 Thread Josh McDonald
I think you'll find mx:Repeater/ is one of those MXMLC voodoo hardcoded
exceptions, meaning you can't actually build custom repeaters.

I could be wrong of course. Anybody with more compiler knowledge know for
sure?

-Josh

2009/5/21 reflexactions reflexacti...@yahoo.com



 I have created a component that extends UIComponent and implements
 IRepeater.

 Although the component compiles, and the codes looks fine, when I use it in
 mxml it objects to the child mxml tags placed inside my custom repeater tag.

 Does anyone know how to make this work?

 Tks

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: BlazeDS RemoteObject Performance

2009-05-19 Thread Josh McDonald
You should be able to exhaust your tomcat thread pool using BlazeDS,
something else is going wrong.

-Josh

2009/5/20 Aldo Bucchi aldo.buc...@gmail.com



 foobone9,

 Are you saying that this is a known built-in limitation of BlazeDS?

 Thanks,
 A


 On Tue, May 19, 2009 at 6:58 PM, foobone9 
 foobo...@yahoo.comfoobone9%40yahoo.com
 wrote:
 
 
  I think you need to invest in Live Cycle Data Servies.
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Aldo
 Bucchi aldo.buc...@... wrote:
 
  ( I copy this email from an internal communication I received )
 
  quote
 
  Hello,
 
  I've found a serious performance problem on an application written on
  Flex/AIR and using BlazeDS v3.0.0.544. By looking at the logs I can
  see that the server side method (invoked via RemoteObject on the
  client side) never executes in more than two threads at the same time.
  What I mean is that if I fire 5 simultaneous requests to the method
  using RemoteObject from the flex side, and log when the method is
  executed and when it returns, I get something like this:
 
  12:00:00 Method Executed
  12:00:00 Method Executed
  12:00:01 Method Exiting
  12:00:01 Method Executed
  12:00:04 Method Exiting
  12:00:04 Method Executed
  12:00:10 Method Exiting
  12:00:10 Method Executed
  12:00:11 Method Exiting
  12:00:13 Method Exiting
 
  While on the client side I see that all the 5 invocations were fired
  at 12:00:00.
 
  As you can see, the method tend to take a while to run. But the big
  problem is that the log suggest that some queuing is happening on the
  server side, allowing only a maximum of two threads to run in parallel
  at any given time.
 
  I thought it could be a problem with the thread pool of the servlet
  container, but my Tomcat has the following configuration:
 
  Executor name=tomcatThreadPool namePrefix=catalina-exec-
  maxThreads=150 minSpareThreads=4/
 
  So I guessed that the limit could be imposed by BlazeDS itself. But
  haven't found anything on the documentation. Of course, I could be
  wrong and the problem may be something else.
 
  Any ideas?
 
  Thanks,
  Leo
 
  /quote
 
  Note: The Remote Object destination has application scope, which
  means that there is only one instance of the Java object per
  application.
 
  Regards,
  A
 
  --
  Aldo Bucchi
  U N I V R Z
  Office: +56 2 795 4532
  Mobile:+56 9 7623 8653
  skype:aldo.bucchi
  http://www.univrz.com/
  http://aldobucchi.com/
 
  PRIVILEGED AND CONFIDENTIAL INFORMATION
  This message is only for the use of the individual or entity to which it
  is
  addressed and may contain information that is privileged and
 confidential.
  If
  you are not the intended recipient, please do not distribute or copy
 this
  communication, by e-mail or otherwise. Instead, please notify us
  immediately by
  return e-mail.
  INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL
  Este mensaje está destinado sólo a la persona u organización al cual
 está
  dirigido y podría contener información privilegiada y confidencial. Si
  usted no
  es el destinatario, por favor no distribuya ni copie esta comunicación,
  por
  email o por otra vía. Por el contrario, por favor notifíquenos
  inmediatamente
  vía e-mail.
 
 
 

 --
 Aldo Bucchi
 U N I V R Z
 Office: +56 2 795 4532
 Mobile:+56 9 7623 8653
 skype:aldo.bucchi
 http://www.univrz.com/
 http://aldobucchi.com/

 PRIVILEGED AND CONFIDENTIAL INFORMATION
 This message is only for the use of the individual or entity to which it is
 addressed and may contain information that is privileged and confidential.
 If
 you are not the intended recipient, please do not distribute or copy this
 communication, by e-mail or otherwise. Instead, please notify us
 immediately by
 return e-mail.
 INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL
 Este mensaje está destinado sólo a la persona u organización al cual está
 dirigido y podría contener información privilegiada y confidencial. Si
 usted no
 es el destinatario, por favor no distribuya ni copie esta comunicación, por
 email o por otra vía. Por el contrario, por favor notifíquenos
 inmediatamente
 vía e-mail.
  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] New Flex 3 Component/Application Lifecycle White-paper

2009-05-19 Thread Josh McDonald
Will check it out, cheers.

-Josh

2009/5/20 jamesdevelopmentarc ja...@developmentarc.com



 Hi All,
 We just published a 36 page in-depth analysis of the Flex 3 Lifecycle for
 both component and application development. We discuss in detail how and
 what code is executed in the Flex SDK and how you can use this to create
 better and more performant applications in Flex and AIR.

 Download the free PDF here:
 http://www.developmentarc.com/site/articles/

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Good Flex skins

2009-04-26 Thread Josh McDonald
ScaleNine is as good as you're likely to find free of charge.

-Josh

2009/4/24 Alexander Livitz aliv...@sbcglobal.net



 Hello,

 I am searching for a great looking Flex skins/themes. Something similar in
 quality to FlashMint (http://www.flashmint.com). Most of the Flex skins
 I've seen so far look extremely amateurish, including ScaleNine. Can you
 point me to a high-quality Flex skins library? Does it even exist?

 Thanks,
 Alex

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: Flash/FLex gravity

2009-04-23 Thread Josh McDonald
Here's a working example I whipped up in 15 minutes:

http://pastie.textmate.org/private/mmmbwwnwl0ly2ciurwvda

-Josh

2009/4/24 flexaustin flexaus...@yahoo.com



 I have the book now. I am trying to make it work and I am almost there, but
 the sprite is only glides correctly when thrown if I drag from top right to
 lower left or lower left to top right.

 If I throw it directly to the right it moves up and if I throw it to
 directly to the left it goes down. If I throw it up it goes to the right.
 And if I throw it down it moves to the left.

 Here is the code (_object is the sprite being throw):

 if(_drag == true){

 var diffx:Number = initX - mx;
 var diffy:Number = initY - my;

 var speed:Number = 12;
 var angle:Number = Math.atan2( diffx, diffy );
 //var radians:Number = deg2rad(angle);
 var xVel:Number = Math.cos(angle) * speed;
 var yVel:Number = Math.sin(angle) * speed;

 function deg2rad(deg:Number):Number {
 return deg * (Math.PI/180);
 }

 function onLoop(evt:Event):void {
 _object.x += xVel;
 _object.y += yVel;

 xVel *= 0.9;
 yVel *= 0.9;

 if (xVel  0.05  yVel  0.05) {
 _drag = false;
 _stage.removeEventListener(Event.ENTER_FRAME, onLoop, false);
 }

 }


 _stage.addEventListener(Event.ENTER_FRAME, onLoop, false, 0, true);
 //get the velocity and direction and make it go another 100 pixels or more
 }

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Nate
 Beck n...@... wrote:
 
  Yup Josh is correct, creating a vector is the way to go...
  The slowing down force you're talking about is friction (at least in
  physics). If you're interested in this kind of stuff, I highly recommend
  picking up a copy of Keith Peters book:
 
 
 http://www.amazon.com/Foundation-Actionscript-3-0-Animation-Making/dp/1590597915/ref=sr_1_1?ie=UTF8s=booksqid=1240464956sr=8-1
 
  Cheers,
 
  On Wed, Apr 22, 2009 at 9:19 PM, Josh McDonald j...@...wrote:
 
  
  
   That sort of thing (a vector) is easy, once you've determined the
 direction
   in radians, and a speed. Let's call it pixels-per-frame, to make things
   simple. Note that this is typed in gmail, and will need tweaks!
  
   accuratePositionX = x;
   accuratePositionY = y;
  
   velocityX = Math.cos(direction) * initialVelocity;
   velocityY = Math.sin(direction) * initialVelocity;
  
   //Do every frame:
   function updatePosition():void
   {
   accuratePositionX += velocityX;
   accuratePositionY += velocityY;
  
   x = Math.round(accuratePositionX);
   y = Math.round(accuratePositionY);
  
   velocityX *= 0.9;
   velocityY *= 0.9;
  
   if (velocityX  0.05  velocityX  0.05)
   stopTheAnimation();
   }
  
   Cheers,
   -Josh
  
   2009/4/23 flexaustin flexaus...@...
  
  
  
   Does anyone know of a tutorial on actionscript and gravity. Not like
   dropping a ball, but like google maps where you drag an item and it
 keeps
   going in that direction but slowing down. So gravity in all directions
   something like a hockey puck.
  
   TIA
  
  
  
  
   --
   Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
  
   Josh 'G-Funk' McDonald
   - j...@...
   - http://twitter.com/sophistifunk
   - http://flex.joshmcdonald.info/
  
  
  
 
 
 
  --
 
  Cheers,
  Nate
  
  http://blog.natebeck.net
 

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Working With Dynamic Datagrid

2009-04-23 Thread Josh McDonald
Also change this:

col.dataField=gradebookBySection[i].children()@grade.toxmlstring();

to this:

col.dataField = @grade;

-Josh

2009/4/24 Tracy Spratt tr...@nts3rd.com



  Generate your columns as you are, you said that was working.  But you
 still have to give the datagrid the data.  How/are you doing that?  Note, do
 not use XMLList if you are binding.



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Jonathan Ackerman
 *Sent:* Thursday, April 23, 2009 1:19 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Working With Dynamic Datagrid






  Hi Tracy,

 Thanks for writing back. I did assign the XMLList to a variable and I could
 assign that variable to the datagrid.

 However, since I have to create datadrigcolumns dynamically, wouldn't that
 not work right? In assigning the variable to the datagrid without any other
 work I would have to specify the number of columns that it fills no?

   




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Flash/FLex gravity

2009-04-22 Thread Josh McDonald
That sort of thing (a vector) is easy, once you've determined the direction
in radians, and a speed. Let's call it pixels-per-frame, to make things
simple. Note that this is typed in gmail, and will need tweaks!

accuratePositionX = x;
accuratePositionY = y;

velocityX = Math.cos(direction) * initialVelocity;
velocityY = Math.sin(direction) * initialVelocity;

//Do every frame:
function updatePosition():void
{
accuratePositionX += velocityX;
accuratePositionY += velocityY;

x = Math.round(accuratePositionX);
y = Math.round(accuratePositionY);

velocityX *= 0.9;
velocityY *= 0.9;

if (velocityX  0.05  velocityX  0.05)
stopTheAnimation();
}

Cheers,
-Josh

2009/4/23 flexaustin flexaus...@yahoo.com



 Does anyone know of a tutorial on actionscript and gravity. Not like
 dropping a ball, but like google maps where you drag an item and it keeps
 going in that direction but slowing down. So gravity in all directions
 something like a hockey puck.

 TIA

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] blazeds and J2EE application

2009-04-22 Thread Josh McDonald
The best answer at the moment is probably Spring-Flex (not Prana, but
server-side components to link BlazeDS with Spring):

http://www.springsource.org/spring-flex

-Josh

2009/4/23 hworke kanps...@gmail.com




 Hello Devs,

 I am working to integrate BlazeDs with an existing J2EE application.
 What I am trying to do is create an administrative flex app where the
 admin can see what changes are happening in the J2EE app. I need
 to call some of the J2EE app APIs to get the data and pass it to the
 Flex application. I believe that I need to write some server side Java
 code and call the API and then connect those Java code with BlazeDs.

 Now my question is how do I integrate Blazeds with an existing J2EE
 app? Please suggest.

 Regards...

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Perennial problem with Flex -- single element vs multi-element

2009-04-21 Thread Josh McDonald
Or build an XSD. Without it, how on earth is Flex's built-in decoder going
to know that sometimes there's many node/ elements, but right now there's
not?

-Josj

2009/4/22 Tracy Spratt tr...@nts3rd.com



  Set resultFormat=”e4x”, and do not depend on the built in decoder.  Loop
 over the XML list and build you own ArrayCollection.



 Or use ArrayUtil.toArray(),



 Or inspect the result and handle it conditionally.



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *elevight
 *Sent:* Tuesday, April 21, 2009 9:00 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Perennial problem with Flex -- single element vs
 multi-element






  For those of you who have been using Flex since 1.5, do you remember how
 Flex always had a problem returning single-element arrays as a non-array
 object, and how we had to apply mx.utils.ArrayUtils to force it to become a
 one-element array?

 It seems like Flex 3.0 still has the same problem. If the XML I am getting
 from the server looks like this:

 root
 node /
 node /
 root

 that is, a root tag with more than one child node, event.result.root.node
 will be of type ArrayCollection. But if the XML is like this:

 root
 node /
 /root

 where there is only one child tag, event.result.root.node becomes of type
 mx.utils.ObjectProxy. This is causing my application to bomb because I'm
 automatically storing the results in an ArrayCollection.

 Has anyone had this problem before? Any suggestions on how to handle this
 would be greatly appreciated.

 Thanks.
   




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: Extending Flex Webservice class

2009-04-19 Thread Josh McDonald
I'd say it's not possible without either using a custom compiler, or
monkey-patching Operation.as, which would be a pretty bad idea IMO.

You could subclass WebService, but then the MXML syntax would be different
as you wouldn't have the compile-time voodoo that is in MXMLC to support the
original MXML syntax for services (a leftover from Flex 1.5 IIRC).

-Josh

2009/4/16 variableop variabl...@yahoo.com



 Josh,

 I can add the header using the web service's addHeader() method
 programmatically and everything seems to work great when i call the back-end
 webservice. Even though it is just a couple lines of code, I would like to
 overload the send() method on Flex's Webservice class so that it creates the
 header (using parameters initialized at the Webservice declaration) and then
 adds the header to the Webservice before the send. Basically,

 mx:WebService id=TempConvert wsdl=
 http://localhost/Celsius2Fahrenheit/Celsius2Fahrenheit.asmx?WSDL;
 showBusyCursor=true username={parentApplication.username}
 password={parentApplication.password}
 mx:operation name=FahrenheitToCelsius result=handleWS()
 fault=Alert.show('there was an error processing request.')
 mx:request
 Fahrenheit{this.TempInput.text}/Fahrenheit
 /mx:request
 /mx:operation
 /mx:WebService

 .

 TempConvert.send() // header is created and added in this call

 This is actually sounding pretty crazy right now because I would need to
 make a call to a class method that does the header creation. Any ideas if
 this is possible?

 --Variable


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh
 McDonald j...@... wrote:
 
  There's currently compile-time voodoo that exists to support the MXML
  declaration of web services, so you can't really do this sort of thing
  declaratively.
 
  Programmatically it's pretty easy to add headers to web service calls
  though, what exactly are you trying to do?
 
  -Josh
 
  2009/4/15 variableop variabl...@...
 
  
  
   All,
   I would like to extend the Flex Webservice class to add a header to the
   call if custom properties have been set in the webservice declaration
 (or
   programmatic instantiation through the constructor). 1) Does anyone
 have
   experience extending flex's webservice class? 2) If not, can someone
 sketch
   out a path to extending flex's built-in types in such a way? Any help
 is
   appreciated.
  
   Regards,
  
   Variable
  
  
  
 
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for thee.
 
  Josh 'G-Funk' McDonald
  - j...@...
  - http://twitter.com/sophistifunk
  - http://flex.joshmcdonald.info/
 

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: How Could I not map a property to lcds object ?

2009-04-15 Thread Josh McDonald
That still requires adding the fields to the Flex object. Marking the field
@Transient in Java will affect Hibernate, unless Blaze / LCDS have their own
@Transient I'm not aware of. There's also this blazeds annotations add-on:
http://is.gd/sETx

SmartyPants-J will do this, but it's nowhere near escaping yet :)

-Josh

2009/4/16 Tim Hoff timh...@aol.com



 Yep, here's an example:
 *

 private
 * *var* _myProperty:String;

 [Transient]
 [*Bindable*( event=*myPropertyChange* )]
 /**
 * myProperty.
 * @private
 */
 *public* *function* *get* myProperty():String
 {
 * return* _myProperty;
 }

 /** @private */
 *public* *function* *set* myProperty( value:String ):*void
 *{
  _myProperty = value;
  dispatchEvent( *new* Event( *myPropertyChange* ) );
 }

 -TH

 --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote:
 
  --- In flexcoders@yahoogroups.com, ouaqa ab@ wrote:
  
  
   This is an option but i was wondering if you couldn't use some special
   ninja keyword telling lcds not to map the field to lcds.
 
  Transient?
 
  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: Flex Builder Compiler Performance Benchmarking

2009-04-15 Thread Josh McDonald
MXMLC's XML embedding is terrible. For anything non-trivial, embed your XML
as a ByteArray and just parse it as a String.

-Josh

2009/4/16 edlueze edlu...@onegen.com



 I've finally had a chance to investigate my slow compiler performance and
 I've made a shocking discovery!

 As a reminder, I asked the community how long I should expect a typical
 compilation to take. The response I got was about 40 seconds. My
 clean-build compilations take about 2 hours!!!

 Today I eliminated the two large XML files from my project that I ask the
 compiler to Embed. Together, the two XML files are about 10,000 lines long.
 To my utter amazement, this was the primary cause of the slow compiling. My
 clean-build compile time went from 2 hours to less than 2 minutes!

 I can usually avoid the 2 hour compiles if I change just one file. But if I
 change two files (not including the embedded XML files that rarely need to
 be changed) I often trigger the long compilation.

 This cannot possibly be what the compiler-engineers at Adobe intended. I'm
 going to file a bug with Adobe, but let me know if you've got other thoughts
 on better workarounds.

 Thanks!

 Ted.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 mmormando m...@... wrote:
 
  Hm, as you said in a later post, I'd suspect the xml file, or perhaps
 other resources. I'm working on a fairly large project, some Java, a few
 graphics and css, as well as 70+ modules of various sizes and our build time
 with a little homegrown Maven plugin is coming in at under 8 minutes.
  Please let us know if you find out what the issue is.
  Good luck!
  Mike
 
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 edlueze edlueze@ wrote:
  
   Hi Folks:
  
   Can somebody tell me what a reasonable compile-time for a Flex
 Application is? A clean build for my application will take about 2 hours,
 and an incremental compile after I've changed several files will often take
 an hour. If I've only changed one file then an incremental compile will
 usually take less than a minute.
 

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Serialize Java ResultSet To Flex

2009-04-14 Thread Josh McDonald
You can always create a typed ActionScript VO. Since you'll have to go from
ResultSet to typed object on the Java side before you can use the built-in
marshaller, you may as well just marshal straight from your resultSet to
AMF.

-Josh

2009/4/15 Daniel Freiman freima...@gmail.com



 Yeah, it just felt inelegant to do manual, untyped serialization.

 2009/4/13 Josh McDonald j...@joshmcdonald.info



 You could put them in a list of HashMaps, which should get serialised into
 an Array of simple name-value objects on the way to the Flex client?

 -Josh

 2009/4/14 Daniel Freiman freima...@gmail.com



 Yeah, something more raw.  If the ResultSet was natively serializable (w/
 multiple rows of data), I'd be happy.  I've found from previous iterations
 of this project, that raw-ish data was the way to go here, and previous
 languages I used easily allowed for that.

 - Dan

 2009/4/13 Tim Rowe tim.r...@carsales.com.au



  Have you already read into use of Transfer Objects and Data Access
 Objects, or are you looking for a solution a little more raw than that?


 *Tim Rowe*
 Software Engineer
 carsales.com Ltd

  --
 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
 *On Behalf Of *Daniel Freiman
 *Sent:* Tuesday, 14 April 2009 7:13 AM
 *To:* flexcoders
 *Subject:* [flexcoders] Serialize Java ResultSet To Flex

  I want to receive a ResultSet from Java/Blaze DS.  Obviously this
 won't work as stated, but I'm having trouble finding a correct/viable
 alternative.  Anyone know how this is supposed to be done?

 - Daniel Freiman


  ▼
 ▲







 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 Josh 'G-Funk' McDonald
   -  j...@joshmcdonald.info
   -  http://twitter.com/sophistifunk
   -  http://flex.joshmcdonald.info/









-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] ICollectionView

2009-04-14 Thread Josh McDonald
Could you post some code that shows how you're creating the view?

-Josh

2009/4/15 niel.ru...@ymail.com niel.ru...@ymail.com



 I have an view defined on an arraycollection. The view initially returns
 the correct result subset, but subsequently is refreshed to reflect the
 entire arraycollection.

 Has anyone experienced this problem?

 The view is a dataprovider for yahoo.astra.AutoCompleteManager which
 triggers the refresh when it is opened.

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Extending Flex Webservice class

2009-04-14 Thread Josh McDonald
There's currently compile-time voodoo that exists to support the MXML
declaration of web services, so you can't really do this sort of thing
declaratively.

Programmatically it's pretty easy to add headers to web service calls
though, what exactly are you trying to do?

-Josh

2009/4/15 variableop variabl...@yahoo.com



 All,
 I would like to extend the Flex Webservice class to add a header to the
 call if custom properties have been set in the webservice declaration (or
 programmatic instantiation through the constructor). 1) Does anyone have
 experience extending flex's webservice class? 2) If not, can someone sketch
 out a path to extending flex's built-in types in such a way? Any help is
 appreciated.

 Regards,

 Variable

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] BlazeDS data push over SSL

2009-04-14 Thread Josh McDonald
Do you have the corrent channels set up for http and https on the server?
Have you tried going through Charles to make sure it's returning the correct
response type? If there's a Java problem you might be getting a 500 as it's
still going through a servlet, in which case you'll just get the stream
error :(

-Josh

2009/4/15 pratima_jrao pratima_j...@yahoo.com





 I have an application that uses the data push technology of blazeDS to send
 data to a Flex Client event 5 seconds. The application works fine when I run
 it via HTTP with or without a proxy. When I run it via https the data push
 doesn't work anymore. I get the following error

 rootCause [IOErrorEvent type=ioError bubbles=false cancelable=false
 eventPhase=2 text=Error #2032: Stream Error. URL:
 https://localhost/admin/messagebroker/streamingamfsecure?command=openversion=1

 Has anyone successfully got streaming to work over SSL?

 Thanks,
 Pratima

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Serialize Java ResultSet To Flex

2009-04-13 Thread Josh McDonald
You could put them in a list of HashMaps, which should get serialised into
an Array of simple name-value objects on the way to the Flex client?

-Josh

2009/4/14 Daniel Freiman freima...@gmail.com



 Yeah, something more raw.  If the ResultSet was natively serializable (w/
 multiple rows of data), I'd be happy.  I've found from previous iterations
 of this project, that raw-ish data was the way to go here, and previous
 languages I used easily allowed for that.

 - Dan

 2009/4/13 Tim Rowe tim.r...@carsales.com.au



  Have you already read into use of Transfer Objects and Data Access
 Objects, or are you looking for a solution a little more raw than that?


 *Tim Rowe*
 Software Engineer
 carsales.com Ltd

  --
 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Daniel Freiman
 *Sent:* Tuesday, 14 April 2009 7:13 AM
 *To:* flexcoders
 *Subject:* [flexcoders] Serialize Java ResultSet To Flex

  I want to receive a ResultSet from Java/Blaze DS.  Obviously this won't
 work as stated, but I'm having trouble finding a correct/viable
 alternative.  Anyone know how this is supposed to be done?

 - Daniel Freiman


  ▼
 ▲









-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Pros and Cons of Writing Air UI's in Pure Flash

2009-04-06 Thread Josh McDonald
Personally, I'd think long and hard before doing something like this. It
really depends on how much of the actual work is in the very top layer of
frosting, how much work is done in the meat of the AIR app, and what kind
of feedback you need to have going between these layers.

Perhaps you can get the designers to build simpler components (buttons,
window decorations, etc) in Flash using the FCK, and lay them out with MXML
and Builder. If they're building SWCs with the FCK at least they can expose
[Event] metadata and such, which will make life easier for whoever needs to
tie things together in Builder for the AIR side of things. I'd be very loath
to make SWFs part of my app for anything more complex than image resources.
If it generates Events and exposes an API, I need to interact with it
without regard for its internal timeline, the possibility of memory leaks
caused by loading SWFs (mainly in Player 9), etc.

I agree with them 100% that compile-time is horrible for Builder. Adobe
knows this, and they're working on it. Building from Ant using MXMLC rather
than Builder is apparently faster as-is, and I believe you can get a
signifigant speedup using the compiler from Flex 4 but building against Flex
3 libraries. This opens you up to issues as Fx4 is still in early
development, but most of the changes these days appear to be happening in
Spark and the new MXML stuff, so building against the old namespace using
the Halo components could be a helper. Also, recently on the FlexShow
podcast they interviewed a guy (sorry, name escapes me) who's been
backporting some of the speedups from Fx4 into Flex 3. They're not part of
the official download, but I believe you can patch the compiler source,
recompile with Java, and reap the benefits of his hard work without the
technical risk inherent in building using the WIP Gumbo toolchain.

Enough ranting and suggestions from me, I think - time to yield the floor!
:)

-Josh

2009/4/7 Scott Delap scott-li...@richclientsolutions.com

   I have a question for the list. We are currently doing rapid UI
 changes to our Air application. Our UI designers that have experience
 with Flash have not been happy with the iteration turn around time of
 skinning our UI's. Complains range from issues with compilation
 time to being able to easily preview changes. They have proposed that
 we develop our UI's in pure Flash with only Flash level UI controls.
 We'd then embed these UI's as swfs in our Flex/Actionscript code. I
 can see doing this for some UI components. However, I must admit I'm
 very hesitant to implement the entire UI this way since it becomes one
 big passive view black box. Would anyone else have pro's or con's to
 such an approach?

 Scott

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


[flexcoders] How on earth do I lose the LineChart LineSeries drop shadow?

2009-04-02 Thread Josh McDonald
I'm pulling my hair out trying to ditch the lineSeries dropshadow:

mx:LineChart id=chart dataProvider={graph.itemList} maxHeight={width /
2} maxWidth={width - 80} showDataTips=true filters={null}

mx:horizontalAxis
mx:DateTimeAxis displayName={graph.xLabel}
title={graph.xLabel}/
/mx:horizontalAxis

mx:verticalAxis
mx:LinearAxis displayName={graph.yLabel} title={graph.yLabel}/
/mx:verticalAxis

mx:series
   mx:LineSeries xField=x yField=y lineStroke={ls}
lineSegmentRenderer=mx.charts.renderers.LineRenderer filters={null}/
/mx:series

mx:annotationElements
gui1:HighTideMark positionValue={widget.kpiValue}
lineColor=#6633ff/
/mx:annotationElements

/mx:LineChart

According to all the docs I canfind, using
lineSegmentRenderer=mx.charts.renderers.LineRenderer should get rid of the
drop shadow under my line series, but... no dice.

Any ideas?

-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] How on earth do I lose the LineChart LineSeries drop shadow?

2009-04-02 Thread Josh McDonald
Sweet I'll try it out first thing in the morning, cheers :)

I don't suppose it explains why we have LineRenderer and
ShadowLineRenderer.

-Josh

2009/4/2 Paul Andrews p...@ipauland.com

seriesFilters=
 []

 - Original Message -
 *From:* Josh McDonald j...@joshmcdonald.info
 *To:* flexcoders@yahoogroups.com
 *Sent:* Thursday, April 02, 2009 8:52 AM
 *Subject:* [flexcoders] How on earth do I lose the LineChart LineSeries
 drop shadow?

 I'm pulling my hair out trying to ditch the lineSeries dropshadow:

 mx:LineChart id=chart dataProvider={graph.itemList} maxHeight={width
 / 2} maxWidth={width - 80} showDataTips=true filters={null}

 mx:horizontalAxis
 mx:DateTimeAxis displayName={graph.xLabel}
 title={graph.xLabel}/
 /mx:horizontalAxis

 mx:verticalAxis
 mx:LinearAxis displayName={graph.yLabel}
 title={graph.yLabel}/
 /mx:verticalAxis

 mx:series
mx:LineSeries xField=x yField=y lineStroke={ls}
 lineSegmentRenderer=mx.charts.renderers.LineRenderer filters={null}/
 /mx:series

 mx:annotationElements
 gui1:HighTideMark positionValue={widget.kpiValue}
 lineColor=#6633ff/
 /mx:annotationElements

 /mx:LineChart

 According to all the docs I canfind, using
 lineSegmentRenderer=mx.charts.renderers.LineRenderer should get rid of the
 drop shadow under my line series, but... no dice.

 Any ideas?

 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 Josh 'G-Funk' McDonald
   -  j...@joshmcdonald.info
   -  http://twitter.com/sophistifunk
   -  http://flex.joshmcdonald.info/

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Cancelling drag

2009-03-22 Thread Josh McDonald
I'm trying to figure out a nice way to do this, too. Anybody beat us to it?
I'll owe you a beer :)

-Josh

2009/3/21 Julien Phalip lets...@hotmail.com

   Hi,

 I'm using DragManager to drag some objects on the interface. And I'd like
 the dragging to be cancelled when the ESCAPE key is pressed. But I can't
 find a way to do it since DragManager doesn't seem to have a method for
 that.

 Here's what my code looks like:

 private function keyHandler(event:KeyboardEvent):void {
 if (DragManager.isDragging  event.keyCode == Keyboard.ESCAPE){
 // TODO: Cancel drag here...
 stage.removeEventListener(KeyboardEvent.KEY_DOWN, keyHandler);
 }
 }

 public function startDrag(event:MouseEvent):void {
 ...
 DragManager.doDrag(dragInitiator, dragSource, event, image);
 stage.addEventListener(KeyboardEvent.KEY_DOWN, keyHandler);
 }

 Do you know how I could achieve this?

 Thanks a lot,

 Julien

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: Rounded scroll bar flex skin ala mac style ?

2009-03-19 Thread Josh McDonald
Also:

http://flex.joshmcdonald.info/2009/01/more-degrafa-madness-scrollbars-and.html

-Josh

2009/3/20 nathanpdaniel ndan...@bsi-scs.com

   www.gskinner.com/blog/archives/2008/05/designer_scroll.html


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Rick
 Schmitty flexc...@... wrote:
 
  Has anyone had any luck with a completely rounded scroll bar skin? It
  seems no matter what I do with the scale nine lines that things get
  stretched out into a missle tip instead of the ball tip I'm expecting
 

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: Question about binding and circular reference

2009-03-18 Thread Josh McDonald
Also, try using commiting event only bindings for the trip back to the
model. I don't use it so I'm not sure, but it might be exactly what you're
looking for.

My View Model system doesn't have these problems (and keeps track of dirty
fields, etc), but it's wordy. I do some code-generation with a combination
of BeanScript voodoo in JEdit and a custom Flex app, which cuts down on the
work. I'm not 100% happy with my pattern yet, and need to write a helper
util to better manage binding events, but it's getting close to good enough
to release to the public :)

2009/3/18 enriirne enrii...@yahoo.it

   Is there anything more sweet than write a long post and see it vanish in
 the air?
 Perhaps Chrome plus Flexcoders' Rich-Text Editor (Beta) is asking too
 much :)

 I'll try again, shorter version.


  Another approach, if you're set on binding: Rather than the outer
  component waiting for creationComplete on the inner component to set the
  model value, simply put code in the inner component that waits for
  creationcomplete and creates the component-model return bindings
  programmatically via BindingUtils.

 Hi Josh.
 I didn't give up on bidirectional binding, but I admit to be close to the
 metal :)
 The strategy that seems to work is this:
 - a value object with two methods: saveOriginal and restoreOriginal, also
 useful to manage the form's cancel button
 - binding through BindingUtils into createComplete
 - a mono-binding for date fields, because of a bug in DateField.as

 Here is some code. In case of interest, I'll post the implementation.
 bindForCreate does a single bind, while bindForUpdate does two.

 Enri

 // a form
 [Bindable]
 public var vo:SomeVO;

 [Bindable]
 private var voOut:SomeVO;

 private var cws:Array = []; // used later to unbind

 private function creationComplete():void {
 if (vo.isNew) {
 extend(cws, bindForCreate(vo, 'date', datefield, 'selectedDate'));
 extend(cws, bindForCreate(vo, 'name', nameField, 'text'));
 } else {
 voOut = new SomeVO();
 vo.saveOriginal();
 extend(cws, bindForUpdateException(vo, voOut, 'date', datefield,
 'selectedDate'));
 extend(cws, bindForUpdate(vo, 'name', nameField, 'text'));
 vo.restoreOriginal();
 }
 }

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: converting a Java object into a chart dataprovider

2009-03-18 Thread Josh McDonald
The last poster beat me to it, but yes, the answer is an array of Maps in
Java, should come through as a simple assosciative object in ActionScript.

-Josh

2009/3/19 netdeep deep...@chartertn.net

   Thanks, that sounds like the way to go. I'll try Maps and see if that
 works.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Wesley
 Acheson wesley.ache...@... wrote:
 
  Assuming Blaze or LiveCycle to create an object that is rendered as an
  actionscript object with subobjects use a map. Maps are serialised as
  simple objects.
 
  On Wed, Mar 18, 2009 at 3:47 PM, netdeep deep...@... wrote:
 
  
   In the previous implementation, I would send an ArrayList of custom
 Objects
   containing two values each, variables called point1 (an Object) and
 point2
   (a float). So for each series, I'd assign this ArrayList (converted
 into an
   ArrayCollection by blazeDS) as the dataProvider for the series and
 xField =
   point1 and yField = point2.
  
   Obviously if I had many series on the same axis, the xField data would
 be
   duplicated for each series (very redundant, I realize). In the new
   implementation, I'd like to just have all the xFields point to a single
   array of dates for example and then each yfield would point to a
 different
   array. But since I can't create an Object in Java on the fly with
 variables
   called point1, point2, point3, etc, I'm at a loss as how to get
 flex
   to recognize where my data is when I assign the dataProvider.
  
   I hope that makes more sense.
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh
 McDonald josh@ wrote:
   
But what will the objects be that you're sending back? You can't make
 a
chart out of a list of numbers, it'd be one-dimensional, not to
 mention
   not
very useful :)
   
-Josh
   
2009/3/18 netdeep deepnet@
   

 I'll be sending Dates, Strings, and floats.


 --- In flexcoders@yahoogroups.com 
 flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com, Josh
 McDonald josh@ wrote:
 
  What kind of objects are in your array?
 
  -Josh
 
  2009/3/17 netdeep deepnet@

 
   In the flex documentation, it shows how to easily create a
 chart
   with
   mxml and a static Array:
  
   private var expenses:Array = [
   {Month:January,Profit:2000,Expenses:1500,Amount:450},
   {Month:February,Profit:1000,Expenses:200,Amount:600},
   {Month:March,Profit:1500,Expenses:500,Amount:300},
   ];
   mx:ColumnSeries
   xField=Month
   yField=Profit
   displayName=Profit
   /
   mx:ColumnSeries
   xField=Month
   yField=Expenses
   displayName=Expenses
   /
  
   But I am reading my data from the database and want to pass the
   data
 via a
   java object. But I don't know the number of fields at runtime.
 So
   how
 do I
   assign the xFields and yFields since I won't be able to create
 a
 variable
   named Month or Profit? I'll just have an array of floats or
   dates
 or
   whatever. Here's a start put I have no idea how to plug in the
   missing
   pieces or if another route would be preferable.
  
   var lineSeries:LineSeries = new LineSeries();
   BindingUtils.bindProperty(lineSeries, dataProvider, ser,
 javaArray);
   // lineSeries.xField= ???
   // lineSeries.yField= ???
  
   The data set is often quite large by the way.
  
  
  
 
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls
 for
   thee.
 
  Josh 'G-Funk' McDonald
  - josh@
  - http://twitter.com/sophistifunk
  - http://flex.joshmcdonald.info/
 



   
   
   
--
Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
   
Josh 'G-Funk' McDonald
- josh@
- http://twitter.com/sophistifunk
- http://flex.joshmcdonald.info/
   
  
  
  
  
   
  
   --
   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
  
  
  
  
 

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Question about binding and circular reference

2009-03-17 Thread Josh McDonald
I re-read the original post, and it makes sense. I always use change events
rather than bindings on the way back from components, which is what I'd
recommend rather than two-way bindings. I'm interested to see how the SDK
team handles this with the bidirectional binding feature in 4.

Another approach, if you're set on binding: Rather than the outer
component waiting for creationComplete on the inner component to set the
model value, simply put code in the inner component that waits for
creationcomplete and creates the component-model return bindings
programmatically via BindingUtils.

Not sure I've explained that clearly tho, let me know if it's gibberish :)

-Josh

2009/3/17 Wesley Acheson wesley.ache...@gmail.com

   My problem and I believe enrinne's problem is that when you have two way
 bindings on a ui control. The initial value of the control is set back in
 the model. I've seen this on textInput and comboBox.

 I can create a sample application but I think it would be very similar to
 the first post in the thread.

 I'd like to prevent the reverse binding occuring until the control is fully
 initialisaed.

 Regards,

 Wesley Acheson



 On Tue, Mar 17, 2009 at 3:35 AM, Josh McDonald j...@joshmcdonald.infowrote:

  I'm good with bindings, what's your specific problem? I didn't see
 earlier any posts from you in this thread.

 -Josh

 2009/3/17 Wesley Acheson wesley.ache...@gmail.com

Sorry for resurecting an old thread. I've reciently given up on this.
 I've gone back to using event listeners.  It seems more reliable.  The
 problem as I see it is that the binding events happen for any old reason.
 The change events only seem to be triggered on user interaction which is
 much better IMHO.

 Regards,

 Wesley Acheson


 On Wed, Mar 11, 2009 at 3:42 PM, Yves Riel r...@cae.com wrote:

  The problem you are experiencing is caused by the fact that when the
 player executes the line [ mf.foo = bar ], your text input is not even
 created in your form yet. So, the foo-myText binding does nothing and when
 the text input is finally created, the myText-foo binding executes and 
 thus
 overwrite what was in foo.

 If you want to avoid this, you need to do:

 protected var mf:MyForm = new MyForm();
 mf.addEventListener(FlexEvent.CREATION_COMPLETE, formCreatedHandler);
 addChild(mf);

 protected function formCreatedHandler(event:FlexEvent):void {
 mf.removeEventListener(FlexEvent.CREATION_COMPLETE,
 formCreatedHandler);
 mf.foo = bar;
 }

  --
 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
 *On Behalf Of *enriirne
 *Sent:* Wednesday, March 11, 2009 8:25 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Question about binding and circular reference

  Say I have this:

 // MyForm.mxml
 [Bindable]
 public var foo:String;

 mx:Bindable source=foo destination=myText.text/
 mx:Bindable source=myText.text destination=foo/

 mx:TextInput id=myText/

 Is there an elegant way to avoid that foo is cleared upon creation of
 MyForm?
 Indeed, if I do this in the main app:

 var mf:MyForm = new MyForm();
 mf.foo = bar;
 addChild(mf);

 then myText is empty, probably because it's empty content is first
 assigned to foo due to the second binding.
 The real problem I'm trying to solve is to use the same value object to
 show data to the user and to receive his/her changes.

 Of course it works if I use two vos: say voIn and voOut, binding them
 accordingly.

 Any ideas?

 Enri







 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 Josh 'G-Funk' McDonald
   -  j...@joshmcdonald.info
   -  http://twitter.com/sophistifunk
   -  http://flex.joshmcdonald.info/





  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: converting a Java object into a chart dataprovider

2009-03-17 Thread Josh McDonald
But what will the objects be that you're sending back? You can't make a
chart out of a list of numbers, it'd be one-dimensional, not to mention not
very useful :)

-Josh

2009/3/18 netdeep deep...@chartertn.net


 I'll be sending Dates, Strings, and floats.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh
 McDonald j...@... wrote:
 
  What kind of objects are in your array?
 
  -Josh
 
  2009/3/17 netdeep deep...@...

 
   In the flex documentation, it shows how to easily create a chart with
   mxml and a static Array:
  
   private var expenses:Array = [
   {Month:January,Profit:2000,Expenses:1500,Amount:450},
   {Month:February,Profit:1000,Expenses:200,Amount:600},
   {Month:March,Profit:1500,Expenses:500,Amount:300},
   ];
   mx:ColumnSeries
   xField=Month
   yField=Profit
   displayName=Profit
   /
   mx:ColumnSeries
   xField=Month
   yField=Expenses
   displayName=Expenses
   /
  
   But I am reading my data from the database and want to pass the data
 via a
   java object. But I don't know the number of fields at runtime. So how
 do I
   assign the xFields and yFields since I won't be able to create a
 variable
   named Month or Profit? I'll just have an array of floats or dates
 or
   whatever. Here's a start put I have no idea how to plug in the missing
   pieces or if another route would be preferable.
  
   var lineSeries:LineSeries = new LineSeries();
   BindingUtils.bindProperty(lineSeries, dataProvider, ser,
 javaArray);
   // lineSeries.xField= ???
   // lineSeries.yField= ???
  
   The data set is often quite large by the way.
  
  
  
 
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for thee.
 
  Josh 'G-Funk' McDonald
  - j...@...
  - http://twitter.com/sophistifunk
  - http://flex.joshmcdonald.info/
 

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] XML Entity won't parse inside MXML

2009-03-16 Thread Josh McDonald
The (xml source code) - XML|XMLList stage in MXMLC isn't so good. Often I
need to embed XML as Binary objects, and go via String to parse it.

That's not much useful information though, so the answer to your problem is:

mx:XMLList id=testXml
sample badattribute={ABC}

test name=1/
test name=2/
/sample
mx:XMLList
Note that despite the similar syntax I don't think these expressions are
updated when input changes the same way bindings are. They *might* be when
you're using .MXML, but the same syntax can be used to mix XML literals and
ActionScript expressions in .as files.

-Josh

2009/3/17 markdemich d...@intellipro.com

   I have some embbeded XML inside an MXML file that I'm feeding to an
 outline. Some of my attributes need to have a quote character. It looks
 something like this

 mx:XMLList id=testXml
 sample badattribute=quot;ABCquot;
 test name=1/
 test name=2/
 /sample
 mx:XMLList

 This refuses to compile.

 I even ran a test where I omitted, the badattribute from the xml and then
 in the code I did something like this,

 testx...@test = 'ABC';
 trace(textXml.toXMLString())

 and it printed it out correctly using quot; as the quote character.

 Does anyone have a clue as to what's going on?

 Thanks,
 Mark

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] XML Entity won't parse inside MXML

2009-03-16 Thread Josh McDonald
Also note that the curly braces go *outside* the quotes - if you were
putting the number 7 in your attribute, it would be

element attr={7}/

If you do this:

element attr={7}/

Then your attribute will have the value of {7} instead of 7.

-Josh

2009/3/17 Josh McDonald j...@joshmcdonald.info

 The (xml source code) - XML|XMLList stage in MXMLC isn't so good. Often I
 need to embed XML as Binary objects, and go via String to parse it.

 That's not much useful information though, so the answer to your problem
 is:

 mx:XMLList id=testXml
 sample badattribute={ABC}

 test name=1/
 test name=2/
 /sample
 mx:XMLList
 Note that despite the similar syntax I don't think these expressions are
 updated when input changes the same way bindings are. They *might* be when
 you're using .MXML, but the same syntax can be used to mix XML literals and
 ActionScript expressions in .as files.

 -Josh

 2009/3/17 markdemich d...@intellipro.com

   I have some embbeded XML inside an MXML file that I'm feeding to an
 outline. Some of my attributes need to have a quote character. It looks
 something like this

 mx:XMLList id=testXml
 sample badattribute=quot;ABCquot;
 test name=1/
 test name=2/
 /sample
 mx:XMLList

 This refuses to compile.

 I even ran a test where I omitted, the badattribute from the xml and then
 in the code I did something like this,

 testx...@test = 'ABC';
 trace(textXml.toXMLString())

 and it printed it out correctly using quot; as the quote character.

 Does anyone have a clue as to what's going on?

 Thanks,
 Mark

  




 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 Josh 'G-Funk' McDonald
   -  j...@joshmcdonald.info
   -  http://twitter.com/sophistifunk
   -  http://flex.joshmcdonald.info/




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Question about binding and circular reference

2009-03-16 Thread Josh McDonald
I'm good with bindings, what's your specific problem? I didn't see earlier
any posts from you in this thread.

-Josh

2009/3/17 Wesley Acheson wesley.ache...@gmail.com

   Sorry for resurecting an old thread. I've reciently given up on this.
 I've gone back to using event listeners.  It seems more reliable.  The
 problem as I see it is that the binding events happen for any old reason.
 The change events only seem to be triggered on user interaction which is
 much better IMHO.

 Regards,

 Wesley Acheson


 On Wed, Mar 11, 2009 at 3:42 PM, Yves Riel r...@cae.com wrote:

  The problem you are experiencing is caused by the fact that when the
 player executes the line [ mf.foo = bar ], your text input is not even
 created in your form yet. So, the foo-myText binding does nothing and when
 the text input is finally created, the myText-foo binding executes and thus
 overwrite what was in foo.

 If you want to avoid this, you need to do:

 protected var mf:MyForm = new MyForm();
 mf.addEventListener(FlexEvent.CREATION_COMPLETE, formCreatedHandler);
 addChild(mf);

 protected function formCreatedHandler(event:FlexEvent):void {
 mf.removeEventListener(FlexEvent.CREATION_COMPLETE,
 formCreatedHandler);
 mf.foo = bar;
 }

  --
 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *enriirne
 *Sent:* Wednesday, March 11, 2009 8:25 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Question about binding and circular reference

  Say I have this:

 // MyForm.mxml
 [Bindable]
 public var foo:String;

 mx:Bindable source=foo destination=myText.text/
 mx:Bindable source=myText.text destination=foo/

 mx:TextInput id=myText/

 Is there an elegant way to avoid that foo is cleared upon creation of
 MyForm?
 Indeed, if I do this in the main app:

 var mf:MyForm = new MyForm();
 mf.foo = bar;
 addChild(mf);

 then myText is empty, probably because it's empty content is first
 assigned to foo due to the second binding.
 The real problem I'm trying to solve is to use the same value object to
 show data to the user and to receive his/her changes.

 Of course it works if I use two vos: say voIn and voOut, binding them
 accordingly.

 Any ideas?

 Enri




  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] To Adobe Folks - General Question About Using Deprecated Tags

2009-03-16 Thread Josh McDonald
I can't speak for Adobe, but as a *general* rule (ignoring the JDK),
deprecated means it's not going away in a point-release, but it's going
away So you souldn't count on it in 4, but you're probably fine for updates
of 3. But either way, there's nothing forcing you to upgrade your app to a
new SDK version anyway.

Again, I don't speak for Adobe :)

Also, if you need the deprecated API to get around a valid bug in the SDK,
make sure to make a note of it in Jira so the Adobe guys can keep it in
mind.

-Josh

2009/3/17 EddieBerman eddieberman2...@hotmail.com

   I posted a related question here a few days back (ColumnCharts -
 problem adding a LineSeries to ColumnChart w/o SecondSeries), but this
 question is a bit more general.

 In order get past this bug -
 https://bugs.adobe.com/jira/browse/FLEXDMV-1957, I'm likely going to need
 to use the deprecated SecondSeries tag. My question is how safe is using
 this, or any of the other deprecated tags, methods, etc. I read what I could
 find in the docs, but what I saw seemed more focused on layout style
 differences.

 Is there an expectation that support could be dropped in future versions,
 or are these warnings simply there to point us to the newer, improved-upon
 replacements.

 Thanks,
 Eddie B.

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: FocusManager fun... Tab Loops redux

2009-03-16 Thread Josh McDonald
Sounds like a good time to break out your SDK sandbox :)

2009/3/16 Rick Winscot rick.wins...@zyche.com

Even the PopUpManager suffers to a degree. As modules are loaded there
 seems to be some confusion as to which FocusManager they belong...  as you
 press TAB focus will jump from one module to another as if they were
 connected. You can get around this by forcibly triggering
 activate/deactivate operations on the modules FocusManager --- as stated in
 the comments in FocusManager.as:

 “The SystemManager activates and deactivates a FocusManager if more than
 one IFocusManagerContainer is visible at the same time. If the mouse is
 clicked in an IFocusManagerContainer with a deactivated FocusManager, the
 SystemManager will call the activate() method on that FocusManager. The
 FocusManager that was activated will have its deactivate() method called
 prior to the activation of another FocusManager.”

 I’ll attach a sample project to the issue for clarity.

 Rick Winscot


 On 3/14/09 1:42 PM, aceoohay pa...@compuace.com wrote:




 Yes, Alex has been very generous with his time offline, and I will be
 trying his popup approach.

 However I believe the popup solution is a hack in the perjorative sense. I
 believe that the flex language should allow at a minimum the ability to
 define a separate tab loop for each module.

 Paul

 --- In flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 , Alex Harui aha...@... wrote:
 
  Paul and I have discussed off line.  He's got a bunch of module panels
 that we wants to overlap and drag around the screen and have tabbing stay
 within which ever panel was clicked in and moved on top of the others.  Flex
 has all of this built-in.  Once he gets his modules popped up, he should be
 all set.
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: flexcoders@yahoogroups.com 
  mailto:flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com ] On
 Behalf Of jim.abbott45
  Sent: Friday, March 13, 2009 3:21 PM
  To: flexcoders@yahoogroups.com 
  mailto:flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com

  Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux
 
 
  Feeling less than ecstatic? Then please VOTE for fixing of bug #16897.
 
  See:  https://bugs.adobe.com/jira/browse/SDK-16897
 
  --Jim
 
 
 
  --- In flexcoders@yahoogroups.com 
  mailto:flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 , aceoohay pauls@ wrote:
  
   Alex:
  
   Neither of these options are practical in the real world (at least my
 world) since we have over 135 modules currently, and up to 10 can be loaded
 at any one time. We cannot have the cursor willy nilly hopping from module
 to module going to panels that are partially obscured by other panels, etc.
  
   Does the mx.managers.FocusManager allow the ability to establish
 multiple tab loops within a single application?
  
   If so, how can this be used to define a tab loop for a single
 container?
  
   If not, is there anything that will allow defining a tab loop for a
 container?! With multiple tab loops available on the stage at one time. The
 user can use the mouse to jump from module to module.
  
   Paul
  
   --- In flexcoders@yahoogroups.com 
   mailto:flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
   
Setting tabEnabled on anything you don't want to have focus is one
 answer. So is non-modal popups.
   
Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui
   
From: flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com  [
 mailto:flexcoders@yahoogroups.com flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com flexcoders%40yahoogroups.com ] On
 Behalf Of aceoohay
Sent: Wednesday, March 11, 2009 8:00 AM
To: flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com

Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux
   
   
Alex:
   
Let me restate my primary question;
   
   ! gt; ...has anyone else tried to create a flex component with ! a
 separa te tab loop, if so how did you make it work?
   
Since the documentation seems to indicate that FocusManager will
 allow multiple tab loops that was the approach I was investigating.
   
My primary goal, irrespective of how I do it is to create what I call
 a tab domain. Whatever it is called, what I need is the ability to define
 a captive group of objects from which focus will never leave by pressing the
 tab key.
   
Paul
   
  
 





  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http

Re: [flexcoders] converting a Java object into a chart dataprovider

2009-03-16 Thread Josh McDonald
What kind of objects are in your array?

-Josh

2009/3/17 netdeep deep...@chartertn.net

   In the flex documentation, it shows how to easily create a chart with
 mxml and a static Array:

 private var expenses:Array = [
 {Month:January,Profit:2000,Expenses:1500,Amount:450},
 {Month:February,Profit:1000,Expenses:200,Amount:600},
 {Month:March,Profit:1500,Expenses:500,Amount:300},
 ];
 mx:ColumnSeries
 xField=Month
 yField=Profit
 displayName=Profit
 /
 mx:ColumnSeries
 xField=Month
 yField=Expenses
 displayName=Expenses
 /

 But I am reading my data from the database and want to pass the data via a
 java object. But I don't know the number of fields at runtime. So how do I
 assign the xFields and yFields since I won't be able to create a variable
 named Month or Profit? I'll just have an array of floats or dates or
 whatever. Here's a start put I have no idea how to plug in the missing
 pieces or if another route would be preferable.

 var lineSeries:LineSeries = new LineSeries();
 BindingUtils.bindProperty(lineSeries, dataProvider, ser, javaArray);
 // lineSeries.xField= ???
 // lineSeries.yField= ???

 The data set is often quite large by the way.

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] GENERIC compareFucntion without hardcoding of dataField ?

2009-03-15 Thread Josh McDonald
Just off the top of my head, probably have 1 and -1 mixed up :)

function createCompareFunction(fieldName : String) : Function
{
  return function(left : Object, right : Object) : Number
 {
 if (left[fieldName]  right[fieldName])
   return -1;
 if (left[fieldName]  right[fieldName])
   return 1;
 return 0;
 }
}

Then you can just call:

createCompareFunction(field1);
createCompareFunction(field2);
createCompareFunction(fieldN);

-Josh

2009/3/15 Dharmendra Chauhan chauhan_i...@yahoo.com

   Hi All,
My flex2  *DataGrid*  has got at least *50 columns* of type Date.I
 also have list which opens when use select  a context menu item ,in this
 list user can select  any no of columns on which he wants  multiple sorting
 to be happen.

 Lets say user has selected 5 Columns for multi sorting,I create 5 sortField
 with compareFunction in loop as follows

   var sortFieldArray:Array = new Array();
   for(var *dataField *in *selectedColumnArray*){
 var field:SortField = new SortField(dataField );

  field.compareFunction = function(itemA:Object,itemB:Object):int{
 var dateA:Date =itemA[*dataField *] ;
 var dateB:Date =itemB[*dataField *] ;

  .
  }
 sortFieldArray.push(field);
   }
 Problem which I have been facing is ,local var dataField is always
 referring to the last value of *selectedColumnArray *hence sorting is
 happening based on last column only.

 I dont want to create separate compareFunction for each column , simply
 because at compilation time I dont know about the no of column which user
 can choose to participate in multipleSorting.And I dont want to create 50
 compareFunction with *hardcoded dataField* name


 Is it possible to create *GENERIC compareFucntion *which can take
 dataField without hard coding ?

 Please throw some light on this it?


 Regards,
 Dharmendra chauhan










  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Ribbon in FLEX

2009-03-15 Thread Josh McDonald
Why not just post a link to the list?

-Josh

2009/3/16 Allan Pichler dreamc...@gmail.com

Hi all….



 I’m sorry to say that for some reason I am missing the list of people who
 wanted the code/graphics for a ribbon/editor toolbar I made quite a while
 ago.



 If interested parties would raise their hand off list (so to speak) please
 do so….. I have finally had time to locate the files in question.



 I apologize for the trouble and wish everyone a great Sunday night!



 *Allan Pichler*

 Brewmaster - ColdFusion/Flex/Ajax/UI



 Email:   dreamc...@gmail.com

 Phone: (415) 683 0313

 Skype:  apichler

 Yahoo:  allan_pichler

 LinkedIn: http://www.linkedin.com/in/apichler

 Website: http://www.unzipmenow.com





 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Jeffry Houser
 *Sent:* Friday, March 13, 2009 9:43 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Ribbon in FLEX




  This is one of the components were were considering for Flextras; however
 I'm unclear how a Ribbon is different than a TabNavigator, though.

  I'd love to hear more thoughts on it, either on-list or off.

 Sam Lai wrote:

 http://office.microsoft.com/en-us/products/HA101679411033.aspx?pid=CL100796341033#2



 Kind of like the toolbar for picking controls in Adobe Dreamweaver

 (unless they've changed it in recent versions).



 Unfortunately I haven't heard of any Flash implementations, only

 Silverlight implementations. You could implement it yourself using a

 TabNavigator and Panel controls inside each tab for groups, and

 buttons inside them. It's the styling that will be a pain - the

 official specs are available from Microsoft for free though, with some

 conditions attached

 (http://msdn.microsoft.com/en-au/office/aa973809.aspx). You could also

 use the images and even code if you know XAML from the Silverlight

 version - http://silverlightribbon.codeplex.com/



 Personally I'd be making my own interpretation of the ribbon control

 instead of following the Microsoft version to the dot, especially

 seeing as they have changed a few bits in Windows 7 which will

 probably filter down to Office in Office 2010 (e.g. the confusion with

 the File menu - the Orb in the top corner is now gone).



 2009/3/13 Tracy Spratt tspr...@lariatinc.com tspr...@lariatinc.com:



 I am not familiar with that control, can you describe it?







 Tracy Spratt,



 Lariat Services, development services available



 



 From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com 
 flexcoders@yahoogroups.com] On

 Behalf Of Claudio M. E. Bastos Iorio

 Sent: Friday, March 13, 2009 2:13 AM

 To: flexcoders@yahoogroups.com

 Subject: [flexcoders] Ribbon in FLEX







 Hi,



 Is there any component (free or paid) similar to the office 2007 ribbon

 control?







 TIA







 __



 Claudio M. E. Bastos Iorio















 



 --

 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



 http://groups.yahoo.com/group/flexcoders/



 Individual Email | Traditional



 http://groups.yahoo.com/group/flexcoders/join

 (Yahoo! ID required)



 mailto:flexcoders-dig...@yahoogroups.com 
 flexcoders-dig...@yahoogroups.com

 mailto:flexcoders-fullfeatu...@yahoogroups.com 
 flexcoders-fullfeatu...@yahoogroups.com



 flexcoders-unsubscr...@yahoogroups.com



 http://docs.yahoo.com/info/terms/









  --

 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: binding not updating for ArrayCollection when item changes?

2009-03-12 Thread Josh McDonald
In your custom control, change this:


public function set dataProvider(dp:ArrayCollection):void {
_dp = dp;
trace(this fires when the AC is created, but not when it's contents
change);
}

to something like this:


public function set dataProvider(value : ArrayCollection) : void
{
if (_dp == value)
return;

if (dataProvider)
dataProvider.removeEventListener(CollectionEvent.COLLECTION_CHANGE,
handleUpdatedProvider);

_dp = value;

if (dataProvider)
dataProvider.addEventListener(CollectionEvent.COLLECTION_CHANGE,
handleUpdatedProvider, ???, ???, true); // Weak listener!

handleUpdatedProvider(null);
}

private function handleUpdatedProvider(event : CollectionEvent) : void
{
//... do stuff
}


Note that this is just typed out of the top of my head, probably full of
typos, and you need to put the default options in place of ??? when
attaching the listener :)

-Josh


2009/3/13 John Robinson jrobi...@nycap.rr.com

   Yeah, I've been directly updating the properties. Here's the weird
 part... if I use the ArrayCollection as a dataProvider for a List control,
 it updates. If I use it for a custom control that I've created, it does
 not.

 Example:
 This works as expected:
 mx:List dataProvider={model.users}/

 This does not:
 jr:customComponent dataProvider={model.users}/

 //pseudo component source
 customComponent
 mx:Script
 private var _dp:ArrayCollection;

 public function set dataProvider(dp:ArrayCollection):void {
 _dp = dp;
 trace(this fires when the AC is created, but not when it's contents
 change);
 }

 /mx:Script
 /customComponent

 Thanks again!
 John

 On Mar 10, 2009, at 4:44 PM, valdhor wrote:

 How do you update a given UserVO's userData? Do you directly access the
 public properties?

 I have never done it this way - I use getters and setters...

 package com.jrobinson.model.VO
 {
 [Bindable]
 public class UserVO
 {
 private var _id:int = -1;
 private var _username:String = null;
 private var _enabled:Boolean = false;
 private var _userData:XMLList = null;

 public function UserVO(id:int, username:String, enabled:Boolean,
 userData:XMLList)
 {
 _id = id;
 _username = username;
 _enabled = enabled;
 _userData = userData;
 }

 //accessor methods
 public function get id():int {return _id;}
 public function get username():String {return _username;}
 public function get enabled():Boolean {return _enabled;}
 public function get userData():XMLList {return _userData;}

 //mutator methods
 public function set id(id:int):void {_id = id;}
 public function set username(username:String):void {_username =
 username;}
 public function set enabled(enabled:Boolean):void {_enabled =
 enabled;}
 public function set userData(userData:XMLList):void {_userData =
 userData;}
 }
 }


   I have a strange issue with data binding not updating when an item in
   an ArrayCollection is changed. I'm using Cairngorm and have the
   following setup. In my ModelLocator I have a 'users' ArrayCollection
   that contains 'UserVO' objects. I have a two views that binds their
   dataProvider to the 'users' AC in the ModelLocator. My UserVO looks
   like so:
  
   package com.jrobinson.model.VO
   {
   [Bindable]
   public class UserVO
   {
   public var id:int = -1;
   public var username:String = null;
   public var enabled:Boolean = false;
   public var userData:XMLList = null;
  
  
   public function UserVO(user_id:int, uName:String, enabled:Boolean,
   d:XMLList)
   {
   id = user_id;
   username = uName;
   enabled = enabled;
   userData = d;
   }
  
   }
   }
  
   I first have a command that loads all of the users and populates the
   AC. This updates the bindings as expected. I then have a second
   command that loads the userData portion for a given user. Once
   retrieved, I update the given UserVO's userData, but this time, the
   bindings fail to update.
  
   I feel like I've seen this before but can't find where or what the
   workaround might be. I guess I'm just looking for confirmation that
   this should or shouldn't work.
  
   Thanks!
   John
  

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Building Custom ActionScript Components with Skins

2009-03-11 Thread Josh McDonald
Is the size of the component a big question? If not, I'd go with Flex
because then you can use Degrafa. The team is working on removing
inter-dependencies and also removing the dependency upon Flex (via
UIComponent), but that's not ready yet, so it does add some weight to your
.swf files.

-Josh

2009/3/11 adamduro a...@duromedia.com

   So I am trying to build out a custom SimpleMp3player component. Here is
 a screen shot of what the current design for this looks like:

 http://storage.duromedia.com/mp3_player_ui.jpg

 I want to create a custom component that will contain all the functionality
 that the above UI illustrates, but I want to make the component as easily
 skinable for the future as possible. Preferably skinable by a designer, and
 not a developer.

 I have considered a few routes.

 1) The one I am most comfortable with is building a custom component with
 the Flash IDE, and custom AS3 classes, then export out using the Flex
 Component Kit. As far as I can see, the draw back to that is the skin has to
 be customized using the Flash IDE from then on out.

 2) The other route I considered was building the whole thing in Flex, and
 using a style attribute to feed in a SWF based skin file. This is something
 I'm starting to get more familiar with, but I'm still a long ways off from
 mastering the art of pure Flex custom components.

 First off, if anyone has any opinions on which of the above two routes
 would be best, please speak up. If there are other routes to take, do tell.

 Second, If anyone has any good resources (besides the Flex 3 LiveDocs) on
 building out custom components that utilize Skins as outlined in option 2,
 please pass those along.

 Third, if anyone feels like tackling any of these specific questions, I
 would love some help:

 - When creating a skinnable ActionScript component, do I have to create a
 style property for each UI element? (ie. playButtonUp, playButtonDown,
 seekBarTrack, seekBar, etc.)

 - Can I use the skin file to put together the layout of the component, or
 do I have to do that programatically with ActionScript? I would love if I
 could do a layout in Illustrator that had all the elements of the
 MusicPlayer component positioned where I want them, and then feed in a
 single Symbol (containing the other symbols) so that the UI component
 maintained the layout as it was set in Illustrator.

 Any help with any of the above would be met with great appreciation.

 Best,

 Adam Duro
 DuroMedia: Web Developer
 W: www.duromedia.com

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


[flexcoders] BlazeDS Stack traces

2009-02-23 Thread Josh McDonald
Hey guys,

Is there any way to get a stack trace from BlazeDS when things go wrong? I
have this in services-config:

logging
target class=flex.messaging.log.ConsoleTarget level=All
properties
prefix[BlazeDS] /prefix
includeDatefalse/includeDate
includeTimefalse/includeTime
includeLevelfalse/includeLevel
includeCategoryfalse/includeCategory
/properties
filters
patternEndpoint.*/pattern
patternService.*/pattern
patternConfiguration/pattern
/filters
/target
/logging

I get lots of debug info telling me about the
java.lang.NullPointerException response that's being built, but no stack
trace is anywhere to be seen :(

Cheers,
-Josh

-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] [Req] What do you (love|hate|wish for) about (mx.*|Cairngorm|PureMVC|Mate|Prana|BlazeDS)?

2009-02-22 Thread Josh McDonald
Just want to thank everybody for their feedback and posts!

-Josh

On Tue, Feb 17, 2009 at 11:30 PM, alberto.acevedo 
alberto.acev...@us.army.mil wrote:


 Josh,

 I'm using Flex with Mate in the client side, Spring + BlazeDS + iBatis in
 the server side. I was using Cairngorm but the use of Cairngorm events
 would
 force other teams developing modules to also use Cairngorm. The Mate
 framework is not intrusive and it uses Flash events so other teams have the
 liberty to choose any framework that could handle flash events. I'm still
 using the command and delegate patterns like in Cairngorm but with Mate.
 I'm
 a very practical, tool agnostic, and problem solver developer. I use
 whatever helps me to solve problems quickly and in an easy and structured
 manner.

 Regards,

 Alberto Acevedco


 Josh McDonald-5 wrote:
 
  Hey guys, I have a small request:
 
  I'd like to know what grinds your gears, and what makes you smile about
  the
  Flex library, and about whatever other libraries you use on a daily basis
  to
  get your work done. If you have time, please post here or to me off-list
 a
  quick summary of your thoughts, some bullet points, or even a link to
  somebody else's blog posting that sums up your ideas. Anything you've got
  to
  say, even if it's no more than PureMVC ftw!, I'd like to hear it.
 
  I have a keen interest in frameworks, and I'm planning on building
  something
  that takes the best ideas I can find (and cook up) from these and my
  experiences maintaining a mostly-closed-source framework at my 9-5. It's
  for
  my own apps, I'll be dog-fooding it, but it will be open source. It's
  going
  to be a full-stack framework with an optional Java+Warp+BlazeDS
 component,
  so if you think you've got some good ideas, or would like to help, please
  drop me a line.
 
  Cheers,
 
  -Josh
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for thee.
 
  Josh 'G-Funk' McDonald
  - j...@joshmcdonald.info josh%40joshmcdonald.info
  - http://twitter.com/sophistifunk
  - http://flex.joshmcdonald.info/
 
 

 --
 View this message in context:
 http://www.nabble.com/-Req--What-do-you-%28love%7Chate%7Cwish-for%29-about-%28mx.*%7CCairngorm%7CPureMVC%7CMate%7CPrana%7CBlazeDS%29--tp21988486p22057354.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] E4X help?

2009-02-15 Thread Josh McDonald
Not sure exactly what you mean. Have you tried this:

var typeNodes : XMLList = node.data.(attribute(key)==type);

-Josh

On Mon, Feb 16, 2009 at 9:58 AM, flexaustin flexaus...@yahoo.com wrote:

   Is it possible to get the value of type from this XML?

 node id=2
 data key=nameEd/data
 data key=typeM/data
 /node
 #8722;
 node id=3
 data key=nameChristiaan/data
 data key=typeM/data
 /node

 So in this example end up with M for both?

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] RE: Dictionary memory leak

2009-02-15 Thread Josh McDonald
I use Dictionary as a non-leaking map all over the place and I definitely
don't have any problems with it (Player 10, Mac).

-Josh

On Mon, Feb 16, 2009 at 4:00 PM, Alex Harui aha...@adobe.com wrote:

I don't know of any leaks.  Got a bug report?  Test case?



 Most common problem is not understanding that only the keys are weak
 referenced.  The values are strong references.



 Var obj:Object

 Var dict:Dictionary



 dict[obj] = 1; // weak reference

 dict[1] = obj; // strong reference and memory leak

 dict[obj] = obj; // strong reference on value side and also a memory leak.





 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 *Gregor Kiddie
 *Sent:* Sunday, February 15, 2009 9:54 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Dictionary memory leak



 Anyone know if this has been fixed?



 There was a reported memory leak a while back (at least in my memory ;) )
 and I'm trying to work out if it's safe to use Dictionarys again…



 Gk.

 *Gregor Kiddie*
 Senior Developer
 *INPS*

 Tel:   01382 564343

 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ

 Registered Number: 1788577

 Registered in the UK

 Visit our Internet Web site at www.inps.co.uk

 The information in this internet email is confidential and is intended
 solely for the addressee. Access, copying or re-use of information in it by
 anyone else is not authorised. Any views or opinions presented are solely
 those of the author and do not necessarily represent those of INPS or any of
 its affiliates. If you are not the intended recipient please contact
 is.helpd...@inps.co.uk



   




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


[flexcoders] [Req] What do you (love|hate|wish for) about (mx.*|Cairngorm|PureMVC|Mate|Prana|BlazeDS)?

2009-02-12 Thread Josh McDonald
Hey guys, I have a small request:

I'd like to know what grinds your gears, and what makes you smile about the
Flex library, and about whatever other libraries you use on a daily basis to
get your work done. If you have time, please post here or to me off-list a
quick summary of your thoughts, some bullet points, or even a link to
somebody else's blog posting that sums up your ideas. Anything you've got to
say, even if it's no more than PureMVC ftw!, I'd like to hear it.

I have a keen interest in frameworks, and I'm planning on building something
that takes the best ideas I can find (and cook up) from these and my
experiences maintaining a mostly-closed-source framework at my 9-5. It's for
my own apps, I'll be dog-fooding it, but it will be open source. It's going
to be a full-stack framework with an optional Java+Warp+BlazeDS component,
so if you think you've got some good ideas, or would like to help, please
drop me a line.

Cheers,

-Josh

-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Tables in Rich Text Editor

2009-02-06 Thread Josh McDonald
I'd definitely be interested in extending TLF when it's released. Is it
going to live in Player, or in the Flex framework? If the latter, why would
it not be open sourced? Is it going to be part of Builder pro? Am I dreaming
hoping for answers to those questions? ;-)

-Josh

On Fri, Feb 6, 2009 at 3:48 PM, Gordon Smith gosm...@adobe.com wrote:

The Halo RichTextEditor component will never support tables; it is
 based on the Player's TextField, and the Player team has no plans to improve
 TextField. Instead, the Player team has provided, in Flash Player 10, an
 entirely new text engine known as FTE (Flash Text Engine) on top of which a
 Text Layout Framework (TLF) library is being developed. Gumbo components --
 including the new FxTextArea -- use TLF to do their text rendering. And
 we're working on making it possible for Halo components to also get some TLF
 capabilities.



 The first version of TLF, which will ship with Gumbo, will support cool
 stuff like bidirectional text (for right-to-left languages like Arabic and
 Hebrew mixed together with left-to-right languages), virtualized scrolling
 (so that you can scroll through large amounts of text without requiring too
 much memory), multiple columns, vertical Asian text, embedded graphics,
 superscripts/subscripts, ligatures, a better markup language, and a text
 object model, but… it will unfortunately not support lists or tables. : (



 Lists and tables are scheduled for a future release of TLF, after Flex 4.
 The good news is that new versions of the TLF library will be able to be
 released more quickly and easily than new versions of the Player, so you
 shouldn't have to wait too long for improvements.



 Discussions are also underway about open-sourcing TLF, or at least making
 its source available, in which case you could try implementing tables
 yourself if you are very ambitious.



 Gordon Smith

 Adobe Flex SDK Team



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Igor Costa
 *Sent:* Saturday, January 31, 2009 7:29 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Tables in Rich Text Editor



 Jeroen

 Open a feature request at Flex Bug Base. So far doesn't have any.


 Regards
 Igor Costa
 www.igorcosta.org

  2008/12/18 Jeroen De Vos jeroen.de...@haven.antwerpen.be

 Hi,



 Perhaps one of the most asked questions on the list: when will the Rich
 Text Editor support tables?



 I had high hopes with Flash Player 10 and the Text Layout Framework, but
 alas, no tables.



 Anyone has any luck extending the RTE to support tables?



 Thanks,

 Jeroen.



 *Jeroen De Vos*

 *C/ICT - Amaris*





 *    *

 Deze e-mail en alle gekoppelde bestanden zijn officiele documenten van het
 Gemeentelijk Havenbedrijf Antwerpen en kunnen vertrouwelijke of persoonlijke
 informatie bevatten. Gelieve de afzender onmiddellijk via e-mail of
 telefonisch te verwittigen als u deze e-mail per vergissing heeft ontvangen
 en verwijder vervolgens de e-mail zonder deze te lezen, te reproduceren, te
 verspreiden of te ontsluiten naar derden. Het Gemeentelijk Havenbedrijf
 Antwerpen is op geen enkele manier verantwoordelijk voor fouten of
 onnauwkeurigheden in de inhoud van deze e-mail. Het Gemeentelijk
 Havenbedrijf Antwerpen kan niet aansprakelijk gesteld worden voor directe of
 indirecte schade, verlies of ongemak veroorzaakt als gevolg van een
 onnauwkeurigheid of fout in deze
 e-mail.

 English Translation: This e-mail and all attached files are official
 documents of Antwerp Port Authority and may contain confidential or personal
 information. If you have received this e-mail in error, you are asked to
 inform the sender by e-mail or telephone immediately, and to remove it from
 your system without reading or reproducing it or passing it on to other
 parties. Antwerp Port Authority is in no way responsible for any errors or
 inaccuracies in the contents of this e-mail, nor can it be held liable for
 any direct or indirect loss, damage or inconvenience arising from any such
 errors or inaccuracies.




 --
 
 Igor Costa
 www.igorcosta.com
 www.igorcosta.org

   




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: Getting at variables inside a function that accepts a function

2009-02-06 Thread Josh McDonald
It's not possible, any closure only has access to the variables in scope
when it is defined.

function foo(a,b,c,f)
{
  var bar = function() {//has access to everything in foo}
  function baz() {//Same as above}
}

var bash = function() { //Does not have access to what's in foo() at any
time}

foo(1,2,3,bash) //Doesn't suddenly give access to foo's locals.


Think of it this way - if what you wanted were possible, then what would
happen if I just invoked bash() instead of passing it to foo()?

There are tricks to achieve something similar to what you want, but they
require changing foo(), in which case you only need to pass arguments to the
f() function.

-Josh

On Sat, Feb 7, 2009 at 6:45 AM, Alex Harui aha...@adobe.com wrote:

I thought you said they were anonymous functions.  Post a test case.
 I'm not sure what you want to do is possible.



 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 *flexaustin
 *Sent:* Friday, February 06, 2009 12:04 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Getting at variables inside a function that
 accepts a function



 No as the functions are in separate classes and the var a, b, c, d are
 private so in my class that calls the remote function I get Undefined
 property a.

 What about putting the vars in as params? Then I think there is a way
 to access the params by order, correct?

 So something like this to get at a in this example

 public function acceptingFunction (func1:Function=null,
 func2:Function=null):void{
 var a:Number;
 var b:String;

 if(func1  func2){
 if(func1(a=43))return true; --- inserting local param
 anotherAcceptFunction(func2);
 }
 }

 Then do this...

 acceptFunction(function():void{ whatever code is to get at params by
 order params[0]?});

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex
 Harui aha...@... wrote:
 
  I assume just using a,b,c,d didn't work?
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]
 On Behalf Of flexaustin
  Sent: Friday, February 06, 2009 8:55 AM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] Getting at variables inside a function that
 accepts a function
 
 
  How would I go about getting at variables of a function when I send in
  an anonymous function so...
 
  public function acceptingFunction (func1:Function=null,
  func2:Function=null):void{
  var a:Number;
  var b:String;
 
  if(func1  func2){
  func1;
  anotherAcceptFunction(func2);
  }
 
  }
 
  public function anotherAcceptFunction(func:Function=null){
  var c:Number;
  var d:String;
 
  if(func){
  func
  }
  }
 
  acceptFunction(function():void{get at vars a,b,c,d from here});
 
 
  I really don't want to extend the orig. function if I can help it, in
  this case extend the acceptingFunction, as its from some other library.
 

   




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: mx:Text maxWidth

2009-02-05 Thread Josh McDonald
Ack, I've just this minute come up on the same thing. This is annoying as
hell, I've used maxwidth all over the place without noticing it wasn't
working until now. What I want is to have my text centered if it's narrow,
and left justified (+ wrapped of course) if it exceeds maxWidth.

I need this, so I've created a bug:

https://bugs.adobe.com/jira/browse/SDK-19111

I should have it fixed in a short while, and you can monkey-patch my changes
or extend Text to do it, email me off-list if you want me to send you the
fix so you can monkey-patch it in.

-Josh

On Thu, Feb 5, 2009 at 12:53 PM, Sam Lai samuel@gmail.com wrote:

   Don't have a solution, but you could wrap the Text control in a
 container, and set the maxWidth on the container instead.

 2009/2/5 tchredeemed apth...@liberty.edu apthorp%40liberty.edu:

  What I want it to do is to allow it to grow to the maxWidth, and wrap
  the text if it hits the max, right now it just cuts off the text after
  the maxWidth...
 
  halp! :)
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 tchredeemed apth...@... wrote:
 
  Question:
 
  When I set the maxWidth on a text, it does not force to a new line
  (like when you explicitly set the width). Is there any way to set it
  so that it will force it to a new line if it exceeds the maxWidth,
  without having to reserve the space using width?
 
 
 
 
  
 
  --
  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
 
 
 
 
  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: Adding styles to UIComponents

2009-02-05 Thread Josh McDonald
UIComponent doesn't have any code for drawing background images. If you want
a background image without the overhead of using a Container such as Box,
you'll have to build a subclass of UIComponent that does. Or simply add an
Image as the first child of your UIComponent. Are you extending UIComponent,
or just instantiating them because you want someplace to put an image?

-Josh

On Thu, Feb 5, 2009 at 5:13 PM, superbokbok superbok...@yahoo.com wrote:


  http://livedocs.adobe.com/flex/3/html/skinstyle_3.html
 
  There's no reason you can't call your style backgroundImage.
 
 Nice link :) I tried to implement code as per the examples in the link
 page, but the problem is I can never get an image to show as the
 background of a UIComponent! This would let me alter the image based
 on different stylesheets which are loaded at runtime.

 The way I do it now, I add an HBox to a UIComponent and set that as
 the bkg and add the styleName to that. I must be missing something
 somewhere to enable a background image on a UIComponent. Again the
 reason for using a UIComponent is that it's lighter.

 sorry for the rant :(
 cheers
 erick

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Java enum in Flex3

2009-02-05 Thread Josh McDonald
I'm kicking off a blaze-ds project this weekend, and I'll be doing typesafe
java-flex enums, when I figure it out I'll blog about it and post it here
:) It'll probably just require a small amount of custom unmarshalling code,
there's a lot of undocumented flexibility in mx.rpc.*

-Josh

Thu, Feb 5, 2009 at 11:37 AM, Maciek Sakrejda msakre...@truviso.com wrote:

   Interesting. Any thoughts on Granite Data Services' approach? There is a
 custom externalization process for Java Enum objects, and a granite Enum
 class in ActionScript that all your (generated) Enums extend. The enum
 class takes care of reading/writing. The writeExternal() method just
 writes the name of the Enum; readExternal() tries to find the name of
 the object in the constants defined by the Enum. The RemoteAlias
 metadata is set up as for a standard Java class.

 Are we asking for trouble in using this method? Is there something
 inherently dangerous here?
 --
 Maciek Sakrejda
 Truviso, Inc.
 http://www.truviso.com


 -Original Message-
 From: Seth Hodgson shodg...@adobe.com shodgson%40adobe.com
 Reply-To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com 
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: RE: [flexcoders] Java enum in Flex3
 Date: Wed, 4 Feb 2009 16:20:33 -0800

 BlazeDS and LCDS roundtrip Java enums to the client and back as Strings.
 That's the only good option at present, and here's an in-depth
 explanation: http://greetingsfromoakland.blogspot.com/2009/02/enums.html

 Best,
 Seth

 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
 Behalf Of sunmoorthy1
 Sent: Monday, December 29, 2008 1:18 PM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: [flexcoders] Java enum in Flex3

 How to convert java enum values into Flex3 object.
 Any one went thru this problem?
 Please give your experties?

 Sundar

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: Can you put a UIComponent in a Sprite

2009-02-04 Thread Josh McDonald
You'll have to specify x, y, width, and height (or reimplement the
container's side of the component sizing and validation lifecycle), but for
the most part it should work.

-Josh

On Wed, Feb 4, 2009 at 4:12 PM, Jason Ervin jason_newp...@hotmail.comwrote:

   I am working with library that is all AS3 and is Sprite based to keep
 the overhead down. I would like to put more expressive items (flex
 components) in the application without hand coding them all.

 J


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ryan
 Graham ryan.gra...@... wrote:
 
 
  Sure it's possible... Sprite.addChild() takes a DisplayObject as a
  parameter, and both Sprite and UIComponent are DisplayObjects:
 
 
 
  UIComponent FlexSprite
  http://livedocs.adobe.com/flex/3/langref/mx/core/FlexSprite.html
  Sprite
  http://livedocs.adobe.com/flex/3/langref/flash/display/Sprite.html
  DisplayObjectContainer
  http://livedocs.adobe.com/flex/3/langref/flash/display/DisplayObjectCon
  tainer.html InteractiveObject
  http://livedocs.adobe.com/flex/3/langref/flash/display/InteractiveObjec
  t.html DisplayObject
  http://livedocs.adobe.com/flex/3/langref/flash/display/DisplayObject.ht
  ml EventDispatcher
  http://livedocs.adobe.com/flex/3/langref/flash/events/EventDispatcher.h
  tml Object http://livedocs.adobe.com/flex/3/langref/Object.html
 
 
 
  Can't say flex will like it so much though. What are you trying to do?
 
 
 
  HTH,
 
  Ryan
 
 
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
  Behalf Of Jason Ervin
  Sent: Tuesday, February 03, 2009 4:26 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] Can you put a UIComponent in a Sprite
 
 
 
  Is it possible to put a UIComponent in a Sprite? I assume not since
  Sprite is lower on the chain and since it doesn't contain the timeline.
 
  Yes? No?
 
 
 
 
 
  This message is private and confidential. If you have received it in
 error, please notify the sender and remove it from your system.
 

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: FadeIn Effect not working with custom item renderers in List

2009-01-21 Thread Josh McDonald
It may be caused by Container not implementing IDropInListItemRenderer or
IListItemRenderer. You really don't want to be extending Container for item
renderers if you can avoid it, I believe it's a big performance penalty.

-Josh

2009/1/21 tonyjobrien ya...@indigointernet.co.uk

 --- In flexcoders@yahoogroups.com, sunild99 sunilbd...@... wrote:
 
  I got your example to work by removing the Canvas tags from this
 snippet:
 
  mx:itemRenderer
  mx:Component
  mx:Canvas
  mx:Label text={data.label} blendMode=layer/
  /mx:Canvas
  /mx:Component
  /mx:itemRenderer
 
 
  Sunil
 

 Perhaps I should have been clearer in my original description. The
 issue seems to be related to the use of containers as custom
 renderers. While I admit that in this case, removal of the container
 solves the issue, this is just a simple case to demonstrate the issue.
 In my real life case, my item renderers are much more complicated,
 containing many sub-components, hence the use of containers.


 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] FB debug constantly logs to console

2009-01-20 Thread Josh McDonald
You're probably loading images or something along those lines using a
SWFLoader or one of its subclasses such as Image. This is simply Player
telling you about it decoding the results and adding them to the VM.

-Josh

2009/1/21 John Van Horn jmvanh...@gmail.com

  All of a sudden a few days ago, launching a debug session in FB3, results
 in FB (or maybe debug player) logging constantly to the console. I get about
 2 of these messages a second, and it doesnt stop till I terminate the debug
 session. This does not output to flashlog.txt. It makes reading traces in FB
 console very difficult.

 Anybody experienced this or know a solution?

 [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 2,747 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 997 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 1,646 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 985 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 985 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 1,646 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 3,798 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 686,596 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression
 [SWF] Users:jvanhorn:player.swf - 0 bytes after decompression

 --
 John Van Horn
 jmvanh...@gmail.com
 




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Re: Add effect dynamically

2009-01-20 Thread Josh McDonald
You can use Strings, but they might need to be fully qualified when doing it
from ActionScript instead of CSS. You can also use

obj.setStyle(moveEffect, Move);

and

obj.setStyle(moveEffect, myMoveInstance);

Note that myMoveInstance would be an instance of mx.effects.Move, *not* an
instance of mx.effects.effectClasses.MoveInstance

-Josh

2009/1/21 oneworld95 oneworl...@yahoo.com

 Haven't tested this, but this might be a way to accomplish it:

 var btn:Button = new Button();
 btn.setStyle(mouseDownEffect, glowImage);
 btn.setStyle(mouseUpEffect, unglowEffect);

 Will try it in the morning. Didn't realize effects were set using styles.

 - Alex

 --- In flexcoders@yahoogroups.com, oneworld95 oneworl...@... wrote:
 
  Is there a way to add mouseDown and mouseUp effects to a button that's
  being added dynamically via ActionScript?
 
  For example, if the button were created via MXML, it would look like
 this,
 
  mx:Button label=Help
  mouseDownEffect={glowImage} mouseUpEffect={unglowImage}
  click=showHelp() /
 
  - Alex
 



 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] float-safe bitwise AND comparison

2009-01-19 Thread Josh McDonald
Does result = (uint(number)  uint(comparison)) work?

-Josh

2009/1/20 Rafael Faria rafaelfaria.gru...@gmail.com


 Please,

 anyone with skills to convert the following php function to flex? i'm
 killing myself trying...

 please... anyone?

 thanks
 rafael

 -

 /**
 * Perform a float-safe bitwise AND comparison
 *
 * @param int/float $number  The number to which to perform a bitwise AND
 * @param int/float $comparison  The number with which to perform a
 bitwise AND
 * @return bool
 */
 function safeBitCheck($number,$comparison) {
   if( $number  2147483647 ) {
   return ($number  $comparison)==$comparison;
   } else {
   $binNumber = strrev(base_convert($number,10,2));
   $binComparison = strrev(base_convert($comparison,10,2));
   for( $i=0; $istrlen($binComparison); $i++ ) {
   if( strlen($binNumber)$i || ($binComparison{$i}===1 
 $binNumber{$i}===0) ) {
   return false;
   }
   }
   return true;
   }
 }

 safeBitCheck(17,16); // true
 safeBitCheck(17,2); // false
 safeBitCheck((4294967296+8589934592),4294967296); // true
 safeBitCheck(2,8589934592); // false


 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] internationalization

2009-01-19 Thread Josh McDonald
That's a hella useful link Paul. I'm not doing any I18N *now*, but that's
going into del.icio.us :)

Cheers,
-Josh

2009/1/20 Paul Hastings paul.hasti...@gmail.com

 Scott wrote:
  I'm working on a project that requires multiple languages.  I'm thinking
  I have two choices...

 resource bundles (sort of) just like in cf.

 find it kind of funny that flex has resource bundles but lacks the other
 i18n
 bits while cf is just the opposite ;-)

 in any case, you'll probably want to use this puppy:

 http://as3localedata.riaforge.org/

 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Re: float-safe bitwise AND comparison

2009-01-19 Thread Josh McDonald
This method is 10x faster, and more accurate (although the word is
meaningless at such scale due to the nature of IEEE floats):

private function safeBitCheck2(l : Number, r : Number) : Boolean
{
if (r  l)
return false;
if (r == l)
return true;
if ((l = uint.MAX_VALUE)  (r = uint.MAX_VALUE))
return (l  r) == r;

var rs : String = r.toString(32);
var ls : String = l.toString(32).substring(-rs.length);
var split : uint = uint(rs.length)  1;

if (safeBitCheck2(parseInt(ls.substr(0, split), 32),
parseInt(rs.substr(0, split), 32)))
return safeBitCheck2(parseInt(ls.substr(split), 32),
parseInt(rs.substr(split), 32));

return false;
}

What on earth do you actually need this function for?

-Josh

2009/1/20 Rafael Faria rafaelfaria.gru...@gmail.com

 Thanks Josh.

 I kinda managed to get it working.
 so for the records if someone else need it, it seems to work fine.


private function
 safeBitCheck(num:Number,comparison:Number):Boolean
{
  if(num  2147483647 ) {
  return (num  comparison)==comparison;
  } else {
  var binNumber:String = strrev(base_convert(num,10,2));
  var binComparison:String =
 strrev(base_convert(comparison,10,2));
  for(var i:uint=0; ibinComparison.length; i++ ) {
  if( binNumber.length  i ||
 (binComparison.charAt(i)===1
  binNumber.charAt(i)===0) ) {
  return false;
  }
  }
  return true;
  }
}

public function strrev(str:String):String {
return str.split().reverse().join();
}

public function base_convert(num:Number, frombase:Number,
 tobase:Number):String {
return parseInt(num+'',
 frombase+0).toString(tobase+0);
 }




 --- In flexcoders@yahoogroups.com, Josh McDonald dzn...@... wrote:
 
  Does result = (uint(number)  uint(comparison)) work?
 
  -Josh
 
  2009/1/20 Rafael Faria rafaelfaria.gru...@...
 
  
   Please,
  
   anyone with skills to convert the following php function to flex? i'm
   killing myself trying...
  
   please... anyone?
  
   thanks
   rafael
  
   -
  
   /**
   * Perform a float-safe bitwise AND comparison
   *
   * @param int/float $number  The number to which to perform a
 bitwise AND
   * @param int/float $comparison  The number with which to perform a
   bitwise AND
   * @return bool
   */
   function safeBitCheck($number,$comparison) {
 if( $number  2147483647 ) {
 return ($number  $comparison)==$comparison;
 } else {
 $binNumber = strrev(base_convert($number,10,2));
 $binComparison = strrev(base_convert($comparison,10,2));
 for( $i=0; $istrlen($binComparison); $i++ ) {
 if( strlen($binNumber)$i || ($binComparison{$i}===1 
   $binNumber{$i}===0) ) {
 return false;
 }
 }
 return true;
 }
   }
  
   safeBitCheck(17,16); // true
   safeBitCheck(17,2); // false
   safeBitCheck((4294967296+8589934592),4294967296); // true
   safeBitCheck(2,8589934592); // false
  
  
   
  
   --
   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
  
  
  
  
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
 
  Like the cut of my jib? Check out my Flex blog!
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: j...@...
  :: http://flex.joshmcdonald.info/
  :: http://twitter.com/sophistifunk
 



 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] flex not seeing method - update

2009-01-18 Thread Josh McDonald
The mx:Component tag is, let's call it... Voodoo :)

What it's actually doing is defining a new custom component class, whereas
every other MXML tag you use will define elements of the class defined in
the root element of your MXML document. You can tell MXMLC what name you'd
like the class to have in order to reuse it later, but otherwise it just
picks an unused ugly name for you. So you need to think of everything inside
your mx:Component tag as if it were in a completely separate MXML file.
And becuase we don't have inner classes in ActionScript, you don't have
access to members of the parent class the way you normally would expect
to.

If your handler is on Application (and public) you can get to it from a
renderer using Application.application.handler_resize(event). But I prefer
to dispatch bubbling events from within the custom component, and then put
listener code in the containing object.

-Josh

2009/1/19 Paul Andrews p...@ipauland.com

 - Original Message -
 From: dnk d.k.emailli...@gmail.com
 To: Flexcoder List flexcoders@yahoogroups.com
 Sent: Sunday, January 18, 2009 5:47 PM
 Subject: [flexcoders] flex not seeing method - update


 
  Ok, I found one additional piece of info that when I sent this I
  thought was not relevant. In my main.mxml, my component.mxml is
  actually an itemrenderer. So the code for it would be:
 
 
  mx:itemRenderer
  mx:Component
  view:fileActions DownloadResizeEvent=handler_resize(event)/
  /mx:Component
  /mx:itemRenderer
 
  Instead of :
  view:fileActions DownloadResizeEvent=handler_resize(event)/
 
  Now the reason this seems relevant is because if I comment out the
  item renderer code, and place just a single instance of my
  component.mxml in my main.mxml - it works fine. No more errors.
 
  So to sum up when a custom component that dispatches a custom
  event is placed within the above mxml code - it will not see the
  defined event handler.
 
  ideas?

 Try making the handler public..

  d
 
 
 
 
  Begin forwarded message:
 
  From: dnk d.k.emailli...@gmail.com
  Date: January 18, 2009 9:35:46 AM PST (CA)
  To: Flexcoder List flexcoders@yahoogroups.com
  Subject: flex not seeing method
 
  Hi there, I have an mxml component that dispatches an event. Now
  when i use the component, the meta data is showing up fine. But when
  i assign a handler, flex says that it is a call to a possibly
  undefined method. But it is there plain as day. IDeas???
 
  Code snippets below.
 
  DownloadResizeEvent.as - pretty stock custom event:
 
  package elib.event
  {
 
  import flash.events.Event;
 
  public class DownloadResizeEvent extends Event
  {
 
  public static const DOWNLOADRESIZE_EVENT:String =
  downloadresizeevent;
 
  public function DownloadResizeEvent(type:String):void
  {
  super(type);
  }
 
  // Override the inherited clone() method.
 override public function clone():Event {
 return new DownloadResizeEvent(type);
 }
 
  }
  }
 
  now in my component.mxml:
 
  (in a script block)
 
  snip
  import elib.event.*;
  //snip
 
  (in same script block)
 
  snip
  //located in a method
  dispatchEvent( new Event(DownloadResizeEvent.DOWNLOADRESIZE_EVENT) );
 
  //snip
 
  Then later in my mxml
 
  snip
  mx:Metadata
  [Event(name=DownloadResizeEvent,
  type=elib.event.DownloadResizeEvent)]
  /mx:Metadata
  //snip
 
 
 
 
  An now in my other mxml file that has my component.mxml called in it:
 
  main.mxml
 
 
  (in my root tag)
 
  snip
  xmlns:view=elib.view.components.*
  //snip
 
 
  (in a script block)
 
  snip
  import elib.event.*;
  //snip
 
  (in same script block)
  snip
  //event handler
  private function handler_resize(evt:Event):void {
 
  }
 
  //snip
 
 
 
  snip
  view:componentmxml DownloadResizeEvent=handler_resize(event)/
  //snip
 
 
  
 
  --
  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 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] flex not seeing method - update

2009-01-18 Thread Josh McDonald
Ah, I forgot about outerDocument, as I'm one of those loose-coupling nazi
types and don't use it :)

Of course, being a louse-coupling nazi has it's upside, in Smartypants-IOC
:)

-Josh

2009/1/19 Paul Andrews p...@ipauland.com

  Josh is probably on the ball. Also check out outerDocument:

 The mx:Component tag defines a new scope within an MXML file, where the
 local scope of the item renderer or item editor is defined by the MXML code

 block delimited by the mx:Component and /mx:Component tags. To access
 elements outside of the local scope of the item renderer or item editor,
 you
 prefix the element name with the outerDocument keyword.

 Paul

 - Original Message -
 *From:* dnk d.k.emailli...@gmail.com
 *To:* flexcoders@yahoogroups.com
 *Sent:* Monday, January 19, 2009 12:16 AM
 *Subject:* Re: [flexcoders] flex not seeing method - update

 Tried that, and same issue.
 d



  On 18-Jan-09, at 10:54 AM, Paul Andrews wrote:

 Try making the handler public..


  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Re: Why this error with getDefinitionByName?

2009-01-17 Thread Josh McDonald
Well if you're working against MXML and don't also have a compiled .SWF for
that application, you're just going to have to hard-reference everything you
might need, or load it from the Flex library SWC (a SWC is just a .SWF and
an XML file in a zip)

Failing that, since it sounds like you're doing analysis, just run your code
against all the UIComponents in the framework, and just keep the data :)

-Josh

2009/1/16 enriirne enrii...@yahoo.it

 @Howard:
Is this in a SWF that's loaded into another SWF? If so see
 no, it's a simple line on an empty application

 @Josh:
  symbol, the class won't be compiled in. Try adding a reference to
 Ok, it works, but my TextInput was just an example. Mine is a problem
 with reflection: I made a recursive descent function that extracts all
 events dispatched by a control. The problem is that describeType needs
 an object, and I haven't found a way to get an instance of a non
 imported thing. Note that I take the control's name reading an mxml
 application as an xml file (in air, of course)

 This must be a problem regarding the compiler domain. I don't know if
 I can dinamically create something that resides in a non imported
 module.

 As a workaround, I'll create an instance for every controls :)

 Enri


 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Re: Interfaces not working the way I understand anyway

2009-01-15 Thread Josh McDonald
Just the interfaces, but your modules should be using interfaces defined
(and used) in the main app anyway, no?

-Josh

2009/1/16 mmormando m...@mormando.com

 --- In flexcoders@yahoogroups.com, mmormando m...@... wrote:
 
  --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
  
   Sounds like an applicationDomain topology problem.  See the  modules
  presentation on my blog.  Make sure the interface is linked into the
  main app.
 
 
  That got it!
  Thanks!!
  (maybe modules should be marked experimental or something)
 


 After seeing this, does it more or less mean that I need to statically
 link a copy of every stinking module I've got into my main module in
 order to be sure I won't run afoul of this problem every time I turn
 around?
 Not exactly sounding like an optimal solution.


 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Why this error with getDefinitionByName?

2009-01-15 Thread Josh McDonald
Also, if you do that in a SWF that doesn't actually *use* the TextInput
symbol, the class won't be compiled in. Try adding a reference to TextInput
- not just an import, you actually have to have a reference. import
mx.controls.TextInput; TextInput; should do it.

-Josh

2009/1/16 Howard Fore howard.f...@hofo.com

  Is this in a SWF that's loaded into another SWF? If so see
 http://richardleggett.co.uk/blog/index.php/2008/09/08/getdefinitionbyname_vs_getdefinition

 On Thu, Jan 15, 2009 at 10:28 AM, enriirne enrii...@yahoo.it wrote:

 trace(getDefinitionByName('mx.controls::TextInput'));

 ReferenceError: Error #1065: Variable TextInput is not defined.

 Enri



 --
 Howard Fore, howard.f...@hofo.com
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood
 




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Custom mouse cursors including the system cursor?

2009-01-14 Thread Josh McDonald
I tried to just follow up with a Mouse.show on next frame, but CursorManager
calls Mouse.hide on every frame. For now I'm simply working around the
problem by switching all my drag cursors to a little grabbing hand :)

I sure do miss mc.startDrag() from Flash MX sometimes...

-Josh

2009/1/15 Manish Jethani manish.jeth...@gmail.com

 On Tue, Jan 13, 2009 at 12:46 PM, Josh McDonald dzn...@gmail.com wrote:

  I'm wondering how I create a custom mouse cursor that will include the
  system cursor, the way DragManager does with the halo mouse cursors?

 Why not just draw the custom cursor next to the system cursor?
 CursorManager does Mouse.hide. If you skipped that, you would end up
 with a composite cursor.

 Maybe CursorManager should have an option for this.

 Manish

 --
 Manish Jethani
 mx:Blog source=/dev/random ...
 manishjethani.com

 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] When to use the include directive?

2009-01-14 Thread Josh McDonald
FWIW, I use include *all the time* when I need to implement IEventDispatcher
but I'm extending something that's not an IEventDispatcher (Proxy, I'm
looking at you).

-Josh

2009/1/14 Tom Chiverton tom.chiver...@halliwells.com

  On Tuesday 13 Jan 2009, Nate Beck wrote:
  is an include Header.as statement that has 30 include statements within
  it.

 Sounds like someone used to programing in C.

  To give a datagrid additional functionality, you give it an
  id=myDataGrid

 Eww.

  I just don't see a good use for the include statement anymore. In my
  opinion, it just promotes bad programming practices.

 It was handy, up until I came across Code Behind, to separate layout from
 code.

 --
 Tom Chiverton
 Helping to completely e-enable granular e-services

 

 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.
  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Custom mouse cursors including the system cursor?

2009-01-13 Thread Josh McDonald
I was poking around in the .fla file, I thought there was some process by
which the cursor symbol is replaced with the system cursor... If not, does
that not mean then that under windows, when you drag over something you
can't drop on, and it switches to mx.skins.cursor.DragReject the pointer
also changes to look like the black OS X pointer?

That's an awful sentance, let me know if I need to try and explain it again
:-/

-Josh

On Wed, Jan 14, 2009 at 3:47 AM, Alex Harui aha...@adobe.com wrote:

  We draw the arrow in with the rest of the artwork.



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Josh McDonald
 *Sent:* Monday, January 12, 2009 11:16 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Custom mouse cursors including the system cursor?



 Hey guys,

 I'm wondering how I create a custom mouse cursor that will include the
 system cursor, the way DragManager does with the halo mouse cursors?

 Any pointers (groan) much appreciated!

 Cheers,

 -Josh

 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 Like the cut of my jib? Check out my Flex blog!

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: j...@gfunk007.com
 :: http://flex.joshmcdonald.info/
 :: http://twitter.com/sophistifunk

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


[flexcoders] Custom mouse cursors including the system cursor?

2009-01-12 Thread Josh McDonald
Hey guys,

I'm wondering how I create a custom mouse cursor that will include the
system cursor, the way DragManager does with the halo mouse cursors?

Any pointers (groan) much appreciated!

Cheers,

-Josh

-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Using dispatchEvent ?

2009-01-11 Thread Josh McDonald
Event bubbling only occurs within the display list. So your dispatching
object must also be a child UIComponent if you want to catch bubbled events.

-Josh

On Mon, Jan 12, 2009 at 4:12 PM, biosmonkey biosmon...@yahoo.com wrote:

 I thought I had understood the event model, but apparently not.

 I have a custom class that extends EventDispatcher, let's call it
 MyClass.  This class will periodically dispatch a custom event based
 on a timer and some condition.

 In my main app, I instantiate an instance of this class.  I also
 create an event listener at the application level.

 Here's the problem:

 * If I use dispatchEvent(...) inside MyClass, the event listener in
 the main app never fires (the custom event *is* set to bubble)

 * The only way it will work is if I use the application object, ie
 mx.core.Application.application.dispatchEvent(...)

 But I don't understand why I have to do this? I have used a similar
 model just fine when dispatching events from inside components (ie I
 use dispatchEvent and my custom event is heard at the app level via
 bubbling).

 Can someone help me understand this?


 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Get AsDoc-generated information as XML?

2009-01-08 Thread Josh McDonald
Sam, that's perfect, cheers!

-Josh

On Fri, Jan 9, 2009 at 1:50 AM, Sam Lai samuel@gmail.com wrote:

 http://rantworld.blogs.com/flashlit/2007/02/use_asdoc_to_dr.html

 That might help - don't know what info it has in the XML file though.
 Look forward to seeing what you come up with - glad I'm not the only
 one who finds the standard ASDoc files difficult to use on a regular
 basis.

 2009/1/8 Josh McDonald dzn...@gmail.com:
  Hey guys,
 
  AsDoc produces some pretty awful HTML. I'd like to get the same
 information
  but as XML in order to build my own browser for it, as the built-in
 help's
  not so useful on Mac (and I'm the kind of jerk who thinks he can do
 better
  anyway). Anybody know if there's a tool or process for this already
 withou
  hacking the Java code for AsDoc?
 
  Much appreciated,
 
  -Josh
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for thee.
 
  Like the cut of my jib? Check out my Flex blog!
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: j...@gfunk007.com
  :: http://flex.joshmcdonald.info/
  :: http://twitter.com/sophistifunk
 

 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Re: Properly remove children

2009-01-07 Thread Josh McDonald
setChildIndex() is what I was thinking of. It's either on IUIComponent or
IContainer.

On Wed, Jan 7, 2009 at 8:27 PM, Manish Jethani manish.jeth...@gmail.comwrote:

 On Wed, Jan 7, 2009 at 4:48 AM, markgoldin_2000
 markgoldin_2...@yahoo.com wrote:
  Ok, here what I am getting.
  I have a container that I am adding different forms to at the run
  time. These forms are all based on the same class though.
  So, before I add a new form I am removing current form using:
  container.removeAllChildren();
  each form when created is adding a custom event listener to a parent -
  the container. When a custom event is triggered every form that was
  created (regardless that it was removed after) gets this custom event
  to handle.

 When you listen for an event on one of your ancestors, you usually
 want to use a weak reference (the last parameter to addEventListener).
 That's because your parent doesn't know you're listening on it, so
 when you've been removed and discarded, you'll still be around
 because of the event listener.

 Manish

 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Re: Newbie question: Completion Events or proxy binding for RemoteObject calls

2009-01-07 Thread Josh McDonald
The BindUtils doesn't work quite like that. Let's take this MXML snippet:

{model.someObject.name}

The equivalent call to bindSetter would be:

var watcher : ChangeWatcher = BindingUtils.bindSetter(setterFunction, this,
[model,someObject,name]);

-Josh

On Wed, Jan 7, 2009 at 3:20 PM, john.casey64 john.case...@yahoo.com wrote:

 Apparently not.

 http://www.actionscript.org/forums/showthread.php3?t=165084

 My remote value object is a [Bindable] ArrayCollection.   My tree
 provider object is a [Bindable] xlmlistcollection which I rebuild
 using a function, once the ArrayCollection gets populated.

 This does not work.

 var watcherSetter:ChangeWatcher = BindingUtils.bindSetter(watchTree,
 __model.managedElements, collectionChange);

 __model.managedElement is my ArrayCollection
 Watchtree() is the routine which will call buildtree().


 updating the ArrayCollection
 for (var i:int=0; i  event.result.length; i++) {
var ME:ManagedElementVo = ManagedElementVo(event.result[i]);
__model.managedElements.addItem(ME);
 }

 will not fire WatchTree.

 Is this a bug?


 --- In flexcoders@yahoogroups.com, Josh McDonald dzn...@... wrote:
 
  Bindings work with any objects, so long as the fields (or the whole
 class)
  are marked with [Bindable]
 
  -Josh
 
  On Wed, Jan 7, 2009 at 11:44 AM, john.casey64 john.case...@...wrote:
 
   I'm working on an application where I build a tree (in actionscript
   buildtree()) where I add new leafs from data that is retieve from a
   remote call.
  
   Since the buildtree() function deals with the view - I have this coded
   in the view mxml. The tree is bound to a XMLListCollection which is
   updated by the buildtree() function after a remote value object is
 updated
  
   The remote RetrieveDataCommand successfully retrieves the data into a
   business value object.
  
   What is the correct Cairgorm method for triggering the builtree()
   function after the RetrieveDataCommand is complete?
  
   I don't want to pollute my Command logic with any specific calls to
   buildtree()
  
   Should I be adding RemoteCommandComplete events to all of my
   RemoteCommands? and then set the view logic to listen for them?
  
   I tried to set a Collection.COLLECTION_CHANGE listener on the Business
   Value object from my View logic. But it seems to fire before the
   ArrayCollection is complete.
  
   I also tried the BindUtils function to bind my buildtree() function to
   my value object,  but bindutils only seems to work with MX visual
   objects, not actionscript value objects.
  
   Any experts out there? I'm sure there must be a simple solution
 for this.
  
  
   
  
   --
   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
  
  
  
  
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
 
  Like the cut of my jib? Check out my Flex blog!
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: j...@...
  :: http://flex.joshmcdonald.info/
  :: http://twitter.com/sophistifunk
 



 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Re: Properly remove children

2009-01-07 Thread Josh McDonald
That is however a corner case, and although I've deleted my experiment, it's
pretty easy to show that weak event listeners do get collected most of the
time.

On Thu, Jan 8, 2009 at 6:53 AM, sunild99 sunilbd...@gmail.com wrote:

 Hi,

 Just wanted to mention something I (in the comments) of one of Ted
 Patrick's blog posts.

 He says that there's a known bug in Flash Player 9 where weak references
 were preventing
 objects from being garbage collected:

 http://www.onflex.org/ted/2008/09/useweakreferencesboolean-false.php

 From earlier reading, I started to use weak references for when ever
 possible, and thought
 I didn't have to worry about removing the event listeners. I upgraded to
 Flash Player 10,
 however, it still seemed like the weak refs were preventing GC (admittedly
 a newbie
 w/using the Flex Profiler).

 This very last comment on this JIRA bug seems to have reached the same
 conclusion as I
 have, that the issue may not be 100% fixed in Flash Player 10:

 http://bugs.adobe.com/jira/browse/FP-291

 Suffice it to say, I have adopted the sage advice of others on this list
 and now always
 remove any listeners that I add (weak ref or not).

 HTH,
 Sunil


 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


[flexcoders] Get AsDoc-generated information as XML?

2009-01-07 Thread Josh McDonald
Hey guys,

AsDoc produces some pretty awful HTML. I'd like to get the same information
but as XML in order to build my own browser for it, as the built-in help's
not so useful on Mac (and I'm the kind of jerk who thinks he can do better
anyway). Anybody know if there's a tool or process for this already withou
hacking the Java code for AsDoc?

Much appreciated,

-Josh

-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Looping Properties on User-Defined Classes | for..in Does Not Work

2009-01-07 Thread Josh McDonald
ObjectUtil.getClassInfo(myObj).properties

-Josh

On Thu, Jan 8, 2009 at 4:31 PM, Nate Beck n...@tldstudio.com wrote:

  As far as I know... which is pretty much the quote from the documentation
 you posted there.  You cannot unless you're dynamically adding properties to
 the object.
 I do know, however, that if your class extends flash.utils.Proxy, you can
 setup an iterator by overriding the  nextName, nextNameIndex, and nextValue
 methods.

 http://livedocs.adobe.com/flex/2/langref/flash/utils/Proxy.html#nextName()http://livedocs.adobe.com/flex/2/langref/flash/utils/Proxy.html#nextName%28%29

 HTH,
 Nate

 On Wed, Jan 7, 2009 at 9:51 PM, p smith flexcod...@yahoo.com wrote:

   Does ActionScript have any statements/operators that support looping
 the properties of user-defined classes?

 for..in works on looping basic objects. However, in the docs, the Looping
 page for Programming ActionScript 3.0 says:

 What you cannot do is iterate through the properties of an object if it is
 an instance of a user-defined class, unless the class is a dynamic class.
 Even with instances of dynamic classes, you will be able to iterate only
 through properties that are added dynamically.

 Doc page here:

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

 thanks,

 p





 --

 Cheers,
 Nate
 
 http://blog.natebeck.net


  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Which Unit Testing Framework to use?

2009-01-06 Thread Josh McDonald
I can report that I'm happy with FlexUnit as well. I *really* don't like the
syntax for async stuff, but wrapping nice syntax around bad is what we do
for a living, so when I need it I'll write it (and release it, of course!)

-Josh

On Wed, Jan 7, 2009 at 12:02 AM, Wally Kolcz wko...@isavepets.com wrote:

  Been looking at FlexUnit, FUnit, and ASUnit. Like FlexUnit best so far...

 --
 *From*: b_alen alen.ba...@gmail.com
 *Sent*: Tuesday, January 06, 2009 5:50 AM
 *To*: flexcoders@yahoogroups.com
 *Subject*: [flexcoders] Which Unit Testing Framework to use?

 After a brief search on flex unit testing I found that FlexUnit is
 supposed to be the leader of the pack. Also, there is FlexMonkey that
 looks to be promising and it even uses FlexUnit.

 http://code.google.com/p/flexmonkey/

 Are there any other frameworks worth considering and what is your
 general experience with various frameworks.

 Thanks.

 Alen


 




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Generating Random key

2009-01-06 Thread Josh McDonald
That's better (also cleaner and faster). I just don't trust IEEE floats :)

-Josh

On Wed, Jan 7, 2009 at 4:05 AM, Manish Jethani manish.jeth...@gmail.comwrote:

 On Tue, Jan 6, 2009 at 7:42 AM, Josh McDonald dzn...@gmail.com wrote:
  A quick take on it:

 Trying to improve on some already neat code...

  function randomLetter() : String
  {
  const noVowels : String = BCDFGHJKLMNPQRSTVWXYZ;
  return noVowels.charAt(Math.round(Math.random() *
  (noVowels.length - 1)));
  }

   return noVowels.charAt(Math.floor(Math.random() * (noVowels.length)));

 This gives a fair chance to all letters. With Math.round, B and Z were
 being slightly discriminated against.

 Manish

 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Re: Working with nested Buttons

2009-01-06 Thread Josh McDonald
I *have* to know - what kind of evil requires a button that contains other
buttons?

;-)

-Josh

On Wed, Jan 7, 2009 at 1:37 AM, Todd tpreka...@gmail.com wrote:

 I solved my problem.  On the nested-child button, all I had to do was
 set buttonMode=true and useHandCursor=true.  It wasn't enough to
 just have the LinkButton and assume that it would behave as a button.

 All works perfectly now with my complex button skin.

 --- In flexcoders@yahoogroups.com, Todd tpreka...@... wrote:
 
  Hello,
I have a custom Button control that uses extensive skinning (done in
  Flash, and linked through the Button's skin-style) to change the skins
  for mouse over, down,etc.  The custom Button can contain multiple
  child objects, like other LinkButtons.
I can't get the sub-button to trigger, though.  On the parent
  button, I've fiddled with buttonMode and mouseChildren properties.
So, I tried making the Parent a VBox (or any type of container)
  instead of a Button.  Doing this enables me to now get the child
  buttons to trigger properly.  However, I've lost the button skinning
  for mouse Over, down, disabled, click, etc...  The skin is a
  programatic skin that has implementations for downSkin,
  selectedOverSkin, overSkin, selectedUpSkin, etc...
 
What would be the preferred way to get the HBox (or any container)
  to act like a button with custom button skinning, and at the same time
  be able to have nested buttons that would take priority when the mouse
  hovers over them?  I'd like to think I'm missing something trivial in
  getting this to work because it seems like a pretty common use case.
 
  Thanks for any suggestions.
 



 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Animated border around thumbnails - similar to MTV header

2009-01-06 Thread Josh McDonald
I'd make the border a Degrafa surface (or just a mx:Box with a border).
Add a moveEffect and a resizeEffect, put it in the same container as the
thumbnails, but last in the list so it'll be on top. If they're in a hbox or
something like that and you don't want to mess up the layout of the
container, set

myBorderComponent.includeInLayout = false;

And it will be in the same container but won't affect the layout. Then,
every time you want to hilight another thumbnail, simply call:

myBorderComponent.move(nextThumbnail.x, nextThumbnail.y);
myBorderComponent.width = nextThumbnail.width;
myBorderComponent.height = nextThumbnail.height;

And the moveEffect and resizeEffect should do the rest.

-Josh

On Wed, Jan 7, 2009 at 11:39 AM, asli_binal abi...@gmail.com wrote:

 Hi everyone,
 I'm looking for advice on how to easily accomplish the following task.
 I already have a Flex app that displays four thumbnail images in a
 vbox on the right side, and when I click on one, that image is
 displayed in a larger format within the same app (left of the vbox).

 What I'd like to do next is place a border/rectangle around the
 thumbnail, and have that border move down to the next thumbnail using
 a timer. So, I have a couple questions: (see the MTV header)

 1. Is it best to use a custom image class with border or is it better
 to use drawRect to place a rectangle over the mx:Image? Or use a
 TileList instead of vbox and make the timer automatically scroll
 through the thumbs?


 I basically want to accomplish something similar to the animated
 marquee/header on mtv.com (is the effect they use on the images
 mx.effects.move?)

 ...and I'm a beginner with any custom components and animation - so
 any clues/help would be appreciated.

 Thanks


 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] trying to put a Degrafa BezierSpline on a Papervision3D Sphere...

2009-01-06 Thread Josh McDonald
You might need to use a degrafa surface rather than rendering into another
component. If that's not going to do it, I imagine you'll have to have
degrafa render into a bitmapData (or something along those lines) and add an
mx:image with that data set as the source.

Also there's a Degrafa list where you might get a better answer:
http://groups.google.com/group/degrafa/?pli=1

-Josh

On Wed, Jan 7, 2009 at 9:40 AM, addlistener laur...@untereiner.com wrote:

 Hi all,

 I'm trying to put a Degrafa BezierSpline on a Papervision3D Sphere...

 Any idea?

 I've made a Canvas with three others, one for a map, a red one and a
 empty to receive the BezierSpline

 SolidFill id=fill
color
blue
/color
 /SolidFill

  BezierSpline id=mySpline
  data=300,300 100,150
  graphicsTarget={[pata,pata1,pata2]}
  fill={fill} autoClose=true tension=2
 autoClearGraphicsTarget=true

stroke
SolidStroke weight=10 color=#00ff00/
 /stroke
/BezierSpline

mx:Canvas id=theTarget width=2500 height=1250
 horizontalScrollPolicy=off
verticalScrollPolicy=off visible=false
mx:Image id=map
 source=@Embed('assets/EarthMap_2500x1250.jpg')/

 mx:Canvas width=50 height=50 x=600 y=600 backgroundColor=red /

 mx:Canvas id=pata2 width=900 height=900 x=100 y=100
 blendMode=multiply  /
/mx:Canvas

!-- test purpose --
mx:Canvas id=pata width=2500 height=1250/

 the spline go in pata (test) but doesn't in pata2.

 In fact theTarget (Canvas) is the Material for the 3D Sphere, when
 PV3D map the material, the BezierSpline is removed...

 Any idea?



 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Newbie question: Completion Events or proxy binding for RemoteObject calls

2009-01-06 Thread Josh McDonald
Bindings work with any objects, so long as the fields (or the whole class)
are marked with [Bindable]

-Josh

On Wed, Jan 7, 2009 at 11:44 AM, john.casey64 john.case...@yahoo.comwrote:

 I'm working on an application where I build a tree (in actionscript
 buildtree()) where I add new leafs from data that is retieve from a
 remote call.

 Since the buildtree() function deals with the view - I have this coded
 in the view mxml. The tree is bound to a XMLListCollection which is
 updated by the buildtree() function after a remote value object is updated

 The remote RetrieveDataCommand successfully retrieves the data into a
 business value object.

 What is the correct Cairgorm method for triggering the builtree()
 function after the RetrieveDataCommand is complete?

 I don't want to pollute my Command logic with any specific calls to
 buildtree()

 Should I be adding RemoteCommandComplete events to all of my
 RemoteCommands? and then set the view logic to listen for them?

 I tried to set a Collection.COLLECTION_CHANGE listener on the Business
 Value object from my View logic. But it seems to fire before the
 ArrayCollection is complete.

 I also tried the BindUtils function to bind my buildtree() function to
 my value object,  but bindutils only seems to work with MX visual
 objects, not actionscript value objects.

 Any experts out there? I'm sure there must be a simple solution for this.


 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Re: why I can not dispatchEvent with creationComplete?

2009-01-05 Thread Josh McDonald
If you want to listen to events that are dispatched from Application, you
need to listen at either Application.application or (better) make them
bubble, and listen on the SystemManager.

-Josh

On Tue, Jan 6, 2009 at 8:58 AM, stldvd stl...@yahoo.com wrote:

 OK, here's a little app to demonstrate the problem. I'm sure the
 answer is obvious, but... can someone point it out?

 The Application and the Canvas go in the src folder; the custom event
 (FoodEvent) goes in an 'events' folder inside src.

 I made the canvas because I wanted the event to be heard in a
 different component from the Application itself.

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

import events.FoodEvent;

  [Bindable]
  public var food_supply:Array = [{label:Pizza Pie,
 data:Pizza},{label:Buffalo Wings, data:Wings}];

private function onFoodCBChange():void
{
var item:Object = foodCB.selectedItem;
if(item == null)
return;

var event:FoodEvent = new FoodEvent(FoodEvent.FOOD_EVENT);
event.selectedItemFromFoodCB = item.data;
this.dispatchEvent(event);
}
]]
/mx:Script
mx:Canvas height=167 width=200
  mx:ComboBox x=40 y=20
 dataProvider={food_supply}
 id=foodCB  textAlign=left change=onFoodCBChange()/
 /mx:Canvas
food:testCanvas /
 /mx:Application

 ?xml version=1.0 encoding=utf-8?
 mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml;
 creationComplete=this.addEventListener(FoodEvent.FOOD_EVENT,
 foodEventhandler)
 borderStyle=solid borderColor=red borderThickness=3 x=300
 y=300 width=200 height=200
mx:Script
![CDATA[
import events.FoodEvent;
import mx.controls.Alert;

private function foodEventhandler(e:FoodEvent):void
{
Alert.show(e.selectedItemFromFoodCB);
}

]]
/mx:Script
 /mx:Canvas

 package events
 {
import flash.events.Event;

public class FoodEvent extends Event
{

public static const FOOD_EVENT:String   = 'food.event';

public var selectedItemFromFoodCB:String;   //Used to
 pass selection value

public function FoodEvent(type:String,
 bubbles:Boolean=false,
 cancelable:Boolean=false)
{
super(type, bubbles, cancelable);
 }

}
 }

 --- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:
 
  It will depend on where and how the listener is declared.
  CreationComplete fires at different times for different components.  As
  I recall, it is bottom up, so creationComplete for a parent will fire
  after creationComplete for a child.  If the parent creationComplete
  handler declares the listener, then there would be a problem.
 
 
 
  This should only be an issue on start-up.  Certainly the listener would
  be available when the app was ready to receive user input, via ComboBox
  or button click, as the original poster noticed.
 
 
 
  Remember that events flow through the DOM.  It is possible for a
  dispatched event to miss a component.  Pop-ups are a particular
  problem.
 
 
 
  Tracy
 
 
 
  
 
  From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
  Behalf Of stldvd
  Sent: Monday, January 05, 2009 4:48 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: why I can not dispatchEvent with
  creationComplete?
 
 
 
  I'm having a similar issue. Event is dispatched (I can step through
  code and see it) but the event listener is never hearing it, and so
  the listener function is never being fired.
 
  How does one tell if the listener is ready or not? If you add the
  listener on the creationcomplete or initialize event of an mxml
  component, it should in theory be ready to fire, for the duration of
  the app, right? And if you're dispatching a custom event when an item
  is selected in a combobox, it should certainly work. What could be the
  reason for a 'deaf' event listener? :)
 
  -- David
 
  --- In flexcoders@yahoogroups.com 
  mailto:flexcoders%40yahoogroups.comflexcoders%2540yahoogroups.com
 
  , Tracy Spratt tspratt@ wrote:
  
   Perhaps the listener is not yet ready when the canvas creationComplete
   fires?
  
   Tracy
  
  
  
   
  
   From: flexcoders@yahoogroups.com 
   mailto:flexcoders%40yahoogroups.comflexcoders%2540yahoogroups.com
 
  [mailto:flexcoders@yahoogroups.com 
  mailto:flexcoders%40yahoogroups.comflexcoders%2540yahoogroups.com
 
  ] On
   Behalf

Re: [flexcoders] Re: flash.utils.Proxy -- Unable to compile.

2009-01-05 Thread Josh McDonald
If it's not marked dynamic, you'll always get an exception when you try to
dereference something that's not explicitly declared. If not, you've found a
compiler bug :) However, if you're casting to something that's marked
dynamic (such as Object, or *), it won't. And you can always use
foo[field] without a compiler warning.

-Josh

On Tue, Jan 6, 2009 at 6:56 AM, cadisella beerm...@gmail.com wrote:

 I've seen some issues like that as well.  We just ported a large Java
 project to Flash and came across all sorts of this stuff.  If you're
 interested at all, there are a series of posts I wrote up at
 http://blog.sharendipity.com/.

 I even wrote one about using the Proxy class for implementing a few
 design patterns: http://blog.sharendipity.com/moving-to-flash-part-4.
  Although, it turns out it's not as efficient as creating an inner
 class, but that poses problems with non-public access as well.  I
 digress...

 Glad I could help,

 Dale

 --- In flexcoders@yahoogroups.com, Nate Beck n...@... wrote:
 
  Hey Dale,
  That makes sense... and thanks for your reply.
 
  Making the DateTime class dynamic fixed the issue.
 
  Weird thing is that without the dynamic keyword sometimes it will
 compile,
  and sometimes it won't.
 
  Anyways thanks!
 
  On Mon, Jan 5, 2009 at 11:40 AM, cadisella beerm...@... wrote:
 
 I've ran into this before. I think that you just want to declare
 your
   class as dynamic.
  
   -Dale
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 Nate
   Beck nate@ wrote:
   
So this is kind of annoying, I have a proxy Class that I am working
   with...
here is a trimmed down version of it.
   
-- DateTime.as (Trimmed version) --
   
package net.natebeck.core
{
import com.flexoop.utilities.dateutils.DaylightSavingTimeUS;
import flash.utils.Proxy;
import flash.utils.flash_proxy;
public class DateTime extends Proxy
{
// Instance Variables
protected var _date:Date;
protected var _timezone:Timezone;
   
public function DateTime(... args)
{
super();
_date = new Date(args[0]);
if(args[0] is String)
setTimezone(parseTimezone(args[0]));
}
public function setTimezone(value:Timezone):void
{
trace(Setting Timezone: +value);
_timezone = value;
}
public function getTimezone():Timezone
{
trace(Getting Timezone: +_timezone);
return _timezone;
}
public function getTimezoneOffset():Number
{
return _timezone.offset;
}
override flash_proxy function callProperty(methodName:*, ... args):*
{
var res:*;
switch (methodName.toString())
{
case 'toString':
res = foobar;
break;
default:
res = _date[methodName].apply(_date, args);
break;
}
return res;
}
override flash_proxy function getProperty(name:*):* {
trace(getting property: +name);
return _date[name];
}
override flash_proxy function setProperty(name:*, value:*):void {
_date[name] = value;
}
}
}
   
I've written a simple test application to test my DateTime Proxy
   class while
I'm developing.
   
-- TestDateTime.as --
   
package
{
import flash.display.Sprite;
import net.natebeck.core.DateTime;
import net.natebeck.core.Timezone;
public class TestDateTime extends Sprite
{
public function TestDateTime()
{
var create:Object = Jun 17 12:00:00 GMT-0500 2009;
var oldDate:Date = new Date(create);
var strDate:DateTime = new DateTime(create);
trace(old: +oldDate);
trace(new: +strDate);
   
strDate.getTimezone();
strDate.setTimezone(Timezone.PST);
strDate.getTimezone();
trace(strDate.toString());
}
}
}
   
When trying to compile using FlexBuilder I get this error.
   
1061: Call to a possibly undefined method toString through a
   reference with
static type net.natebeck.core:DateTime.
   
Well that's dumb... the whole reason I'm using the Proxy class is so
   I don't
have to re-write every method within my class.
   
Am I missing something?
   
--
   
Cheers,
Nate

http://blog.natebeck.net
   
  
  
  
 
 
 
  --
 
  Cheers,
  Nate
  
  http://blog.natebeck.net
 



 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Re: why I can not dispatchEvent with creationComplete?

2009-01-05 Thread Josh McDonald
When you do this:

mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml;
creationComplete=this.addEventListener(FoodEvent.FOOD_EVENT,
foodEventhandler)
borderStyle=solid borderColor=red borderThickness=3 x=300
y=300 width=200 height=200

You're listening for the FOOD_EVENT on your Canvas. If it doesn't bubble
up (bubbling is only upwards on the displaylist) to your canvas, you'll
never see it, so your Canvas would have to be a parent or ancestor of
Application. Change this:

creationComplete=this.addEventListener(FoodEvent.FOOD_EVENT,
foodEventhandler)

to this:

creationComplete=systemManager.addEventListener(FoodEvent.FOOD_EVENT,
foodEventhandler)

-Josh

On Tue, Jan 6, 2009 at 9:05 AM, stldvd stl...@yahoo.com wrote:

 Thanks for the help so far.

 In the application from which this simple sample is derived, I'm not
 actually in Application, so I definitely want to make them bubble (if
 that's the solution). I tried changing bubbles:Boolean=true but that
 didn't do anything. What does it mean to 'listen on the SystemManager'?



 --- In flexcoders@yahoogroups.com, Josh McDonald dzn...@... wrote:
 
  If you want to listen to events that are dispatched from
 Application, you
  need to listen at either Application.application or (better) make them
  bubble, and listen on the SystemManager.
 
  -Josh
 
  On Tue, Jan 6, 2009 at 8:58 AM, stldvd stl...@... wrote:
 
   OK, here's a little app to demonstrate the problem. I'm sure the
   answer is obvious, but... can someone point it out?
  
   The Application and the Canvas go in the src folder; the custom event
   (FoodEvent) goes in an 'events' folder inside src.
  
   I made the canvas because I wanted the event to be heard in a
   different component from the Application itself.
  
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   layout=horizontal xmlns:food = *
  mx:Script
  ![CDATA[
  
  import events.FoodEvent;
  
[Bindable]
public var food_supply:Array = [{label:Pizza Pie,
   data:Pizza},{label:Buffalo Wings, data:Wings}];
  
  private function onFoodCBChange():void
  {
  var item:Object = foodCB.selectedItem;
  if(item == null)
  return;
  
  var event:FoodEvent = new
 FoodEvent(FoodEvent.FOOD_EVENT);
  event.selectedItemFromFoodCB = item.data;
  this.dispatchEvent(event);
  }
  ]]
  /mx:Script
  mx:Canvas height=167 width=200
mx:ComboBox x=40 y=20
   dataProvider={food_supply}
   id=foodCB  textAlign=left change=onFoodCBChange()/
   /mx:Canvas
  food:testCanvas /
   /mx:Application
  
   ?xml version=1.0 encoding=utf-8?
   mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml;
   creationComplete=this.addEventListener(FoodEvent.FOOD_EVENT,
   foodEventhandler)
   borderStyle=solid borderColor=red borderThickness=3
 x=300
   y=300 width=200 height=200
  mx:Script
  ![CDATA[
  import events.FoodEvent;
  import mx.controls.Alert;
  
  private function
 foodEventhandler(e:FoodEvent):void
  {
  Alert.show(e.selectedItemFromFoodCB);
  }
  
  ]]
  /mx:Script
   /mx:Canvas
  
   package events
   {
  import flash.events.Event;
  
  public class FoodEvent extends Event
  {
  
  public static const FOOD_EVENT:String   = 'food.event';
  
  public var selectedItemFromFoodCB:String;
 //Used to
   pass selection value
  
  public function FoodEvent(type:String,
   bubbles:Boolean=false,
   cancelable:Boolean=false)
  {
  super(type, bubbles, cancelable);
   }
  
  }
   }
  
   --- In flexcoders@yahoogroups.com, Tracy Spratt tspratt@ wrote:
   
It will depend on where and how the listener is declared.
CreationComplete fires at different times for different
 components.  As
I recall, it is bottom up, so creationComplete for a parent will
 fire
after creationComplete for a child.  If the parent creationComplete
handler declares the listener, then there would be a problem.
   
   
   
This should only be an issue on start-up.  Certainly the
 listener would
be available when the app was ready to receive user input, via
 ComboBox
or button click, as the original poster noticed.
   
   
   
Remember that events flow through the DOM.  It is possible for a
dispatched event to miss a component.  Pop-ups are a particular
problem.
   
   
   
Tracy
   
   
   

   
From: flexcoders

Re: [flexcoders] Generating Random key

2009-01-05 Thread Josh McDonald
A quick take on it:

function randomLetter() : String
{
const noVowels : String = BCDFGHJKLMNPQRSTVWXYZ;
return noVowels.charAt(Math.round(Math.random() *
(noVowels.length - 1)));
}

function repeat(n : Number, f : Function) : Array
{
return n  1 ? repeat(n-1, f).concat(f()) : [f()];
}

var result : String = repeat(4, function() : String { return
repeat(3, randomLetter).join(); }).join(-);

-Josh

On Tue, Jan 6, 2009 at 11:45 AM, anuj sharma anuj...@gmail.com wrote:

  Hi Brendan
 makes sense to put the code :-), With the format I was looking for
 following code works perfectly for me, I am not sure thats the right way of
 coding but this is working for my purpose. I am pretty sure there can be far
 far better way for this
 Anuj
 /**CODE**/
 mx:Script
 ![CDATA[
 import mx.messaging.channels.StreamingAMFChannel;
 import mx.controls.Alert;

 [Bindable]
 public var track:String;
 private function init():void
 {
 btn_genkey.addEventListener(MouseEvent.CLICK,key);
 }


 public function key(event:MouseEvent):void
 {
 var newLength:uint = 12;
 var userAlphabet:String = BCDFGHJKLMNPQRSTVWXYZ;
 var alphabet:Array=userAlphabet.split();
 var alphabetLength:int = alphabet.length;
 var randomLetters:String = ;

 var _keyfirstpart:String;
 var _keysecondpart:String;
 var _keythirdpart:String;
 var _keyforthpart:String;
 var _concatenatedString:String;
 for (var i:uint = 0; i  newLength; i++)
   {
 randomLetters += alphabet[int(Math.floor(Math.random() *
 alphabetLength))];
   }
   _keyfirstpart=randomLetters.slice(0,3);
   _keysecondpart=randomLetters.slice(3,6);
   _keythirdpart=randomLetters.slice(6,9);
   _keyforthpart=randomLetters.slice(9,12);


 _concatenatedString=_keyfirstpart+-+_keysecondpart+-+_keythirdpart+-+_keyforthpart;
   text_ii.text=_concatenatedString;

 }
 ]]
 /mx:Script

 mx:TextInput id=text_ii x=645 y=270 width=224/
 mx:Button id=btn_genkey x=513 y=270 label=Generate key
 width=124 /



 On Mon, Jan 5, 2009 at 5:39 PM, Brendan Meutzner bmeutz...@gmail.comwrote:

   So what did you end up putting together?  Should post the code here for
 the next guy...


 Brendan



 On Mon, Jan 5, 2009 at 5:41 PM, anuj sharma anuj...@gmail.com wrote:

   Awesome guys your guidance help me in achieving this withing 30
 minutes, it is working now
 Thanks for your help again
 Anuj

 On Mon, Jan 5, 2009 at 2:19 PM, anuj181 anuj...@gmail.com wrote:

   Hi
 I need to work on a piece of code in which whenever user clicks on the
 button , the code should generate random 12 character key having all
 caps and no vowels in the format of XXX-XXX-XXX-XXX. Can anybody guide
 me in this direction. Is there any built in function for that or do I
 have to use my own logic for random generation in this specific case.
 Any help will be appreciated.
 Thanks
 Anuj





 --
 Brendan Meutzner
 http://www.meutzner.com/blog/


 




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Generating Random key

2009-01-05 Thread Josh McDonald
Stupid ECMAScript... It'd be much more readable in Ruby/Lisp/Ioke/etc :)

On Tue, Jan 6, 2009 at 12:38 PM, Doug McCune d...@dougmccune.com wrote:

  Heh, but if you're REALLY going for unreadable lines of code, you might as
 well go all the way:

 function repeat(n:Number, f:Function) : Array {
return n  1 ? repeat(n-1, f).concat(f()) : [f()];
 }

 function createUID():String {
return repeat(4, function(){ return repeat(3, function(){ return
 String(BCDFGHJKLMNPQRSTVWXYZ).substr(int(Math.random()*19), 1) }).join()
 }).join(-);
 }

 On Mon, Jan 5, 2009 at 6:12 PM, Josh McDonald dzn...@gmail.com wrote:

   A quick take on it:

 function randomLetter() : String
 {
 const noVowels : String = BCDFGHJKLMNPQRSTVWXYZ;
 return noVowels.charAt(Math.round(Math.random() *
 (noVowels.length - 1)));
 }

 function repeat(n : Number, f : Function) : Array
 {
 return n  1 ? repeat(n-1, f).concat(f()) : [f()];
 }

 var result : String = repeat(4, function() : String {
 return repeat(3, randomLetter).join(); }).join(-);

 -Josh


 On Tue, Jan 6, 2009 at 11:45 AM, anuj sharma anuj...@gmail.com wrote:

  Hi Brendan
 makes sense to put the code :-), With the format I was looking for
 following code works perfectly for me, I am not sure thats the right way of
 coding but this is working for my purpose. I am pretty sure there can be far
 far better way for this
 Anuj
 /**CODE**/
 mx:Script
 ![CDATA[
 import mx.messaging.channels.StreamingAMFChannel;
 import mx.controls.Alert;

 [Bindable]
 public var track:String;
 private function init():void
 {
 btn_genkey.addEventListener(MouseEvent.CLICK,key);
 }


 public function key(event:MouseEvent):void
 {
 var newLength:uint = 12;
 var userAlphabet:String = BCDFGHJKLMNPQRSTVWXYZ;
 var alphabet:Array=userAlphabet.split();
 var alphabetLength:int = alphabet.length;
 var randomLetters:String = ;

 var _keyfirstpart:String;
 var _keysecondpart:String;
 var _keythirdpart:String;
 var _keyforthpart:String;
 var _concatenatedString:String;
 for (var i:uint = 0; i  newLength; i++)
   {
 randomLetters += alphabet[int(Math.floor(Math.random() *
 alphabetLength))];
   }
   _keyfirstpart=randomLetters.slice(0,3);
   _keysecondpart=randomLetters.slice(3,6);
   _keythirdpart=randomLetters.slice(6,9);
   _keyforthpart=randomLetters.slice(9,12);


 _concatenatedString=_keyfirstpart+-+_keysecondpart+-+_keythirdpart+-+_keyforthpart;
   text_ii.text=_concatenatedString;

 }
 ]]
 /mx:Script

 mx:TextInput id=text_ii x=645 y=270 width=224/
 mx:Button id=btn_genkey x=513 y=270 label=Generate key
 width=124 /



 On Mon, Jan 5, 2009 at 5:39 PM, Brendan Meutzner bmeutz...@gmail.comwrote:

   So what did you end up putting together?  Should post the code here
 for the next guy...


 Brendan



 On Mon, Jan 5, 2009 at 5:41 PM, anuj sharma anuj...@gmail.com wrote:

   Awesome guys your guidance help me in achieving this withing 30
 minutes, it is working now
 Thanks for your help again
 Anuj

 On Mon, Jan 5, 2009 at 2:19 PM, anuj181 anuj...@gmail.com wrote:

   Hi
 I need to work on a piece of code in which whenever user clicks on the
 button , the code should generate random 12 character key having all
 caps and no vowels in the format of XXX-XXX-XXX-XXX. Can anybody guide
 me in this direction. Is there any built in function for that or do I
 have to use my own logic for random generation in this specific case.
 Any help will be appreciated.
 Thanks
 Anuj





 --
 Brendan Meutzner
 http://www.meutzner.com/blog/





 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 Like the cut of my jib? Check out my Flex blog!

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: j...@gfunk007.com
 :: http://flex.joshmcdonald.info/
 :: http://twitter.com/sophistifunk


 




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Generating Random key

2009-01-05 Thread Josh McDonald
...Although some features from JS1.7 / 1.8 would be a big step in the right
direction.

On Tue, Jan 6, 2009 at 12:48 PM, Josh McDonald dzn...@gmail.com wrote:

 Stupid ECMAScript... It'd be much more readable in Ruby/Lisp/Ioke/etc :)






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Generating Random key

2009-01-05 Thread Josh McDonald
Not at all :)

I just like functional programming style, and in my case I have a version of
times(n,f) in a util class. The version I posted above is actually no good
on AVM2 due to the lack of tail-calls. A longer but clearer, more flexible
(and iterative, hence stack-safe) version I actually use is in here:

http://pastie.textmate.org/353539

Generating 12 random letters is of course too simple a problem to really
apply these techniques sensibly, I'm just trying to illustrate a completely
different approach.

For example, using inline named functions can often make for more readable
asynchronous code, without worrying about weak references to handlers being
collected, or having to create class-level members or custom events just to
pass values between different steps in one process.

-Josh

On Tue, Jan 6, 2009 at 3:05 PM, Alan Klement ultr...@gmail.com wrote:


 4-5 extra lines wont kill ya will it?





-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Any Developers on a Mac?

2008-12-29 Thread Josh McDonald
Kevlar suit... *check*!

It's good. I'm happy with it, many people are. I think it's much better,
many people agree. And many *other* people here will call me a big girl for
thinking so. Which I find hilarious. But this is a well-abused topic here.
Builder is slightly better in Windows. in my opinion everything else is
better on Mac :)

-Josh

On Mon, Dec 29, 2008 at 8:24 PM, composerguru kbmulvih...@gmail.com wrote:

 I'm thinking of converting now that I've dumped Vista... just
 wondering what your experience might be and if you recommend the change?

 Thanks in advance,
 Kevin


 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Any Developers on a Mac?

2008-12-29 Thread Josh McDonald
Just general stability, which is (AFAIK) all the fault of the Eclipse team
and Apple HQ's low-prioritising of Java, not Adobe's. And IIRC there's a
small part of the web service - AS3 generation stuff missing, but it's
never been part of my workflow so I can't remember what that is. It's in the
archives for the list though.

On Mon, Dec 29, 2008 at 9:04 PM, Jim Hayes j...@primalpictures.com wrote:

  General platform discussions aside, what is it that makes flexbuilder
 slightly worse on mac than it is in windows?

 I'm considering trying out a macbook pro as my next laptop (been on
 windows, sometimes linux, for past ten years or so),

 but most of my work is in flexbuilder these days so it would be nice to
 know.

 Many thanks!



 -Original Message-
 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Josh McDonald
 *Sent:* 29 December 2008 10:44
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Any Developers on a Mac?



 Kevlar suit... *check*!

 It's good. I'm happy with it, many people are. I think it's much better,
 many people agree. And many *other* people here will call me a big girl for
 thinking so. Which I find hilarious. But this is a well-abused topic here.
 Builder is slightly better in Windows. in my opinion everything else is
 better on Mac :)

 -Josh

 On Mon, Dec 29, 2008 at 8:24 PM, composerguru kbmulvih...@gmail.com
 wrote:

 I'm thinking of converting now that I've dumped Vista... just
 wondering what your experience might be and if you recommend the change?

 Thanks in advance,
 Kevin


 

 --
 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






 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 Like the cut of my jib? Check out my Flex blog!

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: j...@gfunk007.com
 :: http://flex.joshmcdonald.info/
 :: http://twitter.com/sophistifunk


 __
 This communication is from Primal Pictures Ltd., a company registered in
 England and Wales with registration No. 02622298 and registered office: 4th
 Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK.
 VAT registration No. 648874577.

 This e-mail is confidential and may be privileged. It may be read, copied
 and used only by the intended recipient. If you have received it in error,
 please contact the sender immediately by return e-mail or by telephoning
 +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its
 contents to any person.
 This email has been scanned for Primal Pictures by the MessageLabs Email
 Security System.
 __
 

  --
 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.com



  Your email settings: Individual Email|Traditional
 Change settings via the 
 Webhttp://groups.yahoo.com/group/flexcoders/join;_ylc=X3oDMTJnOXBnZjF2BF9TAzk3NDc2NTkwBGdycElkAzEyMjg2MTY3BGdycHNwSWQDMTcwNTAwNzIwNwRzZWMDZnRyBHNsawNzdG5ncwRzdGltZQMxMjMwNTQ4ODEz(Yahoo!
  ID required)
 Change settings via email: Switch delivery to Daily 
 Digestflexcoders-dig...@yahoogroups.com?subject=email+delivery:+Digest|
 flexcoders-fullfeatu...@yahoogroups.com?subject=change+delivery+format:+Fully+Featured




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] re-passing variable arguments?

2008-12-29 Thread Josh McDonald
What you're after is usually called a splat. It's not supported quite so
explicitly in AS3, but to do what you're after just use Function.apply(). So
in your case, it'd be:

continueFunction.apply(this, args);

-Josh

On Tue, Dec 30, 2008 at 8:58 AM, toofah_gm ga...@byu.edu wrote:

 I have a method that accepts variable arguments like this:

 public function doSomethingThenContinue(continueFunction:Function,
 ...args)
 {
   // execute some code that does important stuff

   // call the continue function now that we are done passing the
 original args to that function
   continueFunction(args);
 }

 Is it possible to pass the variable arguments on to the generic
 continueFunction in this manner?  I don't really want the args to be
 passed in a single Array, but want to call the continueFunction with
 the arguments split out like this dynamically
 continueFunction(args[0], args[1], etc.) depending on how many were
 passed in and depending on how many parameters the continueFunction
 accepts.

 Is this possible to do somehow?

 Thanks,

 Gary


 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Proper way of giving thanks?

2008-12-27 Thread Josh McDonald
Just become awesome, and answer the questions of others :)

-Josh

On Sun, Dec 28, 2008 at 6:23 AM, luvfotography 
ygro...@all-digital-links.com wrote:

 Hi,
 I've received many solutions to my questions here on the list and want
 to give thanks to those who took time to answer me.  Is it proper to
 give thanks on this list? I'm reluctant too, because it clutters up the
 list, (just like this post) but I just want to say thanks. Sometimes
 the private email of the contributor is not available?


 

 --
 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






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: j...@gfunk007.com
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


  1   2   3   4   5   6   7   8   9   10   >