[flexcoders] Updates Issue in Mozilla ....any thoughts to share???

2009-01-06 Thread akila_ksri
The application we are developing needs the controls like labels, data 
grid etc., to be updated every second. This works fine without any   
issue in IE 7, but the updates fail to happen in Mozilla most of the 
time. Clearing cache through html does not work!!!
We have to get it working in Mozilla at the earliest.
Any thoughts on how to achieve this would be greatly appreciated.
Waiting for a positive response..

Thanks in advance,
Akila





Re: [flexcoders] Re: Using ActiveXObject with Adobe AIR and Flex

2009-01-06 Thread Johannes Nel
I suspect this cannot work, mostly since the browser in air would have to be
cross platform and OLE objects are windows based. you can reverse this of
course and embed the whole flex application into a win app as an ActiveX
control and then use browser active X control as well. not nearly as nice
nor neat ofcourse.

On Thu, Jan 1, 2009 at 5:22 AM, pratikshah83  wrote:

>   Hi Nate,
>
> Actually I am trying to call an application and update the application
> using the activexobject.
>
> The application has an OLE Object model set up. So it has certain
> methods exposed which I can access using the activexobject in jscript.
>
> You can take and example of calling Excel.Application and updating the
> excel document.
>
> I hope you are getting an idea what exactly I am trying to do.
>
> Let me know if you need any more information. I was trying to use
> html. But if I can achieve without using html it would be great. In
> short I need to call an application on my PC and update it using its
> OLE object.
>
> Thanks
> Pratik
>
> --- In flexcoders@yahoogroups.com , "Nate
> Beck"  wrote:
> >
> > Can you possibly give some more code?
> > I'm trying to understand what it is you are trying to do. If you
> are using
> > Adobe AIR, then you are running the application outside of the browser
> > completely. The MX:HTML tag is a version of webkit within the Adobe AIR
> > runtime, not within IE.
> >
> > Cheers,
> > Nate
> >
> > On Wed, Dec 31, 2008 at 5:46 PM, pratikshah83 wrote:
> >
> > > Hi Guys,
> > >
> > > I am trying to execute a application on the desktop using
> > > ActiveXObject... but I am unable to get it working with Adobe AIR
> + Flex.
> > >
> > > Something Like this. It works fine using it in javascript in IE. But i
> > > am unable to get it working from AIR even after calling the javascript
> > > and so tried using the mx:html tag.
> > >
> > > AB = new ActiveXObject("Broker.Application");
> > > AB.Quit();
> > >
> > > Any help if this regards would be appreciated.
> > >
> > > Thanks
> > > Pratik
> > >
> > >
> > >
> >
> >
> >
> > --
> >
> > Cheers,
> > Nate
> > 
> > http://blog.natebeck.net
> >
>
>  
>



-- 
j:pn
\\no comment


RE: [flexcoders] Re: Validating Checkboxes in an item renderer

2009-01-06 Thread Alex Harui
I wish I could claim credit, but I'm not the FlexExamples guy.  I was thinking 
of my post here: 
http://blogs.adobe.com/aharui/2008/02/checkbox_selection_in_datagrid.html



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of stldvd
Sent: Tuesday, January 06, 2009 5:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Validating Checkboxes in an item renderer


I also tried adding this to the arrColl_collectionChange function:

if(list.selectedIndex == -1)
{
Alert.show("No items are selected!");
}

But the only time it fires is when the app first loads, presumably
because the list isn't yet populated. If I uncheck all the checkboxes,
it doesn't show. The event in question is the change event of the
checkbox, so it seems to me this ought to work. No?

I did get it to work by modifying as follows:

if(!tArr.length)
{
Alert.show("No items are selected!");
}

--- In flexcoders@yahoogroups.com, 
"stldvd"  wrote:
>
> Hi Alex,
>
> I've been studying your code at
>
http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/
>
> You use the filter method on the underlying array (source) for the
> arrayCollection datasource of the list. The signature of your
function is:
>
> private function selectedOnly(item:ListItemValueObject, idx:uint,
> arr:Array):Boolean {
> return item.isSelected;
> }
>
> The filter method, according to the Flex docs, 'executes a test
> function on each item in the array and constructs a new array for all
> items that return true for the specified function.' That I understand,
> and I can see that you're being returned an array, tArr. But how are
> you able to call a function with that signature and know that all
> three parameters are going to be passed in? I tried adding a fourth
> parameter - , porky:String - and it broke. How does this method know
> that idx:uint is OK, but porky:String isn't?
>
>
>
> --- In flexcoders@yahoogroups.com, Alex 
> Harui  wrote:
> >
> > You could use a derivative of the example on my blog and then just
> test if selectedIndex != -1
> >
> > From: flexcoders@yahoogroups.com 
> > [mailto:flexcoders@yahoogroups.com]
> On Behalf Of stldvd
> > Sent: Tuesday, January 06, 2009 1:47 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Validating Checkboxes in an item renderer
> >
> >
> > Hi All,
> >
> > I've got a checkbox in an item renderer. I need to know that at least
> > one checkbox has been selected in order for the data to be considered
> > valid and the 'save' function to go through. But I'm not sure how to
> > iterate through the checkboxes, since in the code there's only one:
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > Any help appreciated.
> >
> > -- David
> >
>



RE: [flexcoders] security sandbox violation in standalone player but not in browser

2009-01-06 Thread Alex Harui
Might be a bug or subtle intended behavior.  Read up on the security doc to see 
if it talks about that case.  For sure, in local sandboxes, you can't back out 
to higher folders using ..\ so maybe that check runs in Standalone player.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Maciek Sakrejda
Sent: Tuesday, January 06, 2009 6:37 PM
To: flexcoders
Subject: [flexcoders] security sandbox violation in standalone player but not 
in browser


Our application has been working fine in various browsers. I'm trying to
get it to work in the standalone player (version 9 debug and 10
debug--same behavior--for Linux) for automated testing, but I'm hitting
some security sandbox violations:

*** Security Sandbox Violation ***

Connection to 
http://localhost:8080/truviso/flex/main/../../foo
 halted -
not permitted from http://localhost:8080/truviso/flex/main/main.swf

This relative URL works just fine when loading the .swf through Firefox,
IE, Safari, and Opera. We're using relative URLs because we need to be
able to rename the webapp without rebuilding it. There's a
crossdomain.xml file in truviso/crossdomain.xml and in the root with
wide-open access (for now).

Any ideas why the standalone player is unhappy with this relative URL?
Anything I can do with respect to crossdomain.xml or other security
configuration to get around this?

Thanks,
--
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com



Re: [flexcoders] Newbie question: Completion Events or proxy binding for RemoteObject calls

2009-01-06 Thread Josh McDonald
Bindings work with any objects, so long as the fields (or the whole class)
are marked with [Bindable]

-Josh

On Wed, Jan 7, 2009 at 11:44 AM, john.casey64 wrote:

> I'm working on an application where I build a tree (in actionscript
> buildtree()) where I add new leafs from data that is retieve from a
> remote call.
>
> Since the buildtree() function deals with the view - I have this coded
> in the view mxml. The tree is bound to a XMLListCollection which is
> updated by the buildtree() function after a remote value object is updated
>
> The remote RetrieveDataCommand successfully retrieves the data into a
> business value object.
>
> What is the correct Cairgorm method for triggering the builtree()
> function after the RetrieveDataCommand is complete?
>
> I don't want to pollute my Command logic with any specific calls to
> buildtree()
>
> Should I be adding RemoteCommandComplete events to all of my
> RemoteCommands? and then set the view logic to listen for them?
>
> I tried to set a Collection.COLLECTION_CHANGE listener on the Business
> Value object from my View logic. But it seems to fire before the
> ArrayCollection is complete.
>
> I also tried the BindUtils function to bind my buildtree() function to
> my value object,  but bindutils only seems to work with MX visual
> objects, not actionscript value objects.
>
> Any experts out there? I'm sure there must be a simple solution for this.
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


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

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

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


Re: [flexcoders] trying to put a Degrafa BezierSpline on a Papervision3D Sphere...

2009-01-06 Thread Josh McDonald
You might need to use a degrafa surface rather than rendering into another
component. If that's not going to do it, I imagine you'll have to have
degrafa render into a bitmapData (or something along those lines) and add an
mx:image with that data set as the source.

Also there's a Degrafa list where you might get a better answer:
http://groups.google.com/group/degrafa/?pli=1

-Josh

On Wed, Jan 7, 2009 at 9:40 AM, addlistener  wrote:

> Hi all,
>
> I'm trying to put a Degrafa BezierSpline on a Papervision3D Sphere...
>
> Any idea?
>
> I've made a Canvas with three others, one for a map, a red one and a
> empty to receive the BezierSpline
>
> 
>
>blue
>
> 
>
>data="300,300 100,150"
>  graphicsTarget="{[pata,pata1,pata2]}"
>  fill="{fill}" autoClose="true" tension="2"
> autoClearGraphicsTarget="true">
>
>
>
> 
>
>
> horizontalScrollPolicy="off"
>verticalScrollPolicy="off" visible="false">
> source="@Embed('assets/EarthMap_2500x1250.jpg')"/>
>
> 
>
>  blendMode="multiply"  />
>
>
>
>
>
> the spline go in pata (test) but doesn't in pata2.
>
> In fact theTarget (Canvas) is the Material for the 3D Sphere, when
> PV3D map the material, the BezierSpline is removed...
>
> Any idea?
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


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

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

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


Re: [flexcoders] Animated border around thumbnails - similar to MTV header

2009-01-06 Thread Josh McDonald
I'd make the "border" a Degrafa surface (or just a mx:Box with a border).
Add a moveEffect and a resizeEffect, put it in the same container as the
thumbnails, but last in the list so it'll be on top. If they're in a hbox or
something like that and you don't want to mess up the layout of the
container, set

myBorderComponent.includeInLayout = false;

And it will be in the same container but won't affect the layout. Then,
every time you want to hilight another thumbnail, simply call:

myBorderComponent.move(nextThumbnail.x, nextThumbnail.y);
myBorderComponent.width = nextThumbnail.width;
myBorderComponent.height = nextThumbnail.height;

And the moveEffect and resizeEffect should do the rest.

-Josh

On Wed, Jan 7, 2009 at 11:39 AM, asli_binal  wrote:

> Hi everyone,
> I'm looking for advice on how to easily accomplish the following task.
> I already have a Flex app that displays four thumbnail images in a
> vbox on the right side, and when I click on one, that image is
> displayed in a larger format within the same app (left of the vbox).
>
> What I'd like to do next is place a border/rectangle around the
> thumbnail, and have that border move down to the next thumbnail using
> a timer. So, I have a couple questions: (see the MTV header)
>
> 1. Is it best to use a custom image class with border or is it better
> to use drawRect to place a rectangle over the mx:Image? Or use a
> TileList instead of vbox and make the timer automatically scroll
> through the thumbs?
>
>
> I basically want to accomplish something similar to the animated
> marquee/header on mtv.com (is the effect they use on the images
> mx.effects.move?)
>
> ...and I'm a beginner with any custom components and animation - so
> any clues/help would be appreciated.
>
> Thanks
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


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

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

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


[flexcoders] trying to put a Degrafa BezierSpline on a Papervision3D Sphere...

2009-01-06 Thread addlistener
Hi all,

I'm trying to put a Degrafa BezierSpline on a Papervision3D Sphere...

Any idea?

I've made a Canvas with three others, one for a map, a red one and a
empty to receive the BezierSpline



blue



 



  













the spline go in pata (test) but doesn't in pata2.

In fact theTarget (Canvas) is the Material for the 3D Sphere, when
PV3D map the material, the BezierSpline is removed...

Any idea?




[flexcoders] Newbie question: Completion Events or proxy binding for RemoteObject calls

2009-01-06 Thread john.casey64
I'm working on an application where I build a tree (in actionscript
buildtree()) where I add new leafs from data that is retieve from a
remote call.

Since the buildtree() function deals with the view - I have this coded
in the view mxml. The tree is bound to a XMLListCollection which is
updated by the buildtree() function after a remote value object is updated

The remote RetrieveDataCommand successfully retrieves the data into a
business value object.

What is the correct Cairgorm method for triggering the builtree()
function after the RetrieveDataCommand is complete?

I don't want to pollute my Command logic with any specific calls to
buildtree()

Should I be adding RemoteCommandComplete events to all of my
RemoteCommands? and then set the view logic to listen for them?

I tried to set a Collection.COLLECTION_CHANGE listener on the Business
Value object from my View logic. But it seems to fire before the
ArrayCollection is complete.

I also tried the BindUtils function to bind my buildtree() function to
my value object,  but bindutils only seems to work with MX visual
objects, not actionscript value objects.

Any experts out there? I'm sure there must be a simple solution for this. 



[flexcoders] Animated border around thumbnails - similar to MTV header

