Re: [flexcoders] Re: new Component() ?

2008-07-23 Thread Josh McDonald
If you have:


  


You get a subclass of Canvas named MyClass, and a local public scoped
instance of an IFactory called inlineEditor, right?

-Josh


On Thu, Jul 24, 2008 at 3:36 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>  If you've defined a component via , the name is
> auto-generated as Josh says, but it generates an IFactory, so you can use
> the factory to get new instances
>
>
>
> mailto:[EMAIL PROTECTED] *On
> Behalf Of *rafaelrfc00
> *Sent:* Wednesday, July 23, 2008 9:53 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Re: new Component() ?
>
>
>
> Text was just an example.
>
> It can be date, text, textarea, some other customcomponents. I was
> just curious how i would create item renderes without creating a file.
>
> I thought if you are able to use  you would be able to
> create it from actionscript as well.
>
> guess i was wrong. Flex didn't think about everything, do they? :P
>
> raf
>
> --- In flexcoders@yahoogroups.com , "Josh
> McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > Well no, you can't do what you're asking :)
> >
> > When you use:
> >
> > 
> > 
> > ...
> > 
> > 
> >
> > It's creating a new subclass of Canvas with a generated name, and
> you can't
> > create new classes at run-time without bytecode manipulation (which
> isn't
> > really an option in Flex yet unfortunately).
> >
> > But what exactly are you trying to achieve? If you're just
> displaying text,
> > but it needs to be different to the field data, what you need is a
> > labelFunction, not an itemRenderer.
> >
> > -Josh
> >
> > On Thu, Jul 24, 2008 at 10:34 AM, Rafael Faria <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Hi Pedro,
> > >
> > > How do you mean about putting some getters? Can you give me an
> example?
> > >
> > > Thanks
> > > Raf
> > >
> > >
> > > --- In flexcoders@yahoogroups.com ,
> "Pedro Sena"  wrote:
> > > >
> > > > Hi Rafael,
> > > >
> > > > What do u think of put some getters in your object instead of create
> > > various
> > > > item renderers that just have little funcionality ?
> > > >
> > > > Just my 2 cents
> > > >
> > >
> > >
> > > 
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > > Links
> > >
> > >
> > >
> > >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> >
>
> 
>



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

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Thick Java Client for LCDS

2008-07-23 Thread Shailesh Mangal
Has java client (thick) for LCDS been tried? Any ideas how can this be
done.

-Shailesh



[flexcoders] Drag and drop steals all mouse events

2008-07-23 Thread Mike Pearce
Ok, so I guess this is fair enough.

 

But what happens when you need to know the xmouse and ymouse position during
the drag operation?

 

Can anyone help out here? There _has_ to be a way to do this.

 

I need to provide visual feedback in my component that requires knowing the
mouse's location during a drag-and-drop operation.

 

Thanks in advance,

Mike



RE: [flexcoders] Only last row shown from dataservice result (Hibernate+LCDS)

2008-07-23 Thread Jeff Vroom
It sounds like you have a complex identity object – i.e. not a set of primitive 
properties.   Try adding a toString() method in your identity class which 
returns a unique string for each instance.   I think that we fixed this in 2.6 
so that is not necessary (now available on our web site).

Jeff

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Yohanes 
Iwan Sugiarto
Sent: Wednesday, July 23, 2008 6:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Only last row shown from dataservice result 
(Hibernate+LCDS)

Hi,

I'm using hibernate & LCDS 2.51
Using dataservices, result gets filled into an ArrayCollection, which is then 
bound to a Datagrid.

My object uses composite ID, which already have the hashCode and equals methods 
in the identity object.
Now the problem is only the last row is shown in the datagrid.
The rest are just blank rows and when I clicked on the blank row, the "Cannot 
access property null object reference" error pops out.

Everything seems normal based on the log (especially when the object gets 
serialized)

Have anyone experience this behaviour before?
I've read somewhere about this similar case in adobe bug reports, but I'm not 
really sure if this case is a known bug or merely my bad code.
Any comments are greatly appreciated.
Thanks
--
/ i w a n

<><>

RE: [flexcoders] need help with a custom item renderer

2008-07-23 Thread Alex Harui
I'd start with mx.controls.listClasses.ListItemRenderer.  It can already
display an icon and text.  Copy the source and modify as needed.
Putting stuff at negative coordinates is generally not recommended.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ndele_sutton
Sent: Wednesday, July 23, 2008 7:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] need help with a custom item renderer

 

i am developing using flex 3.0 and was trying to expand on some of 
the item renderer examples that i saw at alex's flex closet, but i 
ran into some trouble. i am trying to create a renderer that has a 
clickable image and a text component. i decided to subclass TextInput 
and add a preceding image but it just doesn't render properly. when 
first displayed, the image is positioned at x=-8, y=-8 despite 
explicitly setting the x and y coordinates. when the mouseover forces 
a redraw, the image is properly positioned. also, there appears to be 
a thin border at the bottom of the cell that i cannot get rid of. any 
help would be appreciated. the code is listed below. i am new to 
flex, so alternatives to this approach are welcome.

thanks

ublic class ParameterRenderer extends TextInput
{
private var image:Image;

public function ParameterRenderer()
{
super();
setStyle("borderStyle", "none");
setStyle("paddingBottom", 0);
}

override public function validateNow():void
{
// see BackgroundColorRenderer
}

override protected function updateDisplayList(w:Number, 
h:Number):void {
super.updateDisplayList(w, h);

// lifted from CenteredImage
if (image.content) {
var contentHolder:Loader = image.content.parent as Loader;
contentHolder.width = contentHolder.contentLoaderInfo.width;
contentHolder.height = contentHolder.contentLoaderInfo.height;
contentHolder.x = textField.x;
contentHolder.y = (h - contentHolder.contentLoaderInfo.height) / 2;
}
}

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

textField.selectable = false;

if (!image) {
image = new Image();
// attempt to get image to position properly
image.width = 16;
image.height = 16;
image.source = "../img/delete2.gif";
addChild(DisplayObject(image));
image.addEventListener(MouseEvent.CLICK, delete_onClick);
invalidateDisplayList();
image.move(2,0);
}
}

override protected function createBorder():void {
// thought this might get rid of bottom border
}

public function delete_onClick(event:MouseEvent):void {
// do something
} 

 



RE: [flexcoders] Re: rendering problem

2008-07-23 Thread Alex Harui
Can you post the app?  I probably won't be able to look until tomorrow
(for me).  Add "view source" if you can.  It isn't clear what you are
scrolling or how you've set up the UI.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rafael Faria
Sent: Wednesday, July 23, 2008 9:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: rendering problem

 

Well.. in the first one it's easy to see the difference. There is a
separator between 2 screens, one is when i load it, the second is when
i scroll down the page and than come back to the document. It repeats
the dropdowns, some times textinputs gets crazy and disapear but when
you mouse over them it back up.

The second one its the datagrids.

http://www.enilsson.com/assets/examples/rendering2.png
 

i circled this time so you can notice.

It happens when i have a big scroll and scroll up and down.

Any idea?

Rafael

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I can't tell from the pictures what is wrong.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Rafael Faria
> Sent: Wednesday, July 23, 2008 5:37 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: rendering problem
> 
> 
> 
> Alex,
> 
> Because i knew you would say to check your blog i had done this before
> write it here. I couldn't find anything about rendering problems. The
> only thing i found there was about item renderered and i don't use any
> on this case.
> 
> Any other suggestion?
> 
> Rafael
> 
> --- In flexcoders@yahoogroups.com


> , "Alex Harui"  wrote:
> >
> > I don't have time to look, but usually, there are issues with
renderer
> > recycling and/or rendering measurement. Have you read through the
> posts
> > on my blog?
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com


> [mailto:flexcoders@yahoogroups.com


> ] On
> > Behalf Of Rafael Faria
> > Sent: Tuesday, July 22, 2008 8:35 PM
> > To: flexcoders@yahoogroups.com 
 
> > Subject: [flexcoders] rendering problem
> > 
> > 
> > 
> > I'm not sure how many of you guys had this problem before but for
some
> > reason im getting a rendering problem with forms and datagrid and i
> > have no ideia how to solve it.
> > 
> > Check this example
> > the first part is the right one, after i scroll up and down, it gets
> > all mess up.
> > http://www.enilsson.com/assets/examples/rendering.png
 
>  > 
> >  
>  > > 
> > 
> > This one is how it deformed the datagrids.
> > http://www.enilsson.com/assets/examples/rendering2.png
 
>  > 
> >  
>  > > 
> > 
> > Any idea how to fix that?
> > it's killing me.
> > 
> > raf
> >
>

 



RE: [flexcoders] Re: new Component() ?

2008-07-23 Thread Alex Harui
If you've defined a component via , the name is
auto-generated as Josh says, but it generates an IFactory, so you can
use the factory to get new instances

 

mailto:[EMAIL PROTECTED] On
Behalf Of rafaelrfc00
Sent: Wednesday, July 23, 2008 9:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: new Component() ?

 

Text was just an example. 

It can be date, text, textarea, some other customcomponents. I was
just curious how i would create item renderes without creating a file.

I thought if you are able to use  you would be able to
create it from actionscript as well.

guess i was wrong. Flex didn't think about everything, do they? :P

raf

--- In flexcoders@yahoogroups.com 
, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Well no, you can't do what you're asking :)
> 
> When you use:
> 
> 
> 
> ...
> 
> 
> 
> It's creating a new subclass of Canvas with a generated name, and
you can't
> create new classes at run-time without bytecode manipulation (which
isn't
> really an option in Flex yet unfortunately).
> 
> But what exactly are you trying to achieve? If you're just
displaying text,
> but it needs to be different to the field data, what you need is a
> labelFunction, not an itemRenderer.
> 
> -Josh
> 
> On Thu, Jul 24, 2008 at 10:34 AM, Rafael Faria
<[EMAIL PROTECTED]>
> wrote:
> 
> > Hi Pedro,
> >
> > How do you mean about putting some getters? Can you give me an
example?
> >
> > Thanks
> > Raf
> >
> >
> > --- In flexcoders@yahoogroups.com
 , "Pedro Sena" 
wrote:
> > >
> > > Hi Rafael,
> > >
> > > What do u think of put some getters in your object instead of
create
> > various
> > > item renderers that just have little funcionality ?
> > >
> > > Just my 2 cents
> > >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 ! Groups
> > Links
> >
> >
> >
> >
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>

 



RE: [flexcoders] TitleWindow's title

2008-07-23 Thread Alex Harui
Subclass and alter the position of the titleTextField

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Wednesday, July 23, 2008 3:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TitleWindow's title

 

Is there a way of centering the title?

Thanks

 



Re: [flexcoders] Re: Problem With type checking...

2008-07-23 Thread [EMAIL PROTECTED] Uttarwar
Thanks for the reply Michael ,

you are right both arrays are in the model.

Thanks and Regards,
Pravin G.Uttarwar,
Software Developer,
Perennial Systems.
Visit Us at:www.perennialsys.com
E-mail: [EMAIL PROTECTED]
Mob. +919371288080

2008/7/23 Michael Ritchie <[EMAIL PROTECTED]>:

>   Is the ArrayCollection FamilyMember and FriendMember located in the
> Cairngorm Model or are you passing these into the Module through an
> Interface?
>
> - Mr
>
> --- In flexcoders@yahoogroups.com , "[EMAIL 
> PROTECTED]
> Uttarwar"
>
> <[EMAIL PROTECTED]> wrote:
> >
> > Hi Everybody,
> >
> > I am using cairngorm and modules in my project.
> > I am having one module in which user list is showing according to
> > arraycollection of objects of type
> > "FamilyMember" or "FriendMember".
> > I am checking the type of that object inside module using is operator.
> >
> > First time when with given arrayCollection of specific type it is
> working
> > well and fine.
> > but...
> > when user switches to another module then i am unloading the previous
> > module(in which user list was showing.)
> > again when user switch backs to this module everything is working
> except the
> > user list is not showing.
> >
> > When i debug the application and cheked for the error then ,
> > where i am checking the object type using (myobject is
> > FamilyMember)operator is returning
> > false,
> > whereas in arraycollection the type is shown correct ie "FamilyMember".
> >
> > What is the problem
> >
> > i am really wondering what to do???
> >
> > Any help will be appreciated...
> >
> > Thanks and Regards,
> > Pravin G.Uttarwar,
> > Software Developer,
> > Perennial Systems.
> > Visit Us at:www.perennialsys.com
> > E-mail: [EMAIL PROTECTED]
> > Mob. +919371288080
> >
>
>  
>


[flexcoders] Re: new Component() ?

2008-07-23 Thread rafaelrfc00
Text was just an example. 

It can be date, text, textarea, some other customcomponents. I was
just curious how i would create item renderes without creating a file.

I thought if you are able to use  you would be able to
create it from actionscript as well.

guess i was wrong. Flex didn't think about everything, do they? :P

raf


--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Well no, you can't do what you're asking :)
> 
> When you use:
> 
> 
>   
> ...
>   
> 
> 
> It's creating a new subclass of Canvas with a generated name, and
you can't
> create new classes at run-time without bytecode manipulation (which
isn't
> really an option in Flex yet unfortunately).
> 
> But what exactly are you trying to achieve? If you're just
displaying text,
> but it needs to be different to the field data, what you need is a
> labelFunction, not an itemRenderer.
> 
> -Josh
> 
> On Thu, Jul 24, 2008 at 10:34 AM, Rafael Faria <[EMAIL PROTECTED]>
> wrote:
> 
> > Hi Pedro,
> >
> > How do you mean about putting some getters? Can you give me an
example?
> >
> > Thanks
> > Raf
> >
> >
> > --- In flexcoders@yahoogroups.com, "Pedro Sena"  wrote:
> > >
> > > Hi Rafael,
> > >
> > > What do u think of put some getters in your object instead of create
> > various
> > > item renderers that just have little funcionality ?
> > >
> > > Just my 2 cents
> > >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >
> >
> >
> >
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




[flexcoders] Re: rendering problem

2008-07-23 Thread Rafael Faria
Well.. in the first one it's easy to see the difference. There is a
separator between 2 screens, one is when i load it, the second is when
i scroll down the page and than come back to the document. It repeats
the dropdowns, some times textinputs gets crazy and disapear but when
you mouse over them it back up.

The second one its the datagrids.

http://www.enilsson.com/assets/examples/rendering2.png

i circled this time so you can notice.

It happens when i have a big scroll and scroll up and down.


Any idea?


Rafael


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I can't tell from the pictures what is wrong.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Rafael Faria
> Sent: Wednesday, July 23, 2008 5:37 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: rendering problem
> 
>  
> 
> Alex,
> 
> Because i knew you would say to check your blog i had done this before
> write it here. I couldn't find anything about rendering problems. The
> only thing i found there was about item renderered and i don't use any
> on this case.
> 
> Any other suggestion?
> 
> Rafael
> 
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > I don't have time to look, but usually, there are issues with renderer
> > recycling and/or rendering measurement. Have you read through the
> posts
> > on my blog?
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of Rafael Faria
> > Sent: Tuesday, July 22, 2008 8:35 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] rendering problem
> > 
> > 
> > 
> > I'm not sure how many of you guys had this problem before but for some
> > reason im getting a rendering problem with forms and datagrid and i
> > have no ideia how to solve it.
> > 
> > Check this example
> > the first part is the right one, after i scroll up and down, it gets
> > all mess up.
> > http://www.enilsson.com/assets/examples/rendering.png
>  
> >   > 
> > 
> > This one is how it deformed the datagrids.
> > http://www.enilsson.com/assets/examples/rendering2.png
>  
> >   > 
> > 
> > Any idea how to fix that?
> > it's killing me.
> > 
> > raf
> >
>




[flexcoders] NullPointerException from ant task.

2008-07-23 Thread Josh McDonald
Hey Guys,

Can't seem to google up an answer for this besides an old closed bug. When
my build file gets to:







I get a NullPointerException. All I get from ant is this:

wrapper:

BUILD FAILED
/Users/josh/Desktop/Work/Builder Workspace/DisposalsRCC/build.xml:51:
java.lang.NullPointerException

Any ideas where to look to fix this?

-Josh

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

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: Passing data to AdvancedDataGridRendererProvider

2008-07-23 Thread frank_sommers
Hi Amy, 

Thank you so much for the excellent advice. I ended up defining a custom event. 
This 
really is a much cleaner design. Thank you again. 

-- Frank

--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> --- In flexcoders@yahoogroups.com, "frank_sommers"  wrote:
> >
> > Hi, 
> > 
> > I'm trying to pass some custom data into the 
> AdvancedDataGridItemRenderer. But as far as I 
> > can see, only the datafield can be passed to this component. Is there 
> any way to specify to 
> > the class factory some other object references, too? 
> > 
> > In my case, I want the user to be able to affect the UI state from 
> within an item renderer, 
> > and therefore I'd like to pass references to another UI component as 
> well to the 
> > AdvancedDataGridItemRenderer. 
> 
> You could do something like this
> 
> renderer:ClassFactory = new myRenderer();
> renderer.properties{relatedComponent:yourComponent};
> 
> Then use renderer as your itemRenderer on the ADG.  If you're going to 
> do this, you should probably create an Interface so that any component 
> you create with that interface will work with the renderer.
> 
> However, I'd suggest that instead you have your itemRenderer broadcast 
> an event (or pick up one of the events the ADG already broadcasts) and 
> listen for that.  Trying to poke a reference to one component into 
> another component breaks encapsulation and will result in code that's 
> more confusing to anyone coming behind you.
> 
> HTH;
> 
> Amy
>





[flexcoders] Embeding Object Tag in Flex

2008-07-23 Thread Faisal Abid
Does anyone know how to embed an object tag in flex. like the ones
used commonly in widgets ? The current solution I have is use the HTML
IFRAME component in Flex. Does anyone else have an idea? I cant simple
extract the swf address because attached to it is some analytics data. 



RE: [flexcoders] Re: rendering problem

2008-07-23 Thread Alex Harui
I can't tell from the pictures what is wrong.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rafael Faria
Sent: Wednesday, July 23, 2008 5:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: rendering problem

 

Alex,

Because i knew you would say to check your blog i had done this before
write it here. I couldn't find anything about rendering problems. The
only thing i found there was about item renderered and i don't use any
on this case.

Any other suggestion?

Rafael

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I don't have time to look, but usually, there are issues with renderer
> recycling and/or rendering measurement. Have you read through the
posts
> on my blog?
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Rafael Faria
> Sent: Tuesday, July 22, 2008 8:35 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] rendering problem
> 
> 
> 
> I'm not sure how many of you guys had this problem before but for some
> reason im getting a rendering problem with forms and datagrid and i
> have no ideia how to solve it.
> 
> Check this example
> the first part is the right one, after i scroll up and down, it gets
> all mess up.
> http://www.enilsson.com/assets/examples/rendering.png
 
>  > 
> 
> This one is how it deformed the datagrids.
> http://www.enilsson.com/assets/examples/rendering2.png
 
>  > 
> 
> Any idea how to fix that?
> it's killing me.
> 
> raf
>

 



RE: [flexcoders] Loading an ActionScript class from and external swf file

2008-07-23 Thread Alex Harui
AS is not Java.  See the modules presentation on my blog.

 

You won't want to reference MyScreen as MyScreen in the main app, but
rather as IScreen.  MyScreen should have been created by ModuleLoader
and the child property should be an IScreen.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of arunprakash dhanabal
Sent: Wednesday, July 23, 2008 6:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Loading an ActionScript class from and external
swf file

 

Hi,

Im running into an issue with Flex and need some help.

I have an action script application in flexbuilder. 
Here is the setup,

* interface named IScreen defined in the application
* Created a new mxml module(MyScreen.mxml) which is implementing the 
IScreen interface
* The main application's SWF has just the IScreen.as and the 
application.mxml
* The MyScreen.swf has the MyScreen.as and the related dependencies

