[flexcoders] Runs in debug mode, but not release build

2009-04-30 Thread jimmy5804

AIR app. Runs fine in debug, but fails to initialize when build is exported. 
After a long binary search I found it fails silently on addition of a 
particular (important) child. Anyone seen anything like this before?



[flexcoders] Adding text to Cursor: Dilemma

2009-04-30 Thread flexaustin
So I need to add a hover over when I mouse over and object on the stage. My 
issue is that I am using a framework that creates these objects and puts them 
on a displaylist randomly so they are in no certain order. I tried putting the 
hover over on the object but sometimes these object overlap so my hover is 
behind some of the objects. I can't bring my hovered object to the front/top 
because it has to remain behind a few items. Probably confused you there, but 
just no hover over on the actual moused over object isn't possible.

So I am thinking my two options are create a cursor that has a dynamic 
textfield. Or create a floating text field on the main stage that will turn on 
or off depending if I am hovering.  I prefer the cursor version but the issue 
is I don't want the text to count as part of the mouse when moving around as 
text in the hover could be quite long  thus hovering over two objects at once.

Suggestions?

 



RE: [flexcoders] Re: Why would "as" keyword not work

2009-04-30 Thread Alex Harui
In theory, the main app's definition should supercede the module's definition 
unless he loaded the module into a separate appdom instead of the default child 
appdom, but if he did that, I would expect other problems from ModuleLoader.

Note that anytime you specify to load a module directly into the main app's 
appdom, that module cannot be unloaded, so I'd only do things like that in 
special cases.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Ian Thomas
Sent: Thursday, April 30, 2009 1:22 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Why would "as" keyword not work





Steve,
My guess at what is going on - based on my limited understanding of
what you're doing - is:

- You have your class definition (DetailData) compiled in to your main
application and into your module.
- You load your module into your main application
- Because you have not specifed that you want your module to be in the
same ApplicationDomain as the main application, its class definitions
remain segregated from the main application's class definition.
- Your module creates the DetailData (whether on return from remoting
call or not) by instantiating it's own definition of DetailData (call
it class DetailDataA, if that helps).
- The event fires from your module to your application.
- Your event handler tries to cast the created object - which is of
type DetailDataA - to its _own_ definition of DetailData (call it
class DetailDataB). Hence your error.

No matter that the two class definitions are actually identical -
because they are not in the same ApplicationDomain, the code treats
them as separate.

Now, if you alter your module loading so that you pass in
ApplicationDomain.currentDomain as the domain you want the module to
load into, the problem should go away.
(ModuleLoader.applicationDomain=ApplicationDomain.currentDomain)

I hope that makes some sort of sense. Of course, I may have totally
misunderstood your situation!

HTH,
Ian

On Thu, Apr 30, 2009 at 9:11 PM, valdhor 
mailto:valdhorlists%40embarqmail.com>> wrote:
>
>
> Alex - I have read your Modules presentation about twenty times so far as
> well as any other documentation I could find on Modules and Application
> Domains. I'm pretty sure I understand everything so far.
>
> Pedro - The ValueObject is only being used by this particular module - not
> by the application (Or any other module).
>
> Ian - All other modules work fine with the exchange data. Note that the
> exchange data and this value object are two different things. I am NOT
> passing this value object as part of the exchange data. The VO gets created
> from a remoteObject call.
>
> All the above being said, I think I have found my problem. The click event
> was handled in the renderer. This works fine in an application but does not
> seem to in a module. By moving the click handler to the datagrid component,
> the error disappears.
>
> This problem crept in whilst I was moving my monolithic app to a series of
> modules.
>
> Thanks for taking the time to push me in the right direction.
>
> Steve
>
> If anyone can enlighten me as to why click events in item renderers work
> differently in modules than applications, please do.
>
> --- In flexcoders@yahoogroups.com, Ian 
> Thomas  wrote:
>>
>> As Pedro says - my guess would be that you are passing a DetailData
>> object from one module to the other when you haven't loaded the
>> modules in the same ApplicationDomain (or from one compiled .swf to
>> another, if you're not using modules).
>>
>> Take a look at the documentation for ApplicationDomain.
>>
>> HTH,
>> Ian
>>
>> On Thu, Apr 30, 2009 at 6:18 PM, Pedro Sena  wrote:
>> >
>> >
>> > Are you using modules?
>> >
>> > On Thu, Apr 30, 2009 at 2:17 PM, valdhor 
>> > wrote:
>> >>
>> >>
>> >> Hmmm. Looks like I misspoke. now I get...
>> >>
>> >> Type coercion failed. Cannot convert
>> >> Model.ValueObjects::detaild...@11c0a941 to
>> >> Model.ValueObjects.DetailData.
>> >>
>> >> What is the difference between a
>> >>
>> >> Model.ValueObjects::DetailData
>> >>
>> >> and a
>> >>
>> >> Model.ValueObjects.DetailData
>> >>
>>
>
>



RE: [flexcoders] Re: Outputting a variable into htmlText

2009-04-30 Thread Gordon Smith
> You may find that the initialize method runs before you get a chance to set 
> acctName

You called init() from your the constructor, so it is called as soon as you do 
'new CreateAcctDialog()'. Since you have to "new" it somewhere before you can 
set acctDialog.acctName, the name was getting set too late and it was null when 
init() was called

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of fumeng5
Sent: Thursday, April 30, 2009 10:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Outputting a variable into htmlText





You are exactly right! It worked perfectly when I added a listener for the 
creationComplete event in my constructor and set the handler to be init.

I learned something new today. Thank you very, very much for your help.
--- In flexcoders@yahoogroups.com, 
"valdhor"  wrote:
>
> I don't believe you need that. I do what you are doing all the time although 
> I don't do it in the init method (I am assuming you are calling the init 
> method on initialize of the component?). I would try calling it on 
> creationComplete (That's what I do). You may find that the initialize method 
> runs before you get a chance to set acctName.
>
>
> --- In flexcoders@yahoogroups.com, 
> "fumeng5"  wrote:
> >
> > The String I'm constructing is inside a PopUp dialog bog. I set it from 
> > another component a la:
> >
> > private function createAcct():void {
> >
> > acctDialog.acctName = accountName;
> > PopUpManager.addPopUp(acctDialog,this as Canvas,true);
> > }
> >
> > The accessor methods for acctName look like this:
> >
> > private var _acctName:String;
> > public function set acctName(s:String):void{
> > acctName = s;
> > }
> > [Bindable]
> > public function get acctName():String{
> > return _acctName;
> > }
> >
> > And I set the content.htmlText property in the init() method when acctName 
> > is null. So, I think the solution is to use binding utils in the init() 
> > method, like this:
> >
> > BindingUtils.bindProperty(content,'htmlText',msgString);
> >
> > but I think I'm missing an argument in there...i think it needs 4 args.
> >
> > Thank you very much for your help.
> >
> >
> >
> >
> >
> > --- In flexcoders@yahoogroups.com, 
> > "valdhor"  wrote:
> > >
> > > How is acctName created?
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, 
> > > "fumeng5"  wrote:
> > > >
> > > > Ok, I see what you're saying. So here's the constructor for my 
> > > > component that is responsible for all this:
> > > >
> > > > public function CreateAcctDialog()
> > > > {
> > > > super();
> > > > init();
> > > > }
> > > >
> > > > ...and init():
> > > >
> > > > private function init():void
> > > > {
> > > > msgString = "The account " + this.acctName + " has been created "
> > > > }
> > > >
> > > > and the last part:
> > > > content.htmlText = msgString;
> > > >
> > > > This comes out as: The account null has been created.
> > > >
> > > > I thought the init() method would handle the proper setting of this 
> > > > var.
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com, 
> > > > "valdhor"  wrote:
> > > > >
> > > > > For the first part, you are setting the value of msgString during its 
> > > > > declaration. At this point acctName will be null. You would need to 
> > > > > declare msgString and then assign it in a creationComplete handler.
> > > > >
> > > > > Secondly, you can't do this in ActionScript:
> > > > >
> > > > > content.htmlText = "{msgString}"
> > > > >
> > > > > You have to do this:
> > > > >
> > > > > content.htmlText = msgString
> > > > >
> > > > > The "{}" syntax is to bind a variable in MXML.
> > > > >
> > > > > Also, For the above, the variable does not need to be bindable.
> > >
> >
>



[flexcoders] Trigger DateFormatter bindings

2009-04-30 Thread Ben Reynolds
Hey guys,

   Is there a way to trigger the binding on all related items when
changing the DateFormatter's formatString? eg.  becomes MMM, 
via actionscript in the following:




I'd prefer not to be manually injecting the new format into each of the
text objects every time.

Regards,

   MrB.



Re: [flexcoders] Re: Flex Builder on Linux been scrapped ?

2009-04-30 Thread Sam Lai
Why do conversations about Linux always devolve into an MS-bashing
thread, often based on unfounded assumptions?

Take it off-list.

2009/5/1 Kelly :
>
>
>
> Microsoft deep scans your hard drives and transmits home.
>
> This is admitted in their patents.
>
> This is data mining on a level Orwell could never have imagined.
>
>
>
> So it is less of an emotional issue and more of a security issue.
>
>
> Why large corporations are willing to accept this is a mystery to me.
>
>
> They are usually very concerned with corporate security.
>
>
>
> This is even more mysterious when talking about companies that compete
> directly with Microsoft.
>
> Like Adobe.
>
> Does Adobe not see using XP/Vista inside of their corporate network as a
> security threat?
>
> Why not?
>
>
>
>
>
>
>
>
>
>
> daxdr9 wrote:
>
> This is hardly a surprise given the current economic conditions, assuming
> the ROI isn't there for the FB Linux product at this time. Does anyone
> really not own at least one Windows-based PC or Apple computer? (I'm sure
> there are people who only run Linux--a very small percentage, though)
>
> If your willing to drop Flex because they don't sell an IDE for Linux,
> you're basing a technical decision on emotion.
>
> --- In flexcoders@yahoogroups.com, Matt Chotin  wrote:
>>
>> I'm going to continue to stay out of the fray, but just to be clear, that
>> conversation is about Flex Builder, not the SDK. We will always support
>> developers on Linux, it's a question of what we tools beyond the SDK we
>> provide.
>>
>> We'll be looking to share more information on our plans in a few weeks.
>>
>> Matt
>>
>>
>> On 4/30/09 4:44 PM, "Guy Morton"  wrote:
>>
>>
>>
>>
>>
>>
>> Wouldn't you still be able to build your own IDE using the free SDK? As I
>> understand it a lot of people do this now to avoid having to buy FB, and I
>> imagine Linux users would be relatively common within that group.
>>
>> If sales for a linux version of FB are too low to justify the ongoing cost
>> of development, you can hardly blame Adobe for that. Their support for *nix
>> is better than most.
>>
>> Guy
>>
>>
>> On 01/05/2009, at 9:35 AM, john fisher wrote:
>>
>>
>>
>>
>> If Adobe drops Linux support for Flex, then I will probably drop Flex.
>>
>> I won't maintain a Windows or Mac box at home, and my company really
>> doesn't want to invest in any more Windows apps. I don't want to invest
>> myself in technology I can't run independently of whoever I happen to be
>> working for today. Seeing the fickleness of the corporate owners of
>> development tools is what sent us to Linux and open source tools in the
>> first place. We can't bet our products on some whim of Adobe. My current
>> all-Linux proof-of-concept project will be blown out of the water, and
>> I'll have to get up to speed on Java.
>>
>> -grieving already
>>
>> John
>>
>> and at a time when Linux is gnawing away at laptop market from below and
>> the desktop market is dying...
>>
>
>
>
>
> 


Re: [flexcoders] Re: Flex Builder on Linux been scrapped ?

2009-04-30 Thread Paul Andrews
- Original Message - 
  From: Kelly 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, May 01, 2009 2:39 AM
  Subject: Re: [flexcoders] Re: Flex Builder on Linux been scrapped ?





  Microsoft deep scans your hard drives and transmits home.

  This is admitted in their patents.

  This is data mining on a level Orwell could never have imagined. 


What evidence do you have that MS is doing this and undermining the security of 
people who use their OS?

Re: [flexcoders] Flex Builder on Linux been scrapped ?

2009-04-30 Thread Sam Lai
2009/5/1 Kelly :
> I am not sure why it's so hard.
>
>
> Most other Eclipse plugins work fine on Linux 32 and 64 Bit.

It's probably not the editor bits that are hard, but the debugging
bits which have to reach outside of the Java world to work. Ditto with
the profiler bits I'd say, and any other components that need to
communicate with AIR directly.

As for the design view, they might be reaching out and using a
platform-specific component to render the design, so that it would
match the output better than rewriting the entire rendering engine in
Java?

Who knows (unless you decompile FB possibly), but Java and Eclipse
aren't inherently cross-platform all the time given what they need to
do.


[flexcoders] Can Flex read IPTC or EXIF data on jpegs?

2009-04-30 Thread luvfotography
Can Flex display exif data on jpgs?
How can I extract that data from a picture that I load?
thanks,
steve



Re: [flexcoders] Flex Builder on Linux been scrapped ?

2009-04-30 Thread Paul Andrews
- Original Message - 
From: "john fisher" 
To: 
Sent: Friday, May 01, 2009 12:35 AM
Subject: Re: [flexcoders] Flex Builder on Linux been scrapped ?


> If Adobe drops Linux support for Flex, then I will probably drop Flex.
>
> I won't maintain a Windows or Mac box at home, and my company really
> doesn't want to invest in any more Windows apps. I don't want to invest
> myself in technology I can't run independently of whoever I happen to be
> working for today. Seeing the fickleness of the corporate owners of
> development tools is what sent us to Linux and open source tools in the
> first place. We can't bet our products on some whim of Adobe. My current
> all-Linux proof-of-concept project will be blown out of the water, and
> I'll have to get up to speed on Java.
>
> -grieving already
>
> John

A really difficullt viewpoint to understand.

FB != Flex - there's always the SDK - most people don't use the design view 
that much - do they?

Why should Adobe invest in a product that costs money to develop but has a 
low adoption rate?

You may not be happy to bet your products on the whim of Adobe, but you do 
seem happy to bet your customers come only from the linux world.

You seem happy to ditch the benefits of flex as a rapid development platform 
for rich applications in favour of  XXX simply because one development tool 
may not be available on Linux - doesn't seem to be a sensible approach to 
decide software architectures.

I don't have a problem with open source, but many people see it as a mantra 
for ife, whch is OK, but sometimes there are indirect costs to avoiding 
commercial wares.

I have yet to meet anyone outside the geek/software development world using 
Linux, so I'm curious about your targetted product market!

Anyway, the choice is yours.

Paul

> and at a time when Linux is gnawing away at laptop market from below and
> the desktop market is dying...

Well, Linux in the everyday world is still well under my radar as is the 
immenent death of the desktop. 



[flexcoders] Re: Flex Builder on Linux been scrapped ?

2009-04-30 Thread daxdr9

This is hardly a surprise given the current economic conditions, assuming the 
ROI isn't there for the FB Linux product at this time.  Does anyone really not 
own at least one Windows-based PC or Apple computer?  (I'm sure there are 
people who only run Linux--a very small percentage, though)

If your willing to drop Flex because they don't sell an IDE for Linux, you're 
basing a technical decision on emotion.

--- In flexcoders@yahoogroups.com, Matt Chotin  wrote:
>
> I'm going to continue to stay out of the fray, but just to be clear, that 
> conversation is about Flex Builder, not the SDK.  We will always support 
> developers on Linux, it's a question of what we tools beyond the SDK we 
> provide.
> 
> We'll be looking to share more information on our plans in a few weeks.
> 
> Matt
> 
> 
> On 4/30/09 4:44 PM, "Guy Morton"  wrote:
> 
> 
> 
> 
> 
> 
> Wouldn't you still be able to build your own IDE using the free SDK? As I 
> understand it a lot of people do this now to avoid having to buy FB, and I 
> imagine Linux users would be relatively common within that group.
> 
> If sales for a linux version of FB are too low to justify the ongoing cost of 
> development, you can hardly blame Adobe for that. Their support for *nix is 
> better than most.
> 
> Guy
> 
> 
> On 01/05/2009, at 9:35 AM, john fisher wrote:
> 
> 
> 
> 
> If Adobe drops Linux support for Flex, then I will probably drop Flex.
> 
> I won't maintain a Windows or Mac box at home, and my company really
> doesn't want to invest in any more Windows apps. I don't want to invest
> myself in technology I can't run independently of whoever I happen to be
> working for today. Seeing the fickleness of the corporate owners of
> development tools is what sent us to Linux and open source tools in the
> first place. We can't bet our products on some whim of Adobe. My current
> all-Linux proof-of-concept project will be blown out of the water, and
> I'll have to get up to speed on Java.
> 
> -grieving already
> 
> John
> 
> and at a time when Linux is gnawing away at laptop market from below and
> the desktop market is dying...
>




Re: [flexcoders] Flex Builder on Linux been scrapped ?

2009-04-30 Thread john fisher
well thanks for that Matt, I'll wait for announcements.
John

Matt Chotin wrote:
> I'm going to continue to stay out of the fray, but just to be clear, that 
> conversation is about Flex Builder, not the SDK.  We will always support 
> developers on Linux, it's a question of what we tools beyond the SDK we 
> provide.
>
> We'll be looking to share more information on our plans in a few weeks.
>
> Matt
>
>   


Re: [flexcoders] Flex Builder on Linux been scrapped ?

2009-04-30 Thread john fisher
Guy I could use the bare SDK of course. I hadn't really tried it before
because the Flex Builder Eclipse plugin seemed like a good idea. And
there is *some* support for it in the community, I don't know how much.
You're right I should try that before I give up.

"blame" Adobe is not quite right, "trust" is more like it. Watching Java
slowly worm its way out of Sun's grasp to the point where its now more
or less open-source should provide a positive prediction for the
eventual outcome, but Adobe ain't Sun, but then Sun ain't either now.

Does Adobe have the right corporate culture to nurture an open-source
project?   I like the way they are running Flex otherwise, but maybe I
indulged in wishful thinking on the Linux support.

John

Guy Morton wrote:
> Wouldn't you still be able to build your own IDE using the free SDK?
> As I understand it a lot of people do this now to avoid having to buy
> FB, and I imagine Linux users would be relatively common within that
> group.
>
> If sales for a linux version of FB are too low to justify the ongoing
> cost of development, you can hardly blame Adobe for that. Their
> support for *nix is better than most.
>
> Guy
>
>


Re: [flexcoders] Flex Builder on Linux been scrapped ?

2009-04-30 Thread Matt Chotin
I'm going to continue to stay out of the fray, but just to be clear, that 
conversation is about Flex Builder, not the SDK.  We will always support 
developers on Linux, it's a question of what we tools beyond the SDK we provide.

We'll be looking to share more information on our plans in a few weeks.

Matt


On 4/30/09 4:44 PM, "Guy Morton"  wrote:






Wouldn't you still be able to build your own IDE using the free SDK? As I 
understand it a lot of people do this now to avoid having to buy FB, and I 
imagine Linux users would be relatively common within that group.

If sales for a linux version of FB are too low to justify the ongoing cost of 
development, you can hardly blame Adobe for that. Their support for *nix is 
better than most.

Guy


On 01/05/2009, at 9:35 AM, john fisher wrote:




If Adobe drops Linux support for Flex, then I will probably drop Flex.

I won't maintain a Windows or Mac box at home, and my company really
doesn't want to invest in any more Windows apps. I don't want to invest
myself in technology I can't run independently of whoever I happen to be
working for today. Seeing the fickleness of the corporate owners of
development tools is what sent us to Linux and open source tools in the
first place. We can't bet our products on some whim of Adobe. My current
all-Linux proof-of-concept project will be blown out of the water, and
I'll have to get up to speed on Java.

-grieving already

John

and at a time when Linux is gnawing away at laptop market from below and
the desktop market is dying...








[flexcoders] Re: Eclipse Crashing

2009-04-30 Thread Geoffrey
I'll certainly try everyone's suggestions when I get back from vacation. :D

Thanks for everyone's help/advise.

--- In flexcoders@yahoogroups.com, "Kevin F. Benz"  wrote:
>
> Oh. I thought you can get past the module dependency by linking the SWC and
> binding the source to the swc in the home project allowing you to close the
> library projects.
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Kevin F. Benz
> Sent: Thursday, April 30, 2009 3:23 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Eclipse Crashing
> 
>  
> 
> 
> 
> 
> 
> 
> Here are few things I have found.  They may help, they may not.
> 
>  
> 
> Ultimately I find that projects under version control have been my issues.
> Let me explain. I have found (at least through SDK 3.0 and 3.1) that an
> upgrade to the SDK causes the local project file to go through some update
> but when a later SCM update occurs, you get an old versions project files
> and crasho. The new SDK is expecting a known project file and gets
> hair-balled by what came in from source control. I have tried cutting and
> pasting another copy, reverting, trying to fix by hand, etc but in the end,
> I find that I have had to create a new blank project and copy all the files
> (except for the project files) and reconfigure the library path, and the
> rest of the goo. You will need the new library properties, and other . (dot)
> files as well from the new project. Bring in the old ones and you die. I'll
> bet you can close each of your projects and the crashes will stop when the
> offending project(s) is closed. 
> 
>  
> 
> The list of source files to be compiled can be corrupted.  I believe this is
> the real issue with reverting project files but don't have a good handle on
> why - but you should try disabling incremental compilation.  Add
> "-incremental=false" to the compiler settings in the Flex Compiler tab of
> the Properties.  This will effectively ignore the .cache files.  Compile
> times will be longer - but hopefully that is offset by having a stable
> environment. Flex uses cache files to persist previously compiled objects.
> And a clean build doesn't necessarily refresh the cache files.  It is benign
> to backup and remove those .cache files. They live in a few places so you
> will need to find the
> .metadata/.plugins/org.eclipse.core.resources/.projects directory and within
> that directory, you will find one for every Flex project. For example
> ./metadata/.plugins/org.eclipse.core.resoures/.projects/MYPROJECT/com.adobe.
> flexbuilder.project/MyProject.cache. For each release, I like to clean these
> out regardless.
> 
> K
> 
>  
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Geoffrey
> Sent: Thursday, April 30, 2009 11:30 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Eclipse Crashing
> 
>  
> 
> 
> 
> 
> 
> 
> 
> Recently, FB(Eclipse) keeps crashing on me. I've looked all over the place
> for solutions, have tried many, but none seem to do the trick.
> 
> My current setup is:
> Eclipse 3.4.2 (M20090211-1700)
> FB 3.0.2.214193
> Flex SDK 3.3
> JDK 1.6.0_13
> 
> My eclipse.ini is:
> -showsplash
> org.eclipse.platform
> -framework
> plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
> -vm
> C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
> -vmargs
> -Xms1024M
> -Xmx1024M
> -XX:PermSize=256M
> -XX:MaxPermSize=512M
> -XX:+UseParallelGC
> -Dosgi.requiredJavaVersion=1.5
> -Djava.net.preferIPv4Stack=true
> -Dcom.sun.management.jmxremote
> 
> Our Flex application is a collection of 30 projects (one main one and 29
> flex library projects). All have to be open at the same time or else you get
> build(dependency) errors.
> 
> There's a few projects that are linked to many of the other projects. For
> example, we have a project that holds all of the VOs. Making changes to that
> project always took a long time to build (several minutes), but now it
> crashes with OutOfMemory errors.
> 
> I've run jconsole to watch the JVM performance statistics. I don't fully
> understand all the numbers, but I can see that my PS Old Gen pool gets 100%
> full, and that's when I usually expect a crash to happen soon.
> 
> My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it
> seems. If I raise -Xmx higher than 1024M, Eclipse won't even start.
> 
> Anyone have any suggestions?
> 
> Thanks,
> ~Geoff
>




Re: [flexcoders] Flex Builder on Linux been scrapped ?

2009-04-30 Thread Guy Morton
Wouldn't you still be able to build your own IDE using the free SDK?  
As I understand it a lot of people do this now to avoid having to buy  
FB, and I imagine Linux users would be relatively common within that  
group.


If sales for a linux version of FB are too low to justify the ongoing  
cost of development, you can hardly blame Adobe for that. Their  
support for *nix is better than most.


Guy


On 01/05/2009, at 9:35 AM, john fisher wrote:




If Adobe drops Linux support for Flex, then I will probably drop Flex.

I won't maintain a Windows or Mac box at home, and my company really
doesn't want to invest in any more Windows apps. I don't want to  
invest
myself in technology I can't run independently of whoever I happen  
to be

working for today. Seeing the fickleness of the corporate owners of
development tools is what sent us to Linux and open source tools in  
the
first place. We can't bet our products on some whim of Adobe. My  
current

all-Linux proof-of-concept project will be blown out of the water, and
I'll have to get up to speed on Java.

-grieving already

John

and at a time when Linux is gnawing away at laptop market from below  
and

the desktop market is dying...







Re: [flexcoders] Flex Builder on Linux been scrapped ?

2009-04-30 Thread john fisher
If Adobe drops Linux support for Flex, then I will probably drop Flex.

I won't maintain a Windows or Mac box at home, and my company really
doesn't want to invest in any more Windows apps. I don't want to invest
myself in technology I can't run independently of whoever I happen to be
working for today. Seeing the fickleness of the corporate owners of
development tools is what sent us to Linux and open source tools in the
first place. We can't bet our products on some whim of Adobe. My current
all-Linux proof-of-concept project will be blown out of the water, and
I'll have to get up to speed on Java.

-grieving already

John

and at a time when Linux is gnawing away at laptop market from below and
the desktop market is dying...



Re: [flexcoders] Re: Why would "as" keyword not work

2009-04-30 Thread Ian Thomas
Steve,
   My guess at what is going on - based on my limited understanding of
what you're doing - is:

- You have your class definition (DetailData) compiled in to your main
application and into your module.
- You load your module into your main application
- Because you have not specifed that you want your module to be in the
same ApplicationDomain as the main application, its class definitions
remain segregated from the main application's class definition.
- Your module creates the DetailData (whether on return from remoting
call or not) by instantiating it's own definition of DetailData (call
it class DetailDataA, if that helps).
- The event fires from your module to your application.
- Your event handler tries to cast the created object - which is of
type DetailDataA - to its _own_ definition of DetailData (call it
class DetailDataB). Hence your error.