2009-01-06 Thread asli_binal
Hi everyone,
I'm looking for advice on how to easily accomplish the following task.
I already have a Flex app that displays four thumbnail images in a
vbox on the right side, and when I click on one, that image is
displayed in a larger format within the same app (left of the vbox).

What I'd like to do next is place a border/rectangle around the
thumbnail, and have that border move down to the next thumbnail using
a timer. So, I have a couple questions: (see the MTV header)

1. Is it best to use a custom image class with border or is it better
to use drawRect to place a rectangle over the mx:Image? Or use a
TileList instead of vbox and make the timer automatically scroll
through the thumbs?


I basically want to accomplish something similar to the animated
marquee/header on mtv.com (is the effect they use on the images
mx.effects.move?)

...and I'm a beginner with any custom components and animation - so
any clues/help would be appreciated.

Thanks



Re: [flexcoders] Which Unit Testing Framework to use?

2009-01-06 Thread Alen Balja
Interestingly, nobody ever mentioned FlexMonkey on this forum, but it seems
like good stuff. Thanks for the responses and advice.

A.


On Wed, Jan 7, 2009 at 3:50 AM, Josh McDonald  wrote:

>   I can report that I'm happy with FlexUnit as well. I *really* don't like
> the syntax for async stuff, but wrapping nice syntax around bad is what we
> do for a living, so when I need it I'll write it (and release it, of
> course!)
>
> -Josh
>
>
> On Wed, Jan 7, 2009 at 12:02 AM, Wally Kolcz  wrote:
>
>>  Been looking at FlexUnit, FUnit, and ASUnit. Like FlexUnit best so
>> far...
>>
>> --
>> *From*: "b_alen" 
>> *Sent*: Tuesday, January 06, 2009 5:50 AM
>> *To*: flexcoders@yahoogroups.com
>> *Subject*: [flexcoders] Which Unit Testing Framework to use?
>>
>> After a brief search on flex unit testing I found that FlexUnit is
>> supposed to be the leader of the pack. Also, there is FlexMonkey that
>> looks to be promising and it even uses FlexUnit.
>>
>> http://code.google.com/p/flexmonkey/
>>
>> Are there any other frameworks worth considering and what is your
>> general experience with various frameworks.
>>
>> Thanks.
>>
>> Alen
>>
>>
>>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> Like the cut of my jib? Check out my Flex blog!
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: j...@gfunk007.com
> :: http://flex.joshmcdonald.info/
> :: http://twitter.com/sophistifunk
>  
>


Re: [flexcoders] RSL VerifyError: Error #1079: Native methods are not allowed in loaded code.

2009-01-06 Thread freak182

Hello,

here is the trace when i compile my flex app:



compiler.es=false
compiler.external-library-path
D:\shared_maven_repo\repository\com\adobe\flex\framework\playerglobal\9-3.2.
.3958\playerglobal-9-3.2.0.3958.swc
compiler.fonts.local-fonts-snapshot
D:\flex\test-project\test\test-ui\target\fonts.ser
compiler.headless-server=false
compiler.include-libraries=
compiler.keep-all-type-selectors=false
compiler.keep-generated-actionscript=false
compiler.library-path
D:\shared_maven_repo\repository\com\adobe\flex\framework\flex\3.2.0.3958\flex-3.2.0.3
58.swc
D:\shared_maven_repo\repository\com\adobe\flex\framework\framework\3.2.0.3958\framework-3.2.0.3958.s
c
D:\shared_maven_repo\repository\com\adobe\flex\framework\rpc\3.2.0.3958\rpc-3.2.0.3958.swc
D:\shared_mave
_repo\repository\com\adobe\flex\framework\utilities\3.2.0.3958\utilities-3.2.0.3958.swc
D:\shared_maven_rep
\repository\com\adobe\cairngorm\cairngorm\2.2.1\cairngorm-2.2.1.swc
D:\shared_maven_repo\repository\com\ado
e\flex\framework\framework\3.2.0.3958\framework-3.2.0.3958-en_US.rb.swc
D:\shared_maven_repo\repository\com
adobe\flex\framework\rpc\3.2.0.3958\rpc-3.2.0.3958-en_US.rb.swc
compiler.locale en_US
compiler.optimize=true
compiler.services
D:\flex\buspinoy-project\buspinoy\buspinoy-ui\target\generated-resources\services-config.xml

...still error.

Thanks.


Darrell Loverin wrote:
> 
> This error is caused by trying to load playerglobal.swc as an RSL. 
> playerglobal.swc must always be linked as "external".
> 
> 
> -Darrell
> 
> --- In flexcoders@yahoogroups.com, freak182  wrote:
>>
>> 
>> Hello,
>> 
>> Im getting same error by upgrading my flex sdk:
>> here is my scenario:
>> 
>> 1. im using flex-compiler-mojo to build flex
>> 2. i upgrade from 3.0.0.477 to 3.2.0.3958
>> 3. it has no when compiling but when i start my app, it gives me 
> error:
>> VerifyError: Error #1079: Native methods are not allowed in loaded
>> codeand cascade the errors...
>> 
>> 
>> Darrell Loverin wrote:
>> > 
>> > Would you please provide some information on what steps you are 
>> > doing to switch between static linking and using RSLs? Are you 
> just 
>> > trying to use the RSL provided in the SDK or are you creating 
> your 
>> > own RSLs?
>> > 
>> > -Darrell Loverin
>> > Flex SDK
>> > 
>> > 
>> > --- In flexcoders@yahoogroups.com, "Dmitri Girski"  
>> > wrote:
>> >>
>> >> Hmmm. Can't get this RSL thing working. It spoils me with a 
>> > different
>> >> type of error messages such 1001, 1079, 2032 but there is no way
>> >> compile it in Flex 3.
>> >> 
>> >> If I change to static linking - everything is fine. 
>> >> 
>> >> Did anyone try to compile RSLs with released FB3?
>> >> 
>> >> 
>> >> Thanks!
>> >> 
>> >> Dmitri. 
>> >> 
>> >> 
>> >> 
>> >> --- In flexcoders@yahoogroups.com, "Dmitri Girski"  
>> > wrote:
>> >> >
>> >> > Hi all,
>> >> > 
>> >> > Just trying to convert the project into RSL and I am getting 
> this
>> >> > strange error on the startup
>> >> > VerifyError: Error #1079: Native methods are not allowed in 
>> > loaded code.
>> >> > 
>> >> > Does anyone know what does it mean?
>> >> > 
>> >> > Thanks!
>> >> > 
>> >> > Dmitri.
>> >> >
>> >>
>> > 
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context: http://www.nabble.com/RSL-
> VerifyError%3A-Error--1079%3A-Native-methods-are-not-allowed-in-
> loaded-code.-tp15706910p21310605.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/RSL-VerifyError%3A-Error--1079%3A-Native-methods-are-not-allowed-in-loaded-code.-tp15706910p21324291.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: LineSeries dataFunction to return Array instead of a String

2009-01-06 Thread Amy
--- In flexcoders@yahoogroups.com, "Chad Callahan" 
 wrote:
>
> The specifications for the LineSeries dataFunction states that the
> function is to return an Object.  From what I gather, it assumes 
that
> the Object is one single data point.  However, my data is grouped a
> little differently.  I would like to be able to graph my data to 
look
> like this (this is not a screenshot of an actual Flex chart, just
> something drawn in illustrator):
>  
> http://screencast.com/t/culVkHdhG
>  
> My data is in the form of (hopefully this notation is readable - I'm
> just conveying nested arrays and objects):
>  
> [{month:String, numbers:[{date:Date, number:Number}]}]
>  
> This is the only way that I can think of to sort my data in order 
to get
> the desired affect in the above provided image link.  The 'number'
> property is the property that I want to create the LineSeries.  
However,
> since the 'number' property is inside of the 'numbers' Array - I 
can't
> figure out how to get this to work because I cannot get the 
LineSeries
> to look at nested properties.
>  
> Any examples or suggestions?

http://flexdiary.blogspot.com/2008/08/charting-example.html

Pay special attention to the dataFunction code.

HTH;

Amy



[flexcoders] How to Push database update/insert into Datagrid using LCDS in Java and MySQL

2009-01-06 Thread bonny_us
Hi All,

Anyone have idea, how can i push my MYSql database update/insert into
Datagrid using LCDS in Java. if anyone have any example then please let me
know. I will appreciate your help.

Thanks,
Bonny



[flexcoders] Re: RSL VerifyError: Error #1079: Native methods are not allowed in loaded code.

2009-01-06 Thread Darrell Loverin
This error is caused by trying to load playerglobal.swc as an RSL. 
playerglobal.swc must always be linked as "external".


-Darrell

--- In flexcoders@yahoogroups.com, freak182  wrote:
>
> 
> Hello,
> 
> Im getting same error by upgrading my flex sdk:
> here is my scenario:
> 
> 1. im using flex-compiler-mojo to build flex
> 2. i upgrade from 3.0.0.477 to 3.2.0.3958
> 3. it has no when compiling but when i start my app, it gives me 
error:
> VerifyError: Error #1079: Native methods are not allowed in loaded
> codeand cascade the errors...
> 
> 
> Darrell Loverin wrote:
> > 
> > Would you please provide some information on what steps you are 
> > doing to switch between static linking and using RSLs? Are you 
just 
> > trying to use the RSL provided in the SDK or are you creating 
your 
> > own RSLs?
> > 
> > -Darrell Loverin
> > Flex SDK
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Dmitri Girski"  
> > wrote:
> >>
> >> Hmmm. Can't get this RSL thing working. It spoils me with a 
> > different
> >> type of error messages such 1001, 1079, 2032 but there is no way
> >> compile it in Flex 3.
> >> 
> >> If I change to static linking - everything is fine. 
> >> 
> >> Did anyone try to compile RSLs with released FB3?
> >> 
> >> 
> >> Thanks!
> >> 
> >> Dmitri. 
> >> 
> >> 
> >> 
> >> --- In flexcoders@yahoogroups.com, "Dmitri Girski"  
> > wrote:
> >> >
> >> > Hi all,
> >> > 
> >> > Just trying to convert the project into RSL and I am getting 
this
> >> > strange error on the startup
> >> > VerifyError: Error #1079: Native methods are not allowed in 
> > loaded code.
> >> > 
> >> > Does anyone know what does it mean?
> >> > 
> >> > Thanks!
> >> > 
> >> > Dmitri.
> >> >
> >>
> > 
> > 
> > 
> > 
> 
> -- 
> View this message in context: http://www.nabble.com/RSL-
VerifyError%3A-Error--1079%3A-Native-methods-are-not-allowed-in-
loaded-code.-tp15706910p21310605.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




[flexcoders] security sandbox violation in standalone player but not in browser

2009-01-06 Thread Maciek Sakrejda
Our application has been working fine in various browsers. I'm trying to
get it to work in the standalone player (version 9 debug and 10
debug--same behavior--for Linux) for automated testing, but I'm hitting
some security sandbox violations:

*** Security Sandbox Violation ***

Connection to http://localhost:8080/truviso/flex/main/../../foo halted -
not permitted from http://localhost:8080/truviso/flex/main/main.swf

This relative URL works just fine when loading the .swf through Firefox,
IE, Safari, and Opera. We're using relative URLs because we need to be
able to rename the webapp without rebuilding it. There's a
crossdomain.xml file in truviso/crossdomain.xml and in the root with
wide-open access (for now).

Any ideas why the standalone player is unhappy with this relative URL?
Anything I can do with respect to crossdomain.xml or other security
configuration to get around this?

Thanks,
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com




Re: [flexcoders] Re: Call external App from AIR

2009-01-06 Thread Sam Lai
> So can "command proxy" execute something I talk above?

Yes it can, because it has full access to the desktop (within user
permissions). I'm not sure if Java has the ability to use ActiveX
objects, but I believe it does. There is a .NET command proxy concept
out there too, but it isn't as developed/advanced as the Java one.

> But if I create web
> app, and run in IE (I accept the app only run in Windows, with Office
> is installed) can the app has upload ability?

Yes, as long as the server you are uploading to has a crossdomain.xml
file that allows access.

Personally, given you have accepted the constraints of Windows only,
and are willing to have a desktop app, I'd take a look at creating a
Java/.NET app instead if you have the skills available there. It would
be a lot easier and have access to ActiveX, and with WPF, you even get
the cool UI stuff that Flex/Flash has. Both Java and .NET apps have
the ability to launch from the browser too - Java Web Start and
ClickOnce respectively.

Silverlight won't help here btw, only full blown WPF apps will.


Re: [flexcoders] How to Push database update/insert into Datagrid using LCDS.

2009-01-06 Thread Paul Kukiel
Here is an example using LiveCycle with Coldfusion:  http:// 
sherifabdou.com/2008/07/understanding-flex-data-management-by-using- 
coldfusion-livecycle/


Paul.


On 06/01/2009, at 9:01 PM, bonny_us wrote:


Hi All,

Anyone have idea, how can i push my MYSql database update/insert into
Datagrid using LCDS. if anyone have any example then please let me
know. I will appreciate your help.