Im trying to instantiate the class MyScreen from the 
application.mxml. Im loading the swf file using a ModuleLoader and 
once the module is loaded, Im trying to create an instance of the 
MyScreen using the getDefinitionByName.

I get the following error
Error #1065: Variable MyScreen is not defined.

I get this because MyScreen is a seperate module and not compiled 
into the main swf file. I dont want the MyScreen to be compiled into 
the main app as my requirement is that I dont know which 
implementation of the screen, I willbe loading in the runtime.

In Java I would just define the interface in the main application and 
then, load the class that is implementing the interface from the 
classpath and I should be able to call the methods in the interface.

Any thoughts!!!

I have a sample workspace showing this problem

Thanks for your time in reading this email.

 



[flexcoders] Re: Can SQLite work in non-AIR envirnoment ?

2008-07-23 Thread itdanny2002
Seems that FLEX (web base, not AIR) cannot use SQLite,
then, can I keep data in cookie. Any idea ?

--- In flexcoders@yahoogroups.com, Sid Maskit <[EMAIL PROTECTED]> wrote:
>
> The SQLite database is part of the AIR architecture, not of flex. 
So you can only use the database in an air application, not in a flex 
application that is running inside a web browser.
> 
> If you do deploy an air application, it will provide you with the 
basic tools for synchronizing your data, but does not provide any 
actual synchronization engine. In other words, it allows you to 
insert into and select from the SQLite database, arrange selected 
data however you wish, and communicate with the server, but the 
actual logic of synchronization is completely up to you. You should 
be aware that this can get quite daunting if you need to allow for 
multiple users to share data and/or each user to store data on 
multiple computers.
> 
> 
> 
> - Original Message 
> From: itdanny2002 <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Wednesday, July 23, 2008 6:51:39 PM
> Subject: [flexcoders] Can SQLite work in non-AIR envirnoment ?
> 
> 
> Hi All,
> 
> I found that a lot of FLEX application used
> SQLite. However, most of them is in AIR. Can
> it be used in web-based and do sync with server ?
> 
> I wanna to design a web application which has data 
> in client PC and sync with data in server side. Can 
> it be ? Any light/direction on it ?
> 
> DC
>




[flexcoders] need help with a custom item renderer

2008-07-23 Thread ndele_sutton
i am developing using flex 3.0 and was trying to expand on some of 
the item renderer examples that i saw at alex's flex closet, but i 
ran into some trouble. i am trying to create a renderer that has a 
clickable image and a text component. i decided to subclass TextInput 
and add a preceding image but it just doesn't render properly. when 
first displayed, the image is positioned at x=-8, y=-8 despite 
explicitly setting the x and y coordinates. when the mouseover forces 
a redraw, the image is properly positioned. also, there appears to be 
a thin border at the bottom of the cell that i cannot get rid of. any 
help would be appreciated.  the code is listed below.  i am new to 
flex, so alternatives to this approach are welcome.

thanks


ublic class ParameterRenderer extends TextInput
{
private var image:Image;

public function ParameterRenderer()
{
super();
setStyle("borderStyle", "none");
setStyle("paddingBottom", 0);
}

override public function validateNow():void
{
// see BackgroundColorRenderer
}

override protected function updateDisplayList(w:Number, 
h:Number):void {
super.updateDisplayList(w, h);

// lifted from CenteredImage
if (image.content) {
var contentHolder:Loader = image.content.parent as Loader;
contentHolder.width = contentHolder.contentLoaderInfo.width;
contentHolder.height = contentHolder.contentLoaderInfo.height;
contentHolder.x = textField.x;
contentHolder.y = (h - contentHolder.contentLoaderInfo.height) / 2;
}
}

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

textField.selectable = false;

if (!image) {
image = new Image();
// attempt to get image to position properly
image.width = 16;
image.height = 16;
image.source = "../img/delete2.gif";
addChild(DisplayObject(image));
image.addEventListener(MouseEvent.CLICK, delete_onClick);
invalidateDisplayList();
image.move(2,0);
}
}

override protected function createBorder():void {
// thought this might get rid of bottom border
}

public function delete_onClick(event:MouseEvent):void {
// do something
} 



[flexcoders] Beginning of testing support from Selenium

2008-07-23 Thread Matt Chotin
For those who have been looking for testing support from Selenium, a project
has been started on Sourceforge that I'm sure could use your support.

http://sourceforge.net/projects/seleniumflexapi/

Still in its early stages, but this is a request we've heard before so if
you're interested please go over there and help Fergal out.

Matt



RE: [flexcoders] List itemrenderer

2008-07-23 Thread Alex Harui
Read through the item renderer posts on my blog

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Manu Dhanda
Sent: Wednesday, July 23, 2008 8:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] List itemrenderer

 


Hii guys,

am sure that this had been discussed here before.

My problem details are:

I am trying to put a custom item renderer in my list component. And the
custom renderer is an HBox. Now, what happens is when I select an item
in
the list, it get selected(which is absolutely fine). But when I scroll
down,
I find that the item underlying to my previous selected item is also got
selected(after scrolling down).

Can anyone point me to any previous post or otherwise can put some light
to
it's solution.

Thanks,
Manu.
-- 
View this message in context:
http://www.nabble.com/List-itemrenderer-tp18624634p18624634.html
 
Sent from the FlexCoders mailing list archive at Nabble.com.

 



[flexcoders] Alternating colors for AdvancedDataGrid

2008-07-23 Thread Everson Alves
Hi,

I need to use alternate colors for items within a ADG. alternatingItemColors
is not what i'm looking for because I need that child objects have the same
color as their parent. So the only alternating colors is depth 1. Thanks.
-- 
Jhonny Everson


Re: [flexcoders] Can SQLite work in non-AIR envirnoment ?

2008-07-23 Thread Sid Maskit
The SQLite database is part of the AIR architecture, not of flex. So you can 
only use the database in an air application, not in a flex application that is 
running inside a web browser.

If you do deploy an air application, it will provide you with the basic tools 
for synchronizing your data, but does not provide any actual synchronization 
engine. In other words, it allows you to insert into and select from the SQLite 
database, arrange selected data however you wish, and communicate with the 
server, but the actual logic of synchronization is completely up to you. You 
should be aware that this can get quite daunting if you need to allow for 
multiple users to share data and/or each user to store data on multiple 
computers.



- Original Message 
From: itdanny2002 <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 23, 2008 6:51:39 PM
Subject: [flexcoders] Can SQLite work in non-AIR envirnoment ?


Hi All,

I found that a lot of FLEX application used
SQLite. However, most of them is in AIR. Can
it be used in web-based and do sync with server ?

I wanna to design a web application which has data 
in client PC and sync with data in server side. Can 
it be ? Any light/direction on it ?

DC




  

[flexcoders] List itemrenderer

2008-07-23 Thread Manu Dhanda

Hii guys,

am sure that this had been discussed here before.

My problem details are:

I am trying to put a custom item renderer in my list component. And the
custom renderer is an HBox. Now, what happens is when I select an item in
the list, it get selected(which is absolutely fine). But when I scroll down,
I find that the item underlying to my previous selected item is also got
selected(after scrolling down).

Can anyone point me to any previous post or otherwise can put some light to
it's solution.

Thanks,
Manu.
-- 
View this message in context: 
http://www.nabble.com/List-itemrenderer-tp18624634p18624634.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Can SQLite work in non-AIR envirnoment ?

2008-07-23 Thread itdanny2002
Thanks. I will use MySQL in server side
and try to write a web application to sync
SQLite data in client side. I do this since 
I wanna to store data in client machine to 
shorten retrieve time via network since the 
data doesn't often change. 

--- In flexcoders@yahoogroups.com, "Tim Rowe" <[EMAIL PROTECTED]> wrote:
>
> Absolutely it can be done, but you're probably going to need some 
kind
> of lay in between (depending on how you do things).  Therefore, 
you're
> probably better off treating the remote database as something 
abstract
> rather than concretely knowing that it's SQLite - as it's usually 
more
> likely it'll be something more like MySQL.
>  
> Obviously it depends on the environment and how much control of 
this you
> have, amongst other design decisions.  Without know what you're 
actually
> talking to and what your backend is, it's hard to really give 
advise as
> to what to use or how to go about it.
>  
> --Tim Rowe
> Software Engineer
> carsales.com.au
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of itdanny2002
> Sent: Thursday, 24 July 2008 11:52 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Can SQLite work in non-AIR envirnoment ?
> 
> 
> 
> Hi All,
> 
> I found that a lot of FLEX application used
> SQLite. However, most of them is in AIR. Can
> it be used in web-based and do sync with server ?
> 
> I wanna to design a web application which has data 
> in client PC and sync with data in server side. Can 
> it be ? Any light/direction on it ?
> 
> DC
>




RE: [flexcoders] Can SQLite work in non-AIR envirnoment ?

2008-07-23 Thread Tim Rowe
Absolutely it can be done, but you're probably going to need some kind
of lay in between (depending on how you do things).  Therefore, you're
probably better off treating the remote database as something abstract
rather than concretely knowing that it's SQLite - as it's usually more
likely it'll be something more like MySQL.
 
Obviously it depends on the environment and how much control of this you
have, amongst other design decisions.  Without know what you're actually
talking to and what your backend is, it's hard to really give advise as
to what to use or how to go about it.
 
--Tim Rowe
Software Engineer
carsales.com.au



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of itdanny2002
Sent: Thursday, 24 July 2008 11:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Can SQLite work in non-AIR envirnoment ?



Hi All,

I found that a lot of FLEX application used
SQLite. However, most of them is in AIR. Can
it be used in web-based and do sync with server ?

I wanna to design a web application which has data 
in client PC and sync with data in server side. Can 
it be ? Any light/direction on it ?

DC



 


[flexcoders] Can SQLite work in non-AIR envirnoment ?

2008-07-23 Thread itdanny2002
Hi All,

I found that a lot of FLEX application used
SQLite. However, most of them is in AIR. Can
it be used in web-based and do sync with server ?

I wanna to design a web application which has data 
in client PC and sync with data in server side. Can 
it be ? Any light/direction on it ?

DC



Re: [flexcoders] Re: Encapsulating a custom flex component?

2008-07-23 Thread Sid Maskit
Ah, I see. Thanks for the clarification.



- Original Message 
From: Josh McDonald <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 23, 2008 6:23:19 PM
Subject: Re: [flexcoders] Re: Encapsulating a custom flex component?


You're almost right. [Exclude] doesn't affect the compiled code at all - it 
only affects the introspector built into Builder, and ASDoc generation. It's 
different from "private".

-Josh


On Thu, Jul 24, 2008 at 11:17 AM, Sid Maskit <[EMAIL PROTECTED] com> wrote:

Well, unfortunately, I did some further testing, and it turns out not to be as 
complete a solution as it initially appears to be. Here's a comment that I just 
posted on that blog entry:

It is sort of true that "btn" won't be accessible outside that component, but 
there are limits on this. Let's say that your custom component is in the file 
MyComponent. mxml, and that we would therefore instantiate it within another 
file as follows:



If we try to use the btn attribute within that tag, it will not be available to 
us. However, we can still access the button subcomponent for things such as 
binding. Thus we can add another tag which would bind to the button 
subcomponent, like this:



Not only would this not cause a compiler error, but it would work correctly. 
Further, we can access the subcomponent button using ActionScript, such as this:

this.myComponent. btn.label = "modified";

And that will also work. Thus it turns out that [Exclude] is limited to 
altering what attributes are available within the tag that declares a component.



- Original Message 
From: Josh McDonald <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com

Sent: Wednesday, July 23, 2008 4:52:15 PM
Subject: Re: [flexcoders] Re: Encapsulating a custom flex component?


Damn, why didn't I think of that? I'd been trying to think of ways to do that 
for ages a few months ago, trying to clean up the ctrl-space on some APIs :)

-Josh


On Thu, Jul 24, 2008 at 8:40 AM, Sid Maskit <[EMAIL PROTECTED] com> wrote:

I just found this blog post which seems to provide a way of doing this that is 
very straightforward: http://blog. ashier.com/ 2008/03/25/ hiding-propertie 
s-in-flex- components/



- Original Message 
From: Nate Beck <[EMAIL PROTECTED] com>

To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, July 23, 2008 9:27:13 AM
Subject: [flexcoders] Re: Encapsulating a custom flex component?


A feature request has been opened for adding accessors to MXML.  Please vote on 
this if 
you see fitting.  It also better explains the issue that I am running into.

http://bugs. adobe.com/ jira/browse/ SDK-16181

There is also discussion going on about this issue at Jeff's blog: 
http://www.jeffryho user.com/ index.cfm? mode=entry& entry=4DC9B79C- 65B3-D59C-
464EC981E0A2EA8F

Thanks,
Nate

--- In [EMAIL PROTECTED] ups.com, Jeffry Houser <[EMAIL PROTECTED]> wrote:
>
> 
>  In an ActionScript component, you can make the component internal to 
> the package.  You might also combine it with the "ExcludeClass" metadata 
> tag to 'hide' the class name from people using your SWC. 
> 
>  I'm not sure if I'd equate either of these approach to private, though.
> 
>  I blogged about this in a bit more detail:
> 
> http://www.jeffryho user.com/ index.cfm? mode=entry& entry=4DC9B79C- 
> 65B3-D59C-
464EC981E0A2EA8F
> 
> Josh McDonald wrote:
> > Not in MXML components.
> >
> > -Josh
> >
> > On Wed, Jul 23, 2008 at 9:53 AM, Nate Beck <[EMAIL PROTECTED] 
> > > wrote:
> >
> > Newbish question... but after searching on google, I can't get a
> > concise answer.
> >
> > Is it possible to encapsulate (mark private) components within a
> > Flex component?
> >
> > So I have custom MXML component (ResourcesTree) that has a Tree
> > inside of it. I don't want
> > the Tree to directly be available outside the ResourcesTree Component.
> >
> > Any input?
> >
> >
> >  - - --
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder 
> > sFAQ.txt
> > Search Archives:
> > http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo!
> > Groups Links
> >
> >
> >mailto:flexcoders-fullfeat [EMAIL PROTECTED] .com
> > 
> >
> >
> >
> >
> >
> > -- 
> > "Therefore, send not to know For whom the bell tolls. It tolls for thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED] 
> > 
> 
> -- 
> Jeffry Houser
> Flex, ColdFusion, AIR
> AIM: Reboog711  | Phone: 1-203-379-0773
> --
> Adobe Community Expert 

> My Company:  
> My Podcast: 
> My Blog: 
>


 



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

:: Josh 'G-Fu

[flexcoders] Datagrid Query Issue

2008-07-23 Thread spark.edesigns
New to Flex but enjoying it!

I have a datagrid, dgCountry, that is populated by a httpservice call. The 
datagrid shows the 
list of countries in  a group, for example, Latin America, Caribbean, etc, etc.

When the user chooses a country from the grid, I need to query the database 
again to locate 
the  store locations in the chosen country and populate another grid, the 
dgStoreList.

How is the accomplished in FLEX 2? I've been working at this for quite some 
time but can't 
find a solution. Please help, I'm dying over here!!

All knowledge is greatly appreciated.

cheers.



[flexcoders] Loading an ActionScript class from and external swf file

2008-07-23 Thread arunprakash dhanabal
Hi,

Im running into an issue with Flex and need some help.

I have an action script application in flexbuilder. 
Here is the setup,

* interface named IScreen defined in the application
* Created a new mxml module(MyScreen.mxml) which is implementing the 
IScreen interface
* The main application's SWF has just the IScreen.as and the 
application.mxml
* The MyScreen.swf has the MyScreen.as and the related dependencies

Im trying to instantiate the class MyScreen from the 
application.mxml. Im loading the swf file using a ModuleLoader and 
once the module is loaded, Im trying to create an instance of the 
MyScreen using the getDefinitionByName.


I get the following error
Error #1065: Variable MyScreen is not defined.

I get this because MyScreen is a seperate module and not compiled 
into the main swf file. I dont want the MyScreen to be compiled into 
the main app as my requirement is that I dont know which 
implementation of the screen, I willbe loading in the runtime.

In Java I would just define the interface in the main application and 
then, load the class that is implementing the interface from the 
classpath and I should be able to call the methods in the interface.

Any thoughts!!!

I have a sample workspace showing this problem

Thanks for your time in reading this email.



Re: [flexcoders] Re: Encapsulating a custom flex component?

2008-07-23 Thread Josh McDonald
You're almost right. [Exclude] doesn't affect the compiled code at all - it
only affects the introspector built into Builder, and ASDoc generation. It's
different from "private".

-Josh

On Thu, Jul 24, 2008 at 11:17 AM, Sid Maskit <[EMAIL PROTECTED]> wrote:

>  Well, unfortunately, I did some further testing, and it turns out not to
> be as complete a solution as it initially appears to be. Here's a comment
> that I just posted on that blog entry:
>
> It is sort of true that "btn" won't be accessible outside that component,
> but there are limits on this. Let's say that your custom component is in the
> file MyComponent.mxml, and that we would therefore instantiate it within
> another file as follows:
>
> 
>
> If we try to use the btn attribute within that tag, it will not be
> available to us. However, we can still access the button subcomponent for
> things such as binding. Thus we can add another tag which would bind to the
> button subcomponent, like this:
>
> 
>
> Not only would this not cause a compiler error, but it would work
> correctly. Further, we can access the subcomponent button using
> ActionScript, such as this:
>
> this.myComponent.btn.label = "modified";
>
> And that will also work. Thus it turns out that [Exclude] is limited to
> altering what attributes are available within the tag that declares a
> component.
>
> - Original Message 
> From: Josh McDonald <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Wednesday, July 23, 2008 4:52:15 PM
> Subject: Re: [flexcoders] Re: Encapsulating a custom flex component?
>
>  Damn, why didn't I think of that? I'd been trying to think of ways to do
> that for ages a few months ago, trying to clean up the ctrl-space on some
> APIs :)
>
> -Josh
>
> On Thu, Jul 24, 2008 at 8:40 AM, Sid Maskit <[EMAIL PROTECTED] com<[EMAIL 
> PROTECTED]>>
> wrote:
>
>>  I just found this blog post which seems to provide a way of doing this
>> that is very straightforward: http://blog. ashier.com/ 2008/03/25/
>> hiding-propertie s-in-flex- 
>> components/
>>
>> - Original Message 
>> From: Nate Beck <[EMAIL PROTECTED] com <[EMAIL PROTECTED]>>
>> To: [EMAIL PROTECTED] ups.com 
>> Sent: Wednesday, July 23, 2008 9:27:13 AM
>> Subject: [flexcoders] Re: Encapsulating a custom flex component?
>>
>>  A feature request has been opened for adding accessors to MXML. Please
>> vote on this if
>> you see fitting. It also better explains the issue that I am running into.
>>
>> http://bugs. adobe.com/ jira/browse/ 
>> SDK-16181
>>
>> There is also discussion going on about this issue at Jeff's blog:
>> http://www.jeffryho user.com/ index.cfm? mode=entry& entry=4DC9B79C-
>> 65B3-D59C-
>> 464EC981E0A2EA8F
>>
>> Thanks,
>> Nate
>>
>> --- In [EMAIL PROTECTED] ups.com , Jeffry
>> Houser <[EMAIL PROTECTED]> wrote:
>> >
>> >
>> > In an ActionScript component, you can make the component internal to
>> > the package. You might also combine it with the "ExcludeClass" metadata
>> > tag to 'hide' the class name from people using your SWC.
>> >
>> > I'm not sure if I'd equate either of these approach to private, though.
>> >
>> > I blogged about this in a bit more detail:
>> >
>> > http://www.jeffryho user.com/ index.cfm? mode=entry& entry=4DC9B79C-
>> 65B3-D59C-
>> 464EC981E0A2EA8F
>> >
>> > Josh McDonald wrote:
>> > > Not in MXML components.
>> > >
>> > > -Josh
>> > >
>> > > On Wed, Jul 23, 2008 at 9:53 AM, Nate Beck <[EMAIL PROTECTED]
>> > > > wrote:
>> > >
>> > > Newbish question... but after searching on google, I can't get a
>> > > concise answer.
>> > >
>> > > Is it possible to encapsulate (mark private) components within a
>> > > Flex component?
>> > >
>> > > So I have custom MXML component (ResourcesTree) that has a Tree
>> > > inside of it. I don't want
>> > > the Tree to directly be available outside the ResourcesTree Component.
>> > >
>> > > Any input?
>> > >
>> > >
>> > >  - - --
>> > >
>> > > --
>> > > Flexcoders Mailing List
>> > > FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder
>> sFAQ.txt
>> > > Search Archives:
>> > > http://www.mail- archive.com/ flexcoders% 40yahoogroups. 
>> > > comYahoo
>> !
>> > > Groups Links
>> > >
>> > >
>> > > mailto:flexcoders-fullfeat [EMAIL PROTECTED] 
>> > > .com
>> > > > > > .com
>> >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > --
>> > > "Therefore, send not to know For whom the bell tolls. It tolls for
>> thee."
>> > >
>> > > :: Josh 'G-Funk' McDonald
>> > > :: 0437 221 380 :: [EMAIL PROTECTED] 
>> > 