No matter that the two class definitions are actually identical -
because they are not in the same ApplicationDomain, the code treats
them as separate.

Now, if you alter your module loading so that you pass in
ApplicationDomain.currentDomain as the domain you want the module to
load into, the problem should go away.
(ModuleLoader.applicationDomain=ApplicationDomain.currentDomain)

I hope that makes some sort of sense. Of course, I may have totally
misunderstood your situation!

HTH,
   Ian

On Thu, Apr 30, 2009 at 9:11 PM, valdhor  wrote:
>
>
> Alex - I have read your Modules presentation about twenty times so far as
> well as any other documentation I could find on Modules and Application
> Domains. I'm pretty sure I understand everything so far.
>
> Pedro - The ValueObject is only being used by this particular module - not
> by the application (Or any other module).
>
> Ian - All other modules work fine with the exchange data. Note that the
> exchange data and this value object are two different things. I am NOT
> passing this value object as part of the exchange data. The VO gets created
> from a remoteObject call.
>
> All the above being said, I think I have found my problem. The click event
> was handled in the renderer. This works fine in an application but does not
> seem to in a module. By moving the click handler to the datagrid component,
> the error disappears.
>
> This problem crept in whilst I was moving my monolithic app to a series of
> modules.
>
> Thanks for taking the time to push me in the right direction.
>
> Steve
>
> If anyone can enlighten me as to why click events in item renderers work
> differently in modules than applications, please do.
>
> --- In flexcoders@yahoogroups.com, Ian Thomas  wrote:
>>
>> As Pedro says - my guess would be that you are passing a DetailData
>> object from one module to the other when you haven't loaded the
>> modules in the same ApplicationDomain (or from one compiled .swf to
>> another, if you're not using modules).
>>
>> Take a look at the documentation for ApplicationDomain.
>>
>> HTH,
>> Ian
>>
>> On Thu, Apr 30, 2009 at 6:18 PM, Pedro Sena  wrote:
>> >
>> >
>> > Are you using modules?
>> >
>> > On Thu, Apr 30, 2009 at 2:17 PM, valdhor 
>> > wrote:
>> >>
>> >>
>> >> Hmmm. Looks like I misspoke. now I get...
>> >>
>> >> Type coercion failed. Cannot convert
>> >> Model.ValueObjects::detaild...@11c0a941 to
>> >> Model.ValueObjects.DetailData.
>> >>
>> >> What is the difference between a
>> >>
>> >> Model.ValueObjects::DetailData
>> >>
>> >> and a
>> >>
>> >> Model.ValueObjects.DetailData
>> >>
>>
>
> 


[flexcoders] Extending the AdvancedDataGridGroupItemRenderer

2009-04-30 Thread menapole
I would like to modify the text  and style of text displayed in an
AdvancedDataGrid.  I figure I need to extend the
AdvancedDataGridGroupItemRenderer because I want the changes to effect
both branch and leaf nodes.
So far I've had no luck because I'm not sure which functions I should be
overriding to accomplish this.

Any help it finding a starting point would be appreciated.

Thanks




[flexcoders] Streaming video does not recover from buffer empty

2009-04-30 Thread rituraj_tiwari

Folks,
I am playing an FLV over RTMP using Red5 0.7. My video player is written in
Flex/AS3. It works fine for most videos. However, for some videos, I see the
following traces in my Flex debugger:



onMetaData: 

videodatarate : 0

audiosamplerate : 44100

height : 720

framerate : 23.97598627787307

filesize : 7897745

duration : 39.623

videocodecid : 2

audiocodecid : 2

width : 1280

stereo : true

audiosamplesize : 16

Buffer Full

Buffer Empty



These traces are generated by my code in the video player. Once the buffer
empty message is displayed, the video player seems unable to fill its buffer
and video playback is halted.


Does anyone have any insights into what might be going wrong here?


Thanks.

-Raj

-- 
View this message in context: 
http://www.nabble.com/Streaming-video-does-not-recover-from-buffer-empty-tp23322560p23322560.html
Sent from the FlexCoders mailing list archive at Nabble.com.


Re: [flexcoders]Where does my SWF gain it's weight?

2009-04-30 Thread dorkie dork from dorktown
Ah forgot I had embedded fonts. About 620kb was shaved off when I commented
out those bad boys. FWIW it was "lucinda grand" bold and normal. I didn't
think they would weigh in that much.

Has Adobe thought of hosting common embedded font RSLs like they are hosting
the Flex Framework RSL?

For example,
Once someone downloads, "Lucinda Grand" embedded font from Adobe's site it
gets cached, just like the Flex framework RSL and they never have to
download that font again.


On Thu, Apr 2, 2009 at 3:32 AM, bjorn  wrote:

>   Embedding fonts is a major one ...
>
> - bjorn
>
> 2009/4/2 Gregor Kiddie 
>
>>I don’t think FB will generate modules reports for you, and I
>> certainly cannot see any options that would.
>>
>> Can I suggest using ANT to compile your app? It gives you much more
>> flexibility for precisely this sort of reason.
>>
>> The alternative is to run mxmlc from a CLI and specify all the parameters
>> yourself as a once off to get the report.
>>
>>
>>
>> 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
>>   --
>>
>> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
>> Behalf Of *Guy Morton
>> *Sent:* 01 April 2009 20:28
>> *To:* flexcoders@yahoogroups.com
>> *Subject:* Re: [flexcoders]Where does my SWF gain it's weight?
>>
>>
>>
>> FlexBuilder
>>
>>
>>
>> How can I get individual reports? There's only one spot where I can
>> request the link report, afaik.
>>
>>
>>
>> Guy
>>
>>
>
>
> --
> 
> http://www.juicability.com - flex blog
> http://www.nospoiler.com - link to youtube videos without the spoilers
>  
>


[flexcoders] link colors in htmlText component

2009-04-30 Thread Tony Obermeit
When using the  within a mx:htmlText component, the link is not displayed
with the standard underline or blue color, anyone have technique for getting
links in the htmlcomponent to render like they would in a browser?


RE: [flexcoders] Eclipse Crashing

2009-04-30 Thread Kevin F. Benz
Oh. I thought you can get past the module dependency by linking the SWC and
binding the source to the swc in the home project allowing you to close the
library projects.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Kevin F. Benz
Sent: Thursday, April 30, 2009 3:23 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Eclipse Crashing

 






Here are few things I have found.  They may help, they may not.

 

Ultimately I find that projects under version control have been my issues.
Let me explain. I have found (at least through SDK 3.0 and 3.1) that an
upgrade to the SDK causes the local project file to go through some update
but when a later SCM update occurs, you get an old versions project files
and crasho. The new SDK is expecting a known project file and gets
hair-balled by what came in from source control. I have tried cutting and
pasting another copy, reverting, trying to fix by hand, etc but in the end,
I find that I have had to create a new blank project and copy all the files
(except for the project files) and reconfigure the library path, and the
rest of the goo. You will need the new library properties, and other . (dot)
files as well from the new project. Bring in the old ones and you die. I'll
bet you can close each of your projects and the crashes will stop when the
offending project(s) is closed. 

 

The list of source files to be compiled can be corrupted.  I believe this is
the real issue with reverting project files but don't have a good handle on
why - but you should try disabling incremental compilation.  Add
"-incremental=false" to the compiler settings in the Flex Compiler tab of
the Properties.  This will effectively ignore the .cache files.  Compile
times will be longer - but hopefully that is offset by having a stable
environment. Flex uses cache files to persist previously compiled objects.
And a clean build doesn't necessarily refresh the cache files.  It is benign
to backup and remove those .cache files. They live in a few places so you
will need to find the
.metadata/.plugins/org.eclipse.core.resources/.projects directory and within
that directory, you will find one for every Flex project. For example
./metadata/.plugins/org.eclipse.core.resoures/.projects/MYPROJECT/com.adobe.
flexbuilder.project/MyProject.cache. For each release, I like to clean these
out regardless.

K

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Geoffrey
Sent: Thursday, April 30, 2009 11:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Eclipse Crashing

 







Recently, FB(Eclipse) keeps crashing on me. I've looked all over the place
for solutions, have tried many, but none seem to do the trick.

My current setup is:
Eclipse 3.4.2 (M20090211-1700)
FB 3.0.2.214193
Flex SDK 3.3
JDK 1.6.0_13

My eclipse.ini is:
-showsplash
org.eclipse.platform
-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vm
C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
-vmargs
-Xms1024M
-Xmx1024M
-XX:PermSize=256M
-XX:MaxPermSize=512M
-XX:+UseParallelGC
-Dosgi.requiredJavaVersion=1.5
-Djava.net.preferIPv4Stack=true
-Dcom.sun.management.jmxremote

Our Flex application is a collection of 30 projects (one main one and 29
flex library projects). All have to be open at the same time or else you get
build(dependency) errors.

There's a few projects that are linked to many of the other projects. For
example, we have a project that holds all of the VOs. Making changes to that
project always took a long time to build (several minutes), but now it
crashes with OutOfMemory errors.

I've run jconsole to watch the JVM performance statistics. I don't fully
understand all the numbers, but I can see that my PS Old Gen pool gets 100%
full, and that's when I usually expect a crash to happen soon.

My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it
seems. If I raise -Xmx higher than 1024M, Eclipse won't even start.

Anyone have any suggestions?

Thanks,
~Geoff





RE: [flexcoders] Application's initialize event

2009-04-30 Thread Alex Harui
The event fires, but the response may not come in for a very long time on a 
slow network

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of markgoldin_2000
Sent: Thursday, April 30, 2009 2:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Application's initialize event





I am using this event to prepare some user information before the application 
is loaded. Or at least, I am assuming that.
On my computer I am consistly getting user data (just another server call) 
before application loads but on a user computer the application loads before 
the user data. My question is it correct to assume that
the initialize event fires before the whole thing is loaded?

Thanks



[flexcoders] Gumbo Spark List: Behavior of default item renderer

2009-04-30 Thread daxdr9
I've been playing around with the Spark List and see that, by default, very 
long text causes the horizontal scrollbar to appear in addition to creating 
multiple lines of text.  How can I configure the renderer so that text is only 
wrapped, preventing the horizontal scrollbar from being necessary?



[flexcoders] chet->flex->animation/graphics->book

2009-04-30 Thread Brad Bueche
'nuff said.

Make it so, #1.

brad


RE: [flexcoders] Eclipse Crashing

2009-04-30 Thread Kevin F. Benz
Here are few things I have found.  They may help, they may not.

 

Ultimately I find that projects under version control have been my issues.
Let me explain. I have found (at least through SDK 3.0 and 3.1) that an
upgrade to the SDK causes the local project file to go through some update
but when a later SCM update occurs, you get an old versions project files
and crasho. The new SDK is expecting a known project file and gets
hair-balled by what came in from source control. I have tried cutting and
pasting another copy, reverting, trying to fix by hand, etc but in the end,
I find that I have had to create a new blank project and copy all the files
(except for the project files) and reconfigure the library path, and the
rest of the goo. You will need the new library properties, and other . (dot)
files as well from the new project. Bring in the old ones and you die. I'll
bet you can close each of your projects and the crashes will stop when the
offending project(s) is closed. 

 

The list of source files to be compiled can be corrupted.  I believe this is
the real issue with reverting project files but don't have a good handle on
why - but you should try disabling incremental compilation.  Add
"-incremental=false" to the compiler settings in the Flex Compiler tab of
the Properties.  This will effectively ignore the .cache files.  Compile
times will be longer - but hopefully that is offset by having a stable
environment. Flex uses cache files to persist previously compiled objects.
And a clean build doesn't necessarily refresh the cache files.  It is benign
to backup and remove those .cache files. They live in a few places so you
will need to find the
.metadata/.plugins/org.eclipse.core.resources/.projects directory and within
that directory, you will find one for every Flex project. For example
./metadata/.plugins/org.eclipse.core.resoures/.projects/MYPROJECT/com.adobe.
flexbuilder.project/MyProject.cache. For each release, I like to clean these
out regardless.

K

 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Geoffrey
Sent: Thursday, April 30, 2009 11:30 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Eclipse Crashing

 






Recently, FB(Eclipse) keeps crashing on me. I've looked all over the place
for solutions, have tried many, but none seem to do the trick.

My current setup is:
Eclipse 3.4.2 (M20090211-1700)
FB 3.0.2.214193
Flex SDK 3.3
JDK 1.6.0_13

My eclipse.ini is:
-showsplash
org.eclipse.platform
-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vm
C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
-vmargs
-Xms1024M
-Xmx1024M
-XX:PermSize=256M
-XX:MaxPermSize=512M
-XX:+UseParallelGC
-Dosgi.requiredJavaVersion=1.5
-Djava.net.preferIPv4Stack=true
-Dcom.sun.management.jmxremote

Our Flex application is a collection of 30 projects (one main one and 29
flex library projects). All have to be open at the same time or else you get
build(dependency) errors.

There's a few projects that are linked to many of the other projects. For
example, we have a project that holds all of the VOs. Making changes to that
project always took a long time to build (several minutes), but now it
crashes with OutOfMemory errors.

I've run jconsole to watch the JVM performance statistics. I don't fully
understand all the numbers, but I can see that my PS Old Gen pool gets 100%
full, and that's when I usually expect a crash to happen soon.

My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it
seems. If I raise -Xmx higher than 1024M, Eclipse won't even start.

Anyone have any suggestions?

Thanks,
~Geoff





[flexcoders] Flash CS4 3d to Flex, issue with fieldOfView being different in Flex [1 Attachment]

2009-04-30 Thread Guillaume Malartre
Hi,

I'm trying to create a work flow between FlashCS4 3d assets and Flex. I
almost got it working with the perspectiveProjection assigned in each
MovieClip.

I attached to this email a .fla showing that wherever you put on the Flash
CS4 stage the "ui_book_teachersintro" it get its perspectiveProjection
correctly once compiled.

In the Flex project I load this class and when I add it to the stage, the
instance have the same perspectiveProjections' values. But it doesn't render
the fieldOfView the same way Flash CS4 does.

In Flash I assign fieldOfView = 33 and in Flex its around 61 for an
equivalence. Anyone know why?

There's no documentation or tutorial about bringing Flash CS4 3d inside
Flex.

I tried with SDK 3.3.0, 4.0.0 and its the same..



Merci,
Guillaume

Guillaume Malartre
Consultant, Programmeur-Analyste
(514)528-8066, 1(888)528-8066

Besoin d'aide en maths? Need help in maths?
www.Netmaths.net, www.Buzzmath.com


[flexcoders] Application's initialize event

2009-04-30 Thread markgoldin_2000
I am using this event to prepare some user information before the application 
is loaded. Or at least, I am assuming that.
On my computer I am consistly getting user data (just another server call) 
before application loads but on a user computer the application loads before 
the user data. My question is it correct to assume that 
the initialize event fires before the whole thing is loaded?

Thanks



RE: [flexcoders] Re: Why would "as" keyword not work

2009-04-30 Thread Alex Harui
It all comes down to your applicationDomain topology.  I'd be checking 
link-reports for every SWF in the project.  These errors usually indicate that 
a class is in two different SWFs loaded into sibling appDoms.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of valdhor
Sent: Thursday, April 30, 2009 1:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Why would "as" keyword not work





The VO is being used by this module (And is not used anywhere else). It gets 
populated from a remote object call that this module makes on creationcomplete. 
The arrayCollection of these returned VO's are used to populate a dataGrid.

Now, one column of the dataGrid uses an item renderer based on linkButton. When 
a link is clicked I'd like to have the data in that row passed to another 
component. This other component expects a VO in its constructor.

So, in the itemRenderer, I try to coerce the data property of the event (Which 
should be the VO since the datagrid uses it AND the debugger says it is the 
VO). The coercion fails and I get a null object passed to my component.

This works fine in an application but fails in a module. What I have done is 
moved the click event handler up one level to the datagrid itself and used 
event.target.selectedItem instead of event.target.data and it works fine.

--- In flexcoders@yahoogroups.com, Pedro 
Sena  wrote:
>
> Pedro - The ValueObject is only being used by this particular module - not
> by the application (Or any other module).
>
> If the VO is not being used, why are you trying to cast to it?
>
> I think I didn't understand.
>
> BTW, Have you done the test that I suggest ?
>
> Regards,
>
> On Thu, Apr 30, 2009 at 5:11 PM, valdhor wrote:
>
> >
> >
> > Alex - I have read your Modules presentation about twenty times so far as
> > well as any other documentation I could find on Modules and Application
> > Domains. I'm pretty sure I understand everything so far.
> >
> > Pedro - The ValueObject is only being used by this particular module - not
> > by the application (Or any other module).
> >
> > Ian - All other modules work fine with the exchange data. Note that the
> > exchange data and this value object are two different things. I am NOT
> > passing this value object as part of the exchange data. The VO gets created
> > from a remoteObject call.
> >
> > All the above being said, I think I have found my problem. The click event
> > was handled in the renderer. This works fine in an application but does not
> > seem to in a module. By moving the click handler to the datagrid component,
> > the error disappears.
> >
> > This problem crept in whilst I was moving my monolithic app to a series of
> > modules.
> >
> > Thanks for taking the time to push me in the right direction.
> >
> > Steve
> >
> > If anyone can enlighten me as to why click events in item renderers work
> > differently in modules than applications, please do.
> >
> >
> > --- In flexcoders@yahoogroups.com 
> > , Ian
> > Thomas  wrote:
> > >
> > > As Pedro says - my guess would be that you are passing a DetailData
> > > object from one module to the other when you haven't loaded the
> > > modules in the same ApplicationDomain (or from one compiled .swf to
> > > another, if you're not using modules).
> > >
> > > Take a look at the documentation for ApplicationDomain.
> > >
> > > HTH,
> > > Ian
> > >
> > > On Thu, Apr 30, 2009 at 6:18 PM, Pedro Sena  wrote:
> > > >
> > > >
> > > > Are you using modules?
> > > >
> > > > On Thu, Apr 30, 2009 at 2:17 PM, valdhor 
> > > > wrote:
> > > >>
> > > >>
> > > >> Hmmm. Looks like I misspoke. now I get...
> > > >>
> > > >> Type coercion failed. Cannot convert
> > > >> Model.ValueObjects::detaild...@11c0a941 to
> > Model.ValueObjects.DetailData.
> > > >>
> > > >> What is the difference between a
> > > >>
> > > >> Model.ValueObjects::DetailData
> > > >>
> > > >> and a
> > > >>
> > > >> Model.ValueObjects.DetailData
> > > >>
> > >
> >
> >
> >
>
>
>
> --
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer
> * Sun Certified Web Component Developer
> */
>



[flexcoders] Re: popup progress bar will uploading file

2009-04-30 Thread Cato Paus

Main App:



http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="initApp();">



@









And the popUp, that dispatch the Complete Event, What I have done here
is faking the Complete event by using a button, hope you figure it out
:)



PopUp.mxml put it in the same dir as your running app..



http://www.adobe.com/2006/mxml";
layout="absolute" width="400" height="300">








--- In flexcoders@yahoogroups.com, "stinasius"  wrote:
>
> do you mind sharing an example?
>




Re: [flexcoders] Re: Formatting a bound value within a Text object

2009-04-30 Thread Tom McNeer
Hi Tim,

Thanks for straightening me out. I could have sworn I already tried this and
didn't get the bound value.

On Thu, Apr 30, 2009 at 4:46 PM, Tim Hoff  wrote:

>id="df" formatString="-MM-DD"/>
>
>  text="{ df.format(object.myDate) }"/>
>





But obviously I was wrong. I knew it was something simple.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Re: Formatting a bound value within a Text object

2009-04-30 Thread Tim Hoff

Hi Tom,







-TH

--- In flexcoders@yahoogroups.com, Tom McNeer  wrote:
>
> This seems so simple, yet I can't figure it out -- nor can I find
guidance
> from the docs or from Google.
>
> I want to format a date which is being returned from a RemoteObject
call.
> The object created from the service call is bindable, so I can display
the
> object.myDate as it changes.
>
> But I need to format the date after it changes. And I'd prefer to do
it
> within my view, rather than the model.
>
> Do I need to create a separate listener for the change event on the
bindable
> object somehow, or is there a simpler way?
>
> --
> Thanks,
>
> Tom
>
> Tom McNeer
> MediumCool
> http://www.mediumcool.com
> 1735 Johnson Road NE
> Atlanta, GA 30306
> 404.589.0560
>




[flexcoders] Re: Why would "as" keyword not work

2009-04-30 Thread valdhor
The VO is being used by this module (And is not used anywhere else). It gets 
populated from a remote object call that this module makes on creationcomplete. 
The arrayCollection of these returned VO's are used to populate a dataGrid.

Now, one column of the dataGrid uses an item renderer based on linkButton. When 
a link is clicked I'd like to have the data in that row passed to another 
component. This other component expects a VO in its constructor.

So, in the itemRenderer, I try to coerce the data property of the event (Which 
should be the VO since the datagrid uses it AND the debugger says it is the 
VO). The coercion fails and I get a null object passed to my component.

This works fine in an application but fails in a module. What I have done is 
moved the click event handler up one level to the datagrid itself and used 
event.target.selectedItem instead of event.target.data and it works fine.


--- In flexcoders@yahoogroups.com, Pedro Sena  wrote:
>
> Pedro - The ValueObject is only being used by this particular module - not
> by the application (Or any other module).
> 
> If the VO is not being used, why are you trying to cast to it?
> 
> I think I didn't understand.
> 
> BTW, Have you done the test that I suggest ?
> 
> Regards,
> 
> On Thu, Apr 30, 2009 at 5:11 PM, valdhor wrote:
> 
> >
> >
> > Alex - I have read your Modules presentation about twenty times so far as
> > well as any other documentation I could find on Modules and Application
> > Domains. I'm pretty sure I understand everything so far.
> >
> > Pedro - The ValueObject is only being used by this particular module - not
> > by the application (Or any other module).
> >
> > Ian - All other modules work fine with the exchange data. Note that the
> > exchange data and this value object are two different things. I am NOT
> > passing this value object as part of the exchange data. The VO gets created
> > from a remoteObject call.
> >
> > All the above being said, I think I have found my problem. The click event
> > was handled in the renderer. This works fine in an application but does not
> > seem to in a module. By moving the click handler to the datagrid component,
> > the error disappears.
> >
> > This problem crept in whilst I was moving my monolithic app to a series of
> > modules.
> >
> > Thanks for taking the time to push me in the right direction.
> >
> > Steve
> >
> > If anyone can enlighten me as to why click events in item renderers work
> > differently in modules than applications, please do.
> >
> >
> > --- In flexcoders@yahoogroups.com , Ian
> > Thomas  wrote:
> > >
> > > As Pedro says - my guess would be that you are passing a DetailData
> > > object from one module to the other when you haven't loaded the
> > > modules in the same ApplicationDomain (or from one compiled .swf to
> > > another, if you're not using modules).
> > >
> > > Take a look at the documentation for ApplicationDomain.
> > >
> > > HTH,
> > > Ian
> > >
> > > On Thu, Apr 30, 2009 at 6:18 PM, Pedro Sena  wrote:
> > > >
> > > >
> > > > Are you using modules?
> > > >
> > > > On Thu, Apr 30, 2009 at 2:17 PM, valdhor 
> > > > wrote:
> > > >>
> > > >>
> > > >> Hmmm. Looks like I misspoke. now I get...
> > > >>
> > > >> Type coercion failed. Cannot convert
> > > >> Model.ValueObjects::detaild...@11c0a941 to
> > Model.ValueObjects.DetailData.
> > > >>
> > > >> What is the difference between a
> > > >>
> > > >> Model.ValueObjects::DetailData
> > > >>
> > > >> and a
> > > >>
> > > >> Model.ValueObjects.DetailData
> > > >>
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer
> * Sun Certified Web Component Developer
> */
>




[flexcoders] Re: Eclipse Crashing

2009-04-30 Thread Geoffrey
Gotcha.  Will try that to see if it makes a difference.

--- In flexcoders@yahoogroups.com, Peter Farland  wrote:
>
> Ah - for the second part, go into each of the Flex Library projects' 
> properties panels, look at the "Flex Build Path" section, then select the 
> "Library path" tab. Expand the "Flex 3" node and look at the *.swc files that 
> are listed (which is effectively your library path for compilation). For 
> example, a Flex project would need playerglobal.swc and framework.swc at a 
> minimum, but other swcs may not be needed so you could try reducing the list 
> to the bare minimum to save memory.
> 
> Pete
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of Geoffrey
> Sent: Thursday, April 30, 2009 4:33 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Eclipse Crashing
> 
> Yes, there are AIR and Flex projects in the same workspace, but at the 
> moment, the AIR projects are closed.
> 
> I'm not sure what you mean by the second response.  Could you give me an 
> example?
> 
> --- In flexcoders@yahoogroups.com, Peter Farland  wrote:
> >
> > 
> > Are you mixing AIR and Flex library projects in the same workspace?
> > 
> > Have you tried excluding all of the Flex SDK swcs from the project library 
> > path that are not needed by each project?
> > 
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > Behalf Of Geoffrey
> > Sent: Thursday, April 30, 2009 2:30 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Eclipse Crashing
> > 
> > Recently, FB(Eclipse) keeps crashing on me.  I've looked all over the place 
> > for solutions, have tried many, but none seem to do the trick.
> > 
> > My current setup is:
> > Eclipse 3.4.2 (M20090211-1700)
> > FB 3.0.2.214193
> > Flex SDK 3.3
> > JDK 1.6.0_13
> > 
> > My eclipse.ini is:
> > -showsplash
> > org.eclipse.platform
> > -framework
> > plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
> > -vm
> > C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
> > -vmargs
> > -Xms1024M
> > -Xmx1024M
> > -XX:PermSize=256M
> > -XX:MaxPermSize=512M
> > -XX:+UseParallelGC
> > -Dosgi.requiredJavaVersion=1.5
> > -Djava.net.preferIPv4Stack=true
> > -Dcom.sun.management.jmxremote
> > 
> > Our Flex application is a collection of 30 projects (one main one and 29 
> > flex library projects).  All have to be open at the same time or else you 
> > get build(dependency) errors.
> > 
> > There's a few projects that are linked to many of the other projects.  For 
> > example, we have a project that holds all of the VOs.  Making changes to 
> > that project always took a long time to build (several minutes), but now it 
> > crashes with OutOfMemory errors.
> > 
> > I've run jconsole to watch the JVM performance statistics.  I don't fully 
> > understand all the numbers, but I can see that my PS Old Gen pool gets 100% 
> > full, and that's when I usually expect a crash to happen soon.
> > 
> > My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it 
> > seems.  If I raise -Xmx higher than 1024M, Eclipse won't even start.
> > 
> > Anyone have any suggestions?
> > 
> > Thanks,
> >  ~Geoff
> > 
> > 
> > 
> > 
> > 
> > --
> > 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
>




RE: [flexcoders] Re: Eclipse Crashing

2009-04-30 Thread Peter Farland
Ah - for the second part, go into each of the Flex Library projects' properties 
panels, look at the "Flex Build Path" section, then select the "Library path" 
tab. Expand the "Flex 3" node and look at the *.swc files that are listed 
(which is effectively your library path for compilation). For example, a Flex 
project would need playerglobal.swc and framework.swc at a minimum, but other 
swcs may not be needed so you could try reducing the list to the bare minimum 
to save memory.

Pete


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Geoffrey
Sent: Thursday, April 30, 2009 4:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Eclipse Crashing

Yes, there are AIR and Flex projects in the same workspace, but at the moment, 
the AIR projects are closed.

I'm not sure what you mean by the second response.  Could you give me an 
example?

--- In flexcoders@yahoogroups.com, Peter Farland  wrote:
>
> 
> Are you mixing AIR and Flex library projects in the same workspace?
> 
> Have you tried excluding all of the Flex SDK swcs from the project library 
> path that are not needed by each project?
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of Geoffrey
> Sent: Thursday, April 30, 2009 2:30 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Eclipse Crashing
> 
> Recently, FB(Eclipse) keeps crashing on me.  I've looked all over the place 
> for solutions, have tried many, but none seem to do the trick.
> 
> My current setup is:
> Eclipse 3.4.2 (M20090211-1700)
> FB 3.0.2.214193
> Flex SDK 3.3
> JDK 1.6.0_13
> 
> My eclipse.ini is:
> -showsplash
> org.eclipse.platform
> -framework
> plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
> -vm
> C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
> -vmargs
> -Xms1024M
> -Xmx1024M
> -XX:PermSize=256M
> -XX:MaxPermSize=512M
> -XX:+UseParallelGC
> -Dosgi.requiredJavaVersion=1.5
> -Djava.net.preferIPv4Stack=true
> -Dcom.sun.management.jmxremote
> 
> Our Flex application is a collection of 30 projects (one main one and 29 flex 
> library projects).  All have to be open at the same time or else you get 
> build(dependency) errors.
> 
> There's a few projects that are linked to many of the other projects.  For 
> example, we have a project that holds all of the VOs.  Making changes to that 
> project always took a long time to build (several minutes), but now it 
> crashes with OutOfMemory errors.
> 
> I've run jconsole to watch the JVM performance statistics.  I don't fully 
> understand all the numbers, but I can see that my PS Old Gen pool gets 100% 
> full, and that's when I usually expect a crash to happen soon.
> 
> My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it 
> seems.  If I raise -Xmx higher than 1024M, Eclipse won't even start.
> 
> Anyone have any suggestions?
> 
> Thanks,
>  ~Geoff
> 
> 
> 
> 
> 
> --
> 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





[flexcoders] Re: Eclipse Crashing

2009-04-30 Thread Geoffrey
I probably don't REALLY need all these projects, but that's the way it was 
originally set up.  It's a very large project.  Hundreds of thousands of lines 
of code.  So that's how it evolved into the beast it is today.

We use Maven to build our production builds, but all the developers build via 
the IDE.

--- In flexcoders@yahoogroups.com, Pedro Sena  wrote:
>
> Do you REALLY need all those projects?
> 
> If they are not different modules (and even if they are) you should try to
> divide them in packages instead of Projects.
> 
> If this is REALLY necessary, I suggest you to build your project using maven
> instead of using your IDE to do it.
> 
> Even to manage this caothic scenario it will help you.
> 
> If you want to try maven, take a look at m2eclipse and flex-mojos
> 
> Regards
> 
> On Thu, Apr 30, 2009 at 4:52 PM, Peter Farland  wrote:
> 
> >
> >
> >
> > Are you mixing AIR and Flex library projects in the same workspace?
> >
> > Have you tried excluding all of the Flex SDK swcs from the project library
> > path that are not needed by each project?
> >
> >
> > -Original Message-
> > From: flexcoders@yahoogroups.com  [mailto:
> > flexcoders@yahoogroups.com ] On Behalf Of
> > Geoffrey
> > Sent: Thursday, April 30, 2009 2:30 PM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] Eclipse Crashing
> >
> > Recently, FB(Eclipse) keeps crashing on me. I've looked all over the place
> > for solutions, have tried many, but none seem to do the trick.
> >
> > My current setup is:
> > Eclipse 3.4.2 (M20090211-1700)
> > FB 3.0.2.214193
> > Flex SDK 3.3
> > JDK 1.6.0_13
> >
> > My eclipse.ini is:
> > -showsplash
> > org.eclipse.platform
> > -framework
> > plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
> > -vm
> > C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
> > -vmargs
> > -Xms1024M
> > -Xmx1024M
> > -XX:PermSize=256M
> > -XX:MaxPermSize=512M
> > -XX:+UseParallelGC
> > -Dosgi.requiredJavaVersion=1.5
> > -Djava.net.preferIPv4Stack=true
> > -Dcom.sun.management.jmxremote
> >
> > Our Flex application is a collection of 30 projects (one main one and 29
> > flex library projects). All have to be open at the same time or else you get
> > build(dependency) errors.
> >
> > There's a few projects that are linked to many of the other projects. For
> > example, we have a project that holds all of the VOs. Making changes to that
> > project always took a long time to build (several minutes), but now it
> > crashes with OutOfMemory errors.
> >
> > I've run jconsole to watch the JVM performance statistics. I don't fully
> > understand all the numbers, but I can see that my PS Old Gen pool gets 100%
> > full, and that's when I usually expect a crash to happen soon.
> >
> > My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it
> > seems. If I raise -Xmx higher than 1024M, Eclipse won't even start.
> >
> > Anyone have any suggestions?
> >
> > Thanks,
> > ~Geoff
> >
> > 
> >
> > --
> > 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
> >
> >  
> >
> 
> 
> 
> -- 
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer
> * Sun Certified Web Component Developer
> */
>




[flexcoders] Re: Eclipse Crashing

2009-04-30 Thread Geoffrey
Yes, there are AIR and Flex projects in the same workspace, but at the moment, 
the AIR projects are closed.

I'm not sure what you mean by the second response.  Could you give me an 
example?

--- In flexcoders@yahoogroups.com, Peter Farland  wrote:
>
> 
> Are you mixing AIR and Flex library projects in the same workspace?
> 
> Have you tried excluding all of the Flex SDK swcs from the project library 
> path that are not needed by each project?
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of Geoffrey
> Sent: Thursday, April 30, 2009 2:30 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Eclipse Crashing
> 
> Recently, FB(Eclipse) keeps crashing on me.  I've looked all over the place 
> for solutions, have tried many, but none seem to do the trick.
> 
> My current setup is:
> Eclipse 3.4.2 (M20090211-1700)
> FB 3.0.2.214193
> Flex SDK 3.3
> JDK 1.6.0_13
> 
> My eclipse.ini is:
> -showsplash
> org.eclipse.platform
> -framework
> plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
> -vm
> C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
> -vmargs
> -Xms1024M
> -Xmx1024M
> -XX:PermSize=256M
> -XX:MaxPermSize=512M
> -XX:+UseParallelGC
> -Dosgi.requiredJavaVersion=1.5
> -Djava.net.preferIPv4Stack=true
> -Dcom.sun.management.jmxremote
> 
> Our Flex application is a collection of 30 projects (one main one and 29 flex 
> library projects).  All have to be open at the same time or else you get 
> build(dependency) errors.
> 
> There's a few projects that are linked to many of the other projects.  For 
> example, we have a project that holds all of the VOs.  Making changes to that 
> project always took a long time to build (several minutes), but now it 
> crashes with OutOfMemory errors.
> 
> I've run jconsole to watch the JVM performance statistics.  I don't fully 
> understand all the numbers, but I can see that my PS Old Gen pool gets 100% 
> full, and that's when I usually expect a crash to happen soon.
> 
> My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it 
> seems.  If I raise -Xmx higher than 1024M, Eclipse won't even start.
> 
> Anyone have any suggestions?
> 
> Thanks,
>  ~Geoff
> 
> 
> 
> 
> 
> --
> 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
>




Re: [flexcoders] Re: Why would "as" keyword not work

2009-04-30 Thread Pedro Sena
Pedro - The ValueObject is only being used by this particular module - not
by the application (Or any other module).

If the VO is not being used, why are you trying to cast to it?

I think I didn't understand.

BTW, Have you done the test that I suggest ?

Regards,

On Thu, Apr 30, 2009 at 5:11 PM, valdhor wrote:

>
>
> Alex - I have read your Modules presentation about twenty times so far as
> well as any other documentation I could find on Modules and Application
> Domains. I'm pretty sure I understand everything so far.
>
> Pedro - The ValueObject is only being used by this particular module - not
> by the application (Or any other module).
>
> Ian - All other modules work fine with the exchange data. Note that the
> exchange data and this value object are two different things. I am NOT
> passing this value object as part of the exchange data. The VO gets created
> from a remoteObject call.
>
> All the above being said, I think I have found my problem. The click event
> was handled in the renderer. This works fine in an application but does not
> seem to in a module. By moving the click handler to the datagrid component,
> the error disappears.
>
> This problem crept in whilst I was moving my monolithic app to a series of
> modules.
>
> Thanks for taking the time to push me in the right direction.
>
> Steve
>
> If anyone can enlighten me as to why click events in item renderers work
> differently in modules than applications, please do.
>
>
> --- In flexcoders@yahoogroups.com , Ian
> Thomas  wrote:
> >
> > As Pedro says - my guess would be that you are passing a DetailData
> > object from one module to the other when you haven't loaded the
> > modules in the same ApplicationDomain (or from one compiled .swf to
> > another, if you're not using modules).
> >
> > Take a look at the documentation for ApplicationDomain.
> >
> > HTH,
> > Ian
> >
> > On Thu, Apr 30, 2009 at 6:18 PM, Pedro Sena  wrote:
> > >
> > >
> > > Are you using modules?
> > >
> > > On Thu, Apr 30, 2009 at 2:17 PM, valdhor 
> > > wrote:
> > >>
> > >>
> > >> Hmmm. Looks like I misspoke. now I get...
> > >>
> > >> Type coercion failed. Cannot convert
> > >> Model.ValueObjects::detaild...@11c0a941 to
> Model.ValueObjects.DetailData.
> > >>
> > >> What is the difference between a
> > >>
> > >> Model.ValueObjects::DetailData
> > >>
> > >> and a
> > >>
> > >> Model.ValueObjects.DetailData
> > >>
> >
>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


[flexcoders] How do I assign a custom CartesianTransform to a ColumnChart?

2009-04-30 Thread EddieBerman
Anyone with CartesianTransform knowledge?

I'm having a good bit of difficulty getting a dynamically assigned custom
CartesianTransform to work. I'm not finding a whole lot of sample code to learn
from and am currently slogging through the framework code trying to determine
what's up.

The problem is that once I assign the new Transform, the columns no longer
display. It seems that the new Tranform doesn't seem to have the needed
ColumnSeries data. Why this data isn't assigned when the Transform is created
and attached to the series is a bit of a mystery. Is there another step needed,
or is this a bug?


Hopefully someone with more knowledge or experience can point me in the right
direction.
I just spent way too much time with a related dataTransform issue before I
realized that it was indeed an unreported bug
(https://bugs.adobe.com/jira/browse/FLEXDMV-2103), and I'd prefer to know more
quickly if this too is a bug, or just inexperience.

I've made a simple demo to demonstrate the problem. The code is below.

Thanks in advance.
Eddie B.

Steps:
1) Compile and run the 2 files below (main app and custom transform)
2) Click the Change Data button to see that the data changes correctly.
3) Click the Set Transforms button to assign the new transform.
4) Click the Change Data button again to see the columns fail to display.