Thanks,
Bonny







[flexcoders] Re: Call external App from AIR

2009-01-06 Thread lehaianh1986
I want to build an App which have function : open MS word document,
work with it, save it to plain text, then upload text file to server.
So I choice AIR because I see it have same functions.

> The command proxy allows you to send calls to external code to do
> things you can't do in AIR via sockets. Effectively, it is a web
> server on the desktop. It will work, but you don't get the nice AIR
> experience because the command proxy isn't an AIR app, and AIR apps
> can't execute programs on the desktop.
> 
So can "command proxy" execute something I talk above?

> Well how is your prototype working now? I assume you are using Flex
> and running the flex app in IE, and calling javascript in IE which in
> turn calls the Word ActiveX object to do stuff and return to you. Just
> distribute the .htm and .swf. But it will only work on Windows, and
> only if Office is installed.
> 
Yes, now I am working with Flex builder 3. If I create desktop
app(AIR), I can't call ActiveXObject as you know. But if I create web
app, and run in IE (I accept the app only run in Windows, with Office
is installed) can the app has upload ability?




[flexcoders] Re: Properly remove children

2009-01-06 Thread Sam Lai
> You should clean up your event listeners when you remove the children.
>  As long as a reference exists on those children they will never be
> garbage-collected.

Is there an easy, standard way to do this? I've tried using the
removedFromStage event, but that event gets fired when an AIR/Flex app
is minimized for some reason. I added an if-block checking if the app
was minimized, but I'm not comfortable with this, just in case there
are other times when removedFromStage is fired when it isn't removed
from stage.

P.S. Craig's original email was only sent to me, so I've repeated it
below - nothing personal/confidential there, so I assumed it was a
mistake.

2009/1/7 craig.drabik :
> You should clean up your event listeners when you remove the children.
>  As long as a reference exists on those children they will never be
> garbage-collected.
>
> A weak reference on the event listener will work, but it's good
> practice to remove the event listeners.


[flexcoders] How to Push database update/insert into Datagrid using LCDS.

2009-01-06 Thread bonny_us
Hi All,

Anyone have idea, how can i push my MYSql database update/insert into
Datagrid using LCDS. if anyone have any example then please let me
know. I will appreciate your help.


Thanks,
Bonny



Re: [flexcoders] Re: Display HTML Page Code Help

2009-01-06 Thread Sam Lai
http://drumbeatinsight.com/htmlcomponent is probably your best option.

Although there are some issues with that approach apparently -
http://www.deitte.com/archives/2008/07/dont_use_iframe.htm

I've been looking at something similar, and decided to break up my app
into HTML/Flex components instead, put together with HTML.

2009/1/7 horatio_rodriguez :
> I am using Flex Builder For Mac, Trying to release for browser.
>
> Thanks
>
>
> --- In flexcoders@yahoogroups.com, "Sam Lai"  wrote:
>>
>> AIR or browser?
>>
>> On 1/6/09, horatio_rodriguez  wrote:
>> > Hi There
>> >
>> > I have just today started to use Flex Builder on the mac platform, i
>> > have looked over a couple of the RIA's and its pretty impressive to
>> > start with.
>> >
>> > I have a small question about coding,  I have created a new project
>> > and would like to know how i can put in the source code a request
>> > command to display a web page i have.
>> >
>> > So for e.g.  I request a particular web page and click the run button,
>> > it loads that requested page inside the project and display's only
>> > that.
>> >
>> > Is there a way for this to be done. If there is could anyone help me
>> > at all please.
>> >
>> >
>> > Thanks
>> >
>> > Horatio
>> >
>> >
>> > 
>> >
>> > --
>> > 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] "flex builder could not publish the project source: null"

2009-01-06 Thread Joseph Balderson
This just happened to me on a Flex project in FB 3.0.1. What cleared it up was 
I 
had downloaded a linked folder from a repository which was broken because I 
didn't have the same reference as the person who created it. Once I deleted the 
linked folder it exported the source just fine.
___

Joseph Balderson, Flex & Flash Platform Developer | joeflash.ca
Author, Professional Flex 3 | http://tinyurl.com/profx3book


Brian Morearty wrote:
> I was creating a small sample app to demonstrate a question that I'm 
> about to post here, and when I tried to publish the application source 
> (Project: Publish Application Source, then hit OK) I got this error:
> 
>  "Flex Builder could not publish the project source: null"
> 
> Tried closing and reopening. No luck.
> 
> Nothing special about my app. Very small app with 2 images.
> 
> And now I can't publish source for ANY of my apps. :-(
> 
> Any idea how to get back to a happy state?
> 
> - Brian Morearty
>   Intuit
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> Yahoo! Groups Links
> 
> 
> 
> 


[flexcoders] Re: Validating Checkboxes in an item renderer

2009-01-06 Thread stldvd
I also tried adding this to the arrColl_collectionChange function:

if(list.selectedIndex == -1)
{
Alert.show("No items are selected!");
}

But the only time it fires is when the app first loads, presumably
because the list isn't yet populated. If I uncheck all the checkboxes,
it doesn't show. The event in question is the change event of the
checkbox, so it seems to me this ought to work. No?

I did get it to work by modifying as follows:

if(!tArr.length)
{
Alert.show("No items are selected!");
}


--- In flexcoders@yahoogroups.com, "stldvd"  wrote:
>
> Hi Alex,
> 
> I've been studying your code at 
>
http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/
> 
> You use the filter method on the underlying array (source) for the
> arrayCollection datasource of the list. The signature of your
function is:
> 
> private function selectedOnly(item:ListItemValueObject, idx:uint,
> arr:Array):Boolean {
>   return item.isSelected;
> }
> 
> The filter method, according to the Flex docs, 'executes a test
> function on each item in the array and constructs a new array for all
> items that return true for the specified function.' That I understand,
> and I can see that you're being returned an array, tArr. But how are
> you able to call a function with that signature and know that all
> three parameters are going to be passed in? I tried adding a fourth
> parameter - , porky:String - and it broke. How does this method know
> that idx:uint is OK, but porky:String isn't?
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> >
> > You could use a derivative of the example on my blog and then just
> test if selectedIndex != -1
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
> On Behalf Of stldvd
> > Sent: Tuesday, January 06, 2009 1:47 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Validating Checkboxes in an item renderer
> > 
> > 
> > Hi All,
> > 
> > I've got a checkbox in an item renderer. I need to know that at least
> > one checkbox has been selected in order for the data to be considered
> > valid and the 'save' function to go through. But I'm not sure how to
> > iterate through the checkboxes, since in the code there's only one:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Any help appreciated.
> > 
> > -- David
> >
>




[flexcoders] Re: Validating Checkboxes in an item renderer

2009-01-06 Thread stldvd
Hi Alex,

I've been studying your code at 
http://blog.flexexamples.com/2008/01/27/using-a-checkbox-control-as-a-list-item-renderer-in-flex/

You use the filter method on the underlying array (source) for the
arrayCollection datasource of the list. The signature of your function is:

private function selectedOnly(item:ListItemValueObject, idx:uint,
arr:Array):Boolean {
return item.isSelected;
}

The filter method, according to the Flex docs, 'executes a test
function on each item in the array and constructs a new array for all
items that return true for the specified function.' That I understand,
and I can see that you're being returned an array, tArr. But how are
you able to call a function with that signature and know that all
three parameters are going to be passed in? I tried adding a fourth
parameter - , porky:String - and it broke. How does this method know
that idx:uint is OK, but porky:String isn't?



--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> You could use a derivative of the example on my blog and then just
test if selectedIndex != -1
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of stldvd
> Sent: Tuesday, January 06, 2009 1:47 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Validating Checkboxes in an item renderer
> 
> 
> Hi All,
> 
> I've got a checkbox in an item renderer. I need to know that at least
> one checkbox has been selected in order for the data to be considered
> valid and the 'save' function to go through. But I'm not sure how to
> iterate through the checkboxes, since in the code there's only one:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Any help appreciated.
> 
> -- David
>




[flexcoders] Re: Using ActiveXObject with Adobe AIR and Flex

2009-01-06 Thread pratikshah83
Any help would be appreciated. If any one could throw some light.

Thanks
Pratik

--- In flexcoders@yahoogroups.com, "pratikshah83" 
wrote:
>
> Hi Guys, 
> 
> I am trying to execute a application on the desktop using
> ActiveXObject... but I am unable to get it working with Adobe AIR +
Flex. 
> 
> Something Like this. It works fine using it in javascript in IE. But i
> am unable to get it working from AIR even after calling the javascript
> and so tried using the mx:html tag.
> 
> AB = new ActiveXObject("Broker.Application");
> AB.Quit();
> 
> Any help if this regards would be appreciated. 
> 
> Thanks
> Pratik
>




Re: [flexcoders] Re: Properly remove children

2009-01-06 Thread Paul Andrews
I think Sam is right. The garbage collector won't collect objects until 
there are no references to them. If you don't use weak references you'll 
have to remove every listener first before the object can be garbage 
collected.

Removing an object from a container is only part of the story. Objects can 
exist when not on the display list or a child of a container.

Paul.

- Original Message - 
From: "Sam Lai" 
To: 
Sent: Tuesday, January 06, 2009 11:51 PM
Subject: Re: [flexcoders] Re: Properly remove children


>I think you need to use weak references when adding event listeners.
> Set the last parameter of addEventListener to true when adding event
> listeners.
>
> Alternately, you can remove event listeners when the forms are removed
> using the removeEventListener function.
>
> The flex profiler is useful here too to see what's not being garbage 
> collected..
>
> 2009/1/7 markgoldin_2000 :
>> Ok, here what I am getting.
>> I have a container that I am adding different forms to at the run
>> time. These forms are all based on the same class though.
>> So, before I add a new form I am removing current form using:
>> container.removeAllChildren();
>> each form when created is adding a custom event listener to a parent -
>> the container. When a custom event is triggered every form that was
>> created (regardless that it was removed after) gets this custom event
>> to handle.
>>
>>
>> --- In flexcoders@yahoogroups.com, "Manish Jethani"
>>  wrote:
>>>
>>> On Wed, Jan 7, 2009 at 4:23 AM, markgoldin_2000
>>>  wrote:
>>> >>removeAllChildren
>>> > Yes, that's what I use but I dont see objects being completely
>>> > destroyed.
>>>
>>> Define "destroyed".
>>>
>>> Surely you see them go away?
>>>
>>> Manish
>>>
>>
>>
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location: 
>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives: 
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
>> Links
>>
>>
>>
>>
>
> 
>
> --
> 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: Properly remove children

2009-01-06 Thread Sam Lai
I think you need to use weak references when adding event listeners.
Set the last parameter of addEventListener to true when adding event
listeners.

Alternately, you can remove event listeners when the forms are removed
using the removeEventListener function.

The flex profiler is useful here too to see what's not being garbage collected..

2009/1/7 markgoldin_2000 :
> Ok, here what I am getting.
> I have a container that I am adding different forms to at the run
> time. These forms are all based on the same class though.
> So, before I add a new form I am removing current form using:
> container.removeAllChildren();
> each form when created is adding a custom event listener to a parent -
> the container. When a custom event is triggered every form that was
> created (regardless that it was removed after) gets this custom event
> to handle.
>
>
> --- In flexcoders@yahoogroups.com, "Manish Jethani"
>  wrote:
>>
>> On Wed, Jan 7, 2009 at 4:23 AM, markgoldin_2000
>>  wrote:
>> >>removeAllChildren
>> > Yes, that's what I use but I dont see objects being completely
>> > destroyed.
>>
>> Define "destroyed".
>>
>> Surely you see them go away?
>>
>> Manish
>>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>


RE: [flexcoders] RSL VerifyError: Error #1079: Native methods are not allowed in loaded code.

2009-01-06 Thread Alex Harui
Maybe you're loading the wrong version of the RSL?

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of freak182
Sent: Tuesday, January 06, 2009 5:45 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] RSL VerifyError: Error #1079: Native methods are not 
allowed in loaded code.


Hello,

Im getting same error by upgrading my flex sdk:
here is my scenario:

1. im using flex-compiler-mojo to build flex
2. i upgrade from 3.0.0.477 to 3.2.0.3958
3. it has no when compiling but when i start my app, it gives me error:
VerifyError: Error #1079: Native methods are not allowed in loaded
codeand cascade the errors...