[flexcoders] drag and drop in air cairngorm app

2008-07-23 Thread Dan Vega
I have tested some code in a seperate application and everything is fine. In
my app I am using Cairngorm and I have a custom view. My main file is pretty
simple as you can see below. The problem I having is that in the custom view
I can never get the dragdrop to fire. The enter and exit trace statements
execute just fine. As I said, I set up a test app and this seems to work
fine. Anyone know what im doing wrong here?


MAIN








CUSTOM VIEW

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











Thank You
Dan Vega
[EMAIL PROTECTED]
http://www.danvega.org


Re: [flexcoders] Re: Encapsulating a custom flex component?

2008-07-23 Thread Sid Maskit
Well, unfortunately, I did some further testing, and it turns out not to be as 
complete a solution as it initially appears to be. Here's a comment that I just 
posted on that blog entry:

It is sort of true that "btn" won't be accessible outside that component, but 
there are limits on this. Let's say that your custom component is in the file 
MyComponent.mxml, and that we would therefore instantiate it within another 
file as follows:



If we try to use the btn attribute within that tag, it will not be available to 
us. However, we can still access the button subcomponent for things such as 
binding. Thus we can add another tag which would bind to the button 
subcomponent, like this:



Not only would this not cause a compiler error, but it would work correctly. 
Further, we can access the subcomponent button using ActionScript, such as this:

this.myComponent.btn.label = "modified";

And that will also work. Thus it turns out that [Exclude] is limited to 
altering what attributes are available within the tag that declares a component.



- Original Message 
From: Josh McDonald <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 23, 2008 4:52:15 PM
Subject: Re: [flexcoders] Re: Encapsulating a custom flex component?


Damn, why didn't I think of that? I'd been trying to think of ways to do that 
for ages a few months ago, trying to clean up the ctrl-space on some APIs :)

-Josh


On Thu, Jul 24, 2008 at 8:40 AM, Sid Maskit <[EMAIL PROTECTED] com> wrote:

I just found this blog post which seems to provide a way of doing this that is 
very straightforward: http://blog. ashier.com/ 2008/03/25/ hiding-propertie 
s-in-flex- components/



- Original Message 
From: Nate Beck <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, July 23, 2008 9:27:13 AM
Subject: [flexcoders] Re: Encapsulating a custom flex component?


A feature request has been opened for adding accessors to MXML.  Please vote on 
this if 
you see fitting.  It also better explains the issue that I am running into.

http://bugs. adobe.com/ jira/browse/ SDK-16181

There is also discussion going on about this issue at Jeff's blog: 
http://www.jeffryho user.com/ index.cfm? mode=entry& entry=4DC9B79C- 65B3-D59C-
464EC981E0A2EA8F

Thanks,
Nate

--- In [EMAIL PROTECTED] ups.com, Jeffry Houser <[EMAIL PROTECTED]> wrote:
>
> 
>  In an ActionScript component, you can make the component internal to 
> the package.  You might also combine it with the "ExcludeClass" metadata 
> tag to 'hide' the class name from people using your SWC. 
> 
>  I'm not sure if I'd equate either of these approach to private, though.
> 
>  I blogged about this in a bit more detail:
> 
> http://www.jeffryho user.com/ index.cfm? mode=entry& entry=4DC9B79C- 
> 65B3-D59C-
464EC981E0A2EA8F
> 
> Josh McDonald wrote:
> > Not in MXML components.
> >
> > -Josh
> >
> > On Wed, Jul 23, 2008 at 9:53 AM, Nate Beck <[EMAIL PROTECTED] 
> > > wrote:
> >
> > Newbish question... but after searching on google, I can't get a
> > concise answer.
> >
> > Is it possible to encapsulate (mark private) components within a
> > Flex component?
> >
> > So I have custom MXML component (ResourcesTree) that has a Tree
> > inside of it. I don't want
> > the Tree to directly be available outside the ResourcesTree Component.
> >
> > Any input?
> >
> >
> >  - - --
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder 
> > sFAQ.txt
> > Search Archives:
> > http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo!
> > Groups Links
> >
> >
> >mailto:flexcoders-fullfeat [EMAIL PROTECTED] .com
> > 
> >
> >
> >
> >
> >
> > -- 
> > "Therefore, send not to know For whom the bell tolls. It tolls for thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED] 
> > 
> 
> -- 
> Jeffry Houser
> Flex, ColdFusion, AIR
> AIM: Reboog711  | Phone: 1-203-379-0773
> --
> Adobe Community Expert 

> My Company:  
> My Podcast: 
> My Blog: 
>


 


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

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED] com 


  

Re: [flexcoders] Re: new Component() ?

2008-07-23 Thread Josh McDonald
Well no, you can't do what you're asking :)

When you use:


  
...
  


It's creating a new subclass of Canvas with a generated name, and you can't
create new classes at run-time without bytecode manipulation (which isn't
really an option in Flex yet unfortunately).

But what exactly are you trying to achieve? If you're just displaying text,
but it needs to be different to the field data, what you need is a
labelFunction, not an itemRenderer.

-Josh

On Thu, Jul 24, 2008 at 10:34 AM, Rafael Faria <[EMAIL PROTECTED]>
wrote:

> Hi Pedro,
>
> How do you mean about putting some getters? Can you give me an example?
>
> Thanks
> Raf
>
>
> --- In flexcoders@yahoogroups.com, "Pedro Sena" <[EMAIL PROTECTED]> wrote:
> >
> > Hi Rafael,
> >
> > What do u think of put some getters in your object instead of create
> various
> > item renderers that just have little funcionality ?
> >
> > Just my 2 cents
> >
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


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

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: rendering problem

2008-07-23 Thread Rafael Faria
Alex,

Because i knew you would say to check your blog i had done this before
write it here. I couldn't find anything about rendering problems. The
only thing i found there was about item renderered and i don't use any
on this case.

Any other suggestion?

Rafael


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I don't have time to look, but usually, there are issues with renderer
> recycling and/or rendering measurement.  Have you read through the posts
> on my blog?
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Rafael Faria
> Sent: Tuesday, July 22, 2008 8:35 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] rendering problem
> 
>  
> 
> I'm not sure how many of you guys had this problem before but for some
> reason im getting a rendering problem with forms and datagrid and i
> have no ideia how to solve it.
> 
> Check this example
> the first part is the right one, after i scroll up and down, it gets
> all mess up.
> http://www.enilsson.com/assets/examples/rendering.png
>  
> 
> This one is how it deformed the datagrids.
> http://www.enilsson.com/assets/examples/rendering2.png
>  
> 
> Any idea how to fix that?
> it's killing me.
> 
> raf
>




[flexcoders] Re: new Component() ?

2008-07-23 Thread Rafael Faria
Hi Pedro,

How do you mean about putting some getters? Can you give me an example?

Thanks
Raf


--- In flexcoders@yahoogroups.com, "Pedro Sena" <[EMAIL PROTECTED]> wrote:
>
> Hi Rafael,
> 
> What do u think of put some getters in your object instead of create
various
> item renderers that just have little funcionality ?
> 
> Just my 2 cents
> 



[flexcoders] Re: new Component() ?

2008-07-23 Thread Rafael Faria
I would but i wan't to do it FROM actionscript and not from the mxml.
Like i said i want it being created on the fly.

How would you do that from actionscript?

Rafael


--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> I don't see why you don't just use  like in your first
> example? You don't need to make any extra files. Or are you building
your
> entire datagrid programatically?
> 
> -Josh
> 
> On Thu, Jul 24, 2008 at 9:16 AM, Rafael Faria <[EMAIL PROTECTED]>
> wrote:
> 
> > Hi Johannes,
> >
> > Thanks for your reply but my question isn't really about how to put
> > the columns into the datagrid. It's actually how to create dynamically
> > components to put inside the columns.
> >
> > See i don't want to create 4,5,6,7 different itemrenderes files so i
> > can insert into the columns i would create them on the fly,
> > programmatically  .  Does it make sense?
> >
> > Anyone have some idea about it?!
> >
> > Thanks
> > Raf
> >
> >
> > --- In flexcoders@yahoogroups.com, "Johannes Nel" 
> > wrote:
> > >
> > > wiht the datagrid you put the datagridcolumns into an array and then
> > set the
> > > datagrid.columns property
> > >
> > > On Wed, Jul 23, 2008 at 8:47 AM, Rafael Faria 
> > > wrote:
> > >
> > > >   Is there anyway to create "components" on the fly?
> > > >
> > > > Let me explain what i mean.
> > > >
> > > > I have a datagrid that has like 5 columns. Each one of them use a
> > > > different itemrenderer.
> > > >
> > > > I understand that i can create each itemrenderer on a
different file
> > > > but what if i don't want to create files?
> > > >
> > > > is there anyway to transform the following code in a
dynamically code
> > > > without create any files?
> > > >
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > ??
> > > > How can i do that without creating any other files? i would
imagine
> > > > something like
> > > >
> > > > var dgc:DataGridColumn = new DataGridColumn();
> > > > var mycomponent:Component = new Component();
> > > > var txt:Text = new Text();
> > > > txt.text = "Somthing here";
> > > > mycomponent.addChild(txt);
> > > >
> > > > var render:ClassFactory = new ClassFactory(mycomponent);
> > > > dcg.itemRender = render;
> > > >
> > > > i know that this code doesnt work but it's just to have an idea of
> > > > what i was thinking.
> > > >
> > > > Is there anyway to do that?
> > > >
> > > > Thanks
> > > > Rafael
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > j:pn
> > > \\no comment
> > >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >
> >
> >
> >
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




[flexcoders] LCDS Memory Usage

2008-07-23 Thread Geoffrey
Looking in the LiveCycle Data Services ES Developer's Guide, page 190,
it states:
 "By default, the Data Management Service caches items returned
from fill() and getItem() calls and uses cached items to implement
paging and to build object graphs on the server when implementing lazy
associations. This causes a complete copy of the managed state of all
active clients to be kept in each server's memory."

Here's what I think that means.  If I have 100 clients, and each
client has one managed collection that contains 100 items in it, then
there would be 10,000 copies residing in memory on the server(100
objects for 100 users).

Am I understanding this correctly?  Does this seem inefficient?  What
if those objects happened to be really big objects... I mean really
big.  Seems like that would take up a lot of memory on the server.

Has anyone come up against this in practice?

Thanks,
 Geoff



Re: [flexcoders] Hslider layout problem

2008-07-23 Thread [EMAIL PROTECTED]




[EMAIL PROTECTED] wrote:
 >
 > Hello,
 >
 > This is a simple example of a VideoDisplay and veiwsource is available
 > for this application.
 > http://reenie.org/test/scrubTest/ScrubTest.html
 >
 > The Hslider is being used as a scrubber to move the video playhead. It
 > works fine until I add the second panel, which is empty. Even then, it
 > works fine until you scroll the page up and down. Then the Hslider
 > moves to the top, and is not functional anymore.
 >
 > What is causing this problem and how do I fix it ?

Apparently, it is some kind of bug with the control bar. When I take the 
Hslider out of the control bar, the problem goes away as in this example,

http://reenie.org/test/ScrubTest2/ScrubTest.html

However, now I have another problem, the video in the second example is 
a youtube flv file  and it doesnt work with the scrubber. Any idea why ? 
Is there anyway around it ?

The scrubber shows progress, but now it is a continuous black line and 
you can't change the position. The Youtube video does has metadata and I 
can look at it , but I don't know what in particular to look for.



Re: [flexcoders] Re: new Component() ?

2008-07-23 Thread Pedro Sena
Hi Rafael,

What do u think of put some getters in your object instead of create various
item renderers that just have little funcionality ?

Just my 2 cents

On Wed, Jul 23, 2008 at 8:54 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:

>   I don't see why you don't just use  like in your first
> example? You don't need to make any extra files. Or are you building your
> entire datagrid programatically?
>
> -Josh
>
> On Thu, Jul 24, 2008 at 9:16 AM, Rafael Faria <
> [EMAIL PROTECTED]> wrote:
>
>> Hi Johannes,
>>
>> Thanks for your reply but my question isn't really about how to put
>> the columns into the datagrid. It's actually how to create dynamically
>> components to put inside the columns.
>>
>> See i don't want to create 4,5,6,7 different itemrenderes files so i
>> can insert into the columns i would create them on the fly,
>> programmatically  .  Does it make sense?
>>
>> Anyone have some idea about it?!
>>
>> Thanks
>> Raf
>>
>>
>> --- In flexcoders@yahoogroups.com, "Johannes Nel" <[EMAIL PROTECTED]>
>> wrote:
>> >
>> > wiht the datagrid you put the datagridcolumns into an array and then
>> set the
>> > datagrid.columns property
>> >
>> > On Wed, Jul 23, 2008 at 8:47 AM, Rafael Faria <[EMAIL PROTECTED]>
>> > wrote:
>> >
>> > >   Is there anyway to create "components" on the fly?
>> > >
>> > > Let me explain what i mean.
>> > >
>> > > I have a datagrid that has like 5 columns. Each one of them use a
>> > > different itemrenderer.
>> > >
>> > > I understand that i can create each itemrenderer on a different file
>> > > but what if i don't want to create files?
>> > >
>> > > is there anyway to transform the following code in a dynamically code
>> > > without create any files?
>> > >
>> > > 
>> > > 
>> > > 
>> > > 
>> > > 
>> > > 
>> > > 
>> > >
>> > > ??
>> > > How can i do that without creating any other files? i would imagine
>> > > something like
>> > >
>> > > var dgc:DataGridColumn = new DataGridColumn();
>> > > var mycomponent:Component = new Component();
>> > > var txt:Text = new Text();
>> > > txt.text = "Somthing here";
>> > > mycomponent.addChild(txt);
>> > >
>> > > var render:ClassFactory = new ClassFactory(mycomponent);
>> > > dcg.itemRender = render;
>> > >
>> > > i know that this code doesnt work but it's just to have an idea of
>> > > what i was thinking.
>> > >
>> > > Is there anyway to do that?
>> > >
>> > > Thanks
>> > > Rafael
>> > >
>> > >
>> > >
>> >
>> >
>> >
>> > --
>> > j:pn
>> > \\no comment
>> >
>>
>>
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> Links
>>
>>
>>
>>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>  
>



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


Re: [flexcoders] Re: new Component() ?

2008-07-23 Thread Josh McDonald
I don't see why you don't just use  like in your first
example? You don't need to make any extra files. Or are you building your
entire datagrid programatically?

-Josh

On Thu, Jul 24, 2008 at 9:16 AM, Rafael Faria <[EMAIL PROTECTED]>
wrote:

> Hi Johannes,
>
> Thanks for your reply but my question isn't really about how to put
> the columns into the datagrid. It's actually how to create dynamically
> components to put inside the columns.
>
> See i don't want to create 4,5,6,7 different itemrenderes files so i
> can insert into the columns i would create them on the fly,
> programmatically  .  Does it make sense?
>
> Anyone have some idea about it?!
>
> Thanks
> Raf
>
>
> --- In flexcoders@yahoogroups.com, "Johannes Nel" <[EMAIL PROTECTED]>
> wrote:
> >
> > wiht the datagrid you put the datagridcolumns into an array and then
> set the
> > datagrid.columns property
> >
> > On Wed, Jul 23, 2008 at 8:47 AM, Rafael Faria <[EMAIL PROTECTED]>
> > wrote:
> >
> > >   Is there anyway to create "components" on the fly?
> > >
> > > Let me explain what i mean.
> > >
> > > I have a datagrid that has like 5 columns. Each one of them use a
> > > different itemrenderer.
> > >
> > > I understand that i can create each itemrenderer on a different file
> > > but what if i don't want to create files?
> > >
> > > is there anyway to transform the following code in a dynamically code
> > > without create any files?
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > ??
> > > How can i do that without creating any other files? i would imagine
> > > something like
> > >
> > > var dgc:DataGridColumn = new DataGridColumn();
> > > var mycomponent:Component = new Component();
> > > var txt:Text = new Text();
> > > txt.text = "Somthing here";
> > > mycomponent.addChild(txt);
> > >
> > > var render:ClassFactory = new ClassFactory(mycomponent);
> > > dcg.itemRender = render;
> > >
> > > i know that this code doesnt work but it's just to have an idea of
> > > what i was thinking.
> > >
> > > Is there anyway to do that?
> > >
> > > Thanks
> > > Rafael
> > >
> > >
> > >
> >
> >
> >
> > --
> > j:pn
> > \\no comment
> >
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


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

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Re: Encapsulating a custom flex component?

2008-07-23 Thread Josh McDonald
Damn, why didn't I think of that? I'd been trying to think of ways to do
that for ages a few months ago, trying to clean up the ctrl-space on some
APIs :)

-Josh

On Thu, Jul 24, 2008 at 8:40 AM, Sid Maskit <[EMAIL PROTECTED]> wrote:

>  I just found this blog post which seems to provide a way of doing this
> that is very straightforward:
> http://blog.ashier.com/2008/03/25/hiding-properties-in-flex-components/
>
> - Original Message 
> From: Nate Beck <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Wednesday, July 23, 2008 9:27:13 AM
> Subject: [flexcoders] Re: Encapsulating a custom flex component?
>
>  A feature request has been opened for adding accessors to MXML. Please
> vote on this if
> you see fitting. It also better explains the issue that I am running into.
>
> http://bugs. adobe.com/ jira/browse/ 
> SDK-16181
>
> There is also discussion going on about this issue at Jeff's blog:
> http://www.jeffryho user.com/ index.cfm? mode=entry& entry=4DC9B79C-
> 65B3-D59C-
> 464EC981E0A2EA8F
>
> Thanks,
> Nate
>
> --- In [EMAIL PROTECTED] ups.com , Jeffry
> Houser <[EMAIL PROTECTED]> wrote:
> >
> >
> > In an ActionScript component, you can make the component internal to
> > the package. You might also combine it with the "ExcludeClass" metadata
> > tag to 'hide' the class name from people using your SWC.
> >
> > I'm not sure if I'd equate either of these approach to private, though.
> >
> > I blogged about this in a bit more detail:
> >
> > http://www.jeffryho user.com/ index.cfm? mode=entry& entry=4DC9B79C-
> 65B3-D59C-
> 464EC981E0A2EA8F
> >
> > Josh McDonald wrote:
> > > Not in MXML components.
> > >
> > > -Josh
> > >
> > > On Wed, Jul 23, 2008 at 9:53 AM, Nate Beck <[EMAIL PROTECTED]
> > > > wrote:
> > >
> > > Newbish question... but after searching on google, I can't get a
> > > concise answer.
> > >
> > > Is it possible to encapsulate (mark private) components within a
> > > Flex component?
> > >
> > > So I have custom MXML component (ResourcesTree) that has a Tree
> > > inside of it. I don't want
> > > the Tree to directly be available outside the ResourcesTree Component.
> > >
> > > Any input?
> > >
> > >
> > >  - - --
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder
> sFAQ.txt
> > > Search Archives:
> > > http://www.mail- archive.com/ flexcoders% 40yahoogroups. 
> > > comYahoo
> !
> > > Groups Links
> > >
> > >
> > > mailto:flexcoders-fullfeat [EMAIL PROTECTED] 
> > > .com
> > >  > > .com
> >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> > >
> > > :: Josh 'G-Funk' McDonald
> > > :: 0437 221 380 :: [EMAIL PROTECTED] 
> > >
> >
> > --
> > Jeffry Houser
> > Flex, ColdFusion, AIR
> > AIM: Reboog711 | Phone: 1-203-379-0773
> > --
> > Adobe Community Expert
>  html
> >
> > My Company: >
> > My Podcast: >
> > My Blog: >
> >
>
>
> 
>



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

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Monitoring receiving (and sending a byteArray's progress in AMFPHP)

2008-07-23 Thread djhatrick
I am sending a byteArray to my air app in AMFPHP, is it possible to
monitor the progressEvent, "somehow", by adding a listener to a socket
or some other way... of that operation.  Please advise...

Thanks,
Patrick



[flexcoders] Re: new Component() ?

2008-07-23 Thread Rafael Faria
Hi Johannes,

Thanks for your reply but my question isn't really about how to put
the columns into the datagrid. It's actually how to create dynamically
components to put inside the columns.

See i don't want to create 4,5,6,7 different itemrenderes files so i
can insert into the columns i would create them on the fly,
programmatically  .  Does it make sense? 

Anyone have some idea about it?!

Thanks
Raf


--- In flexcoders@yahoogroups.com, "Johannes Nel" <[EMAIL PROTECTED]>
wrote:
>
> wiht the datagrid you put the datagridcolumns into an array and then
set the
> datagrid.columns property
> 
> On Wed, Jul 23, 2008 at 8:47 AM, Rafael Faria <[EMAIL PROTECTED]>
> wrote:
> 
> >   Is there anyway to create "components" on the fly?
> >
> > Let me explain what i mean.
> >
> > I have a datagrid that has like 5 columns. Each one of them use a
> > different itemrenderer.
> >
> > I understand that i can create each itemrenderer on a different file
> > but what if i don't want to create files?
> >
> > is there anyway to transform the following code in a dynamically code
> > without create any files?
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > ??
> > How can i do that without creating any other files? i would imagine
> > something like
> >
> > var dgc:DataGridColumn = new DataGridColumn();
> > var mycomponent:Component = new Component();
> > var txt:Text = new Text();
> > txt.text = "Somthing here";
> > mycomponent.addChild(txt);
> >
> > var render:ClassFactory = new ClassFactory(mycomponent);
> > dcg.itemRender = render;
> >
> > i know that this code doesnt work but it's just to have an idea of
> > what i was thinking.
> >
> > Is there anyway to do that?
> >
> > Thanks
> > Rafael
> >
> >  
> >
> 
> 
> 
> -- 
> j:pn
> \\no comment
>




[flexcoders] Re: Construct simple http request header

2008-07-23 Thread ron_mori
Forgive my impatience - allow me to answer my own question.

After some work, the answer is:

httpService.headers = {
 'foo':'bar',
 'foo2': 'bar2' };

Thanks again for the help.


--- In flexcoders@yahoogroups.com, "ron_mori" <[EMAIL PROTECTED]> wrote:
>
> Tracy,
> 
> Thanks - it worked beautifully.
> For the records:  httpService.headers = {'foo':'bar'};
> 
> Now, not to seem ungrateful, I need to add two headers.
> Suggestions?  An array resulted in object: object
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > I believe that will send the object in the body of the post, not
in the
> > header.
> > 
> >  
> > 
> > From a post in the archives, you need to do somethng like:
> > 
> > httpService. headers = {customHeader: 'foobar'};
> > 
> >  
> > 
> > Tracy
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of Guilherme Blanco
> > Sent: Wednesday, July 23, 2008 4:08 PM
> > To: flexcoders@yahoogroups.com
> > Subject: Re: [flexcoders] Construct simple http request header
> > 
> >  
> > 
> > var params:Object = new Object();
> > params.name = "foo";
> > params.value = "bar";
> > 
> > service.send(params);
> > 
> > Cheers,
> > 
> > On Wed, Jul 23, 2008 at 5:04 PM, ron_mori  >  > wrote:
> > > How to add headers to httpService request?
> > >
> > > Goal - add request header name:val of 'foo: bar'
> > >
> > > Tried: var hdr:Array = [{name:"foo", value:"bar"}];
> > > Header has: [object object]
> > >
> > > Tried: var hdr:Array = ["foo", "bar"];
> > > Header has: [0]:foo, [1]:bar
> > >
> > > ideas?
> > >
> > > thanks in advance.
> > >
> > > 
> > 
> > -- 
> > Guilherme Blanco - Web Developer
> > CBC - Certified Bindows Consultant
> > Cell Phone: +55 (16) 9166-6902
> > MSN: guilhermeblanco@  
> > URL: http://blog.bisna.com  
> > Rio de Janeiro - RJ/Brazil
> >
>




RE: [flexcoders] Re: runtime localization

2008-07-23 Thread Gordon Smith
>From your stack trace, it looks like you're using an older version of
LCDS that came out before Flex 3 and expects the 'data' bundle to be
compiled into the application SWF.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of paragmetha2000
Sent: Tuesday, July 22, 2008 11:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: runtime localization

 

Hi Gordon,

We have written custom resource bundles for our application without
modifying any core resource bundles, what we want to compile these
resource bundles (.properties files) in separate swf and load them in
application at runtime but while compiling we don't want to use any
flex or LCDS resource bundles, we want Flex and LCDS resource bundles
to load them at runtime or use them as RSL along with custom resource
bundles. 

Thank you,
Parag

--- In flexcoders@yahoogroups.com 
, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> > keeping Flex and LCDS locale related swc on server
> 
> 
> 
> SWCs are used only at compile time. Are you actually trying to load
> resource module SWFs?
> 
> 
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Parag Metha
> Sent: Monday, July 21, 2008 9:13 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] runtime localization
> 
> 
> 
> Hi All,
> 
> 
> 
> I am working on runtime localization. I am using Flex 3 and LCDS 2.5.
> 
> 
> 
> I have few resource bundles specific to application along with some
> resource bundles in Flex SDK and LCDS.
> 
> 
> 
> When compile all resource bundles (specific to my app, Flex, LCDS)
into
> a single swf/swc, the application is works properly even in runtime it
> is able to find all resource bundles.
> 
> 
> 
> But, When compile only application specific resource bundles into a
> swf/swc and keeping Flex and LCDS locale related swc on server and try
> to run the application it is giving error;
> 
> 
> 
> Error: Could not find resource bundle data
> 
> At
>
mx.resources::ResourceBundle$/getResourceBundle()[C:\Work\flex\sdk\frame
> works\projects\framework\src\mx\resources\ResourceBundle.as:143]
> 
> at mx.data.utils::ResourceTranslator$cinit()
> 
> at
>
global$init()[C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\
> data\utils\ResourceTranslator.as:30]
> 
> at mx.data.utils::SerializationProxy$cinit()
> 
> at
>
global$init()[C:\depot\flex\branches\enterprise_bridgeman\frameworks\mx\
> data\utils\SerializationProxy.as:51]
> 
> at _RIA_FlexInit$/init()
> 
> at
>
mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::d
 
>
ocFrameHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\manag
> ers\SystemManager.as:2324]
> 
> 
> 
> I am looking for compiling only application specific resource bundle
and
> want to use Flex and LCDS locale specific resource bundle as it is. 
> 
> 
> 
> Have any one came across such situation. Any help will be appreciated.
> 
> 
> 
> Thanks in advance.
> 
> 
> 
> Regards,
> 
> Parag 
> 
> 
> 
> DISCLAIMER == This e-mail may contain privileged and
> confidential information which is the property of Persistent Systems
> Ltd. It is intended only for the use of the individual or entity to
> which it is addressed. If you are not the intended recipient, you are
> not authorized to read, retain, copy, print, distribute or use this
> message. If you have received this communication in error, please
notify
> the sender and delete all copies of this message. Persistent Systems
> Ltd. does not accept any liability for virus infected mails.
>

 



RE: [flexcoders] Re: Trees, DataProviders and dynamic screen updates

2008-07-23 Thread Tracy Spratt
"...when the items referenced by the ArrayCollection change..."  How is
that happening?  The "items... change"?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eric Cooper
Sent: Wednesday, July 23, 2008 6:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Trees, DataProviders and dynamic screen
updates

 

I am adding to and removing from ArrayCollection - and when I do that,
the Tree items 
refresh and are current. But when the items referenced by the
ArrayCollection change, I 
am doing nothing.

Is there a way to "touch" the ArrayCollection so as to prompt Tree to
reload (or reevaluate) 
its dataProvider and call labelFunction to generate updated rendering?

Or is the preferred way to step walk through ArrayCollection and modify
(in place) the 
changed objects?