/* File 1 : The Main App */


http://www.adobe.com/2006/mxml"; >
























/ File 2 : The Custom Cartesian Transform /
package
{
import mx.charts.ColumnChart;
import mx.charts.chartClasses.CartesianTransform;

public class MyCartesianTransform extends CartesianTransform
{
public function MyCartesianTransform(){
super();
}
override public function transformCache(cache:Array /* of Object */,
xField:String, xConvertedField:String,
yField:String, yConvertedField:String):void
{
var series:MyColumnSeries = this.elements[0] as MyColumnSeries;
if (series != null) {
var str:String = series.owner.name;
trace("MyCartesianTransform: " + str);
} else {
trace("series == null. Where are the elements?");
}
super.transformCache(cache, xField, xConvertedField, yField, yConvertedField);
}
}




[flexcoders] How do I assign a custom CartestianTransform to a ColumnChart?

2009-04-30 Thread EddieBerman
Anyone with CartesianTransform knowledge?

I'm having a good bit of difficulty getting a dynamically assigned custom 
CartesianTransform to work. I'm not finding a whole lot of sample code to learn 
from and am currently slogging through the framework code trying to determine 
what's up. 

The problem is that once I assign the new Transform, the columns no longer 
display. It seems that the new Tranform doesn't seem to have the needed 
ColumnSeries data. Why this data isn't assigned when the Transform is created 
and attached to the series is a bit of a mystery. Is there another step needed, 
or is this a bug?


Hopefully someone with more knowledge or experience can point me in the right 
direction. 
I just spent way too much time with a related dataTransform issue before I 
realized that it was indeed an unreported bug 
(https://bugs.adobe.com/jira/browse/FLEXDMV-2103), and I'd prefer to know more 
quickly if this too is a bug, or just inexperience.

I've made a simple demo to demonstrate the problem. The code is below.

Thanks in advance.
Eddie B.

Steps:
1) Compile and run the 2 files below (main app and custom transform)
2) Click the Change Data button to see that the data changes correctly.
3) Click the Set Transforms button to assign the new transform.
4) Click the Change Data button again to see the columns fail to display.