Darrell Loverin wrote:
>
> Would you please provide some information on what steps you are
> doing to switch between static linking and using RSLs? Are you just
> trying to use the RSL provided in the SDK or are you creating your
> own RSLs?
>
> -Darrell Loverin
> Flex SDK
>
>
> --- In flexcoders@yahoogroups.com, 
> "Dmitri Girski" 
> wrote:
>>
>> Hmmm. Can't get this RSL thing working. It spoils me with a
> different
>> type of error messages such 1001, 1079, 2032 but there is no way
>> compile it in Flex 3.
>>
>> If I change to static linking - everything is fine.
>>
>> Did anyone try to compile RSLs with released FB3?
>>
>>
>> Thanks!
>>
>> Dmitri.
>>
>>
>>
>> --- In flexcoders@yahoogroups.com, 
>> "Dmitri Girski" 
> wrote:
>> >
>> > Hi all,
>> >
>> > Just trying to convert the project into RSL and I am getting this
>> > strange error on the startup
>> > VerifyError: Error #1079: Native methods are not allowed in
> loaded code.
>> >
>> > Does anyone know what does it mean?
>> >
>> > Thanks!
>> >
>> > Dmitri.
>> >
>>
>
>
>
>

--
View this message in context: 
http://www.nabble.com/RSL-VerifyError%3A-Error--1079%3A-Native-methods-are-not-allowed-in-loaded-code.-tp15706910p21310605.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] Validating Checkboxes in an item renderer

2009-01-06 Thread Alex Harui
You could use a derivative of the example on my blog and then just test if 
selectedIndex != -1

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of stldvd
Sent: Tuesday, January 06, 2009 1:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Validating Checkboxes in an item renderer


Hi All,

I've got a checkbox in an item renderer. I need to know that at least
one checkbox has been selected in order for the data to be considered
valid and the 'save' function to go through. But I'm not sure how to
iterate through the checkboxes, since in the code there's only one:














Any help appreciated.

-- David



[flexcoders] Datagrid duplicate row

2009-01-06 Thread freak182

Hello Tracy,
Im experiencing same problem too, added that in my case the data in
first
row was repeated in next row when i insert data on database and load all
data in datagrid.(although the list is < 10)

I use remoteobject to save and get all the list of data. When i save the
data and get successful save, I simply call the ListEvent, in the result
handler, for dispatch and update the arraycollection of data.

Im using a renderer to format the display of date. here is the code
snippet
in datagrid column and renderer itself:









...in the renderer..

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







...im just wondering why the data in first got duplicated in next row?
does
datagrid has some sort of cache? becuase from my previous code (e.g user
listng) the datagrid just work fine everytime i save and get the list of
data.the data i just save was reflected on the datagrid (no
duplication).

Thanks a lot.
Cheers.

-- 
View this message in context: 
http://www.nabble.com/Datagrid-duplicate-row-tp21321826p21321826.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Properly remove children

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


--- In flexcoders@yahoogroups.com, "Manish Jethani" 
 wrote:
>
> On Wed, Jan 7, 2009 at 4:23 AM, markgoldin_2000
>  wrote:
> >>removeAllChildren
> > Yes, that's what I use but I dont see objects being completely
> > destroyed.
> 
> Define "destroyed".
> 
> Surely you see them go away?
> 
> Manish
>




Re: [flexcoders] Re: Properly remove children

2009-01-06 Thread Manish Jethani
On Wed, Jan 7, 2009 at 4:23 AM, markgoldin_2000
 wrote:
>>removeAllChildren
> Yes, that's what I use but I dont see objects being completely
> destroyed.

Define "destroyed".

Surely you see them go away?

Manish


[flexcoders] Re: Properly remove children

2009-01-06 Thread markgoldin_2000
>removeAllChildren
Yes, that's what I use but I dont see objects being completely 
destroyed.

--- In flexcoders@yahoogroups.com, "Manish Jethani" 
 wrote:
>
> On Wed, Jan 7, 2009 at 3:39 AM, markgoldin_2000
>  wrote:
> > I dont really have a name (myButton). Objects are added to a
> > container at run-time.
> 
>   while (container.numChildren > 1)
> container.removeChildAt(0);
> 
> Or you can use removeAllChildren
> 
> Manish
>




Re: [flexcoders] Re: Working with nested Buttons

2009-01-06 Thread Josh McDonald
I *have* to know - what kind of evil requires a button that contains other
buttons?

;-)

-Josh

On Wed, Jan 7, 2009 at 1:37 AM, Todd  wrote:

> I solved my problem.  On the nested-child button, all I had to do was
> set buttonMode="true" and useHandCursor="true".  It wasn't enough to
> just have the LinkButton and assume that it would behave as a button.
>
> All works perfectly now with my complex button skin.
>
> --- In flexcoders@yahoogroups.com, "Todd"  wrote:
> >
> > Hello,
> >   I have a custom Button control that uses extensive skinning (done in
> > Flash, and linked through the Button's skin-style) to change the skins
> > for mouse over, down,etc.  The custom Button can contain multiple
> > child objects, like other LinkButtons.
> >   I can't get the sub-button to trigger, though.  On the parent
> > button, I've fiddled with buttonMode and mouseChildren properties.
> >   So, I tried making the Parent a VBox (or any type of container)
> > instead of a Button.  Doing this enables me to now get the child
> > buttons to trigger properly.  However, I've lost the button skinning
> > for mouse Over, down, disabled, click, etc...  The skin is a
> > programatic skin that has implementations for downSkin,
> > selectedOverSkin, overSkin, selectedUpSkin, etc...
> >
> >   What would be the preferred way to get the HBox (or any container)
> > to act like a button with custom button skinning, and at the same time
> > be able to have nested buttons that would take priority when the mouse
> > hovers over them?  I'd like to think I'm missing something trivial in
> > getting this to work because it seems like a pretty common use case.
> >
> > Thanks for any suggestions.
> >
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


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

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

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


Re: [flexcoders] Re: Properly remove children

2009-01-06 Thread Manish Jethani
On Wed, Jan 7, 2009 at 3:39 AM, markgoldin_2000
 wrote:
> I dont really have a name (myButton). Objects are added to a
> container at run-time.

  while (container.numChildren > 1)
container.removeChildAt(0);

Or you can use removeAllChildren

Manish


Re: [flexcoders] Generating Random key

2009-01-06 Thread Josh McDonald
That's better (also cleaner and faster). I just don't trust IEEE floats :)

-Josh

On Wed, Jan 7, 2009 at 4:05 AM, Manish Jethani wrote:

> On Tue, Jan 6, 2009 at 7:42 AM, Josh McDonald  wrote:
> > A quick take on it:
>
> Trying to improve on some already neat code...
>
> > function randomLetter() : String
> > {
> > const noVowels : String = "BCDFGHJKLMNPQRSTVWXYZ";
> > return noVowels.charAt(Math.round(Math.random() *
> > (noVowels.length - 1)));
> > }
>
>   return noVowels.charAt(Math.floor(Math.random() * (noVowels.length)));
>
> This gives a fair chance to all letters. With Math.round, B and Z were
> being slightly discriminated against.
>
> Manish
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


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

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

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


[flexcoders] Re: BlazeDS - Best practice for determining if server session is invalid.

2009-01-06 Thread rydellfinn
Seth - 

Thanks for the detail - I just noticed your answer on this one over
break.  

Setting login-after-disconnect to true does sound appealing.  I'm was
curious, where are the credentials stored to allow the reconnection? 
In the server session or on the client?

Also - I did successfully get the "Client.Authentication" error when I
hit a service after the session timed out.  That helps.  I was
interested in catching the timeout before it occurs so I can warn the
user before the timeout occurs.

To implement this, I was thinking of setting a client-side timer that
would pop up a warning message on an interval that is smaller than the
server timeout length.  Is there a better way?

Thanks again for your help!

--- In flexcoders@yahoogroups.com, Seth Hodgson  wrote:
>
> Hi,
> 
> In your services-config.xml file, within the  for the
channel/endpoint you app is using to issue remoting calls to the
server, try turning on the following config option:
> 
>   
>   true
> 
> This is also exposed as the 'loginAfterDisconnect' property on
Channel, if you're building your channels and ChannelSet directly in
ActionScript.
> 
> It should handle this case seamlessly, removing the need to
re-prompt the user with a login dialog.
> If you really want to reprompt the user, in your fault handler for
your RemoteObject calls, you could watch for faults with an underlying
ErrorMessage with a faultCode of "Client.Authentication" and use that
to trigger transition back to your login view.
> 
> The reason that the authenticated property doesn't change on the
client is that there's no way guaranteed way for the server to notify
the client when the session times out. So, it's not until you send
your next request to the server that we discover that.
> 
> Best,
> Seth
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of rydellfinn
> Sent: Wednesday, November 05, 2008 6:15 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] BlazeDS - Best practice for determining if
server session is invalid.
> 
> Currently I am running BlazeDS on Tomcat, and I have a flex client
> that is authenticating against a set of Remote Objects using
> channelset.login().
> 
> As expected, if I walk away from the client for 30 minutes, the Tomcat
> server invalidates the session, which of course effectively logs out
> the client.
> 
> What I would like to happen is when the server invalidates the
> session, the client is returned to the login page. I can think of
> different ways to accomplish this, but I was wondering if there is an
> established pattern for this?
> 
> I tried creating a timer on the client to check if the authenticated
> property on the channelset was false. But I noticed that the
> authenticated property never changed, even after the session
invalidated.
> 
> I'm tempted to do the same thing on the server, but instead check to
> see if the session is valid, and throw an error if not.
> 
> But I thought I'd check here first!
> 
> Thanks in advance!
>




Re: [flexcoders] Which Unit Testing Framework to use?

2009-01-06 Thread Josh McDonald
I can report that I'm happy with FlexUnit as well. I *really* don't like the
syntax for async stuff, but wrapping nice syntax around bad is what we do
for a living, so when I need it I'll write it (and release it, of course!)

-Josh

On Wed, Jan 7, 2009 at 12:02 AM, Wally Kolcz  wrote:

>  Been looking at FlexUnit, FUnit, and ASUnit. Like FlexUnit best so far...
>
> --
> *From*: "b_alen" 
> *Sent*: Tuesday, January 06, 2009 5:50 AM
> *To*: flexcoders@yahoogroups.com
> *Subject*: [flexcoders] Which Unit Testing Framework to use?
>
> After a brief search on flex unit testing I found that FlexUnit is
> supposed to be the leader of the pack. Also, there is FlexMonkey that
> looks to be promising and it even uses FlexUnit.
>
> http://code.google.com/p/flexmonkey/
>
> Are there any other frameworks worth considering and what is your
> general experience with various frameworks.
>
> Thanks.
>
> Alen
>
>
> 
>



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

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

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


[flexcoders] Anyone written a ComboBox that can take an AdvancedDataGrid as a dropdown?

2009-01-06 Thread Pan Troglodytes
I find myself in the position of really needing a ComboBox that can take an
AdvancedDataGrid descendant in the dropdownFactory.  Unfortunately, ComboBox
is pretty hardcoded to use ListBase and AdvancedListBase does not inherit
from it.  Recreating a DataGrid version of my existing ADG descendant will
be a total pain.

Unfortunately, CombBox is written in such a way that mx_internals and other
muck is threaded throughout, making it difficult if not impossible to just
clone and replace references to ListBase.

Anyone here already tilted at this windmill?

-- 
Jason


[flexcoders] Re: Properly remove children

2009-01-06 Thread markgoldin_2000
I dont really have a name (myButton). Objects are added to a 
container at run-time.

--- In flexcoders@yahoogroups.com, "Manish Jethani" 
 wrote:
>
> On Wed, Jan 7, 2009 at 12:22 AM, markgoldin_2000
>  wrote:
> > How do I remove children from a container in order to completely
> > destroy them? Will removeAllChildren do the job?
> 
> To remove an object visually, you'll have to remove it from the
> "display list" by calling removeChild or removeChildAt on its 
parent.
> 
> Your code might still have references to the object. To really make
> sure that the object is no longer accessible and therefore eligible
> for garbage collection, you'll have to release all references to it.
> For example, if a variable myButton which is a private member of 
your
> Applciation points to a Button instance you create somewhere, you'll
> have to null out that reference.
> 
>   someContainer.removeChild(myButton);
>   myButton = null;
> 
> Manish
>




[flexcoders] Validating Checkboxes in an item renderer

2009-01-06 Thread stldvd
Hi All,


I've got a checkbox in an item renderer. I need to know that at least
one checkbox has been selected in order for the data to be considered
valid and the 'save' function to go through. But I'm not sure how to
iterate through the checkboxes, since in the code there's only one:












  

Any help appreciated.

-- David



[flexcoders] LineSeries dataFunction to return Array instead of a String

2009-01-06 Thread Chad Callahan
The specifications for the LineSeries dataFunction states that the
function is to return an Object.  From what I gather, it assumes that
the Object is one single data point.  However, my data is grouped a
little differently.  I would like to be able to graph my data to look
like this (this is not a screenshot of an actual Flex chart, just
something drawn in illustrator):
 
http://screencast.com/t/culVkHdhG
 
My data is in the form of (hopefully this notation is readable - I'm
just conveying nested arrays and objects):
 
[{month:String, numbers:[{date:Date, number:Number}]}]
 
This is the only way that I can think of to sort my data in order to get
the desired affect in the above provided image link.  The 'number'
property is the property that I want to create the LineSeries.  However,
since the 'number' property is inside of the 'numbers' Array - I can't
figure out how to get this to work because I cannot get the LineSeries
to look at nested properties.
 