Thanks.
=Eric

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> If you use the ArrayCollection API to make the updates to the
> dataProvider, the changes should automatically reflect in the UI.
> 
> 
> 
> How are you updating the ArrayCollection items?
> 
> 
> 
> Tracy
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Eric Cooper
> Sent: Wednesday, July 23, 2008 3:53 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Trees, DataProviders and dynamic screen updates
> 
> 
> 
> Hi,
> I am trying to display changes in state for proxy objects (where
"real"
> state exists on a 
> server). I have defined a Tree and set its dataProvider to be an
> ArrayCollection. I have tried 
> having this be an array of references to actual proxy object and also
as
> array of dynamically 
> created Objects (of form {name:foo.toString(), object:foo}
> 
> Server-side events result in client being notified that properties in
> proxy object have 
> changed. I would like these changes in proxy object properties to
> propagate through the 
> Tree's items.
> 
> I have searched docs and this forum, but not found anything that
> addresses this issue. At the 
> same time, I suspect that this is something that has been discussed -
> and may simply involve 
> setting some flag on the Tree or the DataProvider...
> 
> Thanks for any help!
> =Eric
>

 



Re: [flexcoders] Re: Encapsulating a custom flex component?

2008-07-23 Thread Sid Maskit
I just found this blog post which seems to provide a way of doing this that is 
very straightforward: 
http://blog.ashier.com/2008/03/25/hiding-properties-in-flex-components/



- Original Message 
From: Nate Beck <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 23, 2008 9:27:13 AM
Subject: [flexcoders] Re: Encapsulating a custom flex component?


A feature request has been opened for adding accessors to MXML.  Please vote on 
this if 
you see fitting.  It also better explains the issue that I am running into.

http://bugs. adobe.com/ jira/browse/ SDK-16181

There is also discussion going on about this issue at Jeff's blog: 
http://www.jeffryho user.com/ index.cfm? mode=entry& entry=4DC9B79C- 65B3-D59C-
464EC981E0A2EA8F

Thanks,
Nate

--- In [EMAIL PROTECTED] ups.com, Jeffry Houser <[EMAIL PROTECTED]> wrote:
>
> 
>  In an ActionScript component, you can make the component internal to 
> the package.  You might also combine it with the "ExcludeClass" metadata 
> tag to 'hide' the class name from people using your SWC. 
> 
>  I'm not sure if I'd equate either of these approach to private, though.
> 
>  I blogged about this in a bit more detail:
> 
> http://www.jeffryho user.com/ index.cfm? mode=entry& entry=4DC9B79C- 
> 65B3-D59C-
464EC981E0A2EA8F
> 
> Josh McDonald wrote:
> > Not in MXML components.
> >
> > -Josh
> >
> > On Wed, Jul 23, 2008 at 9:53 AM, Nate Beck <[EMAIL PROTECTED] 
> > > wrote:
> >
> > Newbish question... but after searching on google, I can't get a
> > concise answer.
> >
> > Is it possible to encapsulate (mark private) components within a
> > Flex component?
> >
> > So I have custom MXML component (ResourcesTree) that has a Tree
> > inside of it. I don't want
> > the Tree to directly be available outside the ResourcesTree Component.
> >
> > Any input?
> >
> >
> >  - - --
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder 
> > sFAQ.txt
> > Search Archives:
> > http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo!
> > Groups Links
> >
> >
> >mailto:flexcoders-fullfeat [EMAIL PROTECTED] .com
> > 
> >
> >
> >
> >
> >
> > -- 
> > "Therefore, send not to know For whom the bell tolls. It tolls for thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED] 
> > 
> 
> -- 
> Jeffry Houser
> Flex, ColdFusion, AIR
> AIM: Reboog711  | Phone: 1-203-379-0773
> --
> Adobe Community Expert 

> My Company:  
> My Podcast: 
> My Blog: 
>




  

[flexcoders] Re: Trees, DataProviders and dynamic screen updates

2008-07-23 Thread Eric Cooper
I am adding to and removing from ArrayCollection - and when I do that, the Tree 
items 
refresh and are current. But when the items referenced by the ArrayCollection 
change, I 
am doing nothing.

Is there a way to "touch" the ArrayCollection so as to prompt Tree to reload 
(or reevaluate) 
its dataProvider and call labelFunction to generate updated rendering?

Or is the preferred way to step walk through ArrayCollection and modify (in 
place) the 
changed objects?

Thanks.
=Eric

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> If you use the ArrayCollection API to make the updates to the
> dataProvider, the changes should automatically reflect in the UI.
> 
>  
> 
> How are you updating the ArrayCollection items?
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Eric Cooper
> Sent: Wednesday, July 23, 2008 3:53 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Trees, DataProviders and dynamic screen updates
> 
>  
> 
> Hi,
> I am trying to display changes in state for proxy objects (where "real"
> state exists on a 
> server). I have defined a Tree and set its dataProvider to be an
> ArrayCollection. I have tried 
> having this be an array of references to actual proxy object and also as
> array of dynamically 
> created Objects (of form {name:foo.toString(), object:foo}
> 
> Server-side events result in client being notified that properties in
> proxy object have 
> changed. I would like these changes in proxy object properties to
> propagate through the 
> Tree's items.
> 
> I have searched docs and this forum, but not found anything that
> addresses this issue. At the 
> same time, I suspect that this is something that has been discussed -
> and may simply involve 
> setting some flag on the Tree or the DataProvider...
> 
> Thanks for any help!
> =Eric
>





[flexcoders] Re: Trees, DataProviders and dynamic screen updates

2008-07-23 Thread Eric Cooper
I am adding to and removing from ArrayCollection - and when I do that, the Tree 
items 
refresh and are current. But when the items referenced by the ArrayCollection 
change, I 
am doing nothing.

Is there a way to "touch" the ArrayCollection so as to prompt Tree to reload 
(or reevaluate) 
its dataProvider and call labelFunction to generate updated rendering?

Or is the preferred way to step walk through ArrayCollection and modify (in 
place) the 
changed objects?

Thanks.
=Eric

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> If you use the ArrayCollection API to make the updates to the
> dataProvider, the changes should automatically reflect in the UI.
> 
>  
> 
> How are you updating the ArrayCollection items?
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Eric Cooper
> Sent: Wednesday, July 23, 2008 3:53 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Trees, DataProviders and dynamic screen updates
> 
>  
> 
> Hi,
> I am trying to display changes in state for proxy objects (where "real"
> state exists on a 
> server). I have defined a Tree and set its dataProvider to be an
> ArrayCollection. I have tried 
> having this be an array of references to actual proxy object and also as
> array of dynamically 
> created Objects (of form {name:foo.toString(), object:foo}
> 
> Server-side events result in client being notified that properties in
> proxy object have 
> changed. I would like these changes in proxy object properties to
> propagate through the 
> Tree's items.
> 
> I have searched docs and this forum, but not found anything that
> addresses this issue. At the 
> same time, I suspect that this is something that has been discussed -
> and may simply involve 
> setting some flag on the Tree or the DataProvider...
> 
> Thanks for any help!
> =Eric
>





RE: [flexcoders] Re: Construct simple http request header

2008-07-23 Thread Tracy Spratt
Also, the {name1:value1, name2:value2} syntax is the equivalent (but
slightly more efficient form) of:

var oHeaders:Object = new Object();

oHeaders.foo = 'bar';

oHeaders.boo = 'baz';

httpService.headers = oHeaders;

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, July 23, 2008 6:19 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Construct simple http request header

 

Stick with the object, which is essentially a set of name=value pairs:

httpService.headers = {foo:'bar', boo:'baz'};

Note, do not quote the name of the property.

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ron_mori
Sent: Wednesday, July 23, 2008 5:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Construct simple http request header

 

Tracy,

Thanks - it worked beautifully.
For the records: httpService.headers = {'foo':'bar'};

Now, not to seem ungrateful, I need to add two headers.
Suggestions? An array resulted in object: object

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I believe that will send the object in the body of the post, not in
the
> header.
> 
> 
> 
> From a post in the archives, you need to do somethng like:
> 
> httpService. headers = {customHeader: 'foobar'};
> 
> 
> 
> Tracy
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Guilherme Blanco
> Sent: Wednesday, July 23, 2008 4:08 PM
> To: flexcoders@yahoogroups.com  
> Subject: Re: [flexcoders] Construct simple http request header
> 
> 
> 
> var params:Object = new Object();
> params.name = "foo";
> params.value = "bar";
> 
> service.send(params);
> 
> Cheers,
> 
> On Wed, Jul 23, 2008 at 5:04 PM, ron_mori <[EMAIL PROTECTED]
>  > wrote:
> > How to add headers to httpService request?
> >
> > Goal - add request header name:val of 'foo: bar'
> >
> > Tried: var hdr:Array = [{name:"foo", value:"bar"}];
> > Header has: [object object]
> >
> > Tried: var hdr:Array = ["foo", "bar"];
> > Header has: [0]:foo, [1]:bar
> >
> > ideas?
> >
> > thanks in advance.
> >
> > 
> 
> -- 
> Guilherme Blanco - Web Developer
> CBC - Certified Bindows Consultant
> Cell Phone: +55 (16) 9166-6902
> MSN: [EMAIL PROTECTED]  
> URL: http://blog.bisna.com 
 > 
> Rio de Janeiro - RJ/Brazil
>

 



RE: [flexcoders] Re: Construct simple http request header

2008-07-23 Thread Tracy Spratt
Stick with the object, which is essentially a set of name=value pairs:

httpService.headers = {foo:'bar', boo:'baz'};

Note, do not quote the name of the property.

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ron_mori
Sent: Wednesday, July 23, 2008 5:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Construct simple http request header

 

Tracy,

Thanks - it worked beautifully.
For the records: httpService.headers = {'foo':'bar'};

Now, not to seem ungrateful, I need to add two headers.
Suggestions? An array resulted in object: object

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I believe that will send the object in the body of the post, not in
the
> header.
> 
> 
> 
> From a post in the archives, you need to do somethng like:
> 
> httpService. headers = {customHeader: 'foobar'};
> 
> 
> 
> Tracy
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Guilherme Blanco
> Sent: Wednesday, July 23, 2008 4:08 PM
> To: flexcoders@yahoogroups.com  
> Subject: Re: [flexcoders] Construct simple http request header
> 
> 
> 
> var params:Object = new Object();
> params.name = "foo";
> params.value = "bar";
> 
> service.send(params);
> 
> Cheers,
> 
> On Wed, Jul 23, 2008 at 5:04 PM, ron_mori <[EMAIL PROTECTED]
>  > wrote:
> > How to add headers to httpService request?
> >
> > Goal - add request header name:val of 'foo: bar'
> >
> > Tried: var hdr:Array = [{name:"foo", value:"bar"}];
> > Header has: [object object]
> >
> > Tried: var hdr:Array = ["foo", "bar"];
> > Header has: [0]:foo, [1]:bar
> >
> > ideas?
> >
> > thanks in advance.
> >
> > 
> 
> -- 
> Guilherme Blanco - Web Developer
> CBC - Certified Bindows Consultant
> Cell Phone: +55 (16) 9166-6902
> MSN: [EMAIL PROTECTED]  
> URL: http://blog.bisna.com 
 > 
> Rio de Janeiro - RJ/Brazil
>

 



[flexcoders] TitleWindow's title

2008-07-23 Thread markgoldin_2000
Is there a way of centering the title?

Thanks



[flexcoders] Re: Getting error when trying to get id of label when adding evt listener

2008-07-23 Thread timgerr
Thanks, for the info, I never new about the currentTarget.

timgerr

--- In flexcoders@yahoogroups.com, "Michael VanDaniker" <[EMAIL PROTECTED]>
wrote:
>
> You want to look at the event's currentTarget instead of target.
> 
> From the documentation for MouseEvent:
> 
> target = The InteractiveObject instance under the pointing device. The
> target is not always the object in the display list that registered
> the event listener. Use the currentTarget property to access the
> object in the display list that is currently processing the event.
> 
> --- In flexcoders@yahoogroups.com, "timgerr"  wrote:
> >
> > Hello all,
> > I am getting this error when I add an event listener like this to a
> > lable and then calling the event.target.id.  Here is the error:
> > 
> > #1069: Property id not found on mx.core.UITextField and there is no
> > default value
> > 
> > Here is the code:
> > import mx.controls.Label;
> > private function WTF():void
> > {
> > var lbl:Label = new Label();
> > lbl.text = 'Testing measdfasdfas';
> > lbl.addEventListener(MouseEvent.CLICK,DOME);
> > lbl.id = 'KKSKS';
> > addChild(lbl);
> > }
> > private function DOME(evt:MouseEvent):void
> > {
> > trace(evt.target.id);
> > }
> > 
> > 
> > I get the error when the evt.target.id is called, I am not sure why
> > this error is being called.  Is there another way to get the
label's id?
> > 
> > Thanks,
> > timgerr
> >
>




Re: [flexcoders] How to display a total row on a DataGrid

2008-07-23 Thread Sean Clark Hess
I ran with your example, and threw it into a reusable component.  I hope
this helps somebody else! Alex, my traceback is awaiting moderation on your
blog post.
http://code.steelpotato.com/2008/07/footer-datagrid-display-total-or.html

On Mon, Jul 21, 2008 at 1:51 PM, Sean Clark Hess <[EMAIL PROTECTED]> wrote:

> Your examples were some of the first I looked at.  I don't remember now why
> I thought I couldn't use them.  I'll try the Flex 3 DataGrid Footers post
> again and see if I run into the same problems I'm experiencing (mismatched
> column widths, 100% width not working).
> Thanks for the reminder
>
> On Mon, Jul 21, 2008 at 1:23 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
>>There's a footer example on my blog
>>
>>
>>  --
>>
>> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
>> Behalf Of *Sean Clark Hess
>> *Sent:* Monday, July 21, 2008 11:33 AM
>> *To:* flexcoders@yahoogroups.com
>> *Subject:* [flexcoders] How to display a total row on a DataGrid
>>
>>
>>
>> Hello All,
>>
>>
>>
>> Well, I'm stuck.  I've approached this about 3 different ways and have run
>> into (different) dead ends on all of them. I've tried using multiple
>> datagrids, which I got working fabulously, but setting the datagrid to width
>> 100% does really wacky things with the column sizes.  I've also tried to use
>> the built-in Summary classes with the AdvancedDataGrid, but they seem only
>> to work with Grouped data. I could hack a collection to do it, but that
>> would screw up my pagination and wouldn't show unless I scrolled to the
>> bottom.
>>
>>
>>
>> I just want a footer that displays the total of each column.  Is there any
>> good way to do this?  The Summary and Grouping classes were disappointing.
>>
>>
>>
>> Thanks
>>
>> ~sean
>>
>>
>>
>>
>>
>>  
>>
>
>


[flexcoders] Re: Getting error when trying to get id of label when adding evt listener

2008-07-23 Thread Michael VanDaniker
You want to look at the event's currentTarget instead of target.

>From the documentation for MouseEvent:

target = The InteractiveObject instance under the pointing device. The
target is not always the object in the display list that registered
the event listener. Use the currentTarget property to access the
object in the display list that is currently processing the event.

--- In flexcoders@yahoogroups.com, "timgerr" <[EMAIL PROTECTED]> wrote:
>
> Hello all,
> I am getting this error when I add an event listener like this to a
> lable and then calling the event.target.id.  Here is the error:
> 
> #1069: Property id not found on mx.core.UITextField and there is no
> default value
> 
> Here is the code:
> import mx.controls.Label;
>   private function WTF():void
>   {
>   var lbl:Label = new Label();
>   lbl.text = 'Testing measdfasdfas';
>   lbl.addEventListener(MouseEvent.CLICK,DOME);
>   lbl.id = 'KKSKS';
>   addChild(lbl);
>   }
>   private function DOME(evt:MouseEvent):void
>   {
>   trace(evt.target.id);
>   }
> 
> 
> I get the error when the evt.target.id is called, I am not sure why
> this error is being called.  Is there another way to get the label's id?
> 
> Thanks,
> timgerr
>




Re: [flexcoders] Getting error when trying to get id of label when adding evt listener

2008-07-23 Thread Toby Ashley
Try using  evt.currentTarget.id instead of evt.target.id.

>From your error message, you can see that evt.target is a UITextField
object, rather than the Label which you are expecting.

Cheers,
Toby


On Wed, Jul 23, 2008 at 10:16 PM, timgerr <[EMAIL PROTECTED]> wrote:

> Hello all,
> I am getting this error when I add an event listener like this to a
> lable and then calling the event.target.id.  Here is the error:
>
> #1069: Property id not found on mx.core.UITextField and there is no
> default value
>
> Here is the code:
> import mx.controls.Label;
>private function WTF():void
>{
>var lbl:Label = new Label();
>lbl.text = 'Testing measdfasdfas';
>lbl.addEventListener(MouseEvent.CLICK,DOME);
>lbl.id = 'KKSKS';
>addChild(lbl);
>}
>private function DOME(evt:MouseEvent):void
>{
>trace(evt.target.id);
>}
>
>
> I get the error when the evt.target.id is called, I am not sure why
> this error is being called.  Is there another way to get the label's id?
>
> Thanks,
> timgerr
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


[flexcoders] Re: Construct simple http request header

2008-07-23 Thread ron_mori
Tracy,

Thanks - it worked beautifully.
For the records:  httpService.headers = {'foo':'bar'};

Now, not to seem ungrateful, I need to add two headers.
Suggestions?  An array resulted in object: object

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I believe that will send the object in the body of the post, not in the
> header.
> 
>  
> 
> From a post in the archives, you need to do somethng like:
> 
> httpService. headers = {customHeader: 'foobar'};
> 
>  
> 
> Tracy
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Guilherme Blanco
> Sent: Wednesday, July 23, 2008 4:08 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Construct simple http request header
> 
>  
> 
> var params:Object = new Object();
> params.name = "foo";
> params.value = "bar";
> 
> service.send(params);
> 
> Cheers,
> 
> On Wed, Jul 23, 2008 at 5:04 PM, ron_mori <[EMAIL PROTECTED]
>  > wrote:
> > How to add headers to httpService request?
> >
> > Goal - add request header name:val of 'foo: bar'
> >
> > Tried: var hdr:Array = [{name:"foo", value:"bar"}];
> > Header has: [object object]
> >
> > Tried: var hdr:Array = ["foo", "bar"];
> > Header has: [0]:foo, [1]:bar
> >
> > ideas?
> >
> > thanks in advance.
> >
> > 
> 
> -- 
> Guilherme Blanco - Web Developer
> CBC - Certified Bindows Consultant
> Cell Phone: +55 (16) 9166-6902
> MSN: [EMAIL PROTECTED]  
> URL: http://blog.bisna.com  
> Rio de Janeiro - RJ/Brazil
>




[flexcoders] Getting error when trying to get id of label when adding evt listener

2008-07-23 Thread timgerr
Hello all,
I am getting this error when I add an event listener like this to a
lable and then calling the event.target.id.  Here is the error:

#1069: Property id not found on mx.core.UITextField and there is no
default value

Here is the code:
import mx.controls.Label;
private function WTF():void
{
var lbl:Label = new Label();
lbl.text = 'Testing measdfasdfas';
lbl.addEventListener(MouseEvent.CLICK,DOME);
lbl.id = 'KKSKS';
addChild(lbl);
}
private function DOME(evt:MouseEvent):void
{
trace(evt.target.id);
}


I get the error when the evt.target.id is called, I am not sure why
this error is being called.  Is there another way to get the label's id?

Thanks,
timgerr



[flexcoders] Re: reflection of proerties in an object

2008-07-23 Thread v.cekvenich
thx.

.V

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> A sealed object is an instance of any class that wasn't declared with
> the 'dynamic' attribute. Most classes, such as Button, are non-dynamic.
> This means that if you try to access a property that wasn't declared at
> compile time, you'll get a runtime error. For example, if you do
> 
>  
> 
> var b:Button = new Button();
> 
> b["foo"] = 1;
> 
>  
> 
> you'll get an RTE because the Button class didn't declare a property
> named 'foo' at compile time and wasn't declared to be dynamic.
> 
>  
> 
> But if you do
> 
>  
> 
> var o:Object = new Object();
> 
> o["foo"] = 1;
> 
>  
> 
> you'll create a new 'foo' property on o. This is allowed because the
> Object class was declared to be dynamic.
> 
>  
> 
> You declare a class to be dynamic like this:
> 
>  
> 
> public dynamic class MyClass extends SomeOtherClass
> 
> {
> 
>  
> 
> }
> 
>  
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of v.cekvenich
> Sent: Wednesday, July 23, 2008 10:44 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: reflection of proerties in an object
> 
>  
> 
> Thank you both, works!!!
> 
> What is a sealed object?
> 
> .V
> 
> > 
> > 
> > 
> > for (var p:String in object)
> > 
> > trace(p, object[p])
> > 
> > 
> > 
> > For sealed objects, use getClassInfo
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of v.cekvenich
> > Sent: Wednesday, July 23, 2008 8:08 AM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] reflection of proerties in an object
> > 
> > 
> > 
> > if I get an object, I want to enumerate the properties.
> > 
> > Ex:
> > var object:Object = someClass.someFunc();
> > 
> > var val1:String = object["key1"];
> > 
> > How do I list all the keys in an object?
> > 
> > .V
> >
>




[flexcoders] Strange Runtime 1010 error

2008-07-23 Thread Amy
I have these two lines one after another in my code:

trace('val', xmlItem.child('subjects').child('subject').(attribute
('name')==series.displayName).attribute
(viewAsSAT ?'satScore': 'adjustedScore'));
var nodeValue:String = String(xmlItem.child('subjects').child
('subject').(attribute('name')==series.displayName).attribute
(viewAsSAT ?'satScore': 'adjustedScore'));

The trace statement gives me "val 90".  The next line gives me 

TypeError: Error #1010: A term is undefined and has no properties.
at SAT_Charts/historyData()
[C:\Inetpub\wwwroot\Pegasus\SAT_Charts\src\SAT_Charts.mxml:236]
at mx.charts.chartClasses::Series/cacheDefaultValues()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\
chartClasses\Series.as:969]
at mx.charts.series::LineSeries/updateData()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\
series\LineSeries.as:1041]
at mx.charts.chartClasses::Series/validateData()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\
chartClasses\Series.as:1509]
at mx.charts.series::LineSeries/describeData()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\
series\LineSeries.as:1174]
at mx.charts.chartClasses::DataTransform/describeData()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\
chartClasses\DataTransform.as:230]
at mx.charts.chartClasses::AxisBase/describeData()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\
chartClasses\AxisBase.as:177]
at mx.charts.chartClasses::NumericAxis/get dataDescriptions()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\
chartClasses\NumericAxis.as:1033]
at mx.charts.chartClasses::NumericAxis/updateCache()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\
chartClasses\NumericAxis.as:827]
at mx.charts.chartClasses::NumericAxis/update()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\
chartClasses\NumericAxis.as:884]
at mx.charts.chartClasses::NumericAxis/getLabelEstimate()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\
chartClasses\NumericAxis.as:645]
at mx.charts::AxisRenderer/measureLabels()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\
AxisRenderer.as:1740]
at mx.charts::AxisRenderer/calcRotationAndSpacing()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\
AxisRenderer.as:1459]
at mx.charts::AxisRenderer/adjustGutters()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\
AxisRenderer.as:1326]
at mx.charts.chartClasses::CartesianChart/updateAxisLayout()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\
chartClasses\CartesianChart.as:1937]
at mx.charts.chartClasses::CartesianChart/updateDisplayList()
[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\
chartClasses\CartesianChart.as:1355]
at mx.core::UIComponent/validateDisplayList()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as
:6214]
at mx.managers::LayoutManager/validateDisplayList()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutMana
ger.as:602]
at mx.managers::LayoutManager/doPhasedInstantiation()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutMana
ger.as:675]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as
:8460]
at mx.core::UIComponent/callLaterDispatcher()
[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as
:8403]

Any idea why?

Thanks;

Amy



[flexcoders] Re: Construct simple http request header

2008-07-23 Thread ron_mori
Not quite -

When I inspect the request, this approach results in
application/x-www-form-urlencoded parms of name=foo&value=bar

What I'm looking for is headers in the http request, headers like:
...
Keep-Alive: 300
Connectin: keep-alive
Referer: 
to name but a few.

The 'headers' attribute of the httpService appears to be the right
spot, I'm just without a way to specify.

I'll try a combo of the object build and headers use..

All pgm suggestions / ideas are welcome.

Thanks

--- In flexcoders@yahoogroups.com, "Guilherme Blanco"
<[EMAIL PROTECTED]> wrote:
>
> var params:Object = new Object();
> params.name = "foo";
> params.value = "bar";
> 
> service.send(params);
> 
> 
> 
> Cheers,
> 
> On Wed, Jul 23, 2008 at 5:04 PM, ron_mori <[EMAIL PROTECTED]> wrote:
> > How to add headers to httpService request?
> >
> > Goal - add request header name:val of 'foo: bar'
> >
> > Tried: var hdr:Array = [{name:"foo", value:"bar"}];
> > Header has: [object object]
> >
> > Tried: var hdr:Array = ["foo", "bar"];
> > Header has: [0]:foo, [1]:bar
> >
> > ideas?
> >
> > thanks in advance.
> >
> > 
> 
> 
> 
> -- 
> Guilherme Blanco - Web Developer
> CBC - Certified Bindows Consultant
> Cell Phone: +55 (16) 9166-6902
> MSN: [EMAIL PROTECTED]
> URL: http://blog.bisna.com
> Rio de Janeiro - RJ/Brazil
>




[flexcoders] Re: Can someone help me with this code please?

2008-07-23 Thread Amy
--- In flexcoders@yahoogroups.com, "ucabb4u" <[EMAIL PROTECTED]> wrote:
>
> Can someone help me with the code required to do the action 
described in the comment 
> block please?
> 
>   
>   import mx.collections.ArrayCollection;
> 
>   
>   [Bindable]
>   public var tempArray:ArrayCollection = new ArrayCollection();
> 
>   private function showSelection(event:Event):void{

>   trace(slct.selectedIndex);
> 
>/*  Use the selectedIndex create an array name 
e.g. "data1", "data2", "data3", etc.
>Replace the contents of the tempArray collection with 
the contents of the array 
> collection selected - "data1", "data2", "data3", etc. 
>  
>*/  
>   }
>   
>

It seems to be that you'd be better off with an array containing your 
ArrayCollections and then just pull out the one by index.  However, 
this['myVarName'] will allow you to dynamically reference the 
variable.  Good luck with your homework :-)



RE: [flexcoders] Construct simple http request header

2008-07-23 Thread Tracy Spratt
I believe that will send the object in the body of the post, not in the
header.

 

>From a post in the archives, you need to do somethng like:

httpService. headers = {customHeader: 'foobar'};

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Guilherme Blanco
Sent: Wednesday, July 23, 2008 4:08 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Construct simple http request header

 

var params:Object = new Object();
params.name = "foo";
params.value = "bar";

service.send(params);

Cheers,

On Wed, Jul 23, 2008 at 5:04 PM, ron_mori <[EMAIL PROTECTED]
 > wrote:
> How to add headers to httpService request?
>
> Goal - add request header name:val of 'foo: bar'
>
> Tried: var hdr:Array = [{name:"foo", value:"bar"}];
> Header has: [object object]
>
> Tried: var hdr:Array = ["foo", "bar"];
> Header has: [0]:foo, [1]:bar
>
> ideas?
>
> thanks in advance.
>
> 

-- 
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9166-6902
MSN: [EMAIL PROTECTED]  
URL: http://blog.bisna.com  
Rio de Janeiro - RJ/Brazil

 



[flexcoders] Re: referencing embedded images inside AdvancedDataGridGroupItemRenderer

2008-07-23 Thread Amy
--- In flexcoders@yahoogroups.com, Brandon Krakowsky <[EMAIL PROTECTED]> 
wrote:
>
> Amy, thanks.  The only difference is that I'm assigning the 
iconFunction in AS like so:
> 
> adg.iconFunction = myFunction;
> private function myFunction(item:Object):Class {
> trace("made it this far!");
> }
> 
> I get nothing.  Let me look into it further.  Thanks for all your 
help.

You're welcome.  I'm wondering if the dataProvider on adg is already 
set at the point where you set adg.iconFunction.  If so, you may need 
to call something like adg.dataProvider.refresh().

HTH;

Amy



RE: [flexcoders] Re: Runtime CSS and "SWF is not a loadable module" -- new information

2008-07-23 Thread Alex Harui
You can try using swfdump to compare the swfs.  I use mxmlc to compile
css swfs without problem.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jamalwally
Sent: Wednesday, July 23, 2008 10:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Runtime CSS and "SWF is not a loadable module"
-- new information

 

Although I do get a runtime error when the application tries to load the
style SWF that I 
made via "mxmlc BasicStyle.css" (the SWF in the assets/ folder), I was
finally able to get 
styles to successfully load using the SWF generated by FB3.

I'd still like to know how to load style SWFs made via mxmlc though.

In the meantime, here's how I got the styles to load:

* In FB 3, I right-clicked (CTRL-Clicked on a mac) on the
assets/BasicStyle.css file and 
selected "Compile CSS to SWF". This put a check mark next to that
option.
* Then I noticed that FB3 compiled the CSS file into a SWF and located
that swf in:
bin/Users//Documents/Flex Builder
3/testRuntimeCss/assets/BasicStyles.swf
notice that FB3 reproduced the directory structure of the Flex Project
location under the 
bin directory (rather than putting the style SWF in the assets/ folder
directly).