/* File 1 : The Main App */


http://www.adobe.com/2006/mxml"; >
























/  File 2 : The Custom Cartesian Transform /
package
{
import mx.charts.ColumnChart;
import mx.charts.chartClasses.CartesianTransform;

public class MyCartesianTransform extends CartesianTransform
{   
public function MyCartesianTransform(){
super();
}
override public function transformCache(cache:Array /* of Object */,
xField:String, xConvertedField:String, 
yField:String, yConvertedField:String):void
{
var series:MyColumnSeries = this.elements[0] as MyColumnSeries;
if (series != null) {
var str:String = series.owner.name;
trace("MyCartesianTransform: " + str);
} else {
trace("series == null. Where are the elements?");
}
super.transformCache(cache, xField, xConvertedField, yField, yConvertedField);
}
}



[flexcoders] Re: Why would "as" keyword not work

2009-04-30 Thread valdhor
Alex - I have read your Modules presentation about twenty times so far as well 
as any other documentation I could find on Modules and Application Domains. I'm 
pretty sure I understand everything so far.

Pedro - The ValueObject is only being used by this particular module - not by 
the application (Or any other module).

Ian - All other modules work fine with the exchange data. Note that the 
exchange data and this value object are two different things. I am NOT passing 
this value object as part of the exchange data. The VO gets created from a 
remoteObject call.

All the above being said, I think I have found my problem. The click event was 
handled in the renderer. This works fine in an application but does not seem to 
in a module. By moving the click handler to the datagrid component, the error 
disappears.

This problem crept in whilst I was moving my monolithic app to a series of 
modules.


Thanks for taking the time to push me in the right direction.



Steve

If anyone can enlighten me as to why click events in item renderers work 
differently in modules than applications, please do.

--- In flexcoders@yahoogroups.com, Ian Thomas  wrote:
>
> As Pedro says - my guess would be that you are passing a DetailData
> object from one module to the other when you haven't loaded the
> modules in the same ApplicationDomain (or from one compiled .swf to
> another, if you're not using modules).
> 
> Take a look at the documentation for ApplicationDomain.
> 
> HTH,
>Ian
> 
> On Thu, Apr 30, 2009 at 6:18 PM, Pedro Sena  wrote:
> >
> >
> > Are you using modules?
> >
> > On Thu, Apr 30, 2009 at 2:17 PM, valdhor 
> > wrote:
> >>
> >>
> >> Hmmm. Looks like I misspoke. now I get...
> >>
> >> Type coercion failed. Cannot convert
> >> Model.ValueObjects::detaild...@11c0a941 to Model.ValueObjects.DetailData.
> >>
> >> What is the difference between a
> >>
> >> Model.ValueObjects::DetailData
> >>
> >> and a
> >>
> >> Model.ValueObjects.DetailData
> >>
>




Re: [flexcoders] Eclipse Crashing

2009-04-30 Thread Pedro Sena
Do you REALLY need all those projects?

If they are not different modules (and even if they are) you should try to
divide them in packages instead of Projects.

If this is REALLY necessary, I suggest you to build your project using maven
instead of using your IDE to do it.

Even to manage this caothic scenario it will help you.

If you want to try maven, take a look at m2eclipse and flex-mojos

Regards

On Thu, Apr 30, 2009 at 4:52 PM, Peter Farland  wrote:

>
>
>
> Are you mixing AIR and Flex library projects in the same workspace?
>
> Have you tried excluding all of the Flex SDK swcs from the project library
> path that are not needed by each project?
>
>
> -Original Message-
> From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On Behalf Of
> Geoffrey
> Sent: Thursday, April 30, 2009 2:30 PM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] Eclipse Crashing
>
> Recently, FB(Eclipse) keeps crashing on me. I've looked all over the place
> for solutions, have tried many, but none seem to do the trick.
>
> My current setup is:
> Eclipse 3.4.2 (M20090211-1700)
> FB 3.0.2.214193
> Flex SDK 3.3
> JDK 1.6.0_13
>
> My eclipse.ini is:
> -showsplash
> org.eclipse.platform
> -framework
> plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
> -vm
> C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
> -vmargs
> -Xms1024M
> -Xmx1024M
> -XX:PermSize=256M
> -XX:MaxPermSize=512M
> -XX:+UseParallelGC
> -Dosgi.requiredJavaVersion=1.5
> -Djava.net.preferIPv4Stack=true
> -Dcom.sun.management.jmxremote
>
> Our Flex application is a collection of 30 projects (one main one and 29
> flex library projects). All have to be open at the same time or else you get
> build(dependency) errors.
>
> There's a few projects that are linked to many of the other projects. For
> example, we have a project that holds all of the VOs. Making changes to that
> project always took a long time to build (several minutes), but now it
> crashes with OutOfMemory errors.
>
> I've run jconsole to watch the JVM performance statistics. I don't fully
> understand all the numbers, but I can see that my PS Old Gen pool gets 100%
> full, and that's when I usually expect a crash to happen soon.
>
> My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it
> seems. If I raise -Xmx higher than 1024M, Eclipse won't even start.
>
> Anyone have any suggestions?
>
> Thanks,
> ~Geoff
>
> 
>
> --
> 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
>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


RE: [flexcoders] Eclipse Crashing

2009-04-30 Thread Peter Farland

Are you mixing AIR and Flex library projects in the same workspace?

Have you tried excluding all of the Flex SDK swcs from the project library path 
that are not needed by each project?


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Geoffrey
Sent: Thursday, April 30, 2009 2:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Eclipse Crashing

Recently, FB(Eclipse) keeps crashing on me.  I've looked all over the place for 
solutions, have tried many, but none seem to do the trick.

My current setup is:
Eclipse 3.4.2 (M20090211-1700)
FB 3.0.2.214193
Flex SDK 3.3
JDK 1.6.0_13

My eclipse.ini is:
-showsplash
org.eclipse.platform
-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vm
C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
-vmargs
-Xms1024M
-Xmx1024M
-XX:PermSize=256M
-XX:MaxPermSize=512M
-XX:+UseParallelGC
-Dosgi.requiredJavaVersion=1.5
-Djava.net.preferIPv4Stack=true
-Dcom.sun.management.jmxremote

Our Flex application is a collection of 30 projects (one main one and 29 flex 
library projects).  All have to be open at the same time or else you get 
build(dependency) errors.

There's a few projects that are linked to many of the other projects.  For 
example, we have a project that holds all of the VOs.  Making changes to that 
project always took a long time to build (several minutes), but now it crashes 
with OutOfMemory errors.

I've run jconsole to watch the JVM performance statistics.  I don't fully 
understand all the numbers, but I can see that my PS Old Gen pool gets 100% 
full, and that's when I usually expect a crash to happen soon.

My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it 
seems.  If I raise -Xmx higher than 1024M, Eclipse won't even start.

Anyone have any suggestions?

Thanks,
 ~Geoff





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





Re: [flexcoders] Visual positioning difference between browsers [5 Attachments]

2009-04-30 Thread Tom McNeer
Hi Alex,

On Thu, Apr 30, 2009 at 2:23 PM, Alex Harui  wrote:

>I can’t quite picture what you are describing.
>

Perhaps the simplest thing is to provide some screenshots. Attached are pngs
for the same app, in the same state (just after loading), on four different
browsers. You'll note the different vertical position of the tabs.

The relevant code is:











The CSS for the Application contains:

Application {
color: #081263;
backgroundColor:#9bc8f2;
background-repeat:repeat-x;
background-image: Embed(source='assets/images/bg.png');

}

I've also attached the actual background png.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Help needed - assigning a custom CartesianTransform to a ColumnChart at runtime

2009-04-30 Thread EddieBerman
Anyone with CartesianTransform knowledge?

I'm having a good bit of difficulty getting a dynamically assigned custom 
CartesianTransform to work. I'm not finding a whole lot of sample code to learn 
from and am currently slogging through the framework code trying to determine 
what's up. Hopefully someone with more knowledge or experience can point me in 
the right direction. 
I just spent way too much time with a related dataTransform issue before I 
realized that it was an unreported bug 
(https://bugs.adobe.com/jira/browse/FLEXDMV-2103), and I'd prefer to know more 
quickly if this too is a bug, or just inexperience.

I've made a simple demo to demonstrate the problem. The code is below.

Thanks in advance.
Eddie B.

Steps:
1) Compile and run the 2 files below (main app and custom transform)
2) Click the Change Data button to see that the data changes correctly.
3) Click the Set Transforms button to assign the new transform.
4) Click the Change Data button again to see the problem.


/* File 1 : The Main App */


http://www.adobe.com/2006/mxml"; >
