Any examples or suggestions?
 
Thank you,
Chad


Re: [flexcoders] DataGrids, itemRenderers and dataChange events

2009-01-06 Thread Guy Morton

Thanks Tracy!

Yes, I was expecting it to dispatch an event because my data is an  
ArrayCollection, however now I know that modifying my underlying  
Objects' values via properties doesn't trigger the necessary change  
events. :-)


Manually calling itemUpdated on the Object that I've changed does the  
trick though. I'll also look at setItemAt. The reason I'm directly  
accessing the Object's properties is that I based this code on an  
example from the docs, so I blame Adobe if that's not best practice! :-)


Guy

On 07/01/2009, at 5:03 AM, Tracy Spratt wrote:



Flex uses events to cause the UI to update in response to changes in  
the underlying data.




If you use the correct API to update the data, then Flex will  
dispatch the necessary events.  Common API methods include  
setItemAt(), addItem(), … using the API is the best practice.




If you manually update a dataProvider item, say by assigning a value  
to a property, then the necessary events are not dispatched.  The  
collection.itemUpdated() method can be used in this case.




See the recent thread “Slow datagrid updates” for example code.



Tracy



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]  
On Behalf Of Guy Morton

Sent: Tuesday, January 06, 2009 7:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrids, itemRenderers and dataChange events



Hello

I hope someone here will be good enough to help me. I have a DataGrid,
and a custom itemRenderer that shows an image depending on the value
of the data in that cell. The trouble is that I am updating the value
of the data in that cell when I do an update to one of the other cells
in that row (via a different itemEditor, triggered by the itemEditEnd
event), but that change is not being shown in the cell in question
unless it gets redrawn by some other means, eg scrolling the field out
of view and back in will show the new data, as will rearranging the
columns (presumably because both of these actions force a redraw of
the data in the cell in question).

Is there a way to force the updated value to trigger a redraw in the
cell? My renderer is set up to catch the dataChange event but that
doesn't seem to get dispatched unless one of the aforementioned things
is done to force it.

Am I missing something here? Or is this a flaw in Flex?

Guy








Re: [flexcoders] Properly remove children

2009-01-06 Thread Manish Jethani
On Wed, Jan 7, 2009 at 12:22 AM, markgoldin_2000
 wrote:
> How do I remove children from a container in order to completely
> destroy them? Will removeAllChildren do the job?

To remove an object visually, you'll have to remove it from the
"display list" by calling removeChild or removeChildAt on its parent.

Your code might still have references to the object. To really make
sure that the object is no longer accessible and therefore eligible
for garbage collection, you'll have to release all references to it.
For example, if a variable myButton which is a private member of your
Applciation points to a Button instance you create somewhere, you'll
have to null out that reference.

  someContainer.removeChild(myButton);
  myButton = null;

Manish


[flexcoders] CartesianDataCanvas Drawing a Rectagle from Edge to Edge

2009-01-06 Thread pratikshah83
Hey guys

I have been using DataDrawingCanvas, which is an awesome component,
but unfortunatly no longer works in the constraints with Flex 3. For
which i've been trying to port the code over to use the new
CartesianDataCanvas which is the replacement (or update) to it.

With DataDrawingCanvas, there was a simply definition of EDGE, which
allowed to draw from a data point to the edge of the component,
however this no longer exists in the cartesiandatacanvas, as all
points are described in terms of data, or offsets of the data. Is
there anyway to get this functionality back?

I can't rely on having set maximum minimum on the axis, and drawing
solely in data points, because I need the padding that only computed
maximum minimum values that the graphing provides.

If anyone can help it would be much appreciated.

Thanks in advance!
Pratik



Re: [flexcoders] useHandCursor doesn't work when using custom cursors

2009-01-06 Thread Manish Jethani
On Wed, Jan 7, 2009 at 1:47 AM, Aaron Miller
 wrote:

> I am using custom cursors with CursorManager, but I would like the hand
> cursor to override the default (custom) for some controls similar to the way
> editable text overrides the default cursor with the text indicator. Normally
> I would just set buttonMode="true" useHandCursor="true" but it doesn't work
> with custom cursors. Is there a built in way to force this behavior, or will
> I have to build a mechanism into my on cursor system with rollOver/rollOut
> events on each of the controls I want a hand cursor on?

There are 2 types of cursors in Flex: system cursors -- the arrow, the
hand, the I-beam, etc. -- and custom cursors. Custom cursors are
really graphics you display in place of the system cursor (which is
hidden) at the current mouse position. There are a number of problems
with this: you don't know when the system cursor has changed from an
arrow to an I-beam, for instance, and it's often hard to keep up with
the current mouse position, so sometimes the custom cursor might lag.
I avoid using custom cursors in my applications for these reasons.

All that said, I think if you want to show the hand cursor
conditionally you'll have to do what you're thinking: switch cursors
on roll over and roll out.

Manish


RE: [flexcoders] Re: Slow datagrid updates

2009-01-06 Thread Tracy Spratt
"1010"? What the heck is that?

 

Answer the other question too.  Look for the "?" symbols.  They indicate
a question.

 

Jason, I am losing patience here.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jason B
Sent: Tuesday, January 06, 2009 2:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Slow datagrid updates

 

var oSelectedItem:Object = mccert_refund_grid.selectedItem;
oSelectedItem.CERTPRESENT = "NOT PRESENT";
var iIndex:int = mccert_refund_grid.selectedIndex;
search_cert_refund_dataprovider.lastResult.DATARESULTS.setItemAt(oSelect
edItem,iIndex);




{refund_number.text}




Its an error 1010

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt"  wrote:
>
> Then answer the questions in my previous post.
> 
> Tracy
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Jason B
> Sent: Tuesday, January 06, 2009 9:49 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Slow datagrid updates
> 
> 
> 
> 
> No using httpservice throws an error but your example with an array is
> working, how can i get this to work with httpservice?
> 
> --- In flexcoders@yahoogroups.com


> , "Tracy Spratt"  wrote:
> >
> > So you have everything working as you wish now?
> > 
> > Tracy
> > 
> > 
> >
>

 



[flexcoders] useHandCursor doesn't work when using custom cursors

2009-01-06 Thread Aaron Miller
Hello,

I am using custom cursors with CursorManager, but I would like the hand
cursor to override the default (custom) for some controls similar to the way
editable text overrides the default cursor with the text indicator. Normally
I would just set buttonMode="true" useHandCursor="true" but it doesn't work
with custom cursors. Is there a built in way to force this behavior, or will
I have to build a mechanism into my on cursor system with rollOver/rollOut
events on each of the controls I want a hand cursor on?


Thanks for any advice!
~Aaron


[flexcoders] Re: Slow datagrid updates

2009-01-06 Thread Jason B
var oSelectedItem:Object = mccert_refund_grid.selectedItem;
oSelectedItem.CERTPRESENT = "NOT PRESENT";
var iIndex:int = mccert_refund_grid.selectedIndex;
search_cert_refund_dataprovider.lastResult.DATARESULTS.setItemAt(oSelectedItem,iIndex);




{refund_number.text}




Its an error 1010




--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> Then answer the questions in my previous post.
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Jason B
> Sent: Tuesday, January 06, 2009 9:49 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Slow datagrid updates
> 
>  
> 
> 
> No using httpservice throws an error but your example with an array is
> working, how can i get this to work with httpservice?
> 
> --- In flexcoders@yahoogroups.com 
> , "Tracy Spratt"  wrote:
> >
> > So you have everything working as you wish now?
> > 
> > Tracy
> > 
> > 
> >
>




[flexcoders] Properly remove children

2009-01-06 Thread markgoldin_2000
How do I remove children from a container in order to completely 
destroy them? Will removeAllChildren do the job?

Thanks



[flexcoders] Re: WANTED: Online help integration, authoring, best practices (for Flex or Ajax)

2009-01-06 Thread jim.abbott45

Tracy: thanks for the information.  --Jim


--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> One would hope that the company that owns Flash, Flex and RoboHelp is
> working on some integration.  I have not seen anything myself yet.
> 
>  
> 
> Here is what I did:
> 
> * I use an external browser window to display help
> * I chose to have two levels of context, "module", and "view".
> * My navigation system always knows the current context.
> * Invoking help in Flex uses ExternalInterface to call out to a
> javascript function in the wrapper
> * The wrapper creates or gets the reference to the help window,
> and builds the url based on module and view arguments.
> * The module defines the html page, and the "view" is an "#"
> anchor in the url to navigate to the appropriate part of the page.
> 
>  
> 
> My needs were very simple, and this simple approach worked
> satisfactorily.  The help authors needed only the module and view ids,
> which were descriptive strings.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of jim.abbott45
> Sent: Monday, January 05, 2009 12:27 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] WANTED: Online help integration, authoring, best
> practices (for Flex or Ajax)
> 
>  
> 
> Does anyone have any recommendations about good ways to add online
> help to Flex (and maybe Ajax) applications? In particular . . .
> 
> 1) Is your help system integrated into the application or is it in a
> separate (browser) window?
> 
> 2) How do you achieve _context-sensitive_ linkage?
> 
> 3) What tooling (i.e., RoboHelp, HTML editor, etc.) did you use?
> 
> 4) What did your authoring to deployment workflow look like (and how
> did you handle content changes)?
> 
> -
> FYI: I already searched FlexCoders, but all I could find that seemed
> relevant was this post
> (http://tech.groups.yahoo.com/group/flexcoders/message/129245
>  ) from
> October and this one
> (http://tech.groups.yahoo.com/group/flexcoders/message/16032
>  ) from,
> gulp, 2005! And neither one had any responses (sigh).
> 
> -
> Specifically, some of my colleagues would like to do single-source
> generation of our help content and then publish the content in
> WebHelp/HTMLhelp form. However, we can't directly use that content in
> Flex (3), because the HtmlText property of the Flex text controls only
> supports a very limited subset of HTML. For example, our writer would
> like to use lists and tables, but the Flex controls don't support that.
> 
> Any ideas people?
> 
> Thanks in advance,
> Jim Abbott
>




Re: [flexcoders] File Size is not same when compiled through mxmlc and flex builder

2009-01-06 Thread Manish Jethani
On Tue, Jan 6, 2009 at 1:01 AM, ilikeflex  wrote:

> I think that the file Size is not same when compiled through mxmlc
> and flex builder.
[snip]

> The file size is not same in the above two methods.The ant script
> file compiles with more file size. I know flex builder also uses
> mxmlc to compile the files but how can i see the parameters passed to
> mxmlc through flex builder.

I'm not a big Flex Builder user, but I'm guessing it picks up its
settings from one of them flex-config.xml files.

Manish


Re: [flexcoders] components in modules

2009-01-06 Thread Manish Jethani
On Tue, Jan 6, 2009 at 2:24 AM, rockorgames  wrote:

> i have a zip search component.. but only a few modules uses it..
> should i copy the code from the zip component to those modules ? the
> problem is that i would have to change the code in all modules if i
> needed to change something in the zip process

You could consider putting the zip component into an RSL. Before a
module that needs the component is loaded, you load the RSL for the
component in the main application (so it's available for the module
later).

An RSL is basically a SWF that contains a bunch of classes. You can
load the SWF when you need one of the classes. So a component that is
shared between multiple modules could be part of an RSL. (For what
it's worth, the Flex framework is also available as an RSL.)

Manish


[flexcoders] Re: Display HTML Page Code Help

2009-01-06 Thread horatio_rodriguez
I am using Flex Builder For Mac, Trying to release for browser.

Thanks


--- In flexcoders@yahoogroups.com, "Sam Lai"  wrote:
>
> AIR or browser?
> 
> On 1/6/09, horatio_rodriguez  wrote:
> > Hi There
> >
> > I have just today started to use Flex Builder on the mac platform, i
> > have looked over a couple of the RIA's and its pretty impressive to
> > start with.
> >
> > I have a small question about coding,  I have created a new project
> > and would like to know how i can put in the source code a request
> > command to display a web page i have.
> >
> > So for e.g.  I request a particular web page and click the run button,
> > it loads that requested page inside the project and display's only
> > that.
> >
> > Is there a way for this to be done. If there is could anyone help me
> > at all please.
> >
> >
> > Thanks
> >
> > Horatio
> >
> >
> > 
> >
> > --
> > 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] scriptable flex testing (for continuous integration)

2009-01-06 Thread Maciek Sakrejda
Earlier today, a fellow flexcoder asked about flex unit testing
frameworks. After looking at the suggestions, I realized that I need
similar advice, but focused on tests that can be run automatically, (as
opposed to running interactively).

It seems fluint is pretty slick, but the ant-based test runner seems to
be AIR-based and I'm reluctant to introduce that dependency. I really
want to have ant-based (or some kind of scripted) automation tests that
we can plug into our CI system. Having GUI runners is nice for instant
gratification, but I think scriptable runners are far more useful in the
long term.