* So I updated my MXML file to read:
StyleManager.loadStyleDeclarations("Users/jbattat/Documents/Flex Builder

3/testRuntimeCss/assets/BasicStyles.swf")
(the path passed to loadStyleDeclarations() used to be
../assets/BasicStyles.swf)

* Then I did a debug run, clicked the Button and the styles were
successfully loaded.

So some obvious questions remain:
* Do you really have to code the path to the style swf in this way, or
can you tell
FB3 to compile the CSS file into a SWF and place the SWF directly in the
bin-debug/ 
folder (or elsewhere)
* How do you get runtime styles to load using style SWFs made via mxmlc
(this is the 
critical question for me).
* Is there a way to "diff" two SWFs? I have one SWF (made by FB3) that
works and one 
(made by mxmlc) that does not. Seeing the differences between the two
would be 
instructive.

As always, thanks for your help
-- j

--- In flexcoders@yahoogroups.com 
, jamal wally <[EMAIL PROTECTED]> wrote:
>
> Hello again,
> 
> OK, I'm sending the style swf as an attachment to this post. If it
doesn't work, I will 
email directly to you Alex (thank you very much for your patience). 
> 
> Alex, to answer your question about the location of the style swf: The
style SWF is local 
to my machine and lives in a subdirectory of the project. 
> 
> I named the flex project testRuntimeCss and the project files are in:
> ~/Documents/Flex Builder 3/testRuntimeCss/
> The main MXML file is in the default location (src/) and the style CSS
and SWF files are 
both in assets/.
> 
> Let me also point out that in order to minimize the potential for
user-error on my part, 
I have re-done my test runtime css Flex Project so that it follows the
Adobe example at:
> http://livedocs.adobe.com/flex/3/html/help.html?content=styles_10.html


> 
> I copied/pasted their example simple CSS into a file called
BasicStyles.css which lives in 
the assets/ folder of my project. For completeness, here is the content
of the CSS file, 
copied directly from the Adobe help page listed above.
> 
> /* styles/runtime/assets/BasicStyles.css */
> Button {
> fontSize: 24;
> color: #FF9933;
> }
> 
> Label {
> fontSize: 24;
> color: #FF9933;
> }
> 
> I then compiled the CSS file into a SWF with:
> > mxmlc BasicStyle.css
> 
> The resulting swf, BasicStyle.swf, is attached.
> 
> By the way, I am using the mxmlc app from SDK 3.0.0 (on Mac Leopard)
> > which mxmlc
> /Applications/Adobe Flex Builder 3/sdks/3.0.0/bin/mxmlc
> 
> Another thing to point out is that I have done this both with "Compile
CSS to SWF" option 
for the BasicStyle.css file on and off. Both approaches give the same
result (runtime error 
-- described below).
> 
> I then copied/pasted the MXML content from the Adobe help page into my
main MXML 
file. Again, for completeness, here is the MXML that I used:
> 
> 
> 
> http://www.adobe.com/2006/mxml
 ">
> 
> 
>  
> 
> 
> 
> 
> 
> When I debug in FB3, the application SWF successfully loads in my web
browser. But 
when I click on the button labeled "Click Me", the application crashes.
The error I get is:
> 
> Error: Unable to load style(SWF is not a loadable module):
> ../assets/BasicStyles.swf.
> 
> Just before that error, I get the following trace which suggests that
the SWF style file 
was, indeed found.
> 
> [SWF] Users:jbattat:Documents:Flex Builder
3:testRuntimeCss:assets:BasicStyles.swf - 
34,571 bytes after decompression
> 
> Please let me know if you find a problem with the attached swf. 
> 
> -- j
>

 



RE: [flexcoders] HorizontalList and variable column width

2008-07-23 Thread Alex Harui
Nope sorry.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rameensabiti
Sent: Wednesday, July 23, 2008 12:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HorizontalList and variable column width

 

I have HorizontalList with an item renderer. Is it possible to make
the row width as wide as the renderer, as the renderer can have
different widths. Something like variableRowHeight but for columns
width instead. Thanks. 

 



Re: [flexcoders] Construct simple http request header

2008-07-23 Thread Guilherme Blanco
var params:Object = new Object();
params.name = "foo";
params.value = "bar";

service.send(params);



Cheers,

On Wed, Jul 23, 2008 at 5:04 PM, ron_mori <[EMAIL PROTECTED]> wrote:
> How to add headers to httpService request?
>
> Goal - add request header name:val of 'foo: bar'
>
> Tried: var hdr:Array = [{name:"foo", value:"bar"}];
> Header has: [object object]
>
> Tried: var hdr:Array = ["foo", "bar"];
> Header has: [0]:foo, [1]:bar
>
> ideas?
>
> thanks in advance.
>
> 



-- 
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9166-6902
MSN: [EMAIL PROTECTED]
URL: http://blog.bisna.com
Rio de Janeiro - RJ/Brazil


[flexcoders] Construct simple http request header

2008-07-23 Thread ron_mori
How to add headers to httpService request?

Goal - add request header name:val of 'foo: bar'

Tried: var hdr:Array = [{name:"foo", value:"bar"}];
Header has:  [object object]

Tried: var hdr:Array = ["foo", "bar"];
Header has: [0]:foo, [1]:bar 

ideas?

thanks in advance.



[flexcoders] Re: parallel coordinates component with Flex3

2008-07-23 Thread Michael VanDaniker
My blog is at http://michaelvandaniker.com
  and our class webpage can be found here
  .

Our project involved a parallel coordinates plot, a heat map, and a
rank-by-feature explorer.  The application we built is tailored towards
the dataset we worked with, so its going to take some massaging before
it's ready for generic use.  Krist is in the process of extending the
application and we're putting together a more publishable paper than the
one on the class webpage.

--- In flexcoders@yahoogroups.com, "brian.staats" <[EMAIL PROTECTED]>
wrote:
>
> Thanks Michael, Can you share your info viz blog? Id be interested in
> the other visualizations.
>
>
> --- In flexcoders@yahoogroups.com, "Michael VanDaniker" michael@
> wrote:
> >
> > I recently worked on a project for an info viz course, and one of my
> > group mates built a parallel coordinates plot.  I've been blogging
> > about the different visualizations we developed, and I was about to
> > write up the pcp.  It'll be a while until I get around to it though.
> >
> > One word of warning: pcp's often have hundreds of lines, and you're
> > going to run into some major performance issues if you try and pull
> > that off with the charting controls.  We found that using the
graphics
> > class was much more efficient.
> >
> > --- In flexcoders@yahoogroups.com, "brian.staats" 
> > wrote:
> > >
> > > I have started development (3 days into it) on parallel
coordinates
> > > using Flex 3. However, I am not having much luck at the moment
> > > (between diving into the depths of flex charting and other
> > > obligations). I would like to encourage you and others to join an
open
> > > source effort to completing a flex parallel coordinate component.
> > >
> > > I have pinged mjohnsson on the adobe forums to see if s(he) is
> > > interested as well... no response yet.
> > >
> > >
> >
>
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&\
catid=585&threadid=1373433&enterthread=y
> > >
> > > I dont have much code at the moment, but Ill start the google
project
> > > (or whatever) if I can get some partners in crime.
> > >
> > > You interested? Anyone else?
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "Marcela"  wrote:
> > > >
> > > > Hi,
> > > >  I'm looking for a start point on how to implement a paraller
> > > > coordinates component for multidimensional visualization with
Flex 3
> > > > and AS. So far, I've found only Java examples.
> > > > Someone working on something similar or in the same problem?
> > > > Thanks,
> > > >  Marcela
> > > >
> > >
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "Marcela"  wrote:
> > > >
> > > > Hi,
> > > >  I'm looking for a start point on how to implement a paraller
> > > > coordinates component for multidimensional visualization with
Flex 3
> > > > and AS. So far, I've found only Java examples.
> > > > Someone working on something similar or in the same problem?
> > > > Thanks,
> > > >  Marcela
> > > >
> > >
> >
>



RE: [flexcoders] Trees, DataProviders and dynamic screen updates

2008-07-23 Thread Tracy Spratt
If you use the ArrayCollection API to make the updates to the
dataProvider, the changes should automatically reflect in the UI.

 

How are you updating the ArrayCollection items?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eric Cooper
Sent: Wednesday, July 23, 2008 3:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Trees, DataProviders and dynamic screen updates

 

Hi,
I am trying to display changes in state for proxy objects (where "real"
state exists on a 
server). I have defined a Tree and set its dataProvider to be an
ArrayCollection. I have tried 
having this be an array of references to actual proxy object and also as
array of dynamically 
created Objects (of form {name:foo.toString(), object:foo}

Server-side events result in client being notified that properties in
proxy object have 
changed. I would like these changes in proxy object properties to
propagate through the 
Tree's items.

I have searched docs and this forum, but not found anything that
addresses this issue. At the 
same time, I suspect that this is something that has been discussed -
and may simply involve 
setting some flag on the Tree or the DataProvider...

Thanks for any help!
=Eric

 



[flexcoders] Trees, DataProviders and dynamic screen updates

2008-07-23 Thread Eric Cooper
Hi,
I am trying to display changes in state for proxy objects (where "real" state 
exists on a 
server). I have defined a Tree and set its dataProvider to be an 
ArrayCollection. I have tried 
having this be an array of references to actual proxy object and also as array 
of dynamically 
created Objects (of form {name:foo.toString(), object:foo}

Server-side events result in client being notified that properties in proxy 
object have 
changed. I would like these changes in proxy object properties to propagate 
through the 
Tree's items.

I have searched docs and this forum, but not found anything that addresses this 
issue. At the 
same time, I suspect that this is something that has been discussed - and may 
simply involve 
setting some flag on the Tree or the DataProvider...

Thanks for any help!
=Eric



[flexcoders] HorizontalList and variable column width

2008-07-23 Thread rameensabiti
I have HorizontalList with an item renderer.  Is it possible to make
the row width as wide as the renderer, as the renderer can have
different widths.  Something like variableRowHeight but for columns
width instead.  Thanks. 



Re: [flexcoders] Re: parallel coordinates component with Flex3

2008-07-23 Thread Krist W.
-- Forwarded message --
From: "Krist Wongsuphasawat" <[EMAIL PROTECTED]>
To: "Brian Staats" <[EMAIL PROTECTED]>
Date: Wed, 23 Jul 2008 15:06:42 -0400
Subject: Re: [flexcoders] Re: parallel coordinates component with Flex3

On Wed, Jul 23, 2008 at 2:52 PM, Brian Staats <[EMAIL PROTECTED]>
wrote:

> Thanks for the pic Krist, excellent work!
>
> I am looking at network logs (IDS, email, antivirus, etc...) which can
> be very large, but for my purpose I will use a subset so the size will
> vary.
>

The picture you saw is dataset with 1000 records. I took about 19 seconds to
render.


>
> Does your implementation have any interactions (brushing, sorting,
> coordinate adding, subtracting, reordering)? Any clustering or
> filtering algorithms? These are all features I would like to develop
> into a PC vis.
>

It's still a work in progress. The current implementation support axes
reordering.


>
> Like I mentioned... the development I have done thus far is very meek
> compared to your accomplishment. Do you have any interest opening up
> your implementation so that other devs like myself could contribute
> and expand upon what you have done thus far?
>

The code is a little bit messy but if you don't mind, you can start a
project somewhere and I'll see what I can do.


> On Wed, Jul 23, 2008 at 2:08 PM, Krist Wongsuphasawat
> <[EMAIL PROTECTED]> wrote:
> > Hi Brian,
> >
> > I am working on a custom parallel coordinate component in Flex 3, which I
> > have attached the pictures within this email. By the way, how big is your
> > dataset that you want to visualize?
> >
> > Regards,
> >
> > Krist W.
> >
> >
> >
>

Regards,

Krist


Re: [flexcoders] what is vellum in flex4?

2008-07-23 Thread Sherif Abdou
basically, everytime i create a new project in flex builder i  have to add 
these namespaces manually or through the intellisense in flex builder to work 
on the new stuff
xmlns:f4="http://ns.adobe.com/mxml/2009";
xmlns:filters="flash.filters.*"
xmlns:gumbo="library:adobe/flex/gumbo"
  xmlns:mx="library:adobe/flex/halo"

and I have to remote this xmlns:mx="http://www.adobe.com/2006/mxml";

- Original Message 
From: Sherif Abdou <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 23, 2008 2:10:30 PM
Subject: Re: [flexcoders] what is vellum in flex4?


No i just created a new Flex Project and the namespace is there, to work on the 
new stuff i have to add this namespace xmlns:ns="library: adobe/flex/ gumbo"  
which opens upetc...

- Original Message 
From: Gordon Smith <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, July 23, 2008 1:51:04 PM
Subject: RE: [flexcoders] what is vellum in flex4?


Where did this  come
from? Did you create it yourself with Flex Builder, or get it from somewhere?
 
We're trying to eliminate all references
to the old codename "Vellum" and I'm surprised to find that there are
some left.
 
Gordon Smith
Adobe Flex SDK Team
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Sherif Abdou
Sent: Tuesday, July 22, 2008 9:19
PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] what is
vellum in flex4?
 
 
well its not a file, just the swc under frameworks-->Lib folder,
here is what i see when i type vellum, pic is attached. 
- Original Message

From: Gordon Smith <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, July 22, 2008 10:45:57 PM
Subject: RE: [flexcoders] what is vellum in flex4?
What file did you find it in?
 
Gordon Smith
Adobe Flex SDK
Team
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Sherif Abdou
Sent: Tuesday, July 22, 2008 8:43
PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] what is
vellum in flex4?
 
Flex 4 Release
build that is in the trunk.
 
- Original
Message 
From: Gordon Smith <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, July 22, 2008 6:13:41 PM
Subject: RE: [flexcoders] what is vellum in flex4?
By the way, where did you find the namespace vellum:http: //vellum/
prerelease being used?
 
Gordon Smith
Adobe Flex SDK
Team
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Gordon Smith
Sent: Tuesday, July 22, 2008 11:40
AM
To: [EMAIL PROTECTED] ups.com
Subject: RE: [flexcoders] what is
vellum in flex4?
 
This is the new Text Component Library (formerly known as Vellum;
name still subject to change). This library is a set of AS3 classes, currently
packaged into the SWCs named text_xxx.swc, that sit on top of the Flash Text
Engine (FTE) in Flash Player 10. Together these replace the old TextField, and
they support improved typography, bidirectional (left-to-right and
right-to-left) text, and an object-oriented text model. All new Gumbo
components use these new-and-improved text classes rather than TextField.
 
Gordon Smith
Adobe Flex SDK Team
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@
yahoogroups. com] On Behalf Of Sherif
Abdou
Sent: Monday, July 21, 2008 9:39
PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] what is
vellum in flex4?
 
 
the namespace is
vellum:http: //vellum/ prerelease, i spent an hour trying to just see what i
can do with it but nothing is going up on the screen. it looks like html tags
that are native in flash player but i have no idea how to use it since i
searched and there is nothing on it. Anyone know how to use it? and also the 
xmlns:edit="
text.edit. *" namespace tried and nothing goes on screen. 
 
 
 



  

Re: [flexcoders] what is vellum in flex4?

2008-07-23 Thread Sherif Abdou
No i just created a new Flex Project and the namespace is there, to work on the 
new stuff i have to add this namespace xmlns:ns="library:adobe/flex/gumbo"  
which opens upetc...

- Original Message 
From: Gordon Smith <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 23, 2008 1:51:04 PM
Subject: RE: [flexcoders] what is vellum in flex4?


Where did this  come
from? Did you create it yourself with Flex Builder, or get it from somewhere?
 
We're trying to eliminate all references
to the old codename "Vellum" and I'm surprised to find that there are
some left.
 
Gordon Smith
Adobe Flex SDK Team
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Sherif Abdou
Sent: Tuesday, July 22, 2008 9:19
PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] what is
vellum in flex4?
 
 
well its not a file, just the swc under frameworks-->Lib folder,
here is what i see when i type vellum, pic is attached. 
- Original Message

From: Gordon Smith <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, July 22, 2008 10:45:57 PM
Subject: RE: [flexcoders] what is vellum in flex4?
What file did you find it in?
 
Gordon Smith
Adobe Flex SDK
Team
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Sherif Abdou
Sent: Tuesday, July 22, 2008 8:43
PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] what is
vellum in flex4?
 
Flex 4 Release
build that is in the trunk.
 
- Original
Message 
From: Gordon Smith <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, July 22, 2008 6:13:41 PM
Subject: RE: [flexcoders] what is vellum in flex4?
By the way, where did you find the namespace vellum:http: //vellum/
prerelease being used?
 
Gordon Smith
Adobe Flex SDK
Team
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Gordon Smith
Sent: Tuesday, July 22, 2008 11:40
AM
To: [EMAIL PROTECTED] ups.com
Subject: RE: [flexcoders] what is
vellum in flex4?
 
This is the new Text Component Library (formerly known as Vellum;
name still subject to change). This library is a set of AS3 classes, currently
packaged into the SWCs named text_xxx.swc, that sit on top of the Flash Text
Engine (FTE) in Flash Player 10. Together these replace the old TextField, and
they support improved typography, bidirectional (left-to-right and
right-to-left) text, and an object-oriented text model. All new Gumbo
components use these new-and-improved text classes rather than TextField.
 
Gordon Smith
Adobe Flex SDK Team
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@
yahoogroups. com] On Behalf Of Sherif
Abdou
Sent: Monday, July 21, 2008 9:39
PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] what is
vellum in flex4?
 
 
the namespace is
vellum:http: //vellum/ prerelease, i spent an hour trying to just see what i
can do with it but nothing is going up on the screen. it looks like html tags
that are native in flash player but i have no idea how to use it since i
searched and there is nothing on it. Anyone know how to use it? and also the 
xmlns:edit="
text.edit. *" namespace tried and nothing goes on screen. 
 
 
 


  

[flexcoders] Re: parallel coordinates component with Flex3

2008-07-23 Thread brian.staats
Thanks Michael, Can you share your info viz blog? Id be interested in
the other visualizations.


--- In flexcoders@yahoogroups.com, "Michael VanDaniker" <[EMAIL PROTECTED]>
wrote:
>
> I recently worked on a project for an info viz course, and one of my
> group mates built a parallel coordinates plot.  I've been blogging
> about the different visualizations we developed, and I was about to
> write up the pcp.  It'll be a while until I get around to it though.
> 
> One word of warning: pcp's often have hundreds of lines, and you're
> going to run into some major performance issues if you try and pull
> that off with the charting controls.  We found that using the graphics
> class was much more efficient.
> 
> --- In flexcoders@yahoogroups.com, "brian.staats" 
> wrote:
> >
> > I have started development (3 days into it) on parallel coordinates
> > using Flex 3. However, I am not having much luck at the moment
> > (between diving into the depths of flex charting and other
> > obligations). I would like to encourage you and others to join an open
> > source effort to completing a flex parallel coordinate component.
> > 
> > I have pinged mjohnsson on the adobe forums to see if s(he) is
> > interested as well... no response yet.
> > 
> >
>
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid=1373433&enterthread=y
> > 
> > I dont have much code at the moment, but Ill start the google project
> > (or whatever) if I can get some partners in crime.
> > 
> > You interested? Anyone else?
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Marcela"  wrote:
> > >
> > > Hi,
> > >  I'm looking for a start point on how to implement a paraller
> > > coordinates component for multidimensional visualization with Flex 3
> > > and AS. So far, I've found only Java examples.
> > > Someone working on something similar or in the same problem?
> > > Thanks,
> > >  Marcela
> > >
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Marcela"  wrote:
> > >
> > > Hi,
> > >  I'm looking for a start point on how to implement a paraller
> > > coordinates component for multidimensional visualization with Flex 3
> > > and AS. So far, I've found only Java examples.
> > > Someone working on something similar or in the same problem?
> > > Thanks,
> > >  Marcela
> > >
> >
>




Re: [flexcoders] Re: parallel coordinates component with Flex3

2008-07-23 Thread Brian Staats
Thanks for the pic Krist, excellent work!

I am looking at network logs (IDS, email, antivirus, etc...) which can
be very large, but for my purpose I will use a subset so the size will
vary.