/  File 2 : The Custom Cartesian Transform /
package
{
import mx.charts.ColumnChart;
import mx.charts.chartClasses.CartesianTransform;

public class MyCartesianTransform extends CartesianTransform
{   
public function MyCartesianTransform(){
super();
}
override public function transformCache(cache:Array /* of Object */,
xField:String, xConvertedField:String, 
yField:String, yConvertedField:String):void
{
var series:MyColumnSeries = this.elements[0] as MyColumnSeries;
if (series != null) {
var str:String = series.owner.name;
trace("MyCartesianTransform: " + str);
} else {
trace("series == null. Where are the elements?");
}
super.transformCache(cache, xField, xConvertedField, yField, yConvertedField);
}
}



Re: [flexcoders] Re: Why would "as" keyword not work

2009-04-30 Thread Ian Thomas
As Pedro says - my guess would be that you are passing a DetailData
object from one module to the other when you haven't loaded the
modules in the same ApplicationDomain (or from one compiled .swf to
another, if you're not using modules).

Take a look at the documentation for ApplicationDomain.

HTH,
   Ian

On Thu, Apr 30, 2009 at 6:18 PM, Pedro Sena  wrote:
>
>
> Are you using modules?
>
> On Thu, Apr 30, 2009 at 2:17 PM, valdhor 
> wrote:
>>
>>
>> Hmmm. Looks like I misspoke. now I get...
>>
>> Type coercion failed. Cannot convert
>> Model.ValueObjects::detaild...@11c0a941 to Model.ValueObjects.DetailData.
>>
>> What is the difference between a
>>
>> Model.ValueObjects::DetailData
>>
>> and a
>>
>> Model.ValueObjects.DetailData
>>


Re: [flexcoders] Re: Why would "as" keyword not work

2009-04-30 Thread Pedro Sena
Forgot to say:

In the same class(in your module) that is receiving the parameter from your
app.

Another thing, make sure your main app and your module are in the same
application domain, if you have some doubt about it, please post here the
code that you are using to load your module.

Regards

On Thu, Apr 30, 2009 at 3:29 PM, Pedro Sena  wrote:

> Hmmm
>
> Appears to be the most common problem...
>
> Please make a test:
>
> Create a dummy variable in the same class that you are using your VO,
> something like
>
> var dummy:DetailData = null;
>
> Keep the rest of the code and tell me the results.
>
> Regards
>
>
> On Thu, Apr 30, 2009 at 2:58 PM, valdhor wrote:
>
>>
>>
>> Yes, I have an interface which I am implementing in the modules. It has a
>> single set method that populates a single object with data.
>>
>> The data transfer is from application to modules only.
>>
>>
>> --- In flexcoders@yahoogroups.com , Pedro
>> Sena  wrote:
>> >
>> > Are you transfering data from one module to another(or to its parent) ?
>> >
>> > On Thu, Apr 30, 2009 at 2:41 PM, valdhor wrote:
>> >
>> > >
>> > >
>> > > Also, I now have it working if I change from trying to coerce to a
>> > > valueObject and just use a generic Object instead.
>> > >
>> > >
>> > > --- In flexcoders@yahoogroups.com 
>> > > > 40yahoogroups.com>, Pedro
>> > > Sena  wrote:
>> > > >
>> > > > Are you using modules?
>> > > >
>> > > > On Thu, Apr 30, 2009 at 2:17 PM, valdhor wrote:
>> > > >
>> > > > >
>> > > > >
>> > > > > Hmmm. Looks like I misspoke. now I get...
>> > > > >
>> > > > > Type coercion failed. Cannot convert
>> > > > > Model.ValueObjects::detaild...@11c0a941 to
>> > > Model.ValueObjects.DetailData.
>> > > > >
>> > > > > What is the difference between a
>> > > > >
>> > > > > Model.ValueObjects::DetailData
>> > > > >
>> > > > > and a
>> > > > >
>> > > > > Model.ValueObjects.DetailData
>> > > > >
>> > > > > --- In flexcoders@yahoogroups.com 
>> > > > > > 40yahoogroups.com>> > > 40yahoogroups.com>, Alex
>> > > > > Harui  wrote:
>> > > > > >
>> > > > > > Could be a compiler bug. If you look at the generated code you
>> might
>> > > get
>> > > > > a clue (or the actual SWF bytes)
>> > > > > >
>> > > > > > Alex Harui
>> > > > > > Flex SDK Developer
>> > > > > > Adobe Systems Inc.
>> > > > > > Blog: http://blogs.adobe.com/aharui
>> > > > > >
>> > > > > > From: flexcoders@yahoogroups.com 
>> > > > > > > 40yahoogroups.com>> > > 40yahoogroups.com> [mailto:
>> > > > > flexcoders@yahoogroups.com > 40yahoogroups.com> > > > 40yahoogroups.com>] On Behalf Of
>> > > > > valdhor
>> > > > > > Sent: Thursday, April 30, 2009 9:18 AM
>> > > > > > To: flexcoders@yahoogroups.com 
>> > > > > > > 40yahoogroups.com>>
>> > > 40yahoogroups.com>
>> > > > > > Subject: [flexcoders] Why would "as" keyword not work
>> > > > >
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > > > I have a bit of a perplexing problem (With a workaround).
>> > > > > >
>> > > > > > In a datagrid I have an itemRenderer that sets one column to a
>> > > > > linkButton. In the constructor I have...
>> > > > > >
>> > > > > > addEventListener(MouseEvent.CLICK, handleLinkClicked);
>> > > > > >
>> > > > > > I also have a valueObject imported...
>> > > > > >
>> > > > > > import Model.ValueObjects.DetailData;
>> > > > > >
>> > > > > > Now, in my eventListener I try to coerce the event.target.data
>> to a
>> > > > > detailData object like so...
>> > > > > >
>> > > > > > var currentItem:DetailData = event.target.data as DetailData;
>> > > > > >
>> > > > > > I have confirmed that event.target.data is an object of type
>> > > > > Model.ValueObjects.DetailData.
>> > > > > >
>> > > > > > If I set a breakpoint here, then currentItem is null.
>> > > > > >
>> > > > > > If I try...
>> > > > > >
>> > > > > > var currentItem:* = event.target.data;
>> > > > > >
>> > > > > > then currentItem is properly populated as a
>> > > Model.ValueObjects.DetailData
>> > > > > object.
>> > > > > >
>> > > > > > The only way to get it to work properly is to do...
>> > > > > >
>> > > > > > var currentItem:DetailData = event.target.data as
>> > > > > Model.ValueObjects.DetailData;
>> > > > > >
>> > > > > > Also, there is only one class file named DetailData.
>> > > > > >
>> > > > > > So, why is it that I import the correct class but it fails to
>> coerce
>> > > > > unless I set the full path to the class file?
>> > > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > > >
>> > > > --
>> > > > /**
>> > > > * Pedro Sena
>> > > > * Systems Architect
>> > > > * Sun Certified Java Programmer
>> > > > * Sun Certified Web Component Developer
>> > > > */
>> > > >
>> > >
>> > >
>> > >
>> >
>> >
>> >
>> > --
>> > /**
>> > * Pedro Sena
>> > * Systems Architect
>> > * Sun Certified Java Programmer
>> > * Sun Certified Web Component Developer
>> > */
>> >
>>
>>  
>>
>
>
>
> --
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer
> * Sun Certified Web Component Develope

[flexcoders] Eclipse Crashing

2009-04-30 Thread Geoffrey
Recently, FB(Eclipse) keeps crashing on me.  I've looked all over the place for 
solutions, have tried many, but none seem to do the trick.

My current setup is:
Eclipse 3.4.2 (M20090211-1700)
FB 3.0.2.214193
Flex SDK 3.3
JDK 1.6.0_13

My eclipse.ini is:
-showsplash
org.eclipse.platform
-framework
plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
-vm
C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
-vmargs
-Xms1024M
-Xmx1024M
-XX:PermSize=256M
-XX:MaxPermSize=512M
-XX:+UseParallelGC
-Dosgi.requiredJavaVersion=1.5
-Djava.net.preferIPv4Stack=true
-Dcom.sun.management.jmxremote

Our Flex application is a collection of 30 projects (one main one and 29 flex 
library projects).  All have to be open at the same time or else you get 
build(dependency) errors.

There's a few projects that are linked to many of the other projects.  For 
example, we have a project that holds all of the VOs.  Making changes to that 
project always took a long time to build (several minutes), but now it crashes 
with OutOfMemory errors.

I've run jconsole to watch the JVM performance statistics.  I don't fully 
understand all the numbers, but I can see that my PS Old Gen pool gets 100% 
full, and that's when I usually expect a crash to happen soon.

My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it 
seems.  If I raise -Xmx higher than 1024M, Eclipse won't even start.

Anyone have any suggestions?

Thanks,
 ~Geoff



Re: [flexcoders] Re: Why would "as" keyword not work

2009-04-30 Thread Pedro Sena
Hmmm

Appears to be the most common problem...

Please make a test:

Create a dummy variable in the same class that you are using your VO,
something like

var dummy:DetailData = null;

Keep the rest of the code and tell me the results.

Regards

On Thu, Apr 30, 2009 at 2:58 PM, valdhor wrote:

>
>
> Yes, I have an interface which I am implementing in the modules. It has a
> single set method that populates a single object with data.
>
> The data transfer is from application to modules only.
>
>
> --- In flexcoders@yahoogroups.com , Pedro
> Sena  wrote:
> >
> > Are you transfering data from one module to another(or to its parent) ?
> >
> > On Thu, Apr 30, 2009 at 2:41 PM, valdhor wrote:
> >
> > >
> > >
> > > Also, I now have it working if I change from trying to coerce to a
> > > valueObject and just use a generic Object instead.
> > >
> > >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>, Pedro
> > > Sena  wrote:
> > > >
> > > > Are you using modules?
> > > >
> > > > On Thu, Apr 30, 2009 at 2:17 PM, valdhor wrote:
> > > >
> > > > >
> > > > >
> > > > > Hmmm. Looks like I misspoke. now I get...
> > > > >
> > > > > Type coercion failed. Cannot convert
> > > > > Model.ValueObjects::detaild...@11c0a941 to
> > > Model.ValueObjects.DetailData.
> > > > >
> > > > > What is the difference between a
> > > > >
> > > > > Model.ValueObjects::DetailData
> > > > >
> > > > > and a
> > > > >
> > > > > Model.ValueObjects.DetailData
> > > > >
> > > > > --- In flexcoders@yahoogroups.com 
> > > > >  40yahoogroups.com> > > 40yahoogroups.com>, Alex
> > > > > Harui  wrote:
> > > > > >
> > > > > > Could be a compiler bug. If you look at the generated code you
> might
> > > get
> > > > > a clue (or the actual SWF bytes)
> > > > > >
> > > > > > Alex Harui
> > > > > > Flex SDK Developer
> > > > > > Adobe Systems Inc.
> > > > > > Blog: http://blogs.adobe.com/aharui
> > > > > >
> > > > > > From: flexcoders@yahoogroups.com 
> > > > > >  40yahoogroups.com> > > 40yahoogroups.com> [mailto:
> > > > > flexcoders@yahoogroups.com  40yahoogroups.com>  > > 40yahoogroups.com>] On Behalf Of
> > > > > valdhor
> > > > > > Sent: Thursday, April 30, 2009 9:18 AM
> > > > > > To: flexcoders@yahoogroups.com 
> > > > > >  40yahoogroups.com>
> > > 40yahoogroups.com>
> > > > > > Subject: [flexcoders] Why would "as" keyword not work
> > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > I have a bit of a perplexing problem (With a workaround).
> > > > > >
> > > > > > In a datagrid I have an itemRenderer that sets one column to a
> > > > > linkButton. In the constructor I have...
> > > > > >
> > > > > > addEventListener(MouseEvent.CLICK, handleLinkClicked);
> > > > > >
> > > > > > I also have a valueObject imported...
> > > > > >
> > > > > > import Model.ValueObjects.DetailData;
> > > > > >
> > > > > > Now, in my eventListener I try to coerce the event.target.data to
> a
> > > > > detailData object like so...
> > > > > >
> > > > > > var currentItem:DetailData = event.target.data as DetailData;
> > > > > >
> > > > > > I have confirmed that event.target.data is an object of type
> > > > > Model.ValueObjects.DetailData.
> > > > > >
> > > > > > If I set a breakpoint here, then currentItem is null.
> > > > > >
> > > > > > If I try...
> > > > > >
> > > > > > var currentItem:* = event.target.data;
> > > > > >
> > > > > > then currentItem is properly populated as a
> > > Model.ValueObjects.DetailData
> > > > > object.
> > > > > >
> > > > > > The only way to get it to work properly is to do...
> > > > > >
> > > > > > var currentItem:DetailData = event.target.data as
> > > > > Model.ValueObjects.DetailData;
> > > > > >
> > > > > > Also, there is only one class file named DetailData.
> > > > > >
> > > > > > So, why is it that I import the correct class but it fails to
> coerce
> > > > > unless I set the full path to the class file?
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > /**
> > > > * Pedro Sena
> > > > * Systems Architect
> > > > * Sun Certified Java Programmer
> > > > * Sun Certified Web Component Developer
> > > > */
> > > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > /**
> > * Pedro Sena
> > * Systems Architect
> > * Sun Certified Java Programmer
> > * Sun Certified Web Component Developer
> > */
> >
>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


RE: [flexcoders] Visual positioning difference between browsers

2009-04-30 Thread Alex Harui
I can't quite picture what you are describing.  I would make sure that things 
are properly sized by probing display objects.  My favorite trick is to set a 
breakpoint on SystemManager.as:mouseDownHandler, wait until the app is stable, 
then click.  From there you can explore the various display objects to see what 
size and position they are.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Tom McNeer
Sent: Thursday, April 30, 2009 10:09 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Visual positioning difference between browsers





Hi Alex,

Thanks for your reply.
On Thu, Apr 30, 2009 at 12:52 PM, Alex Harui 
mailto:aha...@adobe.com>> wrote:

Is the background image being stretched to handle different stage sizes?




Nope. I was unclear about one thing: the logo is actually placed within the 
Application file. It's not part of the background.

The background is a 10-pixel-wide, 550-pixel-high PNG. The background-repeat 
style for the application is "repeat-x," so it shouldn't be stretched.


--
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560



RE: [flexcoders] Re: Why would "as" keyword not work

2009-04-30 Thread Alex Harui
Time for you to read the presentation on Modules on my blog.  It should explain 
why you're getting that error.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of valdhor
Sent: Thursday, April 30, 2009 10:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Why would "as" keyword not work





Yes, I have an interface which I am implementing in the modules. It has a 
single set method that populates a single object with data.

The data transfer is from application to modules only.

--- In flexcoders@yahoogroups.com, Pedro 
Sena  wrote:
>
> Are you transfering data from one module to another(or to its parent) ?
>
> On Thu, Apr 30, 2009 at 2:41 PM, valdhor wrote:
>
> >
> >
> > Also, I now have it working if I change from trying to coerce to a
> > valueObject and just use a generic Object instead.
> >
> >
> > --- In flexcoders@yahoogroups.com 
> > , Pedro
> > Sena  wrote:
> > >
> > > Are you using modules?
> > >
> > > On Thu, Apr 30, 2009 at 2:17 PM, valdhor wrote:
> > >
> > > >
> > > >
> > > > Hmmm. Looks like I misspoke. now I get...
> > > >
> > > > Type coercion failed. Cannot convert
> > > > Model.ValueObjects::detaild...@11c0a941 to
> > Model.ValueObjects.DetailData.
> > > >
> > > > What is the difference between a
> > > >
> > > > Model.ValueObjects::DetailData
> > > >
> > > > and a
> > > >
> > > > Model.ValueObjects.DetailData
> > > >
> > > > --- In flexcoders@yahoogroups.com 
> > > >  > 40yahoogroups.com>, Alex
> > > > Harui  wrote:
> > > > >
> > > > > Could be a compiler bug. If you look at the generated code you might
> > get
> > > > a clue (or the actual SWF bytes)
> > > > >
> > > > > Alex Harui
> > > > > Flex SDK Developer
> > > > > Adobe Systems Inc.
> > > > > Blog: http://blogs.adobe.com/aharui
> > > > >
> > > > > From: flexcoders@yahoogroups.com 
> > > > >  > 40yahoogroups.com> [mailto:
> > > > flexcoders@yahoogroups.com 
> > > >   > 40yahoogroups.com>] On Behalf Of
> > > > valdhor
> > > > > Sent: Thursday, April 30, 2009 9:18 AM
> > > > > To: flexcoders@yahoogroups.com 
> > > > >  > 40yahoogroups.com>
> > > > > Subject: [flexcoders] Why would "as" keyword not work
> > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > I have a bit of a perplexing problem (With a workaround).
> > > > >
> > > > > In a datagrid I have an itemRenderer that sets one column to a
> > > > linkButton. In the constructor I have...
> > > > >
> > > > > addEventListener(MouseEvent.CLICK, handleLinkClicked);
> > > > >
> > > > > I also have a valueObject imported...
> > > > >
> > > > > import Model.ValueObjects.DetailData;
> > > > >
> > > > > Now, in my eventListener I try to coerce the event.target.data to a
> > > > detailData object like so...
> > > > >
> > > > > var currentItem:DetailData = event.target.data as DetailData;
> > > > >
> > > > > I have confirmed that event.target.data is an object of type
> > > > Model.ValueObjects.DetailData.
> > > > >
> > > > > If I set a breakpoint here, then currentItem is null.
> > > > >
> > > > > If I try...
> > > > >
> > > > > var currentItem:* = event.target.data;
> > > > >
> > > > > then currentItem is properly populated as a
> > Model.ValueObjects.DetailData
> > > > object.
> > > > >
> > > > > The only way to get it to work properly is to do...
> > > > >
> > > > > var currentItem:DetailData = event.target.data as
> > > > Model.ValueObjects.DetailData;
> > > > >
> > > > > Also, there is only one class file named DetailData.
> > > > >
> > > > > So, why is it that I import the correct class but it fails to coerce
> > > > unless I set the full path to the class file?
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > /**
> > > * Pedro Sena
> > > * Systems Architect
> > > * Sun Certified Java Programmer
> > > * Sun Certified Web Component Developer
> > > */
> > >
> >
> >
> >
>
>
>
> --
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer
> * Sun Certified Web Component Developer
> */
>



[flexcoders] Re: Why would "as" keyword not work

2009-04-30 Thread valdhor
Yes, I have an interface which I am implementing in the modules. It has a 
single set method that populates a single object with data.

The data transfer is from application to modules only.

--- In flexcoders@yahoogroups.com, Pedro Sena  wrote:
>
> Are you transfering data from one module to another(or to its parent) ?
> 
> On Thu, Apr 30, 2009 at 2:41 PM, valdhor wrote:
> 
> >
> >
> > Also, I now have it working if I change from trying to coerce to a
> > valueObject and just use a generic Object instead.
> >
> >
> > --- In flexcoders@yahoogroups.com , Pedro
> > Sena  wrote:
> > >
> > > Are you using modules?
> > >
> > > On Thu, Apr 30, 2009 at 2:17 PM, valdhor wrote:
> > >
> > > >
> > > >
> > > > Hmmm. Looks like I misspoke. now I get...
> > > >
> > > > Type coercion failed. Cannot convert
> > > > Model.ValueObjects::detaild...@11c0a941 to
> > Model.ValueObjects.DetailData.
> > > >
> > > > What is the difference between a
> > > >
> > > > Model.ValueObjects::DetailData
> > > >
> > > > and a
> > > >
> > > > Model.ValueObjects.DetailData
> > > >
> > > > --- In flexcoders@yahoogroups.com 
> > > >  > 40yahoogroups.com>, Alex
> > > > Harui  wrote:
> > > > >
> > > > > Could be a compiler bug. If you look at the generated code you might
> > get
> > > > a clue (or the actual SWF bytes)
> > > > >
> > > > > Alex Harui
> > > > > Flex SDK Developer
> > > > > Adobe Systems Inc.
> > > > > Blog: http://blogs.adobe.com/aharui
> > > > >
> > > > > From: flexcoders@yahoogroups.com 
> > > > >  > 40yahoogroups.com> [mailto:
> > > > flexcoders@yahoogroups.com   > 40yahoogroups.com>] On Behalf Of
> > > > valdhor
> > > > > Sent: Thursday, April 30, 2009 9:18 AM
> > > > > To: flexcoders@yahoogroups.com 
> > > > >  > 40yahoogroups.com>
> > > > > Subject: [flexcoders] Why would "as" keyword not work
> > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > I have a bit of a perplexing problem (With a workaround).
> > > > >
> > > > > In a datagrid I have an itemRenderer that sets one column to a
> > > > linkButton. In the constructor I have...
> > > > >
> > > > > addEventListener(MouseEvent.CLICK, handleLinkClicked);
> > > > >
> > > > > I also have a valueObject imported...
> > > > >
> > > > > import Model.ValueObjects.DetailData;
> > > > >
> > > > > Now, in my eventListener I try to coerce the event.target.data to a
> > > > detailData object like so...
> > > > >
> > > > > var currentItem:DetailData = event.target.data as DetailData;
> > > > >
> > > > > I have confirmed that event.target.data is an object of type
> > > > Model.ValueObjects.DetailData.
> > > > >
> > > > > If I set a breakpoint here, then currentItem is null.
> > > > >
> > > > > If I try...
> > > > >
> > > > > var currentItem:* = event.target.data;
> > > > >
> > > > > then currentItem is properly populated as a
> > Model.ValueObjects.DetailData
> > > > object.
> > > > >
> > > > > The only way to get it to work properly is to do...
> > > > >
> > > > > var currentItem:DetailData = event.target.data as
> > > > Model.ValueObjects.DetailData;
> > > > >
> > > > > Also, there is only one class file named DetailData.
> > > > >
> > > > > So, why is it that I import the correct class but it fails to coerce
> > > > unless I set the full path to the class file?
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > /**
> > > * Pedro Sena
> > > * Systems Architect
> > > * Sun Certified Java Programmer
> > > * Sun Certified Web Component Developer
> > > */
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer
> * Sun Certified Web Component Developer
> */
>




[flexcoders] Formatting a bound value within a Text object

2009-04-30 Thread Tom McNeer
This seems so simple, yet I can't figure it out -- nor can I find guidance
from the docs or from Google.

I want to format a date which is being returned from a RemoteObject call.
The object created from the service call is bindable, so I can display the
object.myDate as it changes.

But I need to format the date after it changes. And I'd prefer to do it
within my view, rather than the model.

Do I need to create a separate listener for the change event on the bindable
object somehow, or is there a simpler way?

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


Re: [flexcoders] Re: Why would "as" keyword not work

2009-04-30 Thread Pedro Sena
Are you transfering data from one module to another(or to its parent) ?

On Thu, Apr 30, 2009 at 2:41 PM, valdhor wrote:

>
>
> Also, I now have it working if I change from trying to coerce to a
> valueObject and just use a generic Object instead.
>
>
> --- In flexcoders@yahoogroups.com , Pedro
> Sena  wrote:
> >
> > Are you using modules?
> >
> > On Thu, Apr 30, 2009 at 2:17 PM, valdhor wrote:
> >
> > >
> > >
> > > Hmmm. Looks like I misspoke. now I get...
> > >
> > > Type coercion failed. Cannot convert
> > > Model.ValueObjects::detaild...@11c0a941 to
> Model.ValueObjects.DetailData.
> > >
> > > What is the difference between a
> > >
> > > Model.ValueObjects::DetailData
> > >
> > > and a
> > >
> > > Model.ValueObjects.DetailData
> > >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>, Alex
> > > Harui  wrote:
> > > >
> > > > Could be a compiler bug. If you look at the generated code you might
> get
> > > a clue (or the actual SWF bytes)
> > > >
> > > > Alex Harui
> > > > Flex SDK Developer
> > > > Adobe Systems Inc.
> > > > Blog: http://blogs.adobe.com/aharui
> > > >
> > > > From: flexcoders@yahoogroups.com 
> > > >  40yahoogroups.com> [mailto:
> > > flexcoders@yahoogroups.com   40yahoogroups.com>] On Behalf Of
> > > valdhor
> > > > Sent: Thursday, April 30, 2009 9:18 AM
> > > > To: flexcoders@yahoogroups.com 
> > > >  40yahoogroups.com>
> > > > Subject: [flexcoders] Why would "as" keyword not work
> > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > I have a bit of a perplexing problem (With a workaround).
> > > >
> > > > In a datagrid I have an itemRenderer that sets one column to a
> > > linkButton. In the constructor I have...
> > > >
> > > > addEventListener(MouseEvent.CLICK, handleLinkClicked);
> > > >
> > > > I also have a valueObject imported...
> > > >
> > > > import Model.ValueObjects.DetailData;
> > > >
> > > > Now, in my eventListener I try to coerce the event.target.data to a
> > > detailData object like so...
> > > >
> > > > var currentItem:DetailData = event.target.data as DetailData;
> > > >
> > > > I have confirmed that event.target.data is an object of type
> > > Model.ValueObjects.DetailData.
> > > >
> > > > If I set a breakpoint here, then currentItem is null.
> > > >
> > > > If I try...
> > > >
> > > > var currentItem:* = event.target.data;
> > > >
> > > > then currentItem is properly populated as a
> Model.ValueObjects.DetailData
> > > object.
> > > >
> > > > The only way to get it to work properly is to do...
> > > >
> > > > var currentItem:DetailData = event.target.data as
> > > Model.ValueObjects.DetailData;
> > > >
> > > > Also, there is only one class file named DetailData.
> > > >
> > > > So, why is it that I import the correct class but it fails to coerce
> > > unless I set the full path to the class file?
> > > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > /**
> > * Pedro Sena
> > * Systems Architect
> > * Sun Certified Java Programmer
> > * Sun Certified Web Component Developer
> > */
> >
>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


[flexcoders] Sql Server HierarchyID data type into AdvancedDataGrid?

2009-04-30 Thread jack_freud
I wonder if there's a way other than manually creating a hierarchical data 
structure with arraycollections, of turning the return from a query using the 
new HierarchyID data type from Sql Server?

The return looks like this:

/
/1/
/1/1/
/1/2/
/1/2/
/2/
/3/

etc.

Thanks,
Jack



[flexcoders] Re: Why would "as" keyword not work

2009-04-30 Thread valdhor
Also, I now have it working if I change from trying to coerce to a valueObject 
and just use a generic Object instead.

--- In flexcoders@yahoogroups.com, Pedro Sena  wrote:
>
> Are you using modules?
> 
> On Thu, Apr 30, 2009 at 2:17 PM, valdhor wrote:
> 
> >
> >
> > Hmmm. Looks like I misspoke. now I get...
> >
> > Type coercion failed. Cannot convert
> > Model.ValueObjects::detaild...@11c0a941 to Model.ValueObjects.DetailData.
> >
> > What is the difference between a
> >
> > Model.ValueObjects::DetailData
> >
> > and a
> >
> > Model.ValueObjects.DetailData
> >
> > --- In flexcoders@yahoogroups.com , Alex
> > Harui  wrote:
> > >
> > > Could be a compiler bug. If you look at the generated code you might get
> > a clue (or the actual SWF bytes)
> > >
> > > Alex Harui
> > > Flex SDK Developer
> > > Adobe Systems Inc.
> > > Blog: http://blogs.adobe.com/aharui
> > >
> > > From: flexcoders@yahoogroups.com  [mailto:
> > flexcoders@yahoogroups.com ] On Behalf Of
> > valdhor
> > > Sent: Thursday, April 30, 2009 9:18 AM
> > > To: flexcoders@yahoogroups.com 
> > > Subject: [flexcoders] Why would "as" keyword not work
> >
> > >
> > >
> > >
> > >
> > >
> > > I have a bit of a perplexing problem (With a workaround).
> > >
> > > In a datagrid I have an itemRenderer that sets one column to a
> > linkButton. In the constructor I have...
> > >
> > > addEventListener(MouseEvent.CLICK, handleLinkClicked);
> > >
> > > I also have a valueObject imported...
> > >
> > > import Model.ValueObjects.DetailData;
> > >
> > > Now, in my eventListener I try to coerce the event.target.data to a
> > detailData object like so...
> > >
> > > var currentItem:DetailData = event.target.data as DetailData;
> > >
> > > I have confirmed that event.target.data is an object of type
> > Model.ValueObjects.DetailData.
> > >
> > > If I set a breakpoint here, then currentItem is null.
> > >
> > > If I try...
> > >
> > > var currentItem:* = event.target.data;
> > >
> > > then currentItem is properly populated as a Model.ValueObjects.DetailData
> > object.
> > >
> > > The only way to get it to work properly is to do...
> > >
> > > var currentItem:DetailData = event.target.data as
> > Model.ValueObjects.DetailData;
> > >
> > > Also, there is only one class file named DetailData.
> > >
> > > So, why is it that I import the correct class but it fails to coerce
> > unless I set the full path to the class file?
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer
> * Sun Certified Web Component Developer
> */
>




[flexcoders] Re: Why would "as" keyword not work

2009-04-30 Thread valdhor
Yes

--- In flexcoders@yahoogroups.com, Pedro Sena  wrote:
>
> Are you using modules?
> 
> On Thu, Apr 30, 2009 at 2:17 PM, valdhor wrote:
> 
> >
> >
> > Hmmm. Looks like I misspoke. now I get...
> >
> > Type coercion failed. Cannot convert
> > Model.ValueObjects::detaild...@11c0a941 to Model.ValueObjects.DetailData.
> >
> > What is the difference between a
> >
> > Model.ValueObjects::DetailData
> >
> > and a
> >
> > Model.ValueObjects.DetailData
> >
> > --- In flexcoders@yahoogroups.com , Alex
> > Harui  wrote:
> > >
> > > Could be a compiler bug. If you look at the generated code you might get
> > a clue (or the actual SWF bytes)
> > >
> > > Alex Harui
> > > Flex SDK Developer
> > > Adobe Systems Inc.
> > > Blog: http://blogs.adobe.com/aharui
> > >
> > > From: flexcoders@yahoogroups.com  [mailto:
> > flexcoders@yahoogroups.com ] On Behalf Of
> > valdhor
> > > Sent: Thursday, April 30, 2009 9:18 AM
> > > To: flexcoders@yahoogroups.com 
> > > Subject: [flexcoders] Why would "as" keyword not work
> >
> > >
> > >
> > >
> > >
> > >
> > > I have a bit of a perplexing problem (With a workaround).
> > >
> > > In a datagrid I have an itemRenderer that sets one column to a
> > linkButton. In the constructor I have...
> > >
> > > addEventListener(MouseEvent.CLICK, handleLinkClicked);
> > >
> > > I also have a valueObject imported...
> > >
> > > import Model.ValueObjects.DetailData;
> > >
> > > Now, in my eventListener I try to coerce the event.target.data to a
> > detailData object like so...
> > >
> > > var currentItem:DetailData = event.target.data as DetailData;
> > >
> > > I have confirmed that event.target.data is an object of type
> > Model.ValueObjects.DetailData.
> > >
> > > If I set a breakpoint here, then currentItem is null.
> > >
> > > If I try...
> > >
> > > var currentItem:* = event.target.data;
> > >
> > > then currentItem is properly populated as a Model.ValueObjects.DetailData
> > object.
> > >
> > > The only way to get it to work properly is to do...
> > >
> > > var currentItem:DetailData = event.target.data as
> > Model.ValueObjects.DetailData;
> > >
> > > Also, there is only one class file named DetailData.
> > >
> > > So, why is it that I import the correct class but it fails to coerce
> > unless I set the full path to the class file?
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer
> * Sun Certified Web Component Developer
> */
>




Re: [flexcoders] Re: Why would "as" keyword not work

2009-04-30 Thread Pedro Sena
Are you using modules?

On Thu, Apr 30, 2009 at 2:17 PM, valdhor wrote:

>
>
> Hmmm. Looks like I misspoke. now I get...
>
> Type coercion failed. Cannot convert
> Model.ValueObjects::detaild...@11c0a941 to Model.ValueObjects.DetailData.
>
> What is the difference between a
>
> Model.ValueObjects::DetailData
>
> and a
>
> Model.ValueObjects.DetailData
>
> --- In flexcoders@yahoogroups.com , Alex
> Harui  wrote:
> >
> > Could be a compiler bug. If you look at the generated code you might get
> a clue (or the actual SWF bytes)
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On Behalf Of
> valdhor
> > Sent: Thursday, April 30, 2009 9:18 AM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] Why would "as" keyword not work
>
> >
> >
> >
> >
> >
> > I have a bit of a perplexing problem (With a workaround).
> >
> > In a datagrid I have an itemRenderer that sets one column to a
> linkButton. In the constructor I have...
> >
> > addEventListener(MouseEvent.CLICK, handleLinkClicked);
> >
> > I also have a valueObject imported...
> >
> > import Model.ValueObjects.DetailData;
> >
> > Now, in my eventListener I try to coerce the event.target.data to a
> detailData object like so...
> >
> > var currentItem:DetailData = event.target.data as DetailData;
> >
> > I have confirmed that event.target.data is an object of type
> Model.ValueObjects.DetailData.
> >
> > If I set a breakpoint here, then currentItem is null.
> >
> > If I try...
> >
> > var currentItem:* = event.target.data;
> >
> > then currentItem is properly populated as a Model.ValueObjects.DetailData
> object.
> >
> > The only way to get it to work properly is to do...
> >
> > var currentItem:DetailData = event.target.data as
> Model.ValueObjects.DetailData;
> >
> > Also, there is only one class file named DetailData.
> >
> > So, why is it that I import the correct class but it fails to coerce
> unless I set the full path to the class file?
> >
>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


[flexcoders] Re: Why would "as" keyword not work

2009-04-30 Thread valdhor
Hmmm. Looks like I misspoke. now I get...

Type coercion failed. Cannot convert Model.ValueObjects::detaild...@11c0a941 to 
Model.ValueObjects.DetailData.

What is the difference between a 

Model.ValueObjects::DetailData

and a 

Model.ValueObjects.DetailData

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Could be a compiler bug.  If you look at the generated code you might get a 
> clue (or the actual SWF bytes)
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of valdhor
> Sent: Thursday, April 30, 2009 9:18 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Why would "as" keyword not work
> 
> 
> 
> 
> 
> I have a bit of a perplexing problem (With a workaround).
> 
> In a datagrid I have an itemRenderer that sets one column to a linkButton. In 
> the constructor I have...
> 
> addEventListener(MouseEvent.CLICK, handleLinkClicked);
> 
> I also have a valueObject imported...
> 
> import Model.ValueObjects.DetailData;
> 
> Now, in my eventListener I try to coerce the event.target.data to a 
> detailData object like so...
> 
> var currentItem:DetailData = event.target.data as DetailData;
> 
> I have confirmed that event.target.data is an object of type 
> Model.ValueObjects.DetailData.
> 
> If I set a breakpoint here, then currentItem is null.
> 
> If I try...
> 
> var currentItem:* = event.target.data;
> 
> then currentItem is properly populated as a Model.ValueObjects.DetailData 
> object.
> 
> The only way to get it to work properly is to do...
> 
> var currentItem:DetailData = event.target.data as 
> Model.ValueObjects.DetailData;
> 
> Also, there is only one class file named DetailData.
> 
> So, why is it that I import the correct class but it fails to coerce unless I 
> set the full path to the class file?
>




Re: [flexcoders] Visual positioning difference between browsers

2009-04-30 Thread Tom McNeer
Hi Alex,

Thanks for your reply.

On Thu, Apr 30, 2009 at 12:52 PM, Alex Harui  wrote:

>Is the background image being stretched to handle different stage
> sizes?
>
>
>


Nope. I was unclear about one thing: the logo is actually placed within the
Application file. It's not part of the background.

The background is a 10-pixel-wide, 550-pixel-high PNG. The background-repeat
style for the application is "repeat-x," so it shouldn't be stretched.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Re: blazeds mapping issue with Set

2009-04-30 Thread Mark Piller
And another workaround is to use WebORB, which will handle it just fine out of 
the box.

Cheers,
Mark

--- In flexcoders@yahoogroups.com, Pedro Sena  wrote:
>
> Another workaround is use GraniteDS instead of BlazeDS.
> 
> :D
> 
> On Thu, Apr 30, 2009 at 11:45 AM, aglosband  wrote:
> 
> >
> >
> > Hi Max. There was another bug logged to add support for Java 5.0 syntax
> > (which I take to mean Generics) to RemoteObjects.
> >
> > https://bugs.adobe.com/jira/browse/BLZ-115
> >
> > That bug has unfortunately been deferred for the time being but I'd suggest
> > that you view the bug report and vote on it which will help the issue get
> > some visibility and hopefully get it fixed faster.
> >
> > There is a workaround for this issue which is outlined by wichan in this
> > bug report.
> >
> > https://bugs.adobe.com/jira/browse/BLZ-305
> >
> > The workaround is to write a wrapper class for Long which then using a
> > BeanProxy will get mapped back to java.lang.Long before the remoting service
> > is called.
> >
> > Using this approach you would send a MyLong type across the wire from your
> > Flex application to the server. The MyLong type would get deserialized to
> > the MyLong java class which would then get passed through the BeanProxy (in
> > the example in the bug it's called MyLongProxy) and come out the other end
> > as a Long. This would then get passed to the remoting service.
> >
> > If you are passing an array collection of MyLong objects this would get
> > turned into a Set of Long objects so your RemoteObject code would not have
> > to change.
> >
> > Hope that helps.
> >
> > -Alex
> >
> > --- In flexcoders@yahoogroups.com ,
> > "max.bruchmann"  wrote:
> > >
> > > Hi,
> > > I am having some problems with blazeds and how it maps a collection
> > contains long elements.
> > >
> > > Let's assume I have a class
> > >
> > > public class MyClass {
> > >
> > > ..
> > >
> > > private Set myLongs;
> > >
> > > public void setMyLongs(Set myLongs){
> > > this.myLongs = myLongs;
> > > }
> > > public Set getMyLongs(){
> > > return myLongs;
> > > }
> > > }
> > > and I have a mapped class in flex and a instance of this class containing
> > an arraycollection with for example [1, 4]
> > >
> > > Now I'm sending this instance to my remoteobject
> > >
> > > ..
> > > public void receiveStuff(MyClass m){
> > >
> > > 
> > > }
> > > The problem I'm having now, is that blazeds actually mapped the 1 and 4
> > not as a Long into myLongs but as a Integer.
> > > Sofar this is not a big issue, but I'm passing it forward to hibernate
> > and there it leads to some errors:
> > >
> > >
> > > org.hibernate.type.LongType - could not bind value ... to parameter: ...
> > > java.lang.Integer cannot be cast to java.lang.Long
> > >
> > > I found already some bug reports on that in
> > https://bugs.adobe.com/jira/browse/BLZ-79 but it's marked as resolve with
> > the solution "don't use java syntax 1.5" which is not very helpful. So if
> > someone has a solution/workarround/idea please let me know.
> > >
> > > Thanks in advance
> > > Max
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer
> * Sun Certified Web Component Developer
> */
>




[flexcoders] Re: Outputting a variable into htmlText

2009-04-30 Thread fumeng5
You are exactly right! It worked perfectly when I added a listener for the 
creationComplete event in my constructor and set the handler to be init. 

I learned something new today. Thank you very, very much for your help. 
--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> I don't believe you need that. I do what you are doing all the time although 
> I don't do it in the init method (I am assuming you are calling the init 
> method on initialize of the component?). I would try calling it on 
> creationComplete (That's what I do). You may find that the initialize method 
> runs before you get a chance to set acctName.
> 
> 
> --- In flexcoders@yahoogroups.com, "fumeng5"  wrote:
> >
> > The String I'm constructing is inside a PopUp dialog bog. I set it from 
> > another component a la:
> > 
> > private function createAcct():void {
> > 
> > acctDialog.acctName   = accountName;
> > PopUpManager.addPopUp(acctDialog,this as Canvas,true);
> > }
> > 
> > The accessor methods for acctName look like this:
> > 
> > private var _acctName:String;
> > public function set acctName(s:String):void{
> > acctName = s;
> > }
> > [Bindable]
> > public function get acctName():String{
> > return _acctName;
> > }
> > 
> > And I set the content.htmlText property in the init() method when acctName 
> > is null. So, I think the solution is to use binding utils in the init() 
> > method, like this:
> > 
> > BindingUtils.bindProperty(content,'htmlText',msgString);
> > 
> > but I think I'm missing an argument in there...i think it needs 4 args. 
> > 
> > Thank you very much for your help. 
> > 
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > >
> > > How is acctName created?
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "fumeng5"  wrote:
> > > >
> > > > Ok, I see what you're saying. So here's the constructor for my 
> > > > component that is responsible for all this:
> > > > 
> > > > public function CreateAcctDialog()
> > > > {
> > > > super();
> > > > init();
> > > > }
> > > > 
> > > > ...and init():
> > > > 
> > > > private function init():void
> > > > {   
> > > > msgString = "The account " + this.acctName + 
> > > > " has been created "
> > > > }
> > > > 
> > > > and the last part: 
> > > > content.htmlText = msgString;
> > > > 
> > > > This comes out as: The account null has been created. 
> > > > 
> > > > I thought the init() method would handle the proper setting of this 
> > > > var.
> > > > 
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > > > >
> > > > > For the first part, you are setting the value of msgString during its 
> > > > > declaration. At this point acctName will be null. You would need to 
> > > > > declare msgString and then assign it in a creationComplete handler.
> > > > > 
> > > > > Secondly, you can't do this in ActionScript:
> > > > > 
> > > > > content.htmlText = "{msgString}"
> > > > > 
> > > > > You have to do this:
> > > > > 
> > > > > content.htmlText = msgString
> > > > > 
> > > > > The "{}" syntax is to bind a variable in MXML.
> > > > > 
> > > > > Also, For the above, the variable does not need to be bindable.
> > >
> >
>




[flexcoders] Re: Multiple chart effects conflicting with each other

2009-04-30 Thread antonthorn
Thank you, Steve!   :)



--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> The problem is due to the different durations for the effects. Stting them 
> all to the same value fixes the problem.
> 
> I don't know whether this is a bug or whether it's just a limitation of a 
> parallel effect. Someone else may have further input.
> 
> HTH.
> 
> 
> 
> Steve
> 





RE: [flexcoders] Visual positioning difference between browsers

2009-04-30 Thread Alex Harui
Is the background image being stretched to handle different stage sizes?

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Tom McNeer
Sent: Thursday, April 30, 2009 9:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Visual positioning difference between browsers





Hi,

The top of my application area shows a logo and some other static visual 
information which comes from a background image for the Application. Included 
as part of this background image is a horizontal bar which runs the width of 
the screen. The main Application file has "layout=absolute."

A TabNavigator for the main views of the Application is meant to display its 
tabs within the horizontal bar.

However, the tabs display at different y coordinates in different browsers. If 
I set the y coordinate at 111, the positioning is correct in IE7. In IE6, the 
tabs are one pixel higher in relation to the background. In Firefox, the tabs 
are ~5 pixels too low. And in Safari, they are approximately 15 pixels too low.

I didn't think these things were supposed to happen within the Flash Player.

--
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560



RE: [flexcoders] Why would "as" keyword not work

2009-04-30 Thread Alex Harui
Could be a compiler bug.  If you look at the generated code you might get a 
clue (or the actual SWF bytes)

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of valdhor
Sent: Thursday, April 30, 2009 9:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Why would "as" keyword not work





I have a bit of a perplexing problem (With a workaround).

In a datagrid I have an itemRenderer that sets one column to a linkButton. In 
the constructor I have...

addEventListener(MouseEvent.CLICK, handleLinkClicked);

I also have a valueObject imported...

import Model.ValueObjects.DetailData;

Now, in my eventListener I try to coerce the event.target.data to a detailData 
object like so...

var currentItem:DetailData = event.target.data as DetailData;

I have confirmed that event.target.data is an object of type 
Model.ValueObjects.DetailData.

If I set a breakpoint here, then currentItem is null.

If I try...

var currentItem:* = event.target.data;

then currentItem is properly populated as a Model.ValueObjects.DetailData 
object.

The only way to get it to work properly is to do...

var currentItem:DetailData = event.target.data as Model.ValueObjects.DetailData;

Also, there is only one class file named DetailData.

So, why is it that I import the correct class but it fails to coerce unless I 
set the full path to the class file?



[flexcoders] Re: Localization problem compiling .properties resource into swf

2009-04-30 Thread guy.tomer
--- In flexcoders@yahoogroups.com, "guy.tomer"  wrote:
Ignore this post, I put the [ResourceBundle] only in one mxml
>
> Hello,
> 
> I have a .properties file put under src/locale/en_US
> 
> I changed the compiler arguments to:
> "-locale=en_US -allow-source-path-overlap=true -source-path=locale/en_US"
> 
> Now the strange thing - I have 2 applications in this project. One 
> specifically for testing the localization, the other is the application 
> itself. 
> 
> When I run the test mxml everything works fine, when I run the other one the 
> ResourceBundle isn't loaded.
> 
> Any ideas?
> 
> Thanks!
> Guy
>




[flexcoders] Re: Resource bundles and Modules

2009-04-30 Thread guy.tomer
--- In flexcoders@yahoogroups.com, "Todd"  wrote:
Oops, mine as well, i put it only in one mxml
>
> Mine was actually pretty simple to solve.  I had apparently just forget to 
> use the [ResourceBundle] attribute so that the compiler would know to bring 
> in the appropriate resource files.
> 
> --- In flexcoders@yahoogroups.com, "guy.tomer"  wrote:
> >
> > --- In flexcoders@yahoogroups.com, "Todd"  wrote:
> > >
> > > Hello All,
> > >   I have some Modules (Cairngorm-based if that matters), that I want to 
> > > have their own resource.property files that are compiled into the module.
> > >   I can't seem to get it working. 
> > >   Should I be looking down the path of manually adding my resource 
> > > strings to the ResourceManger when my Module loads?  Or, is there 
> > > something more built-in to Flex that I'm missing.  (When I try searching 
> > > on this topic, I'm mostly only finding how to bundle your resources in 
> > > seperate module.swfs...which isn't what I'm looking for.  I just want to 
> > > have the the Module's resources compiled within it.)
> > > 
> > > Thanks,
> > > Todd
> > >
> > 
> > Basically you need to compile the properties file into your swf, 
> > you can do it by adding to the compiler arguments in flex builder.
> > The arguments I found relevant are "-locale=en_US 
> > -allow-source-path-overlap=true -source-path=locale/en_US" 
> > (the source path is the path under src you have to create these folders).
> > 
> > Having said all that this is working inconsistently for me, 
> > you can see my question from a bit earlier today... 
> > I'll be happy to hear how this works for you.
> >
>




[flexcoders] Re: Resource bundles and Modules

2009-04-30 Thread Todd
Mine was actually pretty simple to solve.  I had apparently just forget to use 
the [ResourceBundle] attribute so that the compiler would know to bring in the 
appropriate resource files.

--- In flexcoders@yahoogroups.com, "guy.tomer"  wrote:
>
> --- In flexcoders@yahoogroups.com, "Todd"  wrote:
> >
> > Hello All,
> >   I have some Modules (Cairngorm-based if that matters), that I want to 
> > have their own resource.property files that are compiled into the module.
> >   I can't seem to get it working. 
> >   Should I be looking down the path of manually adding my resource strings 
> > to the ResourceManger when my Module loads?  Or, is there something more 
> > built-in to Flex that I'm missing.  (When I try searching on this topic, 
> > I'm mostly only finding how to bundle your resources in seperate 
> > module.swfs...which isn't what I'm looking for.  I just want to have the 
> > the Module's resources compiled within it.)
> > 
> > Thanks,
> > Todd
> >
> 
> Basically you need to compile the properties file into your swf, 
> you can do it by adding to the compiler arguments in flex builder.
> The arguments I found relevant are "-locale=en_US 
> -allow-source-path-overlap=true -source-path=locale/en_US" 
> (the source path is the path under src you have to create these folders).
> 
> Having said all that this is working inconsistently for me, 
> you can see my question from a bit earlier today... 
> I'll be happy to hear how this works for you.
>




[flexcoders] Looking for Portal ideas

2009-04-30 Thread markgoldin_2000
I have a project to create a new Company Web Portal. Something where top 
management would be able to run report summaries and stuff. Any sample sites, 
interface ideas, etc?

Thanks



[flexcoders] Why would "as" keyword not work

2009-04-30 Thread valdhor
I have a bit of a perplexing problem (With a workaround).

In a datagrid I have an itemRenderer that sets one column to a linkButton. In 
the constructor I have...

addEventListener(MouseEvent.CLICK, handleLinkClicked);

I also have a valueObject imported...

import Model.ValueObjects.DetailData;

Now, in my eventListener I try to coerce the event.target.data to a detailData 
object like so...

var currentItem:DetailData = event.target.data as DetailData;

I have confirmed that event.target.data is an object of type 
Model.ValueObjects.DetailData.

If I set a breakpoint here, then currentItem is null.

If I try...

var currentItem:* = event.target.data;

then currentItem is properly populated as a Model.ValueObjects.DetailData 
object.

The only way to get it to work properly is to do...

var currentItem:DetailData = event.target.data as Model.ValueObjects.DetailData;

Also, there is only one class file named DetailData.

So, why is it that I import the correct class but it fails to coerce unless I 
set the full path to the class file?



[flexcoders] Visual positioning difference between browsers

2009-04-30 Thread Tom McNeer
Hi,

The top of my application area shows a logo and some other static visual
information which comes from a background image for the Application.
Included as part of this background image is a horizontal bar which runs the
width of the screen. The main Application file has "layout=absolute."

A TabNavigator for the main views of the Application is meant to display its
tabs within the horizontal bar.

However, the tabs display at different y coordinates in different browsers.
If I set the y coordinate at 111, the positioning is correct in IE7. In IE6,
the tabs are one pixel higher in relation to the background. In Firefox, the
tabs are ~5 pixels too low. And in Safari, they are approximately 15 pixels
too low.

I didn't think these things were supposed to happen within the Flash Player.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Re: Outputting a variable into htmlText

2009-04-30 Thread valdhor
I don't believe you need that. I do what you are doing all the time although I 
don't do it in the init method (I am assuming you are calling the init method 
on initialize of the component?). I would try calling it on creationComplete 
(That's what I do). You may find that the initialize method runs before you get 
a chance to set acctName.


--- In flexcoders@yahoogroups.com, "fumeng5"  wrote:
>
> The String I'm constructing is inside a PopUp dialog bog. I set it from 
> another component a la:
> 
> private function createAcct():void {
> 
>   acctDialog.acctName   = accountName;
>   PopUpManager.addPopUp(acctDialog,this as Canvas,true);
> }
> 
> The accessor methods for acctName look like this:
> 
> private var _acctName:String;
> public function set acctName(s:String):void{
>   acctName = s;
> }
> [Bindable]
> public function get acctName():String{
> return _acctName;
> }
> 
> And I set the content.htmlText property in the init() method when acctName is 
> null. So, I think the solution is to use binding utils in the init() method, 
> like this:
> 
> BindingUtils.bindProperty(content,'htmlText',msgString);
> 
> but I think I'm missing an argument in there...i think it needs 4 args. 
> 
> Thank you very much for your help. 
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> >
> > How is acctName created?
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "fumeng5"  wrote:
> > >
> > > Ok, I see what you're saying. So here's the constructor for my component 
> > > that is responsible for all this:
> > > 
> > > public function CreateAcctDialog()
> > > {
> > >   super();
> > >   init();
> > > }
> > > 
> > > ...and init():
> > > 
> > > private function init():void
> > >   {   
> > >   msgString = "The account " + this.acctName + " has 
> > > been created "
> > > }
> > > 
> > > and the last part: 
> > > content.htmlText = msgString;
> > > 
> > > This comes out as: The account null has been created. 
> > > 
> > > I thought the init() method would handle the proper setting of this 
> > > var.
> > >   
> > > 
> > > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > > >
> > > > For the first part, you are setting the value of msgString during its 
> > > > declaration. At this point acctName will be null. You would need to 
> > > > declare msgString and then assign it in a creationComplete handler.
> > > > 
> > > > Secondly, you can't do this in ActionScript:
> > > > 
> > > > content.htmlText = "{msgString}"
> > > > 
> > > > You have to do this:
> > > > 
> > > > content.htmlText = msgString
> > > > 
> > > > The "{}" syntax is to bind a variable in MXML.
> > > > 
> > > > Also, For the above, the variable does not need to be bindable.
> >
>




[flexcoders] Re: best ftp client

2009-04-30 Thread Tim Hoff

Along these same lines, for Windows you can also just map a network
drive to the ftp location and use Windows Explorer to drag and drop.

-TH

--- In flexcoders@yahoogroups.com, "Kevin F. Benz"  wrote:
>
> Trying not to be the heretic in the group, Mac, Linux and PC have an
> installed ftp client that can be easily used if you take a few moments
to
> understand the commands underneath all of these clients. Get a command
line
> and type in ftp. I use it extensively for scripted backups and
automated
> deployment scripts and the commands cross all platforms. If you need
drag
> and drop, it's not for you, if you want to do something simple..
>
>
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On
> Behalf Of aphexyuri
> Sent: Thursday, April 30, 2009 8:11 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: best ftp client
>
>
>
>
>
>
>
>
> lightweight oneFireFTP (add-on for firefox)
>
> --- In flexcoders@yahoogroups.com
 ,
> Johannes Nel johannes.nel@ wrote:
> >
> > i like total commander the most personally on a windows box. on a
mac
> fetch.
> >
> > On Thu, Apr 30, 2009 at 1:30 AM, Tracy Spratt tracy@ wrote:
> >
> > >
> > >
> > > Me too. I've never done a lot of ftp, but FileZilla was easy to
use and
> > > does all all need so far.
> > >
> > >
> > >
> > > Tracy Spratt,
> > >
> > > Lariat Services, development services available
> > > --
> > >
> > > *From:* flexcoders@yahoogroups.com

> [mailto:flexcoders@yahoogroups.com
 ]
> *On
> > > Behalf Of *valdhor
> > > *Sent:* Wednesday, April 29, 2009 8:30 AM
> > > *To:* flexcoders@yahoogroups.com

> > > *Subject:* [flexcoders] Re: best ftp client
> > >
> > >
> > >
> > >
> > >
> > >
> > > I'm a big fan of FileZilla (http://filezilla-project.org/)
> > >
> > > --- In flexcoders@yahoogroups.com

> ,
> > > "stinasius"  wrote:
> > > >
> > > > what is the best free ftp client to use to upload flex app to
remote
> > > server?
> > > >
> > >
> > >
> >
> >
> >
> > --
> > j:pn
> > \\no comment
> >
>





[flexcoders] Re: Outputting a variable into htmlText

2009-04-30 Thread fumeng5
The String I'm constructing is inside a PopUp dialog bog. I set it from another 
component a la:

private function createAcct():void {

acctDialog.acctName   = accountName;
PopUpManager.addPopUp(acctDialog,this as Canvas,true);
}

The accessor methods for acctName look like this:

private var _acctName:String;
public function set acctName(s:String):void{
acctName = s;
}
[Bindable]
public function get acctName():String{
return _acctName;
}

And I set the content.htmlText property in the init() method when acctName is 
null. So, I think the solution is to use binding utils in the init() method, 
like this:

BindingUtils.bindProperty(content,'htmlText',msgString);

but I think I'm missing an argument in there...i think it needs 4 args. 

Thank you very much for your help. 





--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> How is acctName created?
> 
> 
> --- In flexcoders@yahoogroups.com, "fumeng5"  wrote:
> >
> > Ok, I see what you're saying. So here's the constructor for my component 
> > that is responsible for all this:
> > 
> > public function CreateAcctDialog()
> > {
> > super();
> > init();
> > }
> > 
> > ...and init():
> > 
> > private function init():void
> > {   
> > msgString = "The account " + this.acctName + " has 
> > been created "
> > }
> > 
> > and the last part: 
> > content.htmlText = msgString;
> > 
> > This comes out as: The account null has been created. 
> > 
> > I thought the init() method would handle the proper setting of this var.
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > >
> > > For the first part, you are setting the value of msgString during its 
> > > declaration. At this point acctName will be null. You would need to 
> > > declare msgString and then assign it in a creationComplete handler.
> > > 
> > > Secondly, you can't do this in ActionScript:
> > > 
> > > content.htmlText = "{msgString}"
> > > 
> > > You have to do this:
> > > 
> > > content.htmlText = msgString
> > > 
> > > The "{}" syntax is to bind a variable in MXML.
> > > 
> > > Also, For the above, the variable does not need to be bindable.
>




RE: [flexcoders] Re: best ftp client

2009-04-30 Thread Kevin F. Benz
Trying not to be the heretic in the group, Mac, Linux and PC have an
installed ftp client that can be easily used if you take a few moments to
understand the commands underneath all of these clients. Get a command line
and type in ftp. I use it extensively for scripted backups and automated
deployment scripts and the commands cross all platforms.  If you need drag
and drop, it's not for you, if you want to do something simple.. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of aphexyuri
Sent: Thursday, April 30, 2009 8:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: best ftp client

 






lightweight oneFireFTP (add-on for firefox)

--- In flexcoders@yahoogroups.com  ,
Johannes Nel  wrote:
>
> i like total commander the most personally on a windows box. on a mac
fetch.
> 
> On Thu, Apr 30, 2009 at 1:30 AM, Tracy Spratt  wrote:
> 
> >
> >
> > Me too. I've never done a lot of ftp, but FileZilla was easy to use and
> > does all all need so far.
> >
> >
> >
> > Tracy Spratt,
> >
> > Lariat Services, development services available
> > --
> >
> > *From:* flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
*On
> > Behalf Of *valdhor
> > *Sent:* Wednesday, April 29, 2009 8:30 AM
> > *To:* flexcoders@yahoogroups.com  
> > *Subject:* [flexcoders] Re: best ftp client
> >
> >
> >
> >
> >
> >
> > I'm a big fan of FileZilla (http://filezilla-project.org/)
> >
> > --- In flexcoders@yahoogroups.com 
,
> > "stinasius"  wrote:
> > >
> > > what is the best free ftp client to use to upload flex app to remote
> > server?
> > >
> > 
> >
> 
> 
> 
> -- 
> j:pn
> \\no comment
>





[flexcoders] Re: Resource bundles and Modules

2009-04-30 Thread guy.tomer
--- In flexcoders@yahoogroups.com, "Todd"  wrote:
>
> Hello All,
>   I have some Modules (Cairngorm-based if that matters), that I want to have 
> their own resource.property files that are compiled into the module.
>   I can't seem to get it working. 
>   Should I be looking down the path of manually adding my resource strings to 
> the ResourceManger when my Module loads?  Or, is there something more 
> built-in to Flex that I'm missing.  (When I try searching on this topic, I'm 
> mostly only finding how to bundle your resources in seperate 
> module.swfs...which isn't what I'm looking for.  I just want to have the the 
> Module's resources compiled within it.)
> 
> Thanks,
> Todd
>

Basically you need to compile the properties file into your swf, 
you can do it by adding to the compiler arguments in flex builder.
The arguments I found relevant are "-locale=en_US 
-allow-source-path-overlap=true -source-path=locale/en_US" 
(the source path is the path under src you have to create these folders).

Having said all that this is working inconsistently for me, 
you can see my question from a bit earlier today... 
I'll be happy to hear how this works for you.



[flexcoders] Re: best ftp client

2009-04-30 Thread aphexyuri
lightweight oneFireFTP (add-on for firefox)

--- In flexcoders@yahoogroups.com, Johannes Nel  wrote:
>
> i like total commander the most personally on a windows box. on a mac fetch.
> 
> On Thu, Apr 30, 2009 at 1:30 AM, Tracy Spratt  wrote:
> 
> >
> >
> >  Me too.  I've never done a lot of ftp, but FileZilla was easy to use and
> > does all all need so far.
> >
> >
> >
> > Tracy Spratt,
> >
> > Lariat Services, development services available
> >   --
> >
> > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> > Behalf Of *valdhor
> > *Sent:* Wednesday, April 29, 2009 8:30 AM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] Re: best ftp client
> >
> >
> >
> >
> >
> >
> >  I'm a big fan of FileZilla (http://filezilla-project.org/)
> >
> > --- In flexcoders@yahoogroups.com ,
> > "stinasius"  wrote:
> > >
> > > what is the best free ftp client to use to upload flex app to remote
> > server?
> > >
> >   
> >
> 
> 
> 
> -- 
> j:pn
> \\no comment
>