Flexunit itself (hence flexmonkey) seems to do this right, but it looks
like it uses the standalone player? This is the blog post I'm referring
to:
http://weblogs.macromedia.com/pmartin/archives/2006/06/flexunit_ant.html

I'd like to test through the browser plugin (and not the standalone
player) if possible, since we've hit some browser-specific issues
before.

Does anyone have more experience with this method of running FlexUnit
tests (or any other kind of flex testing framework)?
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com




Re: [flexcoders] Generating Random key

2009-01-06 Thread Manish Jethani
On Tue, Jan 6, 2009 at 7:42 AM, Josh McDonald  wrote:
> A quick take on it:

Trying to improve on some already neat code...

> function randomLetter() : String
> {
> const noVowels : String = "BCDFGHJKLMNPQRSTVWXYZ";
> return noVowels.charAt(Math.round(Math.random() *
> (noVowels.length - 1)));
> }

  return noVowels.charAt(Math.floor(Math.random() * (noVowels.length)));

This gives a fair chance to all letters. With Math.round, B and Z were
being slightly discriminated against.

Manish


Re: [flexcoders] Spurious truncateToFit behavior when scaling TabNavigator

2009-01-06 Thread Manish Jethani
On Tue, Jan 6, 2009 at 3:30 PM, x77686d
 wrote:
> On one of our Flex applications we use scaleX and scaleY at the
> application level to zoom in/out on the whole thing.  That works
> pretty well except for one problem: there's a TabNavigator and we see
> spurious truncateToFit behavior on the tab labels, turning "Some Tab"
> into "Some T...", for example.  I say it's spurious because scaling at
> 1.2 and 1.3 works fine, but at 1.25 we get the ellipses.  I haven't
> investigated the root cause but I speculate it's a rounding issue of
> some sort.
>
> Does anybody know of a good way to get rid of the ellipses?  I see
> that the IUITextField in Button does have truncateToFit but I'm not
> aware of a good way to get at it.  (Could reflection be used?)

It's in mx.core.UITextField.

I don't think you can get rid of it easily or at all.

Manish


RE: [flexcoders] DataGrids, itemRenderers and dataChange events

2009-01-06 Thread Tracy Spratt
Flex uses events to cause the UI to update in response to changes in the
underlying data.

 

If you use the correct API to update the data, then Flex will dispatch
the necessary events.  Common API methods include setItemAt(),
addItem(), ... using the API is the best practice.

 

If you manually update a dataProvider item, say by assigning a value to
a property, then the necessary events are not dispatched.  The
collection.itemUpdated() method can be used in this case.

 

See the recent thread "Slow datagrid updates" for example code.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Guy Morton
Sent: Tuesday, January 06, 2009 7:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrids, itemRenderers and dataChange events

 

Hello

I hope someone here will be good enough to help me. I have a DataGrid, 
and a custom itemRenderer that shows an image depending on the value 
of the data in that cell. The trouble is that I am updating the value 
of the data in that cell when I do an update to one of the other cells 
in that row (via a different itemEditor, triggered by the itemEditEnd 
event), but that change is not being shown in the cell in question 
unless it gets redrawn by some other means, eg scrolling the field out 
of view and back in will show the new data, as will rearranging the 
columns (presumably because both of these actions force a redraw of 
the data in the cell in question).

Is there a way to force the updated value to trigger a redraw in the 
cell? My renderer is set up to catch the dataChange event but that 
doesn't seem to get dispatched unless one of the aforementioned things 
is done to force it.

Am I missing something here? Or is this a flaw in Flex?

Guy

 



RE: [flexcoders] Re: Slow datagrid updates

2009-01-06 Thread Tracy Spratt
Then answer the questions in my previous post.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jason B
Sent: Tuesday, January 06, 2009 9:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Slow datagrid updates

 


No using httpservice throws an error but your example with an array is
working, how can i get this to work with httpservice?

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt"  wrote:
>
> So you have everything working as you wish now?
> 
> Tracy
> 
> 
> 

 



RE: [flexcoders] Slow datagrid updates

2009-01-06 Thread Tracy Spratt
Please do not hijack threads for a different question.  This is not the
same problem, start a new thread..

Tracy

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of freak182
Sent: Tuesday, January 06, 2009 12:07 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Slow datagrid updates

 


Hello Tracy,
Im experiencing same problem too, added that in my case the data in
first
row was repeated in next row when i insert data on database and load all
data in datagrid.(although the list is < 10)

I use remoteobject to save and get all the list of data. When i save the
data and get successful save, I simply call the ListEvent, in the result
handler, for dispatch and update the arraycollection of data.

Im using a renderer to format the display of date. here is the code
snippet
in datagrid column and renderer itself:









...in the renderer..

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







...im just wondering why the data in first got duplicated in next row?
does
datagrid has some sort of cache? becuase from my previous code (e.g user
listng) the datagrid just work fine everytime i save and get the list of
data.the data i just save was reflected on the datagrid (no
duplication).

Thanks a lot.
Cheers.

Tracy Spratt wrote:
> 
> That is not normal behavior. Typically such updates happen nearly
> instantly.
> 
> 
> 
> First, are you using custom itemRenderers? If so, how many are visible
> at any one time? Are they optimized for performance, or are they based
> on a container, like Vbox?
> 
> 
> 
> Next, you understand that when you do:
> 
> mccert_refund_grid.selectedItem.CERTPRESENT = "NOT PRESENT";
> 
> you ARE updating the dataProvider? selectedItem is a reference to a
> dataProvider item.
> 
> 
> 
> If you want to be able to provide an "undo" capability, you will need
to
> make a copy of the data before allowing the user to modify it.
> 
> 
> 
> Debug to find out where the speed bottleneck happens. Simplify the
> conditions until the problem goes away, then re-apply functionality
> until the problem returns.
> 
> 
> 
> Tracy
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Jason B
> Sent: Monday, January 05, 2009 10:26 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Slow datagrid updates
> 
> 
> 
> I'm using a datagrid with httpservice then allowing the user to click
> on an item in the datagrid.
> 
> once they select the datagrid item they then hit a button which
> updates the value in the grid like this, 
> mccert_refund_grid.selectedItem.CERTPRESENT = "NOT PRESENT";
> 
> trouble is the datagrid takes almost 20-30 seconds to update it i
> kinda need this to happen instantly since its all locally cached it
> should be fast.
> 
> i looked into datagrid refresh but my understanding is that is for the
> dataprovider, and im not trying to refresh the data that would over
> right their changes they made. when all is said and done they will be
> able to hit another button to save results back to the database.
> 
> so how come this is taking so long to change values?
> 
> 
> 
> 
> 

-- 
View this message in context:
http://www.nabble.com/Slow-datagrid-updates-tp21293013p21314517.html
 
Sent from the FlexCoders mailing list archive at Nabble.com.

 



RE: [flexcoders] Slow datagrid updates

2009-01-06 Thread freak182

Hello Tracy,
Im experiencing same problem too, added that in my case the data in first
row was repeated in next row when i insert data on database and load all
data in datagrid.(although the list is < 10)

I use remoteobject to save and get all the list of data. When i save the
data and get successful save, I simply call the ListEvent, in the result
handler, for dispatch and update the arraycollection of data.

Im using a renderer to format the display of date. here is the code snippet
in datagrid column and renderer itself:










...in the renderer..

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







...im just wondering why the data in first got duplicated in next row? does
datagrid has some sort of cache? becuase from my previous code (e.g user
listng) the datagrid just work fine everytime i save and get the list of
data.the data i just save was reflected on the datagrid (no duplication).

Thanks a lot.
Cheers.



Tracy Spratt wrote:
> 
> That is not normal behavior.  Typically such updates happen nearly
> instantly.
> 
>  
> 
> First, are you using custom itemRenderers?  If so, how many are visible
> at any one time?  Are they optimized for performance, or are they based
> on a container, like Vbox?
> 
>  
> 
> Next, you understand that when you do:
> 
> mccert_refund_grid.selectedItem.CERTPRESENT = "NOT PRESENT";
> 
> you ARE updating the dataProvider?  selectedItem is a reference to a
> dataProvider item.
> 
>  
> 
> If you want to be able to provide an "undo" capability, you will need to
> make a copy of the data before allowing the user to modify it.
> 
>  
> 
> Debug to find out where the speed bottleneck happens.  Simplify the
> conditions until the problem goes away, then re-apply functionality
> until the problem returns.
> 
>  
> 
> Tracy
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Jason B
> Sent: Monday, January 05, 2009 10:26 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Slow datagrid updates
> 
>  
> 
> I'm using a datagrid with httpservice then allowing the user to click
> on an item in the datagrid.
> 
> once they select the datagrid item they then hit a button which
> updates the value in the grid like this, 
> mccert_refund_grid.selectedItem.CERTPRESENT = "NOT PRESENT";
> 
> trouble is the datagrid takes almost 20-30 seconds to update it i
> kinda need this to happen instantly since its all locally cached it
> should be fast.
> 
> i looked into datagrid refresh but my understanding is that is for the
> dataprovider, and im not trying to refresh the data that would over
> right their changes they made. when all is said and done they will be
> able to hit another button to save results back to the database.
> 
> so how come this is taking so long to change values?
> 
>  
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Slow-datagrid-updates-tp21293013p21314517.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Tree is not correctly updated when dragging and dropping item twice when using XML data provider

2009-01-06 Thread Manish Jethani
On Tue, Jan 6, 2009 at 10:27 PM, Manish Jethani
 wrote:

>  function doWorkaround() {
>   var e = new CollectionEvent("collectionChange");
>   e.kind = "update";

Hey, I meant:

 e.kind = "reset";

That'll refresh everything.

>   myXMLListCollection.dispatchEvent(e);
>  }

Manish


[flexcoders] Re: Cairngorm v/s others

2009-01-06 Thread oneworld95
You can hear the correct pronunciation here (look for the "Hear"
button): http://dictionary.reference.com/browse/cairngorm

-Alex

--- In flexcoders@yahoogroups.com, "Marco Catunda" 
wrote:
>
> I would love to know how pronounce it correctly too.
> 
> This name is a tongue twister for me. :)   :)
> 
> On Sat, Jan 3, 2009 at 10:15 PM, Hyder  wrote:
> > Btw, I've always wondered, how does one pronounce Cairngorm...
> > Kane Gaum ?
>




Re: [flexcoders] Tree is not correctly updated when dragging and dropping item twice when using XML data provider

2009-01-06 Thread Manish Jethani
On Tue, Dec 30, 2008 at 7:52 PM, Sergey Kovalyov
 wrote:

[comments inline]

> Steps to reproduce:
>
> Create an application with the Tree component instance and XMLListCollection
> dataProvider binded to it that contains 5 items:
>
> private var itemsXML : XML =
>  
>   
>   
>   
>   
>   
>  ;
>
> Expand Item 4.
> Drag and drop Item 5 from the root to the Item 4.
> Drag and drop Item 5 from the Item 4 to the root.
>
>
> Expected result: Item 5 is deleted from the Item 4 and appears on the root
> in the drop position.
>
> Actual result: Item 5 actually appears on the root in the drop position, but
> it is not removed from the Item 4, so there are 2 same elements in the
> hierarchy intead of one.

That's a good catch. You're right, it's because of parentMap not
getting updated on the first drag-drop. You'll see that the
HierarchicalCollectionView:collecitonChangeHandler has a call to
updateLength when the event kind is "update", but it has been
commented. I suspect that may be the reason for this bug. Anyhow, for
now, here's a workaround:

 

 function doWorkaround() {
   var e = new CollectionEvent("collectionChange");
   e.kind = "update";
   myXMLListCollection.dispatchEvent(e);
 }

See if that works.

This ought to be logged in the Flex bugbase.

Manish


Re: [flexcoders] Cairngorm v/s others

2009-01-06 Thread Marco Catunda
I would love to know how pronounce it correctly too.

This name is a tongue twister for me. :)   :)

On Sat, Jan 3, 2009 at 10:15 PM, Hyder  wrote:
> Btw, I've always wondered, how does one pronounce Cairngorm...
> Kane Gaum ?


[flexcoders] Re: Slow datagrid updates

2009-01-06 Thread oneworld95
What does the error say?

-Alex

--- In flexcoders@yahoogroups.com, "Jason B"  wrote:
>
> 
> No using httpservice throws an error but your example with an array is
> working, how can i get this to work with httpservice?
> 
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > So you have everything working as you wish now?
> > 
> > Tracy
> > 
> >  
> >
>




[flexcoders] Re: FLEX soap client and php soap client

2009-01-06 Thread valdhor
I would have to agree. AMF is much easier to get up and running and (I
feel) is more object oriented.

I would be inclined to use WebOrb or ZendAMF (Part of the Zend Framework):

http://www.themidnightcoders.com/products/weborb-for-php
http://framework.zend.com/download/amf