Does your implementation have any interactions (brushing, sorting,
coordinate adding, subtracting, reordering)? Any clustering or
filtering algorithms? These are all features I would like to develop
into a PC vis.

Like I mentioned... the development I have done thus far is very meek
compared to your accomplishment. Do you have any interest opening up
your implementation so that other devs like myself could contribute
and expand upon what you have done thus far?


On Wed, Jul 23, 2008 at 2:08 PM, Krist Wongsuphasawat
<[EMAIL PROTECTED]> wrote:
> Hi Brian,
>
> I am working on a custom parallel coordinate component in Flex 3, which I
> have attached the pictures within this email. By the way, how big is your
> dataset that you want to visualize?
>
> Regards,
>
> Krist W.
>
>
>


[flexcoders] Re: Can someone help me with this code please?

2008-07-23 Thread valdhor
Rather than asking someone here to write your code for you, it would
be better for you to do some reading/investigation (Perhaps purchase a
book and/or video training), then take a stab at writing it yourself.
If you are still having problems, post the code and someone may
endeavor to help you correct it so it works the way you want.


--- In flexcoders@yahoogroups.com, "ucabb4u" <[EMAIL PROTECTED]> wrote:
>
> Can someone help me with the code required to do the action
described in the comment 
> block please?
> 
>   
>   import mx.collections.ArrayCollection;
> 
>   
>   [Bindable]
>   public var tempArray:ArrayCollection = new ArrayCollection();
> 
>   private function showSelection(event:Event):void{   
>   trace(slct.selectedIndex);
> 
>/*  Use the selectedIndex create an array name e.g. "data1",
"data2", "data3", etc.
>Replace the contents of the tempArray collection with the
contents of the array 
> collection selected - "data1", "data2", "data3", etc. 
>  
>*/  
>   }
>   
>




RE: [flexcoders] what is vellum in flex4?

2008-07-23 Thread Gordon Smith
Where did this  come from? Did you create it yourself
with Flex Builder, or get it from somewhere?

 

We're trying to eliminate all references to the old codename "Vellum"
and I'm surprised to find that there are some left.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Tuesday, July 22, 2008 9:19 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] what is vellum in flex4?

 

 

well its not a file, just the swc under frameworks-->Lib folder, here is
what i see when i type vellum, pic is attached. 

- Original Message 
From: Gordon Smith <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, July 22, 2008 10:45:57 PM
Subject: RE: [flexcoders] what is vellum in flex4?

What file did you find it in?

 

Gordon Smith

Adobe   Flex SDK Team

 



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
On Behalf Of Sherif Abdou
Sent: Tuesday, July 22, 2008 8:43 PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] what is vellum in flex4?

 

Flex 4 Release build that is in the trunk.

 

- Original Message 
From: Gordon Smith <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Tuesday, July 22, 2008 6:13:41 PM
Subject: RE: [flexcoders] what is vellum in flex4?

By the way, where did you find the namespace vellum:http: //vellum/
prerelease being used?

 

Gordon Smith

Adobe   Flex SDK Team

 



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
On Behalf Of Gordon Smith
Sent: Tuesday, July 22, 2008 11:40 AM
To: [EMAIL PROTECTED] ups.com
Subject: RE: [flexcoders] what is vellum in flex4?

 

This is the new Text Component Library (formerly known as Vellum; name
still subject to change). This library is a set of AS3 classes,
currently packaged into the SWCs named text_xxx.swc, that sit on top of
the Flash Text Engine (FTE) in Flash Player 10. Together these replace
the old TextField, and they support improved typography, bidirectional
(left-to-right and right-to-left) text, and an object-oriented text
model. All new Gumbo components use these new-and-improved text classes
rather than TextField.

 

Gordon Smith

Adobe Flex SDK Team

 



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
On Behalf Of Sherif Abdou
Sent: Monday, July 21, 2008 9:39 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] what is vellum in flex4?

 

 

the namespace is vellum:http: //vellum/ prerelease, i spent an hour
trying to just see what i can do with it but nothing is going up on the
screen. it looks like html tags that are native in flash player but i
have no idea how to use it since i searched and there is nothing on it.
Anyone know how to use it? and also the xmlns:edit=" text.edit. *"
namespace tried and nothing goes on screen. 

 

 

 

 



RE: [flexcoders] Re: reflection of proerties in an object

2008-07-23 Thread Gordon Smith
A sealed object is an instance of any class that wasn't declared with
the 'dynamic' attribute. Most classes, such as Button, are non-dynamic.
This means that if you try to access a property that wasn't declared at
compile time, you'll get a runtime error. For example, if you do

 

var b:Button = new Button();

b["foo"] = 1;

 

you'll get an RTE because the Button class didn't declare a property
named 'foo' at compile time and wasn't declared to be dynamic.

 

But if you do

 

var o:Object = new Object();

o["foo"] = 1;

 

you'll create a new 'foo' property on o. This is allowed because the
Object class was declared to be dynamic.

 

You declare a class to be dynamic like this:

 

public dynamic class MyClass extends SomeOtherClass

{

 

}

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of v.cekvenich
Sent: Wednesday, July 23, 2008 10:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: reflection of proerties in an object

 

Thank you both, works!!!

What is a sealed object?

.V

> 
> 
> 
> for (var p:String in object)
> 
> trace(p, object[p])
> 
> 
> 
> For sealed objects, use getClassInfo
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of v.cekvenich
> Sent: Wednesday, July 23, 2008 8:08 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] reflection of proerties in an object
> 
> 
> 
> if I get an object, I want to enumerate the properties.
> 
> Ex:
> var object:Object = someClass.someFunc();
> 
> var val1:String = object["key1"];
> 
> How do I list all the keys in an object?
> 
> .V
>

 



[flexcoders] Re: parallel coordinates component with Flex3

2008-07-23 Thread Michael VanDaniker
I recently worked on a project for an info viz course, and one of my
group mates built a parallel coordinates plot.  I've been blogging
about the different visualizations we developed, and I was about to
write up the pcp.  It'll be a while until I get around to it though.

One word of warning: pcp's often have hundreds of lines, and you're
going to run into some major performance issues if you try and pull
that off with the charting controls.  We found that using the graphics
class was much more efficient.

--- In flexcoders@yahoogroups.com, "brian.staats" <[EMAIL PROTECTED]>
wrote:
>
> I have started development (3 days into it) on parallel coordinates
> using Flex 3. However, I am not having much luck at the moment
> (between diving into the depths of flex charting and other
> obligations). I would like to encourage you and others to join an open
> source effort to completing a flex parallel coordinate component.
> 
> I have pinged mjohnsson on the adobe forums to see if s(he) is
> interested as well... no response yet.
> 
>
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid=1373433&enterthread=y
> 
> I dont have much code at the moment, but Ill start the google project
> (or whatever) if I can get some partners in crime.
> 
> You interested? Anyone else?
> 
> 
> --- In flexcoders@yahoogroups.com, "Marcela"  wrote:
> >
> > Hi,
> >  I'm looking for a start point on how to implement a paraller
> > coordinates component for multidimensional visualization with Flex 3
> > and AS. So far, I've found only Java examples.
> > Someone working on something similar or in the same problem?
> > Thanks,
> >  Marcela
> >
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Marcela"  wrote:
> >
> > Hi,
> >  I'm looking for a start point on how to implement a paraller
> > coordinates component for multidimensional visualization with Flex 3
> > and AS. So far, I've found only Java examples.
> > Someone working on something similar or in the same problem?
> > Thanks,
> >  Marcela
> >
>




Re: [flexcoders] How to check all children have been loaded?

2008-07-23 Thread Sid Maskit
Have you tried using the creationComplete event on the UIComponent?



- Original Message 
From: flexawesome <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 23, 2008 10:56:50 AM
Subject: [flexcoders] How to check all children have been loaded?


Hey there,

I have a UIcomponent which contents 5 more image components inside. I would 
like to show 
the UIcomponent after all images have loaded successfully.

If any image is still loading, the UIcomponent will not be displayed.

Is there a easy way to add a event listener on the UIcomponent rather than add 
them for each 
of image component?

any suggestions?




  

Re: [flexcoders] Sending multiple arguments to a CFC

2008-07-23 Thread Sid Maskit
You should be able to send multiple arguments by just separating them with a 
comma, like this:

chartmth_RO.qMonthlyUsage( 2008, 04);

By the way, I notice that there is no comma in the sample you provided. 
Assuming that there is a comma in the code you're actually using, what is 
happening when you run it? Are you getting some sort of error? Also, have you 
declared multiple parameters for the CFC you are calling?



- Original Message 
From: Marc Broom <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 23, 2008 10:46:42 AM
Subject: [flexcoders] Sending multiple arguments to a CFC


I currently connect to Coldfusion with a RemoteObject and pass a single 
argument. Is there a way to pass multiple arguements? Just adding a 
comma separated list of arguments in the parens does not seem to work.

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

In Script block

private function initApp(e:Event) :void {
chartmth_RO. qMonthlyUsage( 200804);
}



 




  

[flexcoders] Re: How to check all children have been loaded?

2008-07-23 Thread lynxoid7
Would listening for creationComplete on the parent component do it? It
is only fired after all children have been initialized.

--- In flexcoders@yahoogroups.com, "flexawesome" <[EMAIL PROTECTED]> wrote:
>
> Hey there,
> 
> I have a UIcomponent which contents 5 more image components inside.
I would like to show 
> the UIcomponent after all images have loaded successfully.
> 
> If any image is still loading, the UIcomponent will not be displayed.
> 
> Is there a easy way to add a event listener on the UIcomponent
rather than add them for each 
> of image component?
> 
> any suggestions?
>




Re: [flexcoders] How to check all children have been loaded?

2008-07-23 Thread Pedro Sena
Hi,

You could archieve want u want with creationPolicy, have u tried it ?

Pedro Sena

On Wed, Jul 23, 2008 at 2:56 PM, flexawesome <[EMAIL PROTECTED]> wrote:

>   Hey there,
>
> I have a UIcomponent which contents 5 more image components inside. I would
> like to show
> the UIcomponent after all images have loaded successfully.
>
> If any image is still loading, the UIcomponent will not be displayed.
>
> Is there a easy way to add a event listener on the UIcomponent rather than
> add them for each
> of image component?
>
> any suggestions?
>
>  
>



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


[flexcoders] How to check all children have been loaded?

2008-07-23 Thread flexawesome
Hey there,

I have a UIcomponent which contents 5 more image components inside. I would 
like to show 
the UIcomponent after all images have loaded successfully.

If any image is still loading, the UIcomponent will not be displayed.

Is there a easy way to add a event listener on the UIcomponent rather than add 
them for each 
of image component?

any suggestions?






Re: [flexcoders] Re: Encapsulating a custom flex component?

2008-07-23 Thread Sid Maskit
In thinking about this a little more, I have come up with a third way of 
achieving a private sub-component within an MXML-based component. Like the 
others, this is somewhat hacky, but it should work. This one has the advantage 
of allowing you to fully declare the sub-component using MXML. Further, using 
this approach, your other MXML components can bind to the private 
sub-component, although indirectly using what I'm calling a proxy.

Here's some sample code:








Since the textProxy variable is private, and the TextInput control for which it 
is a proxy has no id, I believe that this should create a situation equivalent 
to where there was the ability to mark the TextInput control itself as private.

Hope that helps,

Sid



- Original Message 
From: Nate Beck <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 23, 2008 9:27:13 AM
Subject: [flexcoders] Re: Encapsulating a custom flex component?


A feature request has been opened for adding accessors to MXML.  Please vote on 
this if 
you see fitting.  It also better explains the issue that I am running into.

http://bugs. adobe.com/ jira/browse/ SDK-16181

There is also discussion going on about this issue at Jeff's blog: 
http://www.jeffryho user.com/ index.cfm? mode=entry& entry=4DC9B79C- 65B3-D59C-
464EC981E0A2EA8F

Thanks,
Nate

--- In [EMAIL PROTECTED] ups.com, Jeffry Houser <[EMAIL PROTECTED]> wrote:
>
> 
>  In an ActionScript component, you can make the component internal to 
> the package.  You might also combine it with the "ExcludeClass" metadata 
> tag to 'hide' the class name from people using your SWC. 
> 
>  I'm not sure if I'd equate either of these approach to private, though.
> 
>  I blogged about this in a bit more detail:
> 
> http://www.jeffryho user.com/ index.cfm? mode=entry& entry=4DC9B79C- 
> 65B3-D59C-
464EC981E0A2EA8F
> 
> Josh McDonald wrote:
> > Not in MXML components.
> >
> > -Josh
> >
> > On Wed, Jul 23, 2008 at 9:53 AM, Nate Beck <[EMAIL PROTECTED] 
> > > wrote:
> >
> > Newbish question... but after searching on google, I can't get a
> > concise answer.
> >
> > Is it possible to encapsulate (mark private) components within a
> > Flex component?
> >
> > So I have custom MXML component (ResourcesTree) that has a Tree
> > inside of it. I don't want
> > the Tree to directly be available outside the ResourcesTree Component.
> >
> > Any input?
> >
> >
> >  - - --
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder 
> > sFAQ.txt
> > Search Archives:
> > http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo!
> > Groups Links
> >
> >
> >mailto:flexcoders-fullfeat [EMAIL PROTECTED] .com
> > 
> >
> >
> >
> >
> >
> > -- 
> > "Therefore, send not to know For whom the bell tolls. It tolls for thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED] 
> > 
> 
> -- 
> Jeffry Houser
> Flex, ColdFusion, AIR
> AIM: Reboog711  | Phone: 1-203-379-0773
> --
> Adobe Community Expert 

> My Company:  
> My Podcast: 
> My Blog: 
>




  

[flexcoders] Sending multiple arguments to a CFC

2008-07-23 Thread Marc Broom
I currently connect to Coldfusion with a RemoteObject and pass a single 
argument. Is there a way to pass multiple arguements? Just adding a 
comma separated list of arguments in the parens does not seem to work.

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

In Script block

private function initApp(e:Event):void {
chartmth_RO.qMonthlyUsage(200804);
}



 



[flexcoders] Re: reflection of proerties in an object

2008-07-23 Thread v.cekvenich
Thank you both, works!!!

What is a sealed object?

.V

> 
>  
> 
> for (var p:String in object)
> 
> trace(p, object[p])
> 
>  
> 
> For sealed objects, use getClassInfo
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of v.cekvenich
> Sent: Wednesday, July 23, 2008 8:08 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] reflection of proerties in an object
> 
>  
> 
> if I get an object, I want to enumerate the properties.
> 
> Ex:
> var object:Object = someClass.someFunc();
> 
> var val1:String = object["key1"];
> 
> How do I list all the keys in an object?
> 
> .V
>




[flexcoders] Re: Runtime CSS and "SWF is not a loadable module" -- new information

2008-07-23 Thread jamalwally
Although I do get a runtime error when the application tries to load the style 
SWF that I 
made via "mxmlc BasicStyle.css"  (the SWF in the assets/ folder), I was finally 
able to get 
styles to successfully load using the SWF generated by FB3.

I'd still like to know how to load style SWFs made via mxmlc though.

In the meantime, here's how I got the styles to load:

* In FB 3, I right-clicked (CTRL-Clicked on a mac) on the assets/BasicStyle.css 
file and 
selected "Compile CSS to SWF".  This put a check mark next to that option.
* Then I noticed that FB3 compiled the CSS file into a SWF and located that swf 
in:
bin/Users//Documents/Flex Builder 
3/testRuntimeCss/assets/BasicStyles.swf
   notice that FB3 reproduced the directory structure of the Flex Project 
location under the 
bin directory (rather than putting the style SWF in the assets/ folder 
directly).

* So I updated my MXML file to read:
StyleManager.loadStyleDeclarations("Users/jbattat/Documents/Flex Builder 
3/testRuntimeCss/assets/BasicStyles.swf")
  (the path passed to loadStyleDeclarations() used to be 
../assets/BasicStyles.swf)

* Then I did a debug run, clicked the Button and the styles were successfully 
loaded.

So some obvious questions remain:
* Do you really have to code the path to the style swf in this way, or can you 
tell
  FB3 to compile the CSS file into a SWF and place the SWF directly in the 
bin-debug/ 
folder (or elsewhere)
* How do you get runtime styles to load using style SWFs made via mxmlc (this 
is the 
critical question for me).
* Is there a way to "diff" two SWFs?  I have one SWF (made by FB3) that works 
and one 
(made by mxmlc) that does not.  Seeing the differences between the two would be 
instructive.

As always, thanks for your help
 -- j


--- In flexcoders@yahoogroups.com, jamal wally <[EMAIL PROTECTED]> wrote:
>
> Hello again,
> 
> OK, I'm sending the style swf as an attachment to this post.  If it doesn't 
> work, I will 
email directly to you Alex (thank you very much for your patience).  
> 
> Alex, to answer your question about the location of the style swf:  The style 
> SWF is local 
to my machine and lives in a subdirectory of the project.  
> 
> I named the flex project testRuntimeCss and the project files are in:
>   ~/Documents/Flex Builder 3/testRuntimeCss/
> The main MXML file is in the default location (src/) and the style CSS and 
> SWF files are 
both in assets/.
> 
> Let me also point out that in order to minimize the potential for user-error 
> on my part, 
I have re-done my test runtime css Flex Project so that it follows the Adobe 
example at:
>   http://livedocs.adobe.com/flex/3/html/help.html?content=styles_10.html
> 
> I copied/pasted their example simple CSS into a file called BasicStyles.css 
> which lives in 
the assets/ folder of my project.  For completeness, here is the content of the 
CSS file, 
copied directly from the Adobe help page listed above.
> 
> /* styles/runtime/assets/BasicStyles.css */
> Button {
> fontSize:24;
> color: #FF9933;
> }
> 
> Label {
> fontSize:24;
> color: #FF9933;
> }
> 
> I then compiled the CSS file into a SWF with:
>  > mxmlc BasicStyle.css
> 
> The resulting swf, BasicStyle.swf, is attached.
> 
> By the way, I am using the mxmlc app from SDK 3.0.0 (on Mac Leopard)
>  > which mxmlc
> /Applications/Adobe Flex Builder 3/sdks/3.0.0/bin/mxmlc
> 
> Another thing to point out is that I have done this both with "Compile CSS to 
> SWF" option 
for the BasicStyle.css file on and off.  Both approaches give the same result 
(runtime error 
-- described below).
> 
> I then copied/pasted the MXML content from the Adobe help page into my main 
> MXML 
file.  Again, for completeness, here is the MXML that I used:
> 
> 
> 
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
> 
> 
> 
>  
> 
> When I debug in FB3, the application SWF successfully loads in my web 
> browser. But 
when I click on the button labeled "Click Me", the application crashes.  The 
error I get is:
> 
>   Error: Unable to load style(SWF is not a loadable module):
>   ../assets/BasicStyles.swf.
> 
> Just before that error, I get the following trace which suggests that the SWF 
> style file 
was, indeed found.
> 
>  [SWF] Users:jbattat:Documents:Flex Builder  
> 3:testRuntimeCss:assets:BasicStyles.swf - 
34,571 bytes after decompression
> 
> Please let me know if you find a problem with the attached swf. 
> 
> -- j
>





Re: [flexcoders] Measurement and scrolling

2008-07-23 Thread Richard Rodseth
That would be interesting, Josh.
For what it's worth, if I add the following back to the measure()
method of MyContainer (a stand-in for TiledCanvas):

measuredMinWidth = measuredWidth;
measuredMinHeight = measuredHeight;

and wrap it as follows:









then the scrollbar behaviour is fine - i.e. I can scroll to view the
entire MyContainer, including padding. This is a bit ironic, since my
quest (encouraged by Alex) has been to eliminate the need for any such
wrapper. On the other hand, the same workaround did not work (yet) for
the full TiledCanvas (I've got double scroll bars).

Perhaps your idea of a generic scroller container is the right
approach. For bonus points, it could encompass the other custom
component that interests me, the one that scales down to fit :)
Imagine resizePolicy = SCALE | SCROLL

On Wed, Jul 23, 2008 at 6:55 AM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> It's something I keep needing, so very soon I'm going to cook up an example
> of a "one-child-only" container that will behave the way I think they should
> regarding vertical scrollbars. Will post a link :)
>
> -Josh
>
> On Wed, Jul 23, 2008 at 11:12 PM, Richard Rodseth <[EMAIL PROTECTED]>
> wrote:
>>
>> Yes, but that doesn't look so good and wastes real estate. I think I
>> can live with the overlay, given the padding I have.
>>
>> On Wed, Jul 23, 2008 at 12:15 AM, Alex Harui <[EMAIL PROTECTED]> wrote:
>> > If you set verticalScrollPolicy="on" then the scrollbars will be
>> > factored in
>> >
>> >
>> >
>> > 
>> >
>> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
>> > Behalf Of Josh McDonald
>> > Sent: Tuesday, July 22, 2008 10:13 PM
>> > To: flexcoders@yahoogroups.com
>> > Subject: Re: [flexcoders] Measurement and scrolling
>> >
>> >
>> >
>> > The only way to not have scrollbars over the content (or to only have
>> > vertical, but not all the time) is to do scrollbar management yourself
>> > rather than relying on Flex's inbuilt methods of handling it. This is a
>> > decision made by the Flex team to avoid having to double measure() stuff
>> > when adding scrollbars to a container.
>> >
>> > -Josh
>> >
>> > On Wed, Jul 23, 2008 at 3:02 PM, Richard Rodseth <[EMAIL PROTECTED]>
>> > wrote:
>> >
>> > Below is code for a scrolling container of one child - a highly
>> > simplified version of the tiling container I've been wrestling with
>> > off and on for way too long now. The component below sizes the
>> > first/only child to fit within it, with some padding, but respects the
>> > minimums of the child, adding scroll bars if necessary.
>> >
>> > I discovered this evening that setting measuredMinWidth/Height in the
>> > measure() method was what was messing things up. With that removed,
>> > this component (and the more complex tiler) behaves properly, except
>> > that the scollbars are drawn over the right/bottom padding.
>> >
>> > What is the appropriate way to compensate for that? Adding a fudge
>> > factor to the measured values, or removing it from the value passed to
>> > setActualSize in UDL had no effect at all.
>> >
>> > Thanks, I'm *really* close now...
>> >
>> > - Richard
>> >
>> >
>> >public class MyContainer extends Container
>> >{
>> >private static const PADDING:Number = 10;
>> >
>> >public function MyContainer()
>> >{
>> >super();
>> >}
>> >
>> >
>> >override protected function measure():void
>> >{
>> >var child:UIComponent = this.getChildren()[0] as
>> > UIComponent;
>> >
>> >var childWidth:Number =
>> > child.getExplicitOrMeasuredWidth();
>> >var childHeight:Number =
>> > child.getExplicitOrMeasuredHeight();
>> >
>> >measuredWidth = childWidth + 2 * PADDING ;
>> >measuredHeight = childHeight + 2 * PADDING ;
>> >}
>> >
>> >
>> >override protected function
>> > updateDisplayList(unscaledWidth:Number,
>> > unscaledHeight:Number):void
>> >{
>> >super.updateDisplayList(unscaledWidth, unscaledHeight);
>> >
>> >var child:UIComponent = this.getChildren()[0] as
>> > UIComponent;
>> >
>> >var newWidth:Number = Math.max(unscaledWidth - (2
>> > *
>> > PADDING) ,
>> > child.minWidth);
>> >var newHeight:Number = Math.max(unscaledHeight -
>> > (2 *
>> > PADDING) ,
>> > child.minHeight);
>> >
>> >child.setActualSize(newWidth, newHeight);
>> >child.move(PADDING, PADDING);
>> >}
>> >}
>> > }
>> >
>> > 
>> > http://www.adobe.com/2006/mxml";
>> >layout="absolute" minHeight="0" minWidth="0"
>> >verticalScrollPolicy="off" horizontalScrollPolicy="off"
>> >  