[flexcoders] Re: Outputting a variable into htmlText

2009-04-30 Thread valdhor
How is acctName created?


--- In flexcoders@yahoogroups.com, "fumeng5"  wrote:
>
> Ok, I see what you're saying. So here's the constructor for my component that 
> is responsible for all this:
> 
> public function CreateAcctDialog()
> {
>   super();
>   init();
> }
> 
> ...and init():
> 
> private function init():void
>   {   
>   msgString = "The account " + this.acctName + " has 
> been created "
> }
> 
> and the last part: 
> content.htmlText = msgString;
> 
> This comes out as: The account null has been created. 
> 
> I thought the init() method would handle the proper setting of this var.
>   
> 
> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> >
> > For the first part, you are setting the value of msgString during its 
> > declaration. At this point acctName will be null. You would need to declare 
> > msgString and then assign it in a creationComplete handler.
> > 
> > Secondly, you can't do this in ActionScript:
> > 
> > content.htmlText = "{msgString}"
> > 
> > You have to do this:
> > 
> > content.htmlText = msgString
> > 
> > The "{}" syntax is to bind a variable in MXML.
> > 
> > Also, For the above, the variable does not need to be bindable.




[flexcoders] Re: Building a collection in Java to be set in a DataGrid using blazeds

2009-04-30 Thread aglosband
Hi. This tutorial should help you. 