--- In flexcoders@yahoogroups.com, "Nate Beck"  wrote:
>
> Yea, if you're WSDL is public facing, I'll see if I can create a
Flex Client
> against it as well.
> On a similar note... Have you looked into AMFPHP
(http://www.amfphp.org/)?
>  SOAP is a great standard but, like everything, there are issues
with it.
>  If you are only using your SOAP webservice to talk to Flex / Flash
> front-ends, then I'd recommend having a look at AMF.  However, if you're
> using your webservices with other technologies, SOAP might be a better
> option.
> 
> HTH,
> Nate
> 
> On Tue, Jan 6, 2009 at 6:44 AM, valdhor  wrote:
> 
> >   Can you post a link to the wsdl and I can see if I can get a Flex
> > client working.
> >
> >
> > --- In flexcoders@yahoogroups.com ,
"ocslhk"
> >  wrote:
> > >
> > > Hello,
> > >
> > > This is my first post here and the first time i use yahoo groups. I
> > > have searched for something similar on the boards but haven't
found it.
> > >
> > > Anyway I am quite new flex and I'm building my first app real app. I
> > > have an app running on a php server, and I'm using soap to
communicate
> > > with flex. I am also using the cairngorm framework. Everything have
> > > been worked smooth until now. I have a few methods on the soap
server
> > > that recieves VOs. But some of VOs I cant use as arguments. I
have no
> > > idea why. Even if i create a new obj using just one property
that is a
> > > string it doesn't work. But i does work via the php soap client.
> > >
> > > When i look at the xml it is slightly different between php and flex
> > > soap clients, but the definition of the VO is identical.
> > >
> > > From php:
> > > 
> > >  > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> > > xmlns:ns1="http://singingfish.localhost";
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
> > > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > from flex
> > >  > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> > >  > > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
> > > http://singingfish.localhost";>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > I have tried using both soap 1.1 and soap 1.2 on the php client
and it
> > > works the same.
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> 
> Cheers,
> Nate
> 
> http://blog.natebeck.net
>




RE: [flexcoders] AIR code signing certificate

2009-01-06 Thread Jim Hayes
I think Ryan Stewart(?) posted just the other day that they are the
first to offer a personal cert, so It's my impression that they are
currently the only one to do so.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tom Chiverton
Sent: 06 January 2009 16:15
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] AIR code signing certificate
 
On Saturday 03 Jan 2009, arieljake wrote:
> I am trying to purchase an AIR code signing certificate from Chosen
> Security. ... They are refusing to issue me a

Use someone else ?

-- 
Tom Chiverton
Helping to appropriately improve information
 

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

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

CONFIDENTIALITY

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

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

__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__

Re: [flexcoders] Re: FLEX soap client and php soap client

2009-01-06 Thread Nate Beck
Yea, if you're WSDL is public facing, I'll see if I can create a Flex Client
against it as well.
On a similar note... Have you looked into AMFPHP (http://www.amfphp.org/)?
 SOAP is a great standard but, like everything, there are issues with it.
 If you are only using your SOAP webservice to talk to Flex / Flash
front-ends, then I'd recommend having a look at AMF.  However, if you're
using your webservices with other technologies, SOAP might be a better
option.

HTH,
Nate

On Tue, Jan 6, 2009 at 6:44 AM, valdhor  wrote:

>   Can you post a link to the wsdl and I can see if I can get a Flex
> client working.
>
>
> --- In flexcoders@yahoogroups.com , "ocslhk"
>  wrote:
> >
> > Hello,
> >
> > This is my first post here and the first time i use yahoo groups. I
> > have searched for something similar on the boards but haven't found it.
> >
> > Anyway I am quite new flex and I'm building my first app real app. I
> > have an app running on a php server, and I'm using soap to communicate
> > with flex. I am also using the cairngorm framework. Everything have
> > been worked smooth until now. I have a few methods on the soap server
> > that recieves VOs. But some of VOs I cant use as arguments. I have no
> > idea why. Even if i create a new obj using just one property that is a
> > string it doesn't work. But i does work via the php soap client.
> >
> > When i look at the xml it is slightly different between php and flex
> > soap clients, but the definition of the VO is identical.
> >
> > From php:
> > 
> >  > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> > xmlns:ns1="http://singingfish.localhost";
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
> > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > from flex
> >  > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> >  > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
> > http://singingfish.localhost";>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > I have tried using both soap 1.1 and soap 1.2 on the php client and it
> > works the same.
> >
>
>  
>



-- 

Cheers,
Nate

http://blog.natebeck.net


Re: [flexcoders] AIR code signing certificate

2009-01-06 Thread Tom Chiverton
On Saturday 03 Jan 2009, arieljake wrote:
> I am trying to purchase an AIR code signing certificate from Chosen
> Security. ... They are refusing to issue me a

Use someone else ?

-- 
Tom Chiverton
Helping to appropriately improve information



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

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

CONFIDENTIALITY

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

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

[flexcoders] Re: Font for tab navigator heading not working

2009-01-06 Thread Tim Hoff
Wow, this only took 2 days to post.  See Doug's post for the solution.

-TH

[Moderator note: Things run slower over Xmas when we're all on holiday ;-)]

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
>
> The only other thing that I can suggest that you try is:
>
> .myTabs {
> fontFamily: "AvenirLTStdMedium";
> }
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "Nate Pearson" napearson99@
> wrote:
> >
> > Doug, no I'm not doing that.
> >
> > Tim, The button css thing didn't work either :(.
> >
> > --- In flexcoders@yahoogroups.com, "Doug McCune" doug@ wrote:
> > >
> > > Out of curiosity are you loading modules or loading the framework
as
> > an RSL?
> > >
> > > Doug
> > >
> > > On Wed, Dec 31, 2008 at 1:12 PM, Tim Hoff TimHoff@ wrote:
> > >
> > > >
> > > > hmm, they are buttons. So, you could try using the font in
> Button{}
> > > > CSS. Kind of a bad hack though.
> > > >
> > > >
> > > > -TH
> > > >
> > > > --- In flexcoders@yahoogroups.com
,
> > "Nate
> > > > Pearson" 
> > > > wrote:
> > > > >
> > > > > Yup, no change. The other styles do work but not the
> font-family.
> > > > >
> > > > > --- In flexcoders@yahoogroups.com
> > , "Tim
> > > > Hoff" TimHoff@ wrote:
> > > > > >
> > > > > >
> > > > > > Hi Nate,
> > > > > >
> > > > > > Have you tried it without the quotes?
> > > > > >
> > > > > > tabStyleName: myTabs;
> > > > > >
> > > > > > -TH
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com
> ,
> > > > "Nate Pearson" 
> > > > > > wrote:
> > > > > > >
> > > > > > > I'm trying to get a custom font in the tabs of my tab
> navigator
> > > > and I
> > > > > > > can't get it to work. My code is below. I can get the font
> > to work
> > > > in
> > > > > > > other stuff but not in the tabs.
> > > > > > >
> > > > > > > Thanks!
> > > > > > >
> > > > > > > -Nate
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > .myNavigator {
> > > > > > > tabHeight: 30;
> > > > > > > tabWidth: 140;
> > > > > > > paddingLeft: 0;
> > > > > > > paddingTop:0;
> > > > > > > tabStyleName: "myTabs";
> > > > > > > firstTabStyleName: "myTabs";
> > > > > > > lastTabStyleName: "myTabs";
> > > > > > > selectedTabTextStyleName: "myTabs";
> > > > > > > font-family: AvenirLTStdMedium;
> > > > > > > borderColor: #8e8e86;
> > > > > > > borderThickness: 2;
> > > > > > > }
> > > > > > >
> > > > > > >
> > > > > > > .myTabs {
> > > > > > > highlightAlphas: 0, 0.1;
> > > > > > > fillAlphas: 1, 0.82;
> > > > > > > fillColors: #a2a2a2, #b7b6b4;
> > > > > > > backgroundColor: #758bbc;
> > > > > > > borderColor: #b7b6b4;
> > > > > > > color: #ff;
> > > > > > > textRollOverColor: #ff;
> > > > > > > themeColor: #b7b6b4;
> > > > > > > fontSize: 14;
> > > > > > > textAlign: left;
> > > > > > > font-family: AvenirLTStdMedium;
> > > > > > > }
> > > > > > >
> > > > > > > @font-face
> > > > > > > {
> > > > > > > font-family: AvenirLTStdMedium;
> > > > > > > src: url("assets/fonts/AvenirLTStdMedium.otf");
> > > > > > > }
> > > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> >
>





Re: [flexcoders] Session tracking in Flex

2009-01-06 Thread Tom Chiverton
On Tuesday 30 Dec 2008, Matt Weaver wrote:
> Experimentally, I've seen that if you put the session id into a cookie
> it will be sent along with any server calls you make from Flex.  

Except file upload from FireFox. There's a bug in the issue tracker for it.

-- 
Tom Chiverton
Helping to completely reinvent six-generation viral visionary seamless designs



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

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

CONFIDENTIALITY

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

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

[flexcoders] Re: Working with nested Buttons

2009-01-06 Thread Todd
I solved my problem.  On the nested-child button, all I had to do was
set buttonMode="true" and useHandCursor="true".  It wasn't enough to
just have the LinkButton and assume that it would behave as a button.

All works perfectly now with my complex button skin.  

--- In flexcoders@yahoogroups.com, "Todd"  wrote:
>
> Hello,
>   I have a custom Button control that uses extensive skinning (done in
> Flash, and linked through the Button's skin-style) to change the skins
> for mouse over, down,etc.  The custom Button can contain multiple
> child objects, like other LinkButtons.
>   I can't get the sub-button to trigger, though.  On the parent
> button, I've fiddled with buttonMode and mouseChildren properties.
>   So, I tried making the Parent a VBox (or any type of container)
> instead of a Button.  Doing this enables me to now get the child
> buttons to trigger properly.  However, I've lost the button skinning
> for mouse Over, down, disabled, click, etc...  The skin is a
> programatic skin that has implementations for downSkin,
> selectedOverSkin, overSkin, selectedUpSkin, etc...
> 
>   What would be the preferred way to get the HBox (or any container)
> to act like a button with custom button skinning, and at the same time
> be able to have nested buttons that would take priority when the mouse
> hovers over them?  I'd like to think I'm missing something trivial in
> getting this to work because it seems like a pretty common use case.
> 
> Thanks for any suggestions.
>




[flexcoders] Working with nested Buttons

2009-01-06 Thread Todd
Hello,
  I have a custom Button control that uses extensive skinning (done in
Flash, and linked through the Button's skin-style) to change the skins
for mouse over, down,etc.  The custom Button can contain multiple
child objects, like other LinkButtons.
  I can't get the sub-button to trigger, though.  On the parent
button, I've fiddled with buttonMode and mouseChildren properties.
  So, I tried making the Parent a VBox (or any type of container)
instead of a Button.  Doing this enables me to now get the child
buttons to trigger properly.  However, I've lost the button skinning
for mouse Over, down, disabled, click, etc...  The skin is a
programatic skin that has implementations for downSkin,
selectedOverSkin, overSkin, selectedUpSkin, etc...

  What would be the preferred way to get the HBox (or any container)
to act like a button with custom button skinning, and at the same time
be able to have nested buttons that would take priority when the mouse
hovers over them?  I'd like to think I'm missing something trivial in
getting this to work because it seems like a pretty common use case.

Thanks for any suggestions.

  



[flexcoders] Re: Slow datagrid updates

2009-01-06 Thread Jason B

No using httpservice throws an error but your example with an array is
working, how can i get this to work with httpservice?


--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> So you have everything working as you wish now?
> 
> Tracy
> 
>  
> 





[flexcoders] Re: FLEX soap client and php soap client

2009-01-06 Thread valdhor
Can you post a link to the wsdl and I can see if I can get a Flex
client working.


--- In flexcoders@yahoogroups.com, "ocslhk"  wrote:
>
> Hello, 
> 
> This is my first post here and the first time i use yahoo groups. I
> have searched for something similar on the boards but haven't found it.
> 
> Anyway I am quite new flex and I'm building my first app real app. I
> have an app running on a php server, and I'm using soap to communicate
> with flex. I am also using the cairngorm framework. Everything have
> been worked smooth until now. I have a few methods on the soap server
> that recieves VOs. But some of VOs I cant use as arguments. I have no
> idea why. Even if i create a new obj using just one property that is a
> string it doesn't work. But i does work via the php soap client. 
> 
> When i look at the xml it is slightly different between php and flex
> soap clients, but the definition of the VO is identical. 
> 
> From php:
> 
>xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
>   xmlns:ns1="http://singingfish.localhost"; 
>   xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
>   xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 
>   SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> 
> from flex
>xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
>   xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
>   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
>   http://singingfish.localhost";>
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> 
> I have tried using both soap 1.1 and soap 1.2 on the php client and it
> works the same.
>




[flexcoders] Re: Can only seem to connect to flash remoting service in air running charles

2009-01-06 Thread valdhor
So, using Charles it works normally and goes to the function with the
resultEvent. Without Charles, it looks like it is getting a faultEvent
and your fault handler function setting is incorrect.

I think you need to fix the faultEvent handler before moving on to why
it is getting a faultEvent.


--- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
>
> If I run Charles it works, but when i stop Charles i get this error.
> 
> Anybody seen this one?
> 
> Thanks,
> Patrick
> 
> TypeError: Error #1006: value is not a function.
>   at
>
mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
>   at
>
mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyFault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncToken.as:179]
>   at
>
mx.rpc.events::FaultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\events\FaultEvent.as:169]
>   at
>
mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractOperation.as:193]
>   at
>
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:225]
>   at
>
mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
>   at
>
mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
>   at
>
mx.messaging::ChannelSet/faultPendingSends()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1482]
>   at
>
mx.messaging::ChannelSet/channelFaultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:975]
>   at flash.events::EventDispatcher/dispatchEventFunction()
>   at flash.events::EventDispatcher/dispatchEvent()
>   at
>
mx.messaging::Channel/connectFailed()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\Channel.as:997]
>   at
>
mx.messaging.channels::PollingChannel/connectFailed()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\PollingChannel.as:354]
>   at
>
mx.messaging.channels::AMFChannel/statusHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\AMFChannel.as:390]
>