[flexcoders] Interview questions

2008-07-23 Thread Tom Preet
Hi All,

I am attending for Interviews on Adobe Flex 2.0 and AS 3.0 can anyone send
me Interview questions or url of faq's for preparing the Interview.


Thanks,
Tomt.


[flexcoders] Re: Runtime CSS and "SWF is not a loadable module"

2008-07-23 Thread jamal wally
Hello again,

OK, I'm sending the style swf as an attachment to this post.  If it doesn't 
work, I will email directly to you Alex (thank you very much for your 
patience).  

Alex, to answer your question about the location of the style swf:  The style 
SWF is local to my machine and lives in a subdirectory of the project.  

I named the flex project testRuntimeCss and the project files are in:
  ~/Documents/Flex Builder 3/testRuntimeCss/
The main MXML file is in the default location (src/) and the style CSS and SWF 
files are both in assets/.

Let me also point out that in order to minimize the potential for user-error on 
my part, I have re-done my test runtime css Flex Project so that it follows the 
Adobe example at:
  http://livedocs.adobe.com/flex/3/html/help.html?content=styles_10.html

I copied/pasted their example simple CSS into a file called BasicStyles.css 
which lives in the assets/ folder of my project.  For completeness, here is the 
content of the CSS file, copied directly from the Adobe help page listed above.

/* styles/runtime/assets/BasicStyles.css */
Button {
fontSize:24;
color: #FF9933;
}

Label {
fontSize:24;
color: #FF9933;
}

I then compiled the CSS file into a SWF with:
 > mxmlc BasicStyle.css

The resulting swf, BasicStyle.swf, is attached.

By the way, I am using the mxmlc app from SDK 3.0.0 (on Mac Leopard)
 > which mxmlc
/Applications/Adobe Flex Builder 3/sdks/3.0.0/bin/mxmlc

Another thing to point out is that I have done this both with "Compile CSS to 
SWF" option for the BasicStyle.css file on and off.  Both approaches give the 
same result (runtime error -- described below).

I then copied/pasted the MXML content from the Adobe help page into my main 
MXML file.  Again, for completeness, here is the MXML that I used:



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






 

When I debug in FB3, the application SWF successfully loads in my web browser. 
But when I click on the button labeled "Click Me", the application crashes.  
The error I get is:

  Error: Unable to load style(SWF is not a loadable module):
  ../assets/BasicStyles.swf.

Just before that error, I get the following trace which suggests that the SWF 
style file was, indeed found.

 [SWF] Users:jbattat:Documents:Flex Builder  
3:testRuntimeCss:assets:BasicStyles.swf - 34,571 bytes after decompression

Please let me know if you find a problem with the attached swf. 

-- j






  

BasicStyles.swf
Description: application/shockwave-flash


Re: [flexcoders] Re: changing project settings

2008-07-23 Thread [p e r c e p t i c o n]
worked like a charm! thanks mate!
percy

On Wed, Jul 23, 2008 at 7:36 AM, valdhor <[EMAIL PROTECTED]> wrote:

>   My bad. You need a Destination to send to on the server (The page
> where the method resides that you are calling).
>
> I wrote out an example that doesn't have any config files and no
> compiler arguments...
>
> var channelSet:ChannelSet = new ChannelSet();
> var amfChannel:AMFChannel = new AMFChannel("my-amf",
> "http://myserver.com/WebORB30/weborb.php";);
> channelSet.addChannel(amfChannel);
>
> myService = new RemoteObject();
> myService.channelSet = channelSet;
> myService.destination = "MyClasses.MyService";
>
> myService.getVariables.addEventListener(ResultEvent.RESULT,
> VariablesHandler);
> myService.addEventListener(FaultEvent.FAULT, faultHandler);
> myService.getVariables();
>
> This uses WebOrb for PHP. My class file with the getVariables method
> resides in the file MyService.php which is in the directory MyClasses
> in the Services directory of WebOrb.
>
>
> --- In flexcoders@yahoogroups.com , "[p e r
> c e p t i c o n]"
> <[EMAIL PROTECTED]> wrote:
> >
> > sorry but i get this...
> >
> > [MessagingError message='A destination name must be specified.']
> >
> > percy
> >
> > On Tue, Jul 22, 2008 at 3:00 PM, [p e r c e p t i c o n] <
> > [EMAIL PROTECTED]> wrote:
> >
> > > you must be from the midwest :)
> > >
> > >
> > > On Tue, Jul 22, 2008 at 11:42 AM, valdhor <[EMAIL PROTECTED]>
> > > wrote:
> > >
> > >> I don't normally do it that way but yes, just set the source
> and the
> > >> endpoint and Bob's your auntie ;-}
> > >>
> > >>
> > >> --- In flexcoders@yahoogroups.com 
> > >>  40yahoogroups.com>,
> "[p e r
> > >> c e p t i c o n]"
> > >>  wrote:
> > >> >
> > >> > it appears easier to do if FB3 than FB2...using remoteobject means
> > >> you need
> > >> > a destination...which is set in the config...is there a way to
> specify a
> > >> > destination without it being in a config...if so that would
> work out for
> > >> > me...
> > >> >
> > >> > thanks
> > >> >
> > >> > percy
> > >> >
> > >> > On Tue, Jul 22, 2008 at 8:53 AM, valdhor  wrote:
> > >> >
> > >> > > Just add config files to the project and change your compiler
> > >> settings
> > >> > > to point to the config file(s)...
> > >> > >
> > >> > > or
> > >> > >
> > >> > > Create RemoteObject instances and explicitly set the properties.
> > >> > >
> > >> > > All that the setting does in the project wizard is add the
> most used
> > >> > > items (Like config files) to your project and setup the compiler
> > >> > > settings for you.
> > >> > >
> > >> > > --- In flexcoders@yahoogroups.com 
>  > >> 40yahoogroups.com>,
> > >> "[p e r
> > >> > > c e p t i c o n]"
> > >> > >
> > >> > >  wrote:
> > >> > > >
> > >> > > > Hi all,
> > >> > > > i started a project and at the time i didn't need a server,
> but now
> > >> > > i do.
> > >> > > > is there a way to modify the settings to use a server after the
> > >> fact?
> > >> > > > thanks and
> > >> > > > cheers
> > >> > > > percy
> > >> > > >
> > >> > >
> > >> > >
> > >> > >
> > >> >
> > >>
> > >>
> > >>
> > >
> > >
> >
>
>  
>


Re: [flexcoders] Re: changing project settings

2008-07-23 Thread [p e r c e p t i c o n]
ah...never heard anyone say it but canadians and midwesterners... :)


On Wed, Jul 23, 2008 at 5:45 AM, valdhor <[EMAIL PROTECTED]> wrote:

>   I always thought that was a british saying. Anyway, originally New
> Zealand and now North Carolina ;-}
>
>
> --- In flexcoders@yahoogroups.com , "[p e r
> c e p t i c o n]"
> <[EMAIL PROTECTED]> wrote:
> >
> > you must be from the midwest :)
> >
> > On Tue, Jul 22, 2008 at 11:42 AM, valdhor <[EMAIL PROTECTED]> wrote:
> >
> > > I don't normally do it that way but yes, just set the source and the
> > > endpoint and Bob's your auntie ;-}
> > >
> > >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>,
> "[p e r
> > > c e p t i c o n]"
> > >  wrote:
> > > >
> > > > it appears easier to do if FB3 than FB2...using remoteobject means
> > > you need
> > > > a destination...which is set in the config...is there a way to
> specify a
> > > > destination without it being in a config...if so that would work
> out for
> > > > me...
> > > >
> > > > thanks
> > > >
> > > > percy
> > > >
> > > > On Tue, Jul 22, 2008 at 8:53 AM, valdhor  wrote:
> > > >
> > > > > Just add config files to the project and change your compiler
> > > settings
> > > > > to point to the config file(s)...
> > > > >
> > > > > or
> > > > >
> > > > > Create RemoteObject instances and explicitly set the properties.
> > > > >
> > > > > All that the setting does in the project wizard is add the
> most used
> > > > > items (Like config files) to your project and setup the compiler
> > > > > settings for you.
> > > > >
> > > > > --- In flexcoders@yahoogroups.com 
>  > > 40yahoogroups.com>,
> > > "[p e r
> > > > > c e p t i c o n]"
> > > > >
> > > > >  wrote:
> > > > > >
> > > > > > Hi all,
> > > > > > i started a project and at the time i didn't need a server,
> but now
> > > > > i do.
> > > > > > is there a way to modify the settings to use a server after the
> > > fact?
> > > > > > thanks and
> > > > > > cheers
> > > > > > percy
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> >
>
>  
>


[flexcoders] Hslider layout problem

2008-07-23 Thread [EMAIL PROTECTED]
Hello,

This is a simple example of a VideoDisplay and veiwsource is available 
for this application.
http://reenie.org/test/scrubTest/ScrubTest.html

The Hslider is being used as a scrubber to move the video playhead. It 
works fine until I add the second panel, which is empty. Even then, it 
works fine until you  scroll the page up and down. Then the  Hslider 
moves to the top, and is not functional anymore.

What is causing this problem and how do I fix it ?




[flexcoders] Re: Problem With type checking...

2008-07-23 Thread Michael Ritchie
Is the ArrayCollection FamilyMember and FriendMember located in the
Cairngorm Model or are you passing these into the Module through an
Interface?


- Mr

--- In flexcoders@yahoogroups.com, "[EMAIL PROTECTED] Uttarwar"
<[EMAIL PROTECTED]> wrote:
>
> Hi Everybody,
> 
> I am using cairngorm and modules in my project.
> I am having one module in which user list is showing according to
> arraycollection of objects of type
> "FamilyMember" or "FriendMember".
> I am checking the type of that object inside module using is operator.
> 
> First time when with given arrayCollection of specific type it is
working
> well and fine.
> but...
> when user switches to another module then  i am unloading the previous
> module(in which user list was showing.)
> again when user switch backs to this module everything is working
except the
> user list is not showing.
> 
> When i debug the application and cheked for the error then ,
> where i am checking the object type using (myobject is
> FamilyMember)operator is returning
> false,
> whereas in arraycollection the type is shown correct ie "FamilyMember".
> 
> What is the problem
> 
> i am really wondering what to do???
> 
> Any help will be appreciated...
> 
> Thanks and Regards,
> Pravin G.Uttarwar,
> Software Developer,
> Perennial Systems.
> Visit Us at:www.perennialsys.com
> E-mail: [EMAIL PROTECTED]
> Mob. +919371288080
>




[flexcoders] Re: parallel coordinates component with Flex3

2008-07-23 Thread brian.staats
I have started development (3 days into it) on parallel coordinates
using Flex 3. However, I am not having much luck at the moment
(between diving into the depths of flex charting and other
obligations). I would like to encourage you and others to join an open
source effort to completing a flex parallel coordinate component.

I have pinged mjohnsson on the adobe forums to see if s(he) is
interested as well... no response yet.

http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=60&catid=585&threadid=1373433&enterthread=y

I dont have much code at the moment, but Ill start the google project
(or whatever) if I can get some partners in crime.

You interested? Anyone else?


--- In flexcoders@yahoogroups.com, "Marcela" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>  I'm looking for a start point on how to implement a paraller
> coordinates component for multidimensional visualization with Flex 3
> and AS. So far, I've found only Java examples.
> Someone working on something similar or in the same problem?
> Thanks,
>  Marcela
>



--- In flexcoders@yahoogroups.com, "Marcela" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>  I'm looking for a start point on how to implement a paraller
> coordinates component for multidimensional visualization with Flex 3
> and AS. So far, I've found only Java examples.
> Someone working on something similar or in the same problem?
> Thanks,
>  Marcela
>




[flexcoders] Re: Not seeing lines on line chart

2008-07-23 Thread Amy
--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> Hi, all;
> 
> I'm making my first attempt with the charts, and it turns out my data 
> is such that I need to use a dataFunction first thing.  To summarize 
> my problem, the chart is making itself big enough that it looks like 
> it can "see" my data, but it has no lines on it.  The legend has the 
> right number of items with the correct names.  I figure I'm missing 
> something stupid and obvious.

Nevermind...needed a dataFunction on the horizontalAxis as well.



RE: [flexcoders] event listeners on Sprites - performance problem

2008-07-23 Thread Alex Harui
10 to 15 shouldn't be a problem.  Make sure it is only that many (and
you didn't create more and stack them on top of the others).

 

Are you saying the addEventLIstener calls are affecting the cpu load?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ibo
Sent: Wednesday, July 23, 2008 8:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] event listeners on Sprites - performance problem

 

MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="0-617774704-1216825475=:34053"

--0-617774704-1216825475=:34053
Content-Type: text/plain; charset=us-ascii

I created a component what I call bookmark bar where there are markers
that you can click
to jump/scroll to a particular portion of a list (given the index).
Similar to Eclipse/Flexbuilder when you have
errors and there are markers on the right side pane that lets you jump
to the erroneous line. I am using 
this for a datagrid using Canvas as parent component.

var uiComponent:UIComponent = new UIComponent(); 
addChild(uiComponent);

for (var i:int=0; i<_dataProvider.length; i++) {
var bm:Bookmark = _dataProvider[i] as Bookmark; 

sprite = new MySprite(); // extends Sprite. Creates an instance Sprite
for each marker
sprite.graphics.lineStyle(3, bm.color, 1, false, LineScaleMode.NORMAL,
CapsStyle.SQUARE); 
sprite.graphics.moveTo(x, y);
sprite.graphics.lineTo(x + xOffset, y);
... 
sprite.addEventListener(MouseEvent.CLICK, scrollToLine);
sprite.buttonMode = true;
...
uiComponent.addChild(sprite); 
}

It works as expected but I noticed it is heavy on CPU and affects the
responsiveness of the
UI. CPU spikes at 55% to 60% even if I only have a few markers (10 to
15).
The lag is very noticeable because just hovering the mouse pointer over
the list,
the item highlighter, delay in rendering the display is very evident.
It doesnt happen on my app when I turn it off.

Am I doing this right? any workaround?

Regards,
Stephen

--0-617774704-1216825475=:34053
Content-Type: text/html; charset=us-ascii

I created a component what I
call bookmark bar where there are markers that you can clickto
jump/scroll to a particular portion of a list (given the index). Similar
to Eclipse/Flexbuilder when you haveerrors and there are markers on
the right side pane that lets you jump to the erroneous line. I am using
this for a datagrid using Canvas as parent
component.       
        var uiComponent:UIComponent = new
UIComponent();         !
              
addChild(uiComponent);   
        for (var
i:int=0; i<_dataProvider.length; i++)
{       
        var bm:Bookmark = _dataProvider[i]
as Bookmark;   
       
           
           
  &nbs
p; sprite = new
MySprite();   // extends Sprite. Creates an instance Sprite f!
or each marker   
       
    sprite.graphics.lineStyle(3, bm.color, 1, false,
LineScaleMode.NORMAL, CapsStyle.SQUARE);   
       
       
       
    sprite.graphics.moveTo(x, 
y);       
        sprite.graphics.lineTo(x +
xOffset, y);   
       
    ...   
       
           
           
sprite.addEventListener(MouseEvent.CLICK, scrollToLine);           
    ...   
           
    uiComponent.addChild(sprite);   
       
           
       
}It works as expected but I noticed it is heavy on CPU and
affects the responsiveness of theUI. CPU spikes at 55% to 60% even
if I only have a few markers (10 to 15).The lag is very noticeable
because just hovering the mouse pointer over the list,the item
highlighter, delay in rendering the display is very evident.It
doesnt happen on my app when I turn it off.Am I doing this
right? any
workaround?Regards,Stephen
--0-617774704-1216825475=:34053--

 



  1   2   >