http://www.adobe.com/devnet/livecycle/articles/blazeds_gettingstarted_04.html

It has an example of populating a datagrid with the result of a RemoteObject 
call. 

Hope that helps. 

-Alex 

--- In flexcoders@yahoogroups.com, "yossi.baram"  wrote:
>
> Hi,
> I am playing around with remoteObject and displaying string by remote 
> using java class.
> I need to create a DataGrid and the provider I need to set from my Java 
> class, that means an Array of some sort,
> using resultHandler(evt:ResultEvent) i think,
> 
> Can you help me here?
> 
> Thanks a lot
>




[flexcoders] Re: Outputting a variable into htmlText

2009-04-30 Thread fumeng5
Ok, I see what you're saying. So here's the constructor for my component that 
is responsible for all this:

public function CreateAcctDialog()
{
super();
init();
}

...and init():

private function init():void
{   
msgString = "The account " + this.acctName + " has 
been created "
}

and the last part: 
content.htmlText = msgString;

This comes out as: The account null has been created. 

I thought the init() method would handle the proper setting of this var.


--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> For the first part, you are setting the value of msgString during its 
> declaration. At this point acctName will be null. You would need to declare 
> msgString and then assign it in a creationComplete handler.
> 
> Secondly, you can't do this in ActionScript:
> 
> content.htmlText = "{msgString}"
> 
> You have to do this:
> 
> content.htmlText = msgString
> 
> The "{}" syntax is to bind a variable in MXML.
> 
> Also, For the above, the variable does not need to be bindable.
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "fumeng5"  wrote:
> >
> > Thanks for your responses. 
> > 
> > What I mean is that in the 1st case:
> > content.htmlText = "The account " + this.acctName + " has been 
> > created."
> > 
> > ...the message comes out to be: The account null has been created. However, 
> > I can use the debugger to see that acctName is definitely being set 
> > correctly. 
> > 
> > And in the second case:
> > [Bindable]
> > private var msgString:String = "The account " + this.acctName + " 
> > hasbeen created .
> > 
> > content.htmlText = "{msgString}"
> > 
> > ...the message comes out to be: {msgString}
> > 
> > Now I'm not setting 'msgString' right away. I build it in the setter for 
> > acctName, as in:
> > [Bindable]
> > private var msgString:String;
> > 
> > public function set acctName(s:String):void{
> > _acctName = s;
> > msgString = "The account " + _acctName + " has been created "
> > }
> > [Bindable]
> > public function get acctName():String{
> > return _acctName;
> > }
> > 
> > I'm pretty sure this should be working and I must be missing something 
> > small. Thank you for your help, it's very appreciated.
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, Pedro Sena  wrote:
> > >
> > > try
> > > 
> > > [Bindable]
> > > private var msgString:String = "The account " + this.acctName + " has
> > > been created .
> > > 
> > > content.htmlText = "{msgString}"
> > > 
> > > and make sure your acctName is not blank.
> > > 
> > > On Thu, Apr 30, 2009 at 9:55 AM, valdhor wrote:
> > > 
> > > >
> > > >
> > > > What do you mean by "That didn't work"?
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com ,
> > > > "fumeng5"  wrote:
> > > > >
> > > > > Hi --
> > > > >
> > > > > I want to output a variable and hardcoded text in the htmlText 
> > > > > property
> > > > of a Text component.
> > > > >
> > > > > Here's what I tried first:
> > > > >
> > > > > content.htmlText = "The account " + this.acctName + " has been 
> > > > > created
> > > > ."
> > > > >
> > > > > ('acctName' is a private var that has accessor methods to get/set it.)
> > > > >
> > > > > That didn't work, so I read thru the archives and found a solution 
> > > > > that
> > > > didn't work either.
> > > > >
> > > > > [Bindable]
> > > > > private var msgString:String = "The account " + {acctName} + " has
> > > > been created .
> > > > >
> > > > > content.htmlText = "{msgString}"
> > > > >
> > > > > What am I missing here? Can anyone offer any helpful pointers?
> > > > >
> > > >
> > > >  
> > > >
> > > 
> > > 
> > > 
> > > -- 
> > > /**
> > > * Pedro Sena
> > > * Systems Architect
> > > * Sun Certified Java Programmer
> > > * Sun Certified Web Component Developer
> > > */
> > >
> >
>




Re: [flexcoders] Re: blazeds mapping issue with Set

2009-04-30 Thread Pedro Sena
Another workaround is use GraniteDS instead of BlazeDS.

:D

On Thu, Apr 30, 2009 at 11:45 AM, aglosband  wrote:

>
>
> Hi Max. There was another bug logged to add support for Java 5.0 syntax
> (which I take to mean Generics) to RemoteObjects.
>
> https://bugs.adobe.com/jira/browse/BLZ-115
>
> That bug has unfortunately been deferred for the time being but I'd suggest
> that you view the bug report and vote on it which will help the issue get
> some visibility and hopefully get it fixed faster.
>
> There is a workaround for this issue which is outlined by wichan in this
> bug report.
>
> https://bugs.adobe.com/jira/browse/BLZ-305
>
> The workaround is to write a wrapper class for Long which then using a
> BeanProxy will get mapped back to java.lang.Long before the remoting service
> is called.
>
> Using this approach you would send a MyLong type across the wire from your
> Flex application to the server. The MyLong type would get deserialized to
> the MyLong java class which would then get passed through the BeanProxy (in
> the example in the bug it's called MyLongProxy) and come out the other end
> as a Long. This would then get passed to the remoting service.
>
> If you are passing an array collection of MyLong objects this would get
> turned into a Set of Long objects so your RemoteObject code would not have
> to change.
>
> Hope that helps.
>
> -Alex
>
> --- In flexcoders@yahoogroups.com ,
> "max.bruchmann"  wrote:
> >
> > Hi,
> > I am having some problems with blazeds and how it maps a collection
> contains long elements.
> >
> > Let's assume I have a class
> >
> > public class MyClass {
> >
> > ..
> >
> > private Set myLongs;
> >
> > public void setMyLongs(Set myLongs){
> > this.myLongs = myLongs;
> > }
> > public Set getMyLongs(){
> > return myLongs;
> > }
> > }
> > and I have a mapped class in flex and a instance of this class containing
> an arraycollection with for example [1, 4]
> >
> > Now I'm sending this instance to my remoteobject
> >
> > ..
> > public void receiveStuff(MyClass m){
> >
> > 
> > }
> > The problem I'm having now, is that blazeds actually mapped the 1 and 4
> not as a Long into myLongs but as a Integer.
> > Sofar this is not a big issue, but I'm passing it forward to hibernate
> and there it leads to some errors:
> >
> >
> > org.hibernate.type.LongType - could not bind value ... to parameter: ...
> > java.lang.Integer cannot be cast to java.lang.Long
> >
> > I found already some bug reports on that in
> https://bugs.adobe.com/jira/browse/BLZ-79 but it's marked as resolve with
> the solution "don't use java syntax 1.5" which is not very helpful. So if
> someone has a solution/workarround/idea please let me know.
> >
> > Thanks in advance
> > Max
> >
>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


[flexcoders] Re: blazeds mapping issue with Set

2009-04-30 Thread aglosband
Hi Max. There was another bug logged to add support for Java 5.0 syntax (which 
I take to mean Generics) to RemoteObjects.  

https://bugs.adobe.com/jira/browse/BLZ-115

That bug has unfortunately been deferred for the time being but I'd suggest 
that you view the bug report and vote on it which will help the issue get some 
visibility and hopefully get it fixed faster. 

There is a workaround for this issue which is outlined by wichan in this bug 
report. 

https://bugs.adobe.com/jira/browse/BLZ-305

The workaround is to write a wrapper class for Long which then using a 
BeanProxy will get mapped back to java.lang.Long before the remoting service is 
called. 

Using this approach you would send a MyLong type across the wire from your Flex 
application to the server. The MyLong type would get deserialized to the MyLong 
java class which would then get passed through the BeanProxy (in the example in 
the bug it's called MyLongProxy) and come out the other end as a Long. This 
would then get passed to the remoting service. 

If you are passing an array collection of MyLong objects this would get turned 
into a Set of Long objects so your RemoteObject code would not have to change. 

Hope that helps. 

-Alex   

--- In flexcoders@yahoogroups.com, "max.bruchmann"  wrote:
>
> Hi,
> I am having some problems with blazeds and how it maps a collection contains 
> long elements.
> 
> Let's assume I have a class
> 
> public class MyClass {
> 
> ..
> 
> private Set myLongs;
> 
> public void setMyLongs(Set myLongs){
>  this.myLongs = myLongs;
> }
> public Set getMyLongs(){
>  return myLongs;
> }
> }
> and I have a mapped class in flex and a instance of this class containing an 
> arraycollection with for example [1, 4] 
> 
> Now I'm sending this instance to my remoteobject
> 
> ..
> public void receiveStuff(MyClass m){
> 
> 
> }
> The problem I'm having now, is that blazeds actually mapped the 1 and 4 not 
> as a Long into myLongs but as a Integer.
> Sofar this is not a big issue, but I'm passing it forward to hibernate and 
> there it leads to some errors:
> 
> 
> org.hibernate.type.LongType - could not bind value ... to parameter: ...
> java.lang.Integer cannot be cast to java.lang.Long
> 
> I found already some bug reports on that in 
> https://bugs.adobe.com/jira/browse/BLZ-79 but it's marked as resolve with the 
> solution "don't use java syntax 1.5" which is not very helpful. So if someone 
> has a solution/workarround/idea please let me know. 
> 
> Thanks in advance
> Max
>




[flexcoders] Resource bundles and Modules

2009-04-30 Thread Todd
Hello All,
  I have some Modules (Cairngorm-based if that matters), that I want to have 
their own resource.property files that are compiled into the module.
  I can't seem to get it working. 
  Should I be looking down the path of manually adding my resource strings to 
the ResourceManger when my Module loads?  Or, is there something more built-in 
to Flex that I'm missing.  (When I try searching on this topic, I'm mostly only 
finding how to bundle your resources in seperate module.swfs...which isn't what 
I'm looking for.  I just want to have the the Module's resources compiled 
within it.)

Thanks,
Todd




[flexcoders] Draw rectangle to Zoom.

2009-04-30 Thread flexaustin
Was wondering if anyone knew of any examples of adding the ability to draw a 
rectangle then zoom the stage to what was in the rectangle?

Think something like draw a rectangle.
Find its bounds.
Create a rect from these bounds.
Then maybe assign this rect to a displayobject scrollrect?



[flexcoders] Re: compatibilty with windows vista home basic

2009-04-30 Thread aglosband
Hi. The BlazeDS developer guide has some tips on how to debug your application. 

http://livedocs.adobe.com/blazeds/1/blazeds_devguide/help.html?content=build_apps_6.html

I'd recommend turning on client side logging and then taking a look at the 
flashlog.txt file that gets generated. If you need help interpreting what's in 
the flashlog post back to the thread and someone can take a look at it for you. 
Thanks. 

-Alex  

--- In flexcoders@yahoogroups.com, Amplify Mindware  wrote:
>
> 
> Hello all,
> I am trying to build an application in which i am trying to access a database 
> object through blazeds. but i am getting an error as send failed.
> I know this is a common problem but my problem is that i have tried the same 
> code on windows xp and its working and on vista its giving this error.
> If anyone can help me please do.
> Thanks & Regards!
> Amplify Mindware.
>




[flexcoders] Re: Outputting a variable into htmlText

2009-04-30 Thread valdhor
For the first part, you are setting the value of msgString during its 
declaration. At this point acctName will be null. You would need to declare 
msgString and then assign it in a creationComplete handler.

Secondly, you can't do this in ActionScript:

content.htmlText = "{msgString}"

You have to do this:

content.htmlText = msgString

The "{}" syntax is to bind a variable in MXML.

Also, For the above, the variable does not need to be bindable.




--- In flexcoders@yahoogroups.com, "fumeng5"  wrote:
>
> Thanks for your responses. 
> 
> What I mean is that in the 1st case:
> content.htmlText = "The account " + this.acctName + " has been 
> created."
> 
> ...the message comes out to be: The account null has been created. However, I 
> can use the debugger to see that acctName is definitely being set correctly. 
> 
> And in the second case:
> [Bindable]
> private var msgString:String = "The account " + this.acctName + " hasbeen 
> created .
> 
> content.htmlText = "{msgString}"
> 
> ...the message comes out to be: {msgString}
> 
> Now I'm not setting 'msgString' right away. I build it in the setter for 
> acctName, as in:
> [Bindable]
> private var msgString:String;
>   
> public function set acctName(s:String):void{
> _acctName = s;
> msgString = "The account " + _acctName + " has been created "
> }
> [Bindable]
> public function get acctName():String{
>   return _acctName;
> }
> 
> I'm pretty sure this should be working and I must be missing something small. 
> Thank you for your help, it's very appreciated.
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Pedro Sena  wrote:
> >
> > try
> > 
> > [Bindable]
> > private var msgString:String = "The account " + this.acctName + " has
> > been created .
> > 
> > content.htmlText = "{msgString}"
> > 
> > and make sure your acctName is not blank.
> > 
> > On Thu, Apr 30, 2009 at 9:55 AM, valdhor wrote:
> > 
> > >
> > >
> > > What do you mean by "That didn't work"?
> > >
> > >
> > > --- In flexcoders@yahoogroups.com ,
> > > "fumeng5"  wrote:
> > > >
> > > > Hi --
> > > >
> > > > I want to output a variable and hardcoded text in the htmlText property
> > > of a Text component.
> > > >
> > > > Here's what I tried first:
> > > >
> > > > content.htmlText = "The account " + this.acctName + " has been 
> > > > created
> > > ."
> > > >
> > > > ('acctName' is a private var that has accessor methods to get/set it.)
> > > >
> > > > That didn't work, so I read thru the archives and found a solution that
> > > didn't work either.
> > > >
> > > > [Bindable]
> > > > private var msgString:String = "The account " + {acctName} + " has
> > > been created .
> > > >
> > > > content.htmlText = "{msgString}"
> > > >
> > > > What am I missing here? Can anyone offer any helpful pointers?
> > > >
> > >
> > >  
> > >
> > 
> > 
> > 
> > -- 
> > /**
> > * Pedro Sena
> > * Systems Architect
> > * Sun Certified Java Programmer
> > * Sun Certified Web Component Developer
> > */
> >
>




[flexcoders] Automatically scroll down to component

2009-04-30 Thread GeeTee

Hi everyone,

I am working on a dashboard in which in the base state some data (several
indices with their data split by time) will be visible in a datagrid and the
user can switch the state to the one in which for every index, there will be
charts one below the other. I want to implement an itemClick event such that
on clicking on any index in the datagrid, the state switched to the "charts"
state and the chart corresponding to the clicked index is shown on the
screen. That is, in case I clicked on the 10th index (such that the 10th
chart would have been hidden in the charts view and user would have to
scroll to it) in the datagrid, automatically, the state would switch and the
page would have automatically scrolled down to show the 10th chart.

I tried setFocus() method of UIComponent class but it did not help. (Note
that the charts are the same custom component each having a different
dataProvider).

Please let me know how I can implement this.

Thanks.
Gaurav
-- 
View this message in context: 
http://www.nabble.com/Automatically-scroll-down-to-component-tp23312982p23312982.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] IE8 problem - opening html page in a new window no longer works

2009-04-30 Thread rasiuz

Hello:

I have an issue with the new Internet Explorer 8:

...
navigateToURL(new URLRequest(theURL),"_blank");
...

this was opening the html page from my flex application in a new window. now
it replaces the current window...

any ideas how to solve this?

Thanks
-- 
View this message in context: 
http://www.nabble.com/IE8-problem---opening-html-page-in-a-new-window-no-longer-works-tp23312258p23312258.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Re: Anyone have issue with AIR updater on Mac OSX

2009-04-30 Thread Buck DeFore
Ugh.. beware also what stalled me for a while tonight...
Using the 1.5.1 sdk I figured I'd need to update the line:

http://ns.adobe.com/air/framework/update/description/1.0";>

to

http://ns.adobe.com/air/framework/update/description/1.5.1";>

in my update.xml ... turns out this causes an error to be thrown...

[StatusUpdateErrorEvent (type=updateError text=unknown update version
id=16815 + subErrorID=0)]

Seems strange that that namespacing hasn't been updated to 1.5.1, or that
changing it to 1.5.1 breaks the parser. On a lighter note, I'm on Leopard
and it wasn't necessary to use the setTimeout nor the applicationComplete
workarounds.

2009/3/4 Rick Schmitty 

>   Just for completeness, Raul Hudea from Adobe suggested moving the
> event to onApplicationComplete and that has fixed the issue for me w/o
> needing the setTimeout delay
>
> I guess my mac is faster than my pc and needed that few ms delay
> before calling the updater :)
>
>
> On Tue, Feb 24, 2009 at 8:58 PM, Rick Schmitty 
> >
> wrote:
> > Thanks Marcello, that definitely wouldn't have been something I would
> > thought to try :)
> >
> > On Tue, Feb 24, 2009 at 5:33 PM, Marcello Teodori
> > > wrote:
> >> Same here, on Leopard we've solved waiting a little timeout before
> >> dispatching the
> >> initialiazed event... I guess it's a bug...
> >>
> >> // Once initialized, wait timeout (workaround for late event) then run
> >> onUpdate
> >> appUpdater.addEventListener(UpdateEvent.INITIALIZED,
> >> function(e:Event):void {
> >> setTimeout(onUpdate, 100, UpdateEvent(e));
> >> }
> >> );
> >>
> >> --- In flexcoders@yahoogroups.com , Rick
> Schmitty  wrote:
> >>>
> >>> I'm using the ApplicationUpdaterUI component to manage updates.
> >>>
> >>> The update process works perfectly on windows, however on OSX the
> >>> update window merely flashes very quickly once and goes straight to
> >>> the app no errors detected, thus not allowing the user to ever update.
> >>> Again works fine on windows XP
> >>>
> >>>
> >>> 
> >>>  >>> creationComplete="checkForUpdates()"
> >>> xmlns:mx="http://www.adobe.com/2006/mxml";
> >>> backgroundColor="0xff" paddingLeft="2" paddingRight="2"
> >>> paddingBottom="2" paddingTop="2">
> >>>
> >>> 
> >>> 
> >>> 
> >>>
> >>
> >>
> >
>
>  
>