[flexcoders] Can only seem to connect to flash remoting service in air running charles

2009-01-06 Thread djhatrick
If I run Charles it works, but when i stop Charles i get this error.

Anybody seen this one?

Thanks,
Patrick

TypeError: Error #1006: value is not a function.
at
mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
at
mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyFault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncToken.as:179]
at
mx.rpc.events::FaultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\events\FaultEvent.as:169]
at
mx.rpc::AbstractOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractOperation.as:193]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:225]
at
mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
at
mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
at
mx.messaging::ChannelSet/faultPendingSends()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:1482]
at
mx.messaging::ChannelSet/channelFaultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\ChannelSet.as:975]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.messaging::Channel/connectFailed()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\Channel.as:997]
at
mx.messaging.channels::PollingChannel/connectFailed()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\PollingChannel.as:354]
at
mx.messaging.channels::AMFChannel/statusHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\AMFChannel.as:390]




[flexcoders] Re: Cairngorm v/s others

2009-01-06 Thread gmbroth
--- In flexcoders@yahoogroups.com, Errol Thompson  wrote:
> Cairngorm provides the services locator but that needs to be mocked
out if
> you want to run tests that don't land up calling the remote server.
I have
> achieved this but it suggests to me that there are more flexible
solutions.

Hi,

We use Prana dependency injection with Cairngorm to wire
production/mock/whatever service locator implementations at runtime.
Elegant, powerful and not too difficult to set up.

Garry




re: [flexcoders] Which Unit Testing Framework to use?

2009-01-06 Thread Wally Kolcz
Been looking at FlexUnit, FUnit, and ASUnit. Like FlexUnit best so far...


From: "b_alen" 
Sent: Tuesday, January 06, 2009 5:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Which Unit Testing Framework to use? 

After a brief search on flex unit testing I found that FlexUnit is

supposed to be the leader of the pack. Also, there is FlexMonkey that

looks to be promising and it even uses FlexUnit. 

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

Are there any other frameworks worth considering and what is your

general experience with various frameworks.

Thanks.

Alen





[flexcoders] Re: Which Unit Testing Framework to use?

2009-01-06 Thread valdhor
I haven't looked into it (Just heard about it on The Flex Show) but
Fluint looks like it may be good:

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


--- In flexcoders@yahoogroups.com, "b_alen"  wrote:
>
> After a brief search on flex unit testing I found that FlexUnit is
> supposed to be the leader of the pack. Also, there is FlexMonkey that
> looks to be promising and it even uses FlexUnit. 
> 
> http://code.google.com/p/flexmonkey/
> 
> Are there any other frameworks worth considering and what is your
> general experience with various frameworks.
> 
> Thanks.
> 
> Alen
>




[flexcoders] Which Unit Testing Framework to use?

2009-01-06 Thread b_alen
After a brief search on flex unit testing I found that FlexUnit is
supposed to be the leader of the pack. Also, there is FlexMonkey that
looks to be promising and it even uses FlexUnit. 

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

Are there any other frameworks worth considering and what is your
general experience with various frameworks.

Thanks.

Alen



Re: [flexcoders] RSL VerifyError: Error #1079: Native methods are not allowed in loaded code.

2009-01-06 Thread freak182

Hello,

Im getting same error by upgrading my flex sdk:
here is my scenario:

1. im using flex-compiler-mojo to build flex
2. i upgrade from 3.0.0.477 to 3.2.0.3958
3. it has no when compiling but when i start my app, it gives me error:
VerifyError: Error #1079: Native methods are not allowed in loaded
codeand cascade the errors...


Darrell Loverin wrote:
> 
> Would you please provide some information on what steps you are 
> doing to switch between static linking and using RSLs? Are you just 
> trying to use the RSL provided in the SDK or are you creating your 
> own RSLs?
> 
> -Darrell Loverin
> Flex SDK
> 
> 
> --- In flexcoders@yahoogroups.com, "Dmitri Girski"  
> wrote:
>>
>> Hmmm. Can't get this RSL thing working. It spoils me with a 
> different
>> type of error messages such 1001, 1079, 2032 but there is no way
>> compile it in Flex 3.
>> 
>> If I change to static linking - everything is fine. 
>> 
>> Did anyone try to compile RSLs with released FB3?
>> 
>> 
>> Thanks!
>> 
>> Dmitri. 
>> 
>> 
>> 
>> --- In flexcoders@yahoogroups.com, "Dmitri Girski"  
> wrote:
>> >
>> > Hi all,
>> > 
>> > Just trying to convert the project into RSL and I am getting this
>> > strange error on the startup
>> > VerifyError: Error #1079: Native methods are not allowed in 
> loaded code.
>> > 
>> > Does anyone know what does it mean?
>> > 
>> > Thanks!
>> > 
>> > Dmitri.
>> >
>>
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/RSL-VerifyError%3A-Error--1079%3A-Native-methods-are-not-allowed-in-loaded-code.-tp15706910p21310605.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Generating Random Unique ID

2009-01-06 Thread oneworld95
You can also try the GUID generator tool for Flex:
http://code.google.com/p/flex-ad-by/ 

-Alex

--- In flexcoders@yahoogroups.com, "Wally Kolcz"  wrote:
>
> 
>   Wow, didn't know about that.still learning the whole 
> framework... 
> 
>thanks...sure that will work fine... 
> 
> 
> 
>   From: "Brendan Meutzner" 
> Sent: Monday, January 05, 2009 6:14 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Generating Random Unique ID 
> 
> Does the UIDUtil class included in framework with createUID() method
not do the trick for you?
> 
>   Brendan
> 
>   
> On Mon, Jan 5, 2009 at 8:06 PM, Paul Andrews  wrote:
> 
> - Original Message - From:Wally 
>   KolczTo:flexcod...@...: Tuesday, January 06, 2009 2:02 
>   AMSubject: [flexcoders] Generating Random 
>   Unique ID
> 
>   Anyone know a good way to generate a GUID or UUID with AS3? I
found a nice AS2 
>   version, but it blows up with AS3. Shouldn't be that hard, but
haven't been 
>   able to find a good Class. Thanks!   You'd probably learn more by
converting the 'nice' 
> AS2 class to AS3. 
> 
> -- 
> Brendan Meutzner
> http://www.meutzner.com/blog/
>




Re: [flexcoders] Display HTML Page Code Help

2009-01-06 Thread Sam Lai
AIR or browser?

On 1/6/09, horatio_rodriguez  wrote:
> Hi There
>
> I have just today started to use Flex Builder on the mac platform, i
> have looked over a couple of the RIA's and its pretty impressive to
> start with.
>
> I have a small question about coding,  I have created a new project
> and would like to know how i can put in the source code a request
> command to display a web page i have.
>
> So for e.g.  I request a particular web page and click the run button,
> it loads that requested page inside the project and display's only
> that.
>
> Is there a way for this to be done. If there is could anyone help me
> at all please.
>
>
> Thanks
>
> Horatio
>
>
> 
>
> --
> 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: Call external App from AIR

2009-01-06 Thread Sam Lai
> Thank Sam! I build an client AIR app. I find that all the way which I
> have tried is can't execute. I have received another guide about
> "command proxy" so I will search about it.

The command proxy allows you to send calls to external code to do
things you can't do in AIR via sockets. Effectively, it is a web
server on the desktop. It will work, but you don't get the nice AIR
experience because the command proxy isn't an AIR app, and AIR apps
can't execute programs on the desktop.

> "How about just distributing that SWF and the HTML file instead of
> using AIR?" can you give me some information about this solution?

Well how is your prototype working now? I assume you are using Flex
and running the flex app in IE, and calling javascript in IE which in
turn calls the Word ActiveX object to do stuff and return to you. Just
distribute the .htm and .swf. But it will only work on Windows, and
only if Office is installed.

> "AIR's E4X support to work with the XML file" the file I want to read
> is *.doc therefore can E4X do it?

Nope - only with docx files - the new format.


[flexcoders] Spurious truncateToFit behavior when scaling TabNavigator

2009-01-06 Thread x77686d
On one of our Flex applications we use scaleX and scaleY at the
application level to zoom in/out on the whole thing.  That works
pretty well except for one problem: there's a TabNavigator and we see
spurious truncateToFit behavior on the tab labels, turning "Some Tab"
into "Some T...", for example.  I say it's spurious because scaling at
1.2 and 1.3 works fine, but at 1.25 we get the ellipses.  I haven't
investigated the root cause but I speculate it's a rounding issue of
some sort. 

Does anybody know of a good way to get rid of the ellipses?  I see
that the IUITextField in Button does have truncateToFit but I'm not
aware of a good way to get at it.  (Could reflection be used?)

Any suggestions would be welcome.




[flexcoders] DataGrids, itemRenderers and dataChange events

2009-01-06 Thread Guy Morton
Hello

I hope someone here will be good enough to help me. I have a DataGrid,  
and a custom itemRenderer that shows an image depending on the value  
of the data in that cell. The trouble is that I am updating the value  
of the data in that cell when I do an update to one of the other cells  
in that row (via a different itemEditor, triggered by the itemEditEnd  
event), but that change is not being shown in the cell in question  
unless it gets redrawn by some other means, eg scrolling the field out  
of view and back in will show the new data, as will rearranging the  
columns (presumably because both of these actions force a redraw of  
the data in the cell in question).

Is there a way to force the updated value to trigger a redraw in the  
cell? My renderer is set up to catch the dataChange event but that  
doesn't seem to get dispatched unless one of the aforementioned things  
is done to force it.

Am I missing something here? Or is this a flaw in Flex?

Guy


RE: [flexcoders] Dragging to Super Tab Navigator

2009-01-06 Thread Yves Riel
It's not clear where you want the dragged image to appear. Is it on the
tab itself or on the container contained in the SuperTabNavigator? If
it's on the container, then just implement drag and drop operations for
your container and that should do the trick. If you are looking to drag
the image on top of the SuperTabNavigator's SuperTabBar and expect it to
create a container that will hold the image, then it's a bit more
complicated.
 
The SuperTabNavigator, through its SuperTabBar handles the drag and drop
operations but only of SuperTab controls. Anything else is ignored. If
you want the SuperTabBar to handle other type of drag and drop
operation, you'll need to extend the classes or listen to the drag and
drop events of the SuperTabBar. If you use the mx_internal namespace,
you can get a handle on the SuperTabBar of the SuperTabNavigator by
using the method getTabBar() and casting the returned object to a
SuperTabBar. Just remember that you cannot add an Image as a child of a
SuperTabNavigator, only Containers can be child of this object.
 
Hope it helps!



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Evan
Sent: Monday, January 05, 2009 4:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dragging to Super Tab Navigator



I have a grid this is filled with images. I have a SuperTabNavigator 
on the same screen. How do I set it up, so I can drag images to each 
tab in the navigator? That is, if I have ten tabs, I want to drag 
different objects to each one. 

The dragging works fine to a separate canvas, but how do I add a 
separate canvas to each tab? I think I need to do something at the 
point where the child is added that shows the contents for each tab, 
but I'm missing something. 

Thank you so much 



 


Re: [flexcoders] Re: geting info of a user who has loged in

2009-01-06 Thread Haykel BEN JEMIA
If you implemented le login functionality, then you should have some
mechanism (httpservice, rpc ...) to exchange data with the server to send
login info and get a response back. Just use the same mechanisms to send a
request and get the data back.

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Tue, Jan 6, 2009 at 10:44 AM, johndoematrix wrote:

>   yes i have implemented the login functionality and its working. nw i
> am faced with the issue of showing the details of the logged in user.
> any help?
>
>  
>


[flexcoders] Re: geting info of a user who has loged in

2009-01-06 Thread johndoematrix
yes i have implemented the login functionality and its working. nw i
am faced with the issue of showing the details of the logged in user.
any help?