[flexcoders] Re: Flex in Connect

2008-05-21 Thread madflexcoder
--- In flexcoders@yahoogroups.com, Amy [EMAIL PROTECTED] wrote:

 Has anyone demo'ed Flex in Connect before?  I've found that both Flex 
 and Connect slow my machine, and I am worried that the two together may 
 be a horrible combination.
 
 Also, am I right in thinking that Connect itself is built in Flex?  I 
 thought I heard that somewhere.
 
 Thanks;
 
 Amy


I gave a presentation using Connect on flex just tonight actually. The
session went about an hour and a half and I didn't notice my machine
slowing down. Although, my interenet connection dropped.




[flexcoders] Binding to Static Function

2008-05-12 Thread madflexcoder
I'm having a hard time binding to a static function. The function is
just a shortcut through a singleton instance. I'm using the
[Bindable(event=myChange)] metadata tag and the data is getting
dispatched when the source changes, except the event doesn't notify
anything to call the static function again. Does anybody have some
good reading on this? or an example of how this is done?

Thanks,
Brian..



[flexcoders] ObjectProxy override flash_proxy not firing for known properties problem

2008-04-30 Thread madflexcoder
I'm extending ObjectProxy and  overriding flash_proxy setProperty() in
an object and it's not firing when setting known properties. Is there
any way around this? it seems to fire when I dynamically add
properties but not for my known properties. 



[flexcoders] Re: java RemoteClass null ArrayCollection/List

2008-04-11 Thread madflexcoder
Make sure you have the object mapped in Action Script. And that
properties are public. 

Also, There's some known errors with passing data back and forth
between flex and java. I'm not expert on it, but I have ran into this
issue a bit. Check out the adobe bug center to see if what you're
specifically doing is already listed. Also, if you're using BlazeDS
here's a link to the data type conversions. 

http://livedocs.adobe.com/blazeds/1/blazeds_devguide/help.html?content=serialize_data_2.html#312520


I got around this problem by switching my datatypes around. 



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

 I am sending an object in java to a flex app via messaging.  Some of
the data is coming 
 across ok (Strings) but my List object is coming across as null even
though the original 
 
 java class:
 
 import java.util.ArrayList;
 
 public class Axis {
   
   String title;
   List axisList;
 
 //  constructors and other methods here
   
   public List getAxisList() {
   return axisList;
   }
   
   public String getTitle() {
   return title;
   }
 }
 
 And here is the mapped ActionScript version:
 
 package com.data {
   
   import mx.collections.ArrayCollection; 
   
   [Bindable]
   [RemoteClass(alias=com.data.Axis)]
   public class AxistObject {
   public var title:String;
   public var axisList:ArrayCollection;
   
   public function getAxisList():ArrayCollection {
   return axisList;
   }
   
   public function getTitle():String {
   return title;
   }
   }
 }
 
 Why is it coming across as null?





[flexcoders] FlexBuilder implementInterface Error

2008-02-21 Thread madflexcoder
I'm getting the following error in my Flex Builder log file. Not sure
what I did, but I backed my changes out and it doesn't seem to fix
anything. I was wondering if anyone had an idea?

Thanks,
Brian..


!ENTRY com.adobe.flexbuilder.project 4 43 2008-02-21 13:18:09.176
!MESSAGE Uncaught exception in compiler
!STACK 0
java.lang.StackOverflowError
at
flex2.compiler.as3.binding.ClassInfo.implementsInterface(ClassInfo.java:149)
at
flex2.compiler.as3.binding.ClassInfo.implementsInterface(ClassInfo.java:153)
at
flex2.compiler.as3.binding.ClassInfo.implementsInterface(ClassInfo.java:153)
at
flex2.compiler.as3.binding.ClassInfo.implementsInterface(ClassInfo.java:153)
at
flex2.compiler.as3.binding.ClassInfo.implementsInterface(ClassInfo.java:153))



continues on forever...



[flexcoders] Re: Why upgrade to FB3?

2008-02-15 Thread madflexcoder
Don't forget about Ctrl-O for code navigation.



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

 OMG i didn't know about Ctrl-3This is awesome.
 
 Anyways, I like FB3 cause it can handle the two plugins I use everyday
 
 Subversive
 Mylyn
 
 Refactoring is nice but I don't use it as often as I thought I would.
 
 -mL
 
 Uber_Nick wrote:
 
  In short: faster and more stable.
 
  FB3 is a lot smarter about compiling, so building a project after
  making a change goes a lot faster. Developers were increasingly
  frustrated and slowed by the long build times of our project with
FB2.01.
 
  There were also a variety of small bugs in 2.01, such as issues
  recompiling styles, embedded assets, or external xml data.
  Occasionally it would cause FB2 to crash, but usually it would just
  require full cleans. These minor frustrations really built up and
  could waste a lot of time and productivity (as well as lower morale
  and excitement about the technology). There's no reason to put
  developers through using older, buggier tools when better options are
  available.
 
  Also, FB3 is based on a newer version of Eclipse. So better
  navigation (ctrl+3 is a lifesaver!), smarter memory usage, and
  enhanced stability all come with it.
 
  Not to mention all the plugin upgrades if you're using any of them
  (Subclipse, SpringIDE, Jupiter, etc)...
 
  -Nick Matelli
  Amentra, Inc
 
  --- In flexcoders@yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com, Mr Greg Murnock gmurnock@ 
  wrote:
  
   For the big discussion of the day/week...
  
   I have been given the task to give a strong case on why we need to
  spend the money (proposed pricing schedule) on the upgrade to FB3,
  when available.
   Our company does not look to do AIR apps, we do not have a case to
  use Advanced Datagrid, we front CF7 with an Oracle DB (irrelevant) so
  the FDS is already there. Current F2 apps with charting working great.
  
   I want to upgrade but need more of a reason, for my [EMAIL PROTECTED] 
   company -
  did I say that outloud, for us to purchase the upgrades. All comments
  are accepted. :)
  
   Greg
  
  
  
  __
   Be a better friend, newshound, and
   know-it-all with Yahoo! Mobile. Try it now.
  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
  
 
   
 
 
 
 Notice of confidentiality:
 The information contained in this e-mail is intended only for the
use of the individual or entity named above and may be confidential.
Should the reader of this message not be the intended recipient, you
are hereby notified that any unauthorized dissemination, distribution
or reproduction of this message is strictly prohibited. If you have
received this message in error, please advise the sender immediately
and destroy the e-mail.





[flexcoders] CollectionEvent.COLLECTION_CHANGE is firing twice problem.

2008-02-15 Thread madflexcoder
I have an array collection that i'm listening to collection changes
on. For some reason when the event is an update, the event gets fired
twice.  I've been searching for an answer all morning, and I was
wondering if anybody has had this same problem? or could point me in
the right direction. My search terms are obviously not working because
I have found anything.



[flexcoders] Re: Why does RTE lose formatting when parent's styleName changes? (w/ test case)

2008-02-15 Thread madflexcoder
Hey Ben,
 Ran into this one before. Something to do with invalidateProperties()
being called, and they haven't accounted for all scenarios when the
text changes. If you look in the styleChanged function of the
RichTextEditor you'll notice they have an if at the bottom of it that
says the following

if (!invalidateToolBarFlag)
{
  invalidateToolBarFlag = true;
  callLater(getTextStyles);
}


I think it should be 

if (!invalidateToolBarFlag || htmlTextChanged)

but I'm not sure. They set htmlTextChanged = true when you
programmatically set the htmlText.



Anyways, as a work around you can extend RichTextEditor override the
styleChangedMethod and just do it the old fashioned way.  It ain't
pretty but I haven't had any problems with it.

override public function styleChanged(styleProp:String):void
{
super.styleChanged(styleProp);
this.htmlText = this.htmlText;
}







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

 No I know, but if I can figure out whats happening I can probably
 subclass RTE and prevent the behavior, and then recommend using it
 instead of the problematic one from the framework.
 
 Here's hoping Alex and/or Gordon notice this thread... :)
 
 
 --- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiverton@
 wrote:
 
  On Friday 15 Feb 2008, ben.clinkinbeard wrote:
   Hmmm, that does work but I am looking for a more general purpose
   solution. Checking for any RTE children before every change
isn't very
   reasonable in my scenario.
  
  It would only ever be a work around, I agree.
  But I get the impression Flex 3 is fairly locked down now, so you're
 not going 
  to get a fix in the framework very soon.
  
  -- 
  Tom Chiverton
  Helping to completely cluster one-to-one data
  on: http://thefalken.livejournal.com
  
  
  
  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. Any reference to a partner in relation to
 Halliwells LLP means a member of Halliwells LLP.  Regulated by The
 Solicitors Regulation Authority.
  
  CONFIDENTIALITY
  
  This email is intended only for the use of the addressee named above
 and may be confidential or legally privileged.  If you are not the
 addressee you must not read it and must not use any information
 contained in nor copy it nor inform any person other than Halliwells
 LLP or the addressee of its existence or contents.  If you have
 received this email in error please delete it and notify Halliwells
 LLP IT Department on 0870 365 2500.
  
  For more information about Halliwells LLP visit www.halliwells.com.
 





[flexcoders] Using a getter as a labelField

2008-02-03 Thread madflexcoder
Is it possible to use a getter as a labelField? I've been unsuccessful
in my attempts to do it. I have a value object that I would like to
concatenate two strings together to form the label. Instead of writing
a label function I'd rather just have a getter function that does the
same thing. A good example is using a first name and last name as the
label field.



[flexcoders] Re: Using a getter as a labelField