[flexcoders] Prom in integrating Flex-Spring with help of BlazeDs

2009-04-30 Thread haribond_thegangster
Hi Friends
I tried to run the sample flex spring application(Mortgage application).It 
displays following error.

[RPC Fault faultString="[MessagingError message='Destination 'mortgageService' 
either does not exist or the destination has no channels defined (and the 
application does not define any default channels.)']" faultCode="InvokeFailed" 
faultDetail="Couldn't establish a connection to 'mortgageService'"]
at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:259]
at 
mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\remoting\mxml\Operation.as:197]
at 
mx.rpc.remoting::Operation/send()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\remoting\Operation.as:113]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at 
mx.rpc.remoting.mxml::Operation/send()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\remoting\mxml\Operation.as:170]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at 
mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AbstractService.as:290]
at harry/___harry_Button1_click()[C:\Program 
Files\Adobe\Flex\harry\src\harry.mxml:8]


Can any one help me to sort out this problem...

Regards
Hari



[flexcoders] Re: Outputting a variable into htmlText

2009-04-30 Thread fumeng5
Thanks for your responses. 

What I mean is that in the 1st case:
content.htmlText = "The account " + this.acctName + " has been created."

...the message comes out to be: The account null has been created. However, I 
can use the debugger to see that acctName is definitely being set correctly. 

And in the second case:
[Bindable]
private var msgString:String = "The account " + this.acctName + " hasbeen 
created .

content.htmlText = "{msgString}"

...the message comes out to be: {msgString}

Now I'm not setting 'msgString' right away. I build it in the setter for 
acctName, as in:
[Bindable]
private var msgString:String;

public function set acctName(s:String):void{
_acctName = s;
msgString = "The account " + _acctName + " has been created "
}
[Bindable]
public function get acctName():String{
return _acctName;
}

I'm pretty sure this should be working and I must be missing something small. 
Thank you for your help, it's very appreciated.



--- In flexcoders@yahoogroups.com, Pedro Sena  wrote:
>
> try
> 
> [Bindable]
> private var msgString:String = "The account " + this.acctName + " has
> been created .
> 
> content.htmlText = "{msgString}"
> 
> and make sure your acctName is not blank.
> 
> On Thu, Apr 30, 2009 at 9:55 AM, valdhor wrote:
> 
> >
> >
> > What do you mean by "That didn't work"?
> >
> >
> > --- In flexcoders@yahoogroups.com ,
> > "fumeng5"  wrote:
> > >
> > > Hi --
> > >
> > > I want to output a variable and hardcoded text in the htmlText property
> > of a Text component.
> > >
> > > Here's what I tried first:
> > >
> > > content.htmlText = "The account " + this.acctName + " has been created
> > ."
> > >
> > > ('acctName' is a private var that has accessor methods to get/set it.)
> > >
> > > That didn't work, so I read thru the archives and found a solution that
> > didn't work either.
> > >
> > > [Bindable]
> > > private var msgString:String = "The account " + {acctName} + " has
> > been created .
> > >
> > > content.htmlText = "{msgString}"
> > >
> > > What am I missing here? Can anyone offer any helpful pointers?
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java Programmer
> * Sun Certified Web Component Developer
> */
>




Re: [flexcoders] Re: Outputting a variable into htmlText

2009-04-30 Thread Pedro Sena
try

[Bindable]
private var msgString:String = "The account " + this.acctName + " has
been created .

content.htmlText = "{msgString}"

and make sure your acctName is not blank.

On Thu, Apr 30, 2009 at 9:55 AM, valdhor wrote:

>
>
> What do you mean by "That didn't work"?
>
>
> --- In flexcoders@yahoogroups.com ,
> "fumeng5"  wrote:
> >
> > Hi --
> >
> > I want to output a variable and hardcoded text in the htmlText property
> of a Text component.
> >
> > Here's what I tried first:
> >
> > content.htmlText = "The account " + this.acctName + " has been created
> ."
> >
> > ('acctName' is a private var that has accessor methods to get/set it.)
> >
> > That didn't work, so I read thru the archives and found a solution that
> didn't work either.
> >
> > [Bindable]
> > private var msgString:String = "The account " + {acctName} + " has
> been created .
> >
> > content.htmlText = "{msgString}"
> >
> > What am I missing here? Can anyone offer any helpful pointers?
> >
>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


[flexcoders] Re: Outputting a variable into htmlText

2009-04-30 Thread valdhor
What do you mean by "That didn't work"?




--- In flexcoders@yahoogroups.com, "fumeng5"  wrote:
>
> Hi --
> 
> I want to output a variable and hardcoded text in the htmlText property of a 
> Text component. 
> 
> Here's what I tried first: 
> 
> content.htmlText = "The account " + this.acctName + " has been created 
> ."
> 
> ('acctName' is a private var that has accessor methods to get/set it.) 
> 
> That didn't work, so I read thru the archives and found a solution that 
> didn't work either. 
> 
> [Bindable]
> private var msgString:String = "The account " + {acctName} + " has been 
> created . 
> 
> content.htmlText = "{msgString}"
> 
> What am I missing here? Can anyone offer any helpful pointers?
>




[flexcoders] Re: Multiple chart effects conflicting with each other

2009-04-30 Thread valdhor
The problem is due to the different durations for the effects. Stting them all 
to the same value fixes the problem.

I don't know whether this is a bug or whether it's just a limitation of a 
parallel effect. Someone else may have further input.

HTH.



Steve


--- In flexcoders@yahoogroups.com, thorninc  wrote:
>
> 
> Hello all!   :)
> 
> Issue Description:
> 
> -  Two chart series of two different series types (mx:ColumnSeries and
> mx:LineSeries)
> -  Trying to run two different chart data effects (mx:SeriesZoom and
> mx:SeriesSlide) simultaneously 
> -  Having some sort of conflict
> 
> My application is more complex than this, but this is a good example of the
> type of thing that's happening on our chart when the data provider changes:
> 
> 1)  Please compile and run the following code.  
> 2)  Then click the button at the bottom of the application.
> 3)  Notice how after the line series gets removed, it appears for a second,
> then disappears without using its hide and show effects.  Then it reappears,
> but this time using the appropriate chart data effect.
> 
> Can anyone tell me how to fix this?
> 
> Thanks,
> 
> Anton
> 
> -   THE CODE:  ---
> 
> 
> 
> http://www.adobe.com/2006/mxml"; width="100%"
> height="100%">
>   
> 
>   
>   
>   
>  id="slideIn" 
> duration="1000" 
> direction="right"
> />
>  id="slideOut" 
> duration="1000" 
> direction="left"
> />
> 
>  
> duration="2000" 
>  minimumElementDuration="50"
>  elementOffset="50" 
>  verticalFocus="top" 
>  horizontalFocus="left"
>  relativeTo="series"
>   />
> duration="2000" 
>  minimumElementDuration="50" 
>  elementOffset="-50" 
>  verticalFocus="top" 
>  horizontalFocus="right"
>  relativeTo="series"
>   />
> 
> 
>   
>   dataProvider="{SMITH}"
> showDataTips="true"
> height="100%"
> width="100%"
>  >
>  
> 
>
> 
> 
>
> 
> 
> 
>   id="colSeries"
> dataProvider="{SMITH}"
> xField="date"
> yField="close"
> displayName="SMITH"   
> showDataEffect="zoomIn"
> hideDataEffect="zoomOut"
>>
>
>   id="lineSeries"
> dataProvider="{DECKER}"
> xField="date"
> yField="close"
> displayName="DECKER"
>   showDataEffect="slideIn"
>   hideDataEffect="slideOut"
>>
>
> 
> 
>  
>  
>   
>   
> 
> 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Multiple-chart-effects-conflicting-with-each-other-tp23302381p23302381.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




[flexcoders] Re: How come setting the responder (async token) after the server call does WORKS???

2009-04-30 Thread valdhor
This is from a thread (sic) response from Seth Hodgson about a year ago...

There is a single thread that advances through SWF frames and runs your 
ActionScript code and event handlers, but network calls are performed by 
separate background threads concurrently.

In order to have calls processed concurrently on the server, they need to 
arrive as separate requests. In the case of AMF, if you make a series of calls 
quickly chances are good/excellent that the Player will batch them up and send 
them to the server in the body of a single HTTP POST.



Thread is at http://tech.groups.yahoo.com/group/flexcoders/message/113808



--- In flexcoders@yahoogroups.com, "Mehdi"  wrote:
>
> Tracy,
> 
> I was trying to illustrate what I had understood from what has been said: 
> "Flex asynchronous methods get queued up and are only invoked once ALL 
> synchronous calls in the same block get executed. "
> 
> My example might not be the best but since the http.send() was in a function 
> on its own, i.e a block, the server invocation will happen upon leaving that 
> function.
> it is true that we are setting the responder right after that function call. 
> But assuming that in my doit function I had:
> 
> public function doit():void
> {
>   callServer();
>   // do some other stuff
>   callAnotherComputingAndStallingMethod();
>   // and now add the responder
>   asyncToken.addResponder(...);
> }
> 
> well, my chances for the server responding after I set the responder are 
> slimmer. As in the other scenario where it's all in 1 method call, and the 
> server call only gets invoked at the end of the method after I set the 
> responder.
> Cheers,
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > ".chances of it working are reduced." Why do you say that?
> > 
> >  
> > 
> > Tracy Spratt,
> > 
> > Lariat Services, development services available
> > 
> >   _  
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> > Behalf Of Mehdi
> > Sent: Wednesday, April 29, 2009 11:49 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: How come setting the responder (async token) after
> > the server call does WORKS???
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> > 
> > I see. So shall I read your response as:
> > Flex asynchronous methods get queued up and are only invoked once ALL
> > synchronous calls in the same block get executed. 
> > 
> > So I were to have the following:
> > 
> > var asyncToken:ASyncToken
> > public function callServer():void
> > {
> > asyncToken= httpsrv.send();
> > }
> > 
> > public function doit():void
> > {
> > callServer();
> > asyncToken.addResponder(...);
> > }
> > 
> > 
> > So, in this case, my chances of it working are reduced... (not the 100%
> > anymore). Is that right?
> > thks.
> > 
> > --- In flexcod...@yahoogro  ups.com,
> > "Adnan Doric"  wrote:
> > >
> > > The key word is "asynchronous".
> > > 
> > > "httpsrv.send()" is asynchronous so it gets executed after all synchronous
> > statements (addResponder is synchronous) in the same block.
> > > 
> > > cheers,
> > > Adnan
> > > 
> > > --- In flexcod...@yahoogro  ups.com,
> > "Mehdi"  wrote:
> > > >
> > > > This is a question that has been bothered me for some time. 
> > > > You know how in Flex you can invoke a service (say httpservice for
> > instance) which returns a token. After that you set the responder on the
> > token. I.e.:
> > > > 
> > > > var asyncToken:ASyncToken = httpsrv.send();
> > > > asyncToken.addResponder(...)
> > > > 
> > > > We set the responder/handler AFTER the call has been set. Its very
> > awkward but it does work. I was hoping someone could explain this to me.
> > Thank you.
> > > > 
> > > > Flex being single threaded, the call to httpsrv.send() should actually
> > invokes the server and not get into the second line about the responder
> > until the call has been at least issued. 
> > > > But that's not how it works I guess. So, I am assuming the call is
> > queued somewhere, untiluntil when???
> > > > 
> > > > Cheers
> > > >
> > >
> >
>




[flexcoders] Re: popup progress bar will uploading file

2009-04-30 Thread stinasius
do you mind sharing an example?



[flexcoders] Re: popup progress bar will uploading file

2009-04-30 Thread Cato Paus
in the titleWindow you can call the PopUpManager.removePopUp(this); called from 
Complete Event as you have done, or you can dispatch the Complete Event to 
parent, and kill the popup ther , 
(The PopUpManager is a singleton so you can access it form enyware)



--- In flexcoders@yahoogroups.com, "stinasius"  wrote:
>
> hi i am trying to show a popup progress bar will uploading file. i would like 
> help on how to close the popup once the file has finished uploading. here is 
> my code so far..
> 
> "popup progress bar(progress_popup.mxml)"
> 
> http://www.adobe.com/2006/mxml"; layout="vertical" 
> borderStyle="none" headerHeight="0" creationCompleteEffect="{customMove}">
>   
>   
>   
>   
>   
>  xTo="{(stage.width  - this.width) / 2}" yTo="{(stage.height - this.height) / 
> 2}" easingFunction="Elastic.easeOut" duration="1000" />
>   
> 
> 
> 
> 
> 
> file uploadcode
> 
> "upload.as(where popup is called from upload form)"
> private const FILE_UPLOAD_URL:String = "../cfcs/upload.cfm";
>   private var fileRef:FileReference;
> private function init():void
> {
>   fileRef = new FileReference();
>   fileRef.addEventListener(Event.SELECT, fileRef_select);
>   fileRef.addEventListener(Event.COMPLETE, fileRef_complete);
>   //fileRef.addEventListener(ProgressEvent.PROGRESS, progressHandler);
> }
> 
> private function browseAndUpload():void
> {
> fileRef.browse();
> message.text = "";
> createdprogressPopup();
> }
> 
> private function fileRef_select(event:Event):void 
> {
>   try 
>   {
>   //message.text = "size (bytes): " + 
> numberFormatter.format(fileRef.size);
>   fileRef.upload(new URLRequest(FILE_UPLOAD_URL));
> } 
> catch (err:Error)
> {
>   message.text = "ERROR: zero-byte file";
> } 
> memPhoto.text = event.currentTarget.name;
>   }
> 
> private function fileRef_complete(event:Event):void
> {
>   message.text += " (complete)";
>   progress_win.addEventListener("Close", removeMe);
> }
> 
> /* private function fileRef_progress(evt:ProgressEvent):void {
>   progressBar.setProgress(Number(evt.bytesLoaded), 
> Number(evt.bytesTotal));
> }
>  
> private function progressHandler(event:ProgressEvent):void {
>   var file:FileReference = FileReference(event.target);
> progressBar.setProgress( Number(event.bytesLoaded), 
> Number(event.bytesTotal));
> } */
> 
> [Bindable]
> private var progress_win:progress_popup;
>   private function createdprogressPopup():void{
>   
> progress_win=progress_popup(PopUpManager.createPopUp(this,progress_popup,true));
> /* reply_win.reply_subject.text = discussion_dg.selectedItem.data;
> reply_win.postsubject_msg.text = discussion_dg.selectedItem.data;
> reply_win.idusr_msg.text = number.text; */
> }
> private function removeMe(event:Event):void {
>   PopUpManager.removePopUp(progress_win);
> }




[flexcoders] popup progress bar will uploading file

2009-04-30 Thread stinasius
hi i am trying to show a popup progress bar will uploading file. i would like 
help on how to close the popup once the file has finished uploading. here is my 
code so far..

"popup progress bar(progress_popup.mxml)"

http://www.adobe.com/2006/mxml"; layout="vertical" 
borderStyle="none" headerHeight="0" creationCompleteEffect="{customMove}">









  


file uploadcode

"upload.as(where popup is called from upload form)"
private const FILE_UPLOAD_URL:String = "../cfcs/upload.cfm";
private var fileRef:FileReference;
private function init():void
{
fileRef = new FileReference();
fileRef.addEventListener(Event.SELECT, fileRef_select);
fileRef.addEventListener(Event.COMPLETE, fileRef_complete);
//fileRef.addEventListener(ProgressEvent.PROGRESS, progressHandler);
}

private function browseAndUpload():void
{
fileRef.browse();
message.text = "";
createdprogressPopup();
}

private function fileRef_select(event:Event):void 
{
try 
{
//message.text = "size (bytes): " + 
numberFormatter.format(fileRef.size);
fileRef.upload(new URLRequest(FILE_UPLOAD_URL));
} 
catch (err:Error)
{
message.text = "ERROR: zero-byte file";
}   
memPhoto.text = event.currentTarget.name;
}

private function fileRef_complete(event:Event):void
{
message.text += " (complete)";
progress_win.addEventListener("Close", removeMe);
}

/* private function fileRef_progress(evt:ProgressEvent):void {
progressBar.setProgress(Number(evt.bytesLoaded), 
Number(evt.bytesTotal));
}
 
private function progressHandler(event:ProgressEvent):void {
var file:FileReference = FileReference(event.target);
progressBar.setProgress( Number(event.bytesLoaded), 
Number(event.bytesTotal));
} */

[Bindable]
private var progress_win:progress_popup;
private function createdprogressPopup():void{

progress_win=progress_popup(PopUpManager.createPopUp(this,progress_popup,true));
/* reply_win.reply_subject.text = discussion_dg.selectedItem.data;
reply_win.postsubject_msg.text = discussion_dg.selectedItem.data;
reply_win.idusr_msg.text = number.text; */
}
private function removeMe(event:Event):void {
PopUpManager.removePopUp(progress_win);
}






[flexcoders] Re: How to 'undo' the changes in the flex client w/ LCDS when a rollback is isssued?

2009-04-30 Thread Mehdi
I would totally see it as a bug. If LCDS manages the object, it is its role to 
propagate up the rollback. No question about it.

Good luck in your new adventure, whatever it is!
Thanks.

--- In flexcoders@yahoogroups.com, Jeffrey Vroom  wrote:
>
> In my opinion, LCDS should detect that you've called setRollbackOnly and
> deliver a generic fault to the client.  I just recently left Adobe so it is
> not my position anymore to say for sure it is a bug or just the way it
> works.  I vaguely recall a bug opened on this issue but can't check since
> that bug system is not public.
> 
> Jeff
> 
> On Wed, Apr 29, 2009 at 12:09 PM, Mehdi  wrote:
> 
> >
> >
> > --- In flexcoders@yahoogroups.com , Jeffrey
> > Vroom  wrote:
> > >
> > > I think this is a bug - calling setRollbackOnly does not trigger the
> > fault
> > > handler. The server knows that transaction failed but the client does not
> > > so things get out of sync. You have to throw an exception from your
> > > assembler methods to get the fault handler called. When you do that, if
> > > use-transactions=true, the rollback will happen automatically. this also
> > > gives you the ability to pass the message of your exception to the client
> > so
> > > your fault handler knows what exactly the error was on the server.
> > >
> > > At that point, you can call revertChanges to undo that change.
> > >
> > > Jeff
> > >
> > > On Wed, Apr 29, 2009 at 9:15 AM, Mehdi  wrote:
> > >
> > > >
> > > >
> > > > The typical example.
> > > > You have a datagrid that is bound with an arraycollection, which source
> > is
> > > > managed by LCDS via ds.fill().
> > > > your datagrid is editable. The user edits a value in the collection and
> > you
> > > > fire a commit. (ds.commit()).
> > > >
> > > > Let say you are using a custom assembler. The
> > > > updateItem(newVersion,prevVersion,changesList) method will be invoked.
> > > > There assuming something goes wrong and you call:
> > > >
> > > >
> > DataServiceTransaction.getCurrentDataServiceTransaction().setRollbackOnly();
> > > >
> > > > I can see the db rolling back no problem. But my client did not get any
> > > > notification!
> > > > I have callback functions in the commit, and I have event listener on
> > the
> > > > ds (fault and result) AS such:
> > > >
> > > > _dataService.commit();
> > > > token.addResponder(new AsyncResponder(
> > > > function onAsyncResult(result:Object, token:Object = null) : void
> > > > {
> > > > }
> > > > function onAsyncFault(.../...)
> > > > )
> > > >
> > > > AND,
> > > >
> > > > _dataService.addEventListener(DataServiceFaultEvent.FAULT,
> > this.onFault,
> > > > false, 0, true);
> > > > _dataService.addEventListener(ResultEvent.RESULT, this.onResult, false,
> > 0,
> > > > true);
> > > >
> > > > NONE of these callbacks get called. So I basically have no way of
> > knowing
> > > > that a rollback happened, and the user datagrid is still showing the
> > wrong
> > > > value, since the commit failed. Any idea?
> > > >
> > > > Note that however when an exception is thrown on the server
> > (updateItem()
> > > > method), I do indeed get a callback via the AsyncFault method.
> > > >
> > > > Thank you.
> > > >
> > > >
> > > >
> > >
> > Hi Jeff,
> >
> > I'm not sure what you meant by:
> > "I think this is a bug - calling setRollbackOnly does not trigger the fault
> > handler"
> > Are you confirming the fact that this is a bug, and that calling
> > setRollbackOnly SHOULD actually call the fault handler or you are saying
> > that only throwing an exception should do it.?
> >
> > thanks.
> >
> >  
> >
>




  1   2   >