2008-02-03 Thread madflexcoder
disregard this, i found my problem, my objects weren't being typed
properly.




[flexcoders] Re: .actionScriptProperties

2008-01-28 Thread madflexcoder
I've had to make changes in the .actionScriptProperties files several
times. Never used line returns tho. 


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

 Looking into the .actionScriptProperties file in the root of my
project, I
 can see this is where the compiler options are set. My question is this,
 it's is ok for me to change these values here rather than using the
dialog.
 Also is it ok to have line returns between options, just making them
easier
 to read?
 
 I just want to make sure that this IS the file used by the compiler, and
 changing it by hand won't break anything (assuming I don't add incorrect
 values of course)
 
 thanks





[flexcoders] How would I write this query in e4x

2008-01-28 Thread madflexcoder

I want to get an xmllist of nodes that contain a doc with a specific id.

for example all nodes where a doc id == 3.

My data structure is roughly as follows.

nodes
  node
doc id=1 /
doc id=2 /
  /node
   node
 node
doc id=3 /
doc id=4 /
 /node
 node
doc id=5 /
doc id=6 /
 /node
  /node
/nodes



[flexcoders] Re: Using ClassReference in nested CSS file - possible?

2008-01-18 Thread madflexcoder
Is this in a flex library project or a regular flex project that your
css is in?


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

 I can't seem to get my ClassReference directive to work unless the CSS
 file is at the root of my project. When the CSS file is
 assets/css/someStyles.css for instance, I get a definition could not
 be found error. If the file is top-level it works fine. Is there some
 kind of syntax I am unaware of or is this simply not possible? This is
 how the directive looks now:
 
 windowControlsClass: ClassReference(windowControls.WindowsXPControls);
 
 windowControls.WindowsXPControls is the package relative to the root
 of the project.
 
 Thanks,
 Ben





[flexcoders] Re: Flex Amazon S3 Access Control List / ACL

2008-01-17 Thread madflexcoder
I've connected to S3 from flex. If you want to email me off list I can
send you my test project.




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

 Hi All,
 
 I've been playing around with the awss3lib (
 http://www.code.google.com/awss3lib ) and looking at the
documentation for
 Amazon's S3 ( http://docs.amazonwebservices.com/AmazonS3/2006-03-01/
)and I
 was wondering if anyone managed to get the ACL working with the
awss3lib?
 
 If so, can you explain how you did it?
 
 The documentation says that we need to add a header 
 x-amz-acl:{*private, *public-read,
 etc} to the PUT request but I can't seem to do it properly. I
figured that I
 need to modify the authorization string but the one that the awss3lib
 doesn't seem to have headers. e.g. instead of Content-Type: text/plain
 it's just encoding text/plain and yet the request header has the full
 thing (Content-Type: text/plain). I tried adding
x-amz-acl:public-read to
 the request header, and then to the authorization string but it
comes back
 as an error 2038.
 
 Any help would be appreciated!
 
 Thanks!
 -Daniel
 
 -- 
 -
 e: [EMAIL PROTECTED]
 w: http://DanielTse.com/
 -





[flexcoders] Re: Binding ValueObjects

2008-01-16 Thread madflexcoder
Put your [Bindable] tag on top of your class and it will make the
entire class bindable.

[Bindable]
public class MyVo
{

}


brian..




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

 Hi!
 
 I have one problem.
 
 I have Value Object that I want to Bind to my custom made component. I
 have no problems to bind every single value from VO to component. And
 if I change something in the VO, that will be changed.
 
 But I want to Bind the whole VO (at once, not every value by itself).
 So that I can override the whole VO and changes will be automatically
 trigger the update function in my component. And if I remove the VO,
 than I want to remove my component from view.
 
 Thank you,
 Toni P.





[flexcoders] flexmdi compiled with flex sdk 2.0.1 hotfix 3

2008-01-11 Thread madflexcoder
I compiled the flexmdi framework with flex sdk version 2.0.1 hotfix 3.
The download can be found in the downloads at the googlecode page.


http://code.google.com/p/flexmdi/


For those of you that were looking for it or having trouble compiling
with flex 201 feel free to email me offlist for any specific problems
that you may encounter. usual caveats apply.

thanks,
Brian..



[flexcoders] Re: Problems compiling defaults.css into SWC - F3B3

2008-01-11 Thread madflexcoder
don't use the -include-stylesheet directive when in a flex library
project. it's done automatically.




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

 I am trying to include the default styles in my SWC but am getting
 errors when setting the compiler options. defaults.css is in the top
 level of my library project.
 
 If I use -include-stylesheet defaults.css defaults.css the error
 displayed is unknown configuration variable 'include-stylesheet'
 
 If I use -include-file defaults.css defaults.css the error is unable
 to export SWC oem
 
 Any ideas?
 
 Thanks,
 Ben