RE: [flexcoders] passing JavaScript Variable to flex enbed swf

2007-05-08 Thread Alex Harui
I think you have to write more javascript to dynamically call AC_FL_RunContent.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
jolugarciado
Sent: Tuesday, May 08, 2007 4:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] passing JavaScript Variable to flex enbed swf



Hello:

I want to ask you if you know a way to pass a dinamic variable
generated by a function in JavaScript. Not a constant variable like in
the example below (cause flex always catch “HELLO” and no other
strings generated by a javaScript)

I try modifying the AC_FL_RunContent directly in the HTML

AC_FL_RunContent( 
"flashvars",'testvar=HELLO &historyUrl=history.htm%3F&lconid=' +
lc_id + '',
);

What I have to do to pass a random string for example???. testvar =
(”hello” or “foo” or “bar”) 



 


RE: [flexcoders] How to scroll DataGrid to bottom ?

2007-05-08 Thread Alex Harui
verticalScrollPosition = maxVerticalScrollPosition.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of helihobby
Sent: Tuesday, May 08, 2007 6:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to scroll DataGrid to bottom ?




Anyone can post a quick tip on how to always keep datagrid scrolled to 
bottom ?

As always, Thank you for all the help and support.

Regards,

Sean - http://www.HeliHobby.com  

P.S.

You can read my solution for Flex Component communication here:

http://www.helihobby.com/html/alon_desingpattern.html
 



 


RE: [flexcoders] Properties file and Flash Security

2007-05-08 Thread Alex Harui
You have to ask permission from the user, otherwise Flash would be the
best virus and spyware platform hands-down.
 
You can have a config dialog that comes up and store what you want in a
local shared object for use next time the app runs.
 
There may be javascript ways to get around this.
 
-Alex



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of alehrens
Sent: Tuesday, May 08, 2007 11:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Properties file and Flash Security



I would like to store two URLs in a properties file and read them in
at startup. While I have implemented this successfully, there remains
one issue that I cannot get around. 

When the flex app looks to read the properties file, flash security
gets into the way and I have to go to the flash security manager and
give the app access to the local property file. 
(http://www.macromedia.com/support/documentation/en/flashplayer/help/set
tings_manager04.html
 )

My problem is...the machine I'll be tossing all this on...it will be
disconnected from the Internet. So, I won't be able to get to that
page correct? So how do I give myself access to that local property
file?

Can this be done?

PLEASE HELP!

Aaron




 


RE: [flexcoders] Detect component visible

2007-05-08 Thread Alex Harui
You can listen to systemManager for hide/show in capture phase and then
use contains to determine if it affects you.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brett Levine
Sent: Tuesday, May 08, 2007 8:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Detect component visible



Is it possible to determine when an object goes off-screen? The
visible property does not change, and I've also tried to detect the
parenting for example if(!stage.contains(this)) but even though my
component is nested inside a ViewStack when the stack changes the
above statement always returns true.

I read documentation about off-list display objects. I would think
when a ViewStack changes, the children that are not visible on the
screen would become off-list, no?



 


Re: [flexcoders] Can I just bypass Cairngorm events?

2007-05-08 Thread Bjorn Schultheiss

Hey Mike,

It helps decouple the view and controller.
If you hard hard-wire your view to controller you are essentially  
adding just  logic to your view.


There's been talk around 'ditching' the controller out of MVC and a  
lot of developers have.
Check this post, http://weblogs.macromedia.com/sho/archives/2005/08/ 
flexflash_archi.cfm



In terms of Delegates i find it a useful link between commands and  
remote services.
Although i haven't yet applied this to FDS, or a 'producer, consumer'  
process.



regards,

Bjorn


On 09/05/2007, at 1:51 PM, munkydung wrote:


I've currently building a medium-large size application in Flex using
Cairngorm. I've already decided not to use 'delegates'. Instead, I'm
just updating the 'model' from within 'commands'. Now I'm seeing a
pattern where each 'event' I create is just a container for a data
structure to a 'command'. Also, it seems the mapping of 'events' is
one-to-one for 'commands'.

So, my question is, why not just do away with the 'events' and have
views call 'command.execute()'?

Someone talk me out of this...

thanks,
Mike








[flexcoders] Documenting "... args" with ASDoc

2007-05-08 Thread Mark Piller
Does anyone know how to document arguments for a method declared as:

public function foo( ... args ):void {}

Ideally, I'd like to specify individual @param arguments (there's a
reason why the method does not declare specific arg types). However,
ASDoc seems to recognize only the first one and puts "... args" as the
argument name in there.

Thanks,
Mark



[flexcoders] Can I just bypass Cairngorm events?

2007-05-08 Thread munkydung
I've currently building a medium-large size application in Flex using
Cairngorm. I've already decided not to use 'delegates'. Instead, I'm
just updating the 'model' from within 'commands'. Now I'm seeing a
pattern where each 'event' I create is just a container for a data
structure to a 'command'. Also, it seems the mapping of 'events' is
one-to-one for 'commands'.

So, my question is, why not just do away with the 'events' and have
views call 'command.execute()'?

Someone talk me out of this...

thanks,
Mike



[flexcoders] Detect component visible

2007-05-08 Thread Brett Levine
Is it possible to determine when an object goes off-screen?  The
visible property does not change, and I've also tried to detect the
parenting for example if(!stage.contains(this)) but even though my
component is nested inside a ViewStack when the stack changes the
above statement always returns true.

I read documentation about off-list display objects. I would think
when a ViewStack changes, the children that are not visible on the
screen would become off-list, no?





[flexcoders] creating components

2007-05-08 Thread André Rodrigues Pena
Hey all,
this is a little off-topic because I know that there's a
flex-components list. But as I'm just starting, I think you can help
me.

I'm having my first experiences in creating extended flex components
and I realized that a complex component (like a TitleWindow) is
composed of internal simple components (taking the TitleWindow
example, we have a titlebar)

I'd like to know WHERE I can find information about details of the
composition of a flex component. I mean, what components form a
DataGrid for instance?

With the examples I menaged to get, I already know how to manipulate
internal components to generate an extended one.

Thanks in advance

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br


[flexcoders] Re: TileList using itemRenderer showing wrong data after resize or heavy use - R

2007-05-08 Thread Justin
Not sure if this is related, as i havent seen the source, but maybe
some source samples would help (just to look through the code not run).

ItemRenderes are built based on the amount of visible Items.

I think the problem you'll find here, and that i had to work around,
is that with List components ItemRenderers will not actually remove
themselves from the component when it is resized or altered, instead
it only removes the renderers it does not need anymore or adds the
extra renderers that are needed.

This means that if the data in an item renderer changes it needs to be
explictly updated, so updating the source of your item renderer by
overriding the data setter or something similar.  do you have binding
in your ItemRenderer?

Was this of any help?


Regards,

Justin





[flexcoders] Re: Alpha not fading lable.

2007-05-08 Thread Justin

If in the case that you are trying to fade a label, or another text
component, using an effect, you put a slight BlurFilter on the label.
By doing this before you fade it out it will almost rasterize the font
and fade effects will be able to be applied.

Regards,

Justin



[flexcoders] Properties file and Flash Security

2007-05-08 Thread alehrens
I would like to store two URLs in a properties file and read them in
at startup.  While I have implemented this successfully, there remains
one issue that I cannot get around.  

When the flex app looks to read the properties file, flash security
gets into the way and I have to go to the flash security manager and
give the app access to the local property file. 
(http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html)


My problem is...the machine I'll be tossing all this on...it will be
disconnected from the Internet.  So, I won't be able to get to that
page correct?  So how do I give myself access to that local property file?

Can this be done?

PLEASE HELP!

Aaron
 



Re: [flexcoders] Alpha not fading lable.

2007-05-08 Thread André Rodrigues Pena

can you give me an example of how to embed a font?


On 5/8/07, Michael Schmalle <[EMAIL PROTECTED]> wrote:


  Did you embed the font?

Non embedded fonts will not respond to alphas.

The only work around is using a dissolve with the parents background
color.

Peace, Mike

On 5/8/07, Ian Skinner <[EMAIL PROTECTED]> wrote:
>
>   Am I attempting to use the alpha property incorrectly?
>
>  text="{draws.currentItem.R_MOB_MNAME}"
>
> toolTip="{draws.currentItem.R_MDL_MOBLID}
{
> draws.currentItem.R_MOB_MNAME}
AM:
> {draws.currentItem.R_RCT_NAME}"
> width="100%" minWidth="0"
> truncateToFit="true"/>
>
> I expected this to produce an almost invisible text. Nothing changed.
>
>


--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.
 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Re: Posted a Free Progress / Loader Component

2007-05-08 Thread helihobby

Gotta connect the above link ... or Just go to the Adobe Flex 
Exchange ... uploaded last night.

As always, Thank you for all the help and support.

Regards,

Sean - http://www.HeliHobby.com

P.S.

You can read my solution for Flex Component communication here:

http://www.helihobby.com/html/alon_desingpattern.html


--- In flexcoders@yahoogroups.com, "helihobby" <[EMAIL PROTECTED]> wrote:
>
> Just a quicky loader for you Flex Lovers:
> 
> http://www.adobe.com/cfusion/exchange/index.cfm?
> view=sn101&yourExID=uploads#loc=en_us&view=sn611&viewName=%
> 20&authorid=0&page=0&scrollPos=0&subcatid=0&snid=sn611&itemnumber=-
> 1&extid=1183518&catid=0&yourExID=uploads
> 
> 
> As always, Thank you for all the help and support.
> 
> Regards,
> 
> Sean - http://www.HeliHobby.com
> 
> P.S.
> 
> You can read my solution for Flex Component communication here:
> 
> http://www.helihobby.com/html/alon_desingpattern.html
>




[flexcoders] How to scroll DataGrid to bottom ?

2007-05-08 Thread helihobby

Anyone can post a quick tip on how to always keep datagrid scrolled to 
bottom ?

As always, Thank you for all the help and support.

Regards,

Sean - http://www.HeliHobby.com

P.S.

You can read my solution for Flex Component communication here:

http://www.helihobby.com/html/alon_desingpattern.html




[flexcoders] Posted a Free Progress / Loader Component

2007-05-08 Thread helihobby
Just a quicky loader for you Flex Lovers:

http://www.adobe.com/cfusion/exchange/index.cfm?
view=sn101&yourExID=uploads#loc=en_us&view=sn611&viewName=%
20&authorid=0&page=0&scrollPos=0&subcatid=0&snid=sn611&itemnumber=-
1&extid=1183518&catid=0&yourExID=uploads


As always, Thank you for all the help and support.

Regards,

Sean - http://www.HeliHobby.com

P.S.

You can read my solution for Flex Component communication here:

http://www.helihobby.com/html/alon_desingpattern.html




RE: [flexcoders] Add a node to a tree programatically

2007-05-08 Thread Tracy Spratt
And here is a kinda complicated example of tree node manipulation:

http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
D=544

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Robinson
Sent: Tuesday, May 08, 2007 12:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Add a node to a tree programatically

 

I'm running out the door but here's a quickie example. Note.. I'm not 
quite sure about adding a node while there is no node selected (aka, 
how to set selectedNode to the root node of the tree)


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



























On May 7, 2007, at 6:28 PM, Alejandro Narancio wrote:

> Guys,
>
> I want to add a node programatically to a tree using ActionScript, 
> anybodoy know how can I do that?
>
> Thanks in advance,
> Alex

 



[flexcoders] passing JavaScript Variable to flex enbed swf

2007-05-08 Thread jolugarciado
Hello:

I want to ask you if you know a way to pass a dinamic variable
generated by a function in JavaScript. Not a constant variable like in
the example below (cause flex always catch “HELLO” and no other
strings generated by a javaScript)


I try modifying the AC_FL_RunContent directly in the HTML

AC_FL_RunContent(   
"flashvars",'testvar=HELLO 
&historyUrl=history.htm%3F&lconid=' +
lc_id + '',
);


What I have to do to pass a random string for example???. testvar =
(”hello” or “foo” or “bar”) 



Re: [flexcoders] newb need help with states

2007-05-08 Thread Derrick Anderson
that is awesome, thanks for the tip!

d.

- Original Message 
From: Manish Jethani <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, May 8, 2007 4:41:42 PM
Subject: Re: [flexcoders] newb need help with states









  



On 5/9/07, Derrick Anderson  wrote:



> SO.. if my default state needs to hide a panel (removeChild) that gets added

> in state 2, how do you do it?



In your state 2, you add the object. In your base state, you do

nothing -- the object added in state 2 will get removed automatically.

Any changes specific to a state are "rolled back" once you get out of

that state.




  















__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: [flexcoders] AMF Netconnection calls

2007-05-08 Thread Bjorn Schultheiss

I think there is a timeout setting in the java remoting config xml.


On 09/05/2007, at 3:46 AM, Austin Kottke wrote:


Hi, I'm doing a remoting to call to a j2ee service. The service takes
about a total
of 15 seconds to run. The problem is the call is made, it executes the
java call, but because the
call is still processing there is no 'return' value to the remoting
gateway so it gives me a Netconnection.call.failed
status.

Even though it successfully called the service. Any ideas?

And then when the java call finally finishes and returns the status  
this

doesnt show up in a responder object. There
is no output as it seems like the connection stops waiting...

Best, austin




Regards,

Bjorn Schultheiss
Senior Developer

Personalised Communication Power

Level 2, 31 Coventry St.
South Melbourne 3205,
VIC Australia

T:  +61 3 9674 7400
F:  +61 3 9645 9160
W:  http://www.qdc.net.au

((This transmission is confidential and intended solely  
for the person or organization to whom it is addressed. It may  
contain privileged and confidential information. If you are not the  
intended recipient, you should not copy, distribute or take any  
action in reliance on it. If you believe you received this  
transmission in error, please notify the sender.---))




Re: [flexcoders] AVM1Movie wrong size

2007-05-08 Thread Bjorn Schultheiss
The stage object of the AVM1Movie object may have the values your  
looking for.



On 09/05/2007, at 3:32 AM, Alex Harui wrote:



If you are using SWFLoader, make sure scaleContent="false"

From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of richard druce

Sent: Monday, May 07, 2007 6:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AVM1Movie wrong size

Hi,

I am loading an swf as an AVM1Movie from an external site. It  
appears as
though its coming out larger than its width and height indicate it  
should
be. I've tried drawing a rectangle over the top of it using the  
same width

and height but it appears to be smaller. I'm sure this shouldn't be
happening so I was wandering if anyone had encountered a similar issue
before (the scaleX and scaleY are 1 also). Any help is much  
appreciated.


cheers,
Richard.

__
Advertisement: Win a trip to the exquisite Daintree Ecolodge & Spa in
Cairns, QLD!
http://ninemsn.com.au/share/redir/adTrack.asp? 
mode=click&clientID=781&referral=hotmailtaglineMay&URL=http:// 
music.ninemsn.com.au/compIntro.aspx?compId=2386







Regards,

Bjorn Schultheiss
Senior Developer

Personalised Communication Power

Level 2, 31 Coventry St.
South Melbourne 3205,
VIC Australia

T:  +61 3 9674 7400
F:  +61 3 9645 9160
W:  http://www.qdc.net.au

((This transmission is confidential and intended solely  
for the person or organization to whom it is addressed. It may  
contain privileged and confidential information. If you are not the  
intended recipient, you should not copy, distribute or take any  
action in reliance on it. If you believe you received this  
transmission in error, please notify the sender.---))




Re: [flexcoders] Alpha not fading lable.

2007-05-08 Thread Michael Schmalle

Did you embed the font?

Non embedded fonts will not respond to alphas.

The only work around is using a dissolve with the parents background color.

Peace, Mike

On 5/8/07, Ian Skinner <[EMAIL PROTECTED]> wrote:


  Am I attempting to use the alpha property incorrectly?



I expected this to produce an almost invisible text. Nothing changed.

 





--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] Alpha not fading lable.

2007-05-08 Thread Ian Skinner
Am I attempting to use the alpha property incorrectly?



I expected this to produce an almost invisible text.  Nothing changed.





[flexcoders] Total dynamicaly filtered content

2007-05-08 Thread Ian Skinner
I'm displaying lists of events, and need to provide a total of certain 
values contained in each event.  The display also contains controls to 
filter what events are shown and the totals need to honor these filters.

I have the following code that works in initial display, but does not 
update when filters are applied.  How does one dynamically bind to a 
"function" instead of a discrete value?

protected function staffDayTotal(day:Object):int
{
   var staffTot:int = 0;

   for (var i:int = 0; i < day.drawsQry.length; i++)
   {
 if (parentApplication.filterDraws(day.drawsQry[i]))
   staffTot = staffTot + day.drawsQry[i].R_MDL_STFCNT;
   }

   return staffTot;
}

...




[flexcoders] TileList using itemRenderer showing wrong data after resize or heavy use - RESENDING

2007-05-08 Thread Pat Buchanan

I'll try to explain this in as few as words as possible  I'll provide more
detail as needed.

I have a TileList with a custom itemRenderer.  There is an image and label
in the renderer.  The TileList is located inside an HDividedBox.  Sometimes
when you resize the HDividedBox, **some** images don't match their label
anymore.  This also happens when scrolling too quickly or too much.
Verified on multiple machines.

The only thing I found Googling is this:
http://viconflex.blogspot.com/2006/12/doubleclickenabled-other-little-flex.html

It only says: "Having issues with the custom Item Renderer in your TileList
not updating when the underlying data changes? Make sure you're not using an
ArrayCollection, it doesn't quite work every time."

Vic has some great articles, but no fix for this one in particular.

It will be very hard to provide a working source set for this, since the
image is being loaded via a URL call (
http://www.domain.com/getImage.cfm?image_id=1)

Any thoughts  Help!

Thanks Flexers!
-Pat Buchanan
-DataNotion

(This is my 2nd time sending this email to the list group - it's been over 4
hours and it still hasn't shown up yet...)


Re: [flexcoders] Using Hibernate Association on Data Grid

2007-05-08 Thread Dave Carabetta

It sounds like you need a labelFunction for the DataGridColumn:

private function userNameLabelFunction( item : Object ) : String
{
  return item.firstName + ' ' + item.lastName;
}

and then in your DataGridColumn, just add this to the column's definition:

labelFunction="userNameLabelFunction"

Obviously, I don't know the setup of your Users object, so firstName and
lastName might not be appropriate, but hopefully you get the point and can
adapt the field references as appropriate.

Regards,
Dave.
Cynergy Systems, Inc.


On 5/8/07, headjoog <[EMAIL PROTECTED]> wrote:


  Hello - new on this group and to flex and was hoping for some
feedback...

I've been able to get a simple one-to-many association configured in
FDS and Hibernate. One table has Users, the other a list of records
that users created. I have a data grid that shows the list of records.
The list of records is returned correctly, but under the "createuser"
field where the user name should be displayed I get "[object Users]"
(which is the class that contains the user info). And I can't get
either the user id or the user name (which is what I really want)
diplayed in the grid.

How do you display the user in Flex? I have simple POJOs, have the AS
classes, and no errors in my logs. Can somebody clue me in?
I'll post some code snips if necessary.

 



RE: [flexcoders] Re: Parent not talking to Children

2007-05-08 Thread Alex Harui
Are you listening to the container that is being hidden?  You can listen
at the systemManager, get all hides and see which ones affect your
parents if you want.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt
Sent: Tuesday, May 08, 2007 2:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Parent not talking to Children



--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Only the thing being hidden dispatches an event. The children do not
> dispatch their own event, nor do their visible properties get set to
> false even though they are now visible.
> 
> You can use "capture" phase listeners to see changes in all children
of
> a display object.
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Matt
> Sent: Tuesday, May 08, 2007 1:39 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Parent not talking to Children
> 
> 
> 
> --- In flexcoders@yahoogroups.com


> , "Matt"  wrote:
> >
> > When a container gets hidden shouldn't it throw a hide event to the
> > children? I have a TitledWindow and a Canvas inside it and when I
set
> > visible to false on the TitledWindow I can't seem to capture
anything
> > on the Canvas telling me it was hidden, it just disappears.
> > 
> > Can anyone either explain a work-around or the error in my logic?
> >
> 
> Any insights on this would be appreciated. The purpose of this is to
> monitor any changes to the component to propagate to an IFrame (yes,
> another web browser implementation).
>
I've tried to do this with addEventListener(FlexEvent.HIDE, onHide,
true) to my child but it never receives an event.



 


RE: [flexcoders] Re: Actionscript accessing array of objects problem

2007-05-08 Thread Alex Harui
So far, each thing in edges is an empty object, so there is nothing to
iterate.  How do the items get into the edges sub-objects?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of TCash21
Sent: Tuesday, May 08, 2007 2:04 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Actionscript accessing array of objects
problem



_edges[item.id] = new Object();

This is not my code by the way, I'm using someone else's. 

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> How do you populate edges?
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of TCash21
> Sent: Tuesday, May 08, 2007 12:48 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Actionscript accessing array of objects problem
> 
> 
> 
> Hi all,
> I'm having a problem accessing the items in an "array of Items"
> Here's the code that initializes it
> 
> private var _edges: Object = new Object(); // map of id -> (map of id
> -> 0)
> 
> Here's the function that returns the array
> /*** Get an array of all the items that a given item is linked to.
> *
> * @param id any String
> *
> * @return an array of Items
> */
> 
> public function neighbors(id: String): Object {
> return _edges[id];
> }
> 
> I've tried using 
> for each (var i:Item in items.neighbors(id))
> {
> statements...
> }
> 
> I can't seem to access the items at all. I've also tried omitting the
> 'each'. 
> 
> Any ideas?
> Thank you!
>



 


[flexcoders] Re: Absolutely forcing chart to redraw

2007-05-08 Thread carl_steinhilber
Simon,
Could be. Though I just tried invalidating the chart, the parent panel
and the stage, in bubble-up order:
   chart.invalidateDisplayList();
   panel.invalidateDisplayList();
   stage.invalidate();
and threw validateNow()'s in there on the same components for good
measure... and still no joy.

Let me know if it works for you.

I did find another example of an itemRenderer somewhere that
implemented a handler for a dataChange event. But it was an
itemRenderer for a datagrid item, and the event was never dispatched
when used in a chart.


--- In flexcoders@yahoogroups.com, "simonjpalmer" <[EMAIL PROTECTED]>
wrote:
>
> I have been grappling with a similar issue.  I put this down a week or
> so ago but I was next going to try and invalidate the stage and see
> what happened.  Something along the lines of Stage.invalidate(). 
> Worth a try.
> 
>
> --- In flexcoders@yahoogroups.com, "carl_steinhilber"
>  wrote:
> >
> > I asked this earlier and didn't get any response... but I think maybe
> > I hijacked another thread, so I'll ask again as it's own topic.
> > 
> > I have a PlotChart that uses a custom itemRenderer. The dataProvider
> > bound to the chart has objects with the keys:
> >- xAxis:Number, which translates to the position on the xAxis of
> > the chart (-10 to 10), as the value moves to negative, the items color
> > changes from green to orange to red
> >- yAxis:Number, which translates to the position on the yAxis of
> > the chart (-10 to 10), as the value moves to negative, the items color
> > changes from green to orange to red
> >- size:Number, which translates to the size of the item (diameter
> > of circle)
> >- visible:Boolean, which determines whether the item is actually
> > plotted on the chart or not
> > 
> > At runtime, the chart initially loads exactly as expected (items the
> > correct size, color and position). Then if I update the values for
> > xAxis and/or yAxis, the item moves on the chart as expected (though if
> > it moves from a positive value to negative value on either axis, the
> > color remains green). 
> > But if I update the value for size it doesn't update the item on the
> > chart, and if I update visible to false the item remains visible.
> > 
> > Obviously the data setter function in my itemRenderer class is not
> > called when I expect.
> > 
> > Also, if I completely replace the dataProvider with a new object, item
> > 1 retains the color and size of item 1 in the old data, and so on.
> > 
> > I've tried explicitly calling invalidateDisplayList() and
> > validateNow() on the chart, but it seems to just run the
> > updateDisplayList(). This makes some sense... I guess set data is only
> > run when the chart is first initialized. Seems like I really want the
> > bulk of the logic that's currently in the data setter to be in the
> > updateDisplayList() function... but I don't seem to have access to the
> > dataProvider data in that function.
> > 
> > How do I force the chart to rerun the renderer for the item(s) with
> > updated data? Or, conversely, how do I get at dataProvider values from
> > the updateDisplayList() function in the class?
> > 
> > Any help would be appreciated.
> > 
> > Thanks in advance!
> > -Carl




[flexcoders] Re: Parent not talking to Children

2007-05-08 Thread Matt
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Only the thing being hidden dispatches an event.  The children do not
> dispatch their own event, nor do their visible properties get set to
> false even though they are now visible.
>  
> You can use "capture" phase listeners to see changes in all children of
> a display object.
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Matt
> Sent: Tuesday, May 08, 2007 1:39 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Parent not talking to Children
> 
> 
> 
> --- In flexcoders@yahoogroups.com 
> , "Matt"  wrote:
> >
> > When a container gets hidden shouldn't it throw a hide event to the
> > children? I have a TitledWindow and a Canvas inside it and when I set
> > visible to false on the TitledWindow I can't seem to capture anything
> > on the Canvas telling me it was hidden, it just disappears.
> > 
> > Can anyone either explain a work-around or the error in my logic?
> >
> 
> Any insights on this would be appreciated. The purpose of this is to
> monitor any changes to the component to propagate to an IFrame (yes,
> another web browser implementation).
>
I've tried to do this with addEventListener(FlexEvent.HIDE, onHide,
true) to my child but it never receives an event.



[flexcoders] Re: Actionscript accessing array of objects problem

2007-05-08 Thread TCash21
_edges[item.id] = new Object();

This is not my code by the way, I'm using someone else's.  


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> How do you populate edges?
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of TCash21
> Sent: Tuesday, May 08, 2007 12:48 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Actionscript accessing array of objects problem
> 
> 
> 
> Hi all,
> I'm having a problem accessing the items in an "array of Items"
> Here's the code that initializes it
> 
> private var _edges: Object = new Object(); // map of id -> (map of id
> -> 0)
> 
> Here's the function that returns the array
> /*** Get an array of all the items that a given item is linked to.
> *
> * @param id any String
> *
> * @return an array of Items
> */
> 
> public function neighbors(id: String): Object {
> return _edges[id];
> }
> 
> I've tried using 
> for each (var i:Item in items.neighbors(id))
> {
> statements...
> }
> 
> I can't seem to access the items at all. I've also tried omitting the
> 'each'. 
> 
> Any ideas?
> Thank you!
>




RE: [flexcoders] Extending ArrayCollection - where'd my 'source' go?

2007-05-08 Thread Alex Harui
Timing?  Maybe source isn't set yet when you are referring to it?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Stroz
Sent: Tuesday, May 08, 2007 12:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Extending ArrayCollection - where'd my 'source'
go?



I am attempting to cerate a custom class based on ArrayCollection.

I can create a new collection based on this new class without issue.

Anytime I refer to 'this.source.length' inside my class file, it returns
0.  However, if I create a new arrayCollection, based on my custom
class, in an MXML file, and bind { myAc.source.length} to a text bock,
it displays the correct information.  I can even set the new collection
to the dataProvider of a dataGrid and everything displays as expected.

Anyone have any ideas of what I may be doing wrong? 

Thanx in advance.

-- 
Scott Stroz
Software Architect
AboutWeb, LLC
http://www.aboutweb.com   

 


RE: [flexcoders] Actionscript accessing array of objects problem

2007-05-08 Thread Alex Harui
How do you populate edges?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of TCash21
Sent: Tuesday, May 08, 2007 12:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Actionscript accessing array of objects problem



Hi all,
I'm having a problem accessing the items in an "array of Items"
Here's the code that initializes it

private var _edges: Object = new Object(); // map of id -> (map of id
-> 0)

Here's the function that returns the array
/*** Get an array of all the items that a given item is linked to.
*
* @param id any String
*
* @return an array of Items
*/

public function neighbors(id: String): Object {
return _edges[id];
}

I've tried using 
for each (var i:Item in items.neighbors(id))
{
statements...
}

I can't seem to access the items at all. I've also tried omitting the
'each'. 

Any ideas?
Thank you!



 


RE: [flexcoders] Re: Parent not talking to Children

2007-05-08 Thread Alex Harui
Only the thing being hidden dispatches an event.  The children do not
dispatch their own event, nor do their visible properties get set to
false even though they are now visible.
 
You can use "capture" phase listeners to see changes in all children of
a display object.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt
Sent: Tuesday, May 08, 2007 1:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Parent not talking to Children



--- In flexcoders@yahoogroups.com 
, "Matt" <[EMAIL PROTECTED]> wrote:
>
> When a container gets hidden shouldn't it throw a hide event to the
> children? I have a TitledWindow and a Canvas inside it and when I set
> visible to false on the TitledWindow I can't seem to capture anything
> on the Canvas telling me it was hidden, it just disappears.
> 
> Can anyone either explain a work-around or the error in my logic?
>

Any insights on this would be appreciated. The purpose of this is to
monitor any changes to the component to propagate to an IFrame (yes,
another web browser implementation).



 


[flexcoders] IE Tab Key Bug?

2007-05-08 Thread wwwpl
I have found some odd behavior in Internet Explorer 6 and 7.  I have an 
application where I use a popup dialog.  Once the popup dialog is up, I 
tab around the fields.  The cursor jumps to the url address field in IE 
and back to the dialog.  It won't go to the next field in the form.  I 
try to click on the fields, but the focus does not stay in the field.  
It goes back to IE.  Has anyone seen this type of behavior?  It seems 
to only happen in the Popup.  The popup class is a TitleWindow.





[flexcoders] Re: Parent not talking to Children

2007-05-08 Thread Matt
--- In flexcoders@yahoogroups.com, "Manish Jethani"
<[EMAIL PROTECTED]> wrote:
>
> On 5/9/07, Matt <[EMAIL PROTECTED]> wrote:
> > When a container gets hidden shouldn't it throw a hide event to the
> > children?  I have a TitledWindow and a Canvas inside it and when I set
> > visible to false on the TitledWindow I can't seem to capture anything
> > on the Canvas telling me it was hidden, it just disappears.
> 
> How are you listening for the hide event?
>
It's a customer component that extends Canvas an in the constructor I
call: this.addEventListener(FlexEvent.HIDE, onHide, true);

If I explicitly set that component's visibility to false it works as
expected, but if I have it in a container that I hide it does not get
an event at all.



[flexcoders] Re: Parent not talking to Children

2007-05-08 Thread Matt
--- In flexcoders@yahoogroups.com, "Matt" <[EMAIL PROTECTED]> wrote:
>
> When a container gets hidden shouldn't it throw a hide event to the
> children?  I have a TitledWindow and a Canvas inside it and when I set
> visible to false on the TitledWindow I can't seem to capture anything
> on the Canvas telling me it was hidden, it just disappears.
> 
> Can anyone either explain a work-around or the error in my logic?
>

Any insights on this would be appreciated. The purpose of this is to
monitor any changes to the component to propagate to an IFrame (yes,
another web browser implementation).



Re: [flexcoders] newb need help with states

2007-05-08 Thread Manish Jethani
On 5/9/07, Derrick Anderson <[EMAIL PROTECTED]> wrote:

> SO.. if my default state needs to hide a panel (removeChild) that gets added
> in state 2, how do you do it?

In your state 2, you add the object. In your base state, you do
nothing -- the object added in state 2 will get removed automatically.
Any changes specific to a state are "rolled back" once you get out of
that state.


Re: [flexcoders] Parent not talking to Children

2007-05-08 Thread Manish Jethani
On 5/9/07, Matt <[EMAIL PROTECTED]> wrote:
> When a container gets hidden shouldn't it throw a hide event to the
> children?  I have a TitledWindow and a Canvas inside it and when I set
> visible to false on the TitledWindow I can't seem to capture anything
> on the Canvas telling me it was hidden, it just disappears.

How are you listening for the hide event?


Re: [flexcoders] Building flex apps with Maven 2?

2007-05-08 Thread Thijs Triemstra | Collab

Hi Christian,

here's somebody that wrote ant scripts for the html-template creation  
and I think you will be able to figure it out for maven with that info..


http://mxdj.sys-con.com/read/310378.htm

Good to hear you're moving it over to google, thanks!

Thijs


On May 8, 2007, at 10:14 PM, Christian Gruber wrote:


So the irony is that I'm actually not a flex developer - I built this
for others who needed it, so I'm actually a little unclear as to how
that template works. I can probably implement it as long as it is
possible to do so from the flex mxmlc or compc command line
compilers, which the flex maven plugin uses.

Christian.

P.S. By the way, I'll be likely moving the whole project over to
code.google.com or something so people can start checking out the
source for themselves if they want instead of the limited source
packaging that maven does automagically. -cg

On May 8, 2007, at 3:53 PM, Sterling, Brian wrote:

> Cool. So the situation is better than I thought.
>
>
>
> I did get a simple compilation to work using your plugin.
>
>
>
> One thing I couldn't figure out is how to apply the html-template
> the way Flex Builder does. Any suggestions?
>
>
>
> 
>
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of Christian Gruber
> Sent: Tuesday, May 08, 2007 8:25 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Building flex apps with Maven 2?
>
>
>
> Actually, maven-flex2-plugin from israfil does - it's me, and I have
> others offering to help - I just need to set up some infrastructure
> to do so. I just released 1.0 (quietly) last week and will probably
> do a 1.1 soon with some fixes and a few extra features. The  
plugin is

> available on repo1/ibiblio's maven repository.
>
> You can use the maven-flex2-plugin with cairngorm, as long as you  
can

> install the cairngorm code as a .swc in your repository (I haven't
> worked with Cairngorm yet, so I don't know how it's packaged).
>
> the current plugin can use .swc dependencies and now .swc's can be
> built to consume the .flexLibProperties file which instructs the
> compiler what classes/resources to include in the .swc, so shared
> image directories, shared .css files, etc. are all possible.
>
> Christian.
>
> On May 7, 2007, at 9:24 PM, Brian Sterling wrote:
>
>> I found some old posts about the Israfil plugin
>> http://www.israfil.net/projects/mojo/maven-flex2-plugin/ > www.israfil.net/projects/mojo/maven-flex2-plugin/>
>> and found the ServeBox Maven2Flex2 plugin
>> http://sourceforge.net/projects/mvnflex2plugin > sourceforge.net/projects/mvnflex2plugin>
>> from the wikipedia article on Flex.
>>
>> Neither one seems to have an especially active developer community.
>>
>> Any suggestions on how I should be building a multiple-module  
project

>> with third-party dependencies (e.g. Cairngorm) with Maven 2?
>>
>> It sounds like several of us are interested in this - maybe it's  
time

>> to collaborate on building up one of these plugins (or start a new
>> one?).
>>
>> -Brian
>>
>
> christian gruber + [EMAIL PROTECTED]  40israfil.net> + bus 905.640.1119 + mob
> 416.998.6023
> process coach and architect + ISRÁFÍL CONSULTING SERVICES
>
>
>

christian gruber + [EMAIL PROTECTED] + bus 905.640.1119 + mob
416.998.6023
process coach and architect + ISRÁFÍL CONSULTING SERVICES







Re: [flexcoders] Strike through text?

2007-05-08 Thread Manish Jethani
On 5/9/07, Ian Skinner <[EMAIL PROTECTED]> wrote:
> Is it possible to strike (line) through text in Flex?
>
> I tried
> 
>.cancled {text-decoration: line-through;}
> 
>
> text="{draws.currentItem.R_MOB_MNAME}"
>styleName="cancled"/>

Strikethrough is not supported on the Flex text components. Not
directly anyway. You can use htmlText though and assign a StyleSheet
to the component. See the StyleSheet class (in the API docs) and the
styleSheet property.


Re: [flexcoders] Building flex apps with Maven 2?

2007-05-08 Thread Christian Gruber
So the irony is that I'm actually not a flex developer - I built this  
for others who needed it, so I'm actually a little unclear as to how  
that template works.  I can probably implement it as long as it is  
possible to do so from the flex mxmlc or compc command line  
compilers, which the flex maven plugin uses.

Christian.

P.S. By the way, I'll be likely moving the whole project over to  
code.google.com or something so people can start checking out the  
source for themselves if they want instead of the limited source  
packaging that maven does automagically. -cg

On May 8, 2007, at 3:53 PM, Sterling, Brian wrote:

> Cool.  So the situation is better than I thought.
>
>
>
> I did get a simple compilation to work using your plugin.
>
>
>
> One thing I couldn't figure out is how to apply the html-template  
> the way Flex Builder does.  Any suggestions?
>
>
>
> 
>
> From: flexcoders@yahoogroups.com  
> [mailto:[EMAIL PROTECTED] On Behalf Of Christian Gruber
> Sent: Tuesday, May 08, 2007 8:25 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Building flex apps with Maven 2?
>
>
>
> Actually, maven-flex2-plugin from israfil does - it's me, and I have
> others offering to help - I just need to set up some infrastructure
> to do so. I just released 1.0 (quietly) last week and will probably
> do a 1.1 soon with some fixes and a few extra features. The plugin is
> available on repo1/ibiblio's maven repository.
>
> You can use the maven-flex2-plugin with cairngorm, as long as you can
> install the cairngorm code as a .swc in your repository (I haven't
> worked with Cairngorm yet, so I don't know how it's packaged).
>
> the current plugin can use .swc dependencies and now .swc's can be
> built to consume the .flexLibProperties file which instructs the
> compiler what classes/resources to include in the .swc, so shared
> image directories, shared .css files, etc. are all possible.
>
> Christian.
>
> On May 7, 2007, at 9:24 PM, Brian Sterling wrote:
>
>> I found some old posts about the Israfil plugin
>> http://www.israfil.net/projects/mojo/maven-flex2-plugin/ > www.israfil.net/projects/mojo/maven-flex2-plugin/>
>> and found the ServeBox Maven2Flex2 plugin
>> http://sourceforge.net/projects/mvnflex2plugin > sourceforge.net/projects/mvnflex2plugin>
>> from the wikipedia article on Flex.
>>
>> Neither one seems to have an especially active developer community.
>>
>> Any suggestions on how I should be building a multiple-module project
>> with third-party dependencies (e.g. Cairngorm) with Maven 2?
>>
>> It sounds like several of us are interested in this - maybe it's time
>> to collaborate on building up one of these plugins (or start a new
>> one?).
>>
>> -Brian
>>
>
> christian gruber + [EMAIL PROTECTED]  40israfil.net>  + bus 905.640.1119 + mob
> 416.998.6023
> process coach and architect + ISRÁFÍL CONSULTING SERVICES
>
>
>

christian gruber + [EMAIL PROTECTED] + bus 905.640.1119 + mob  
416.998.6023
process coach and architect + ISRÁFÍL CONSULTING SERVICES




[flexcoders] Strike through text?

2007-05-08 Thread Ian Skinner
Is it possible to strike (line) through text in Flex?

I tried

   .cancled {text-decoration: line-through;}




No luck there.


[flexcoders] Parent not talking to Children

2007-05-08 Thread Matt
When a container gets hidden shouldn't it throw a hide event to the
children?  I have a TitledWindow and a Canvas inside it and when I set
visible to false on the TitledWindow I can't seem to capture anything
on the Canvas telling me it was hidden, it just disappears.

Can anyone either explain a work-around or the error in my logic?



RE: [flexcoders] Building flex apps with Maven 2?

2007-05-08 Thread Sterling, Brian
Cool.  So the situation is better than I thought.

 

I did get a simple compilation to work using your plugin.

 

One thing I couldn't figure out is how to apply the html-template the way Flex 
Builder does.  Any suggestions?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Christian Gruber
Sent: Tuesday, May 08, 2007 8:25 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Building flex apps with Maven 2?

 

Actually, maven-flex2-plugin from israfil does - it's me, and I have 
others offering to help - I just need to set up some infrastructure 
to do so. I just released 1.0 (quietly) last week and will probably 
do a 1.1 soon with some fixes and a few extra features. The plugin is 
available on repo1/ibiblio's maven repository.

You can use the maven-flex2-plugin with cairngorm, as long as you can 
install the cairngorm code as a .swc in your repository (I haven't 
worked with Cairngorm yet, so I don't know how it's packaged).

the current plugin can use .swc dependencies and now .swc's can be 
built to consume the .flexLibProperties file which instructs the 
compiler what classes/resources to include in the .swc, so shared 
image directories, shared .css files, etc. are all possible.

Christian.

On May 7, 2007, at 9:24 PM, Brian Sterling wrote:

> I found some old posts about the Israfil plugin
> http://www.israfil.net/projects/mojo/maven-flex2-plugin/ 
>  
> and found the ServeBox Maven2Flex2 plugin
> http://sourceforge.net/projects/mvnflex2plugin 
>  
> from the wikipedia article on Flex.
>
> Neither one seems to have an especially active developer community.
>
> Any suggestions on how I should be building a multiple-module project
> with third-party dependencies (e.g. Cairngorm) with Maven 2?
>
> It sounds like several of us are interested in this - maybe it's time
> to collaborate on building up one of these plugins (or start a new
> one?).
>
> -Brian
>

christian gruber + [EMAIL PROTECTED]   + bus 
905.640.1119 + mob 
416.998.6023
process coach and architect + ISRÁFÍL CONSULTING SERVICES

 



[flexcoders] Actionscript accessing array of objects problem

2007-05-08 Thread TCash21
Hi all,
I'm having a problem accessing the items in an "array of Items"
Here's the code that initializes it

private var _edges: Object = new Object(); // map of id -> (map of id
-> 0)


Here's the function that returns the array
/***  Get an array of all the items that a given item is linked to.
*
*  @param id any String
*
*  @return an array of Items
*/

public function neighbors(id: String): Object {
return _edges[id];
}

I've tried using 
for each (var i:Item in items.neighbors(id))
{
   statements...
}

I can't seem to access the items at all.  I've also tried omitting the
'each'.  

Any ideas?
Thank you!



[flexcoders] Re: Keyboarding up/down editable columns in Datagrid

2007-05-08 Thread Mike_Robinson_98
That's worth a try. It will probably tonight or tomorrow b4 I can get to
it but I'll post the results here. Thanks for the info.
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Maybe.  If you force too many updates on the DG, it might close out
the
> edit session.  It might be worth trying it w/o your endEdit logic to
see
> if that is causing the focus issue.
>
> If on some keystroke you simply set editedItemPosition, the code says
> that it will dispatch ITEM_EDIT_END before trying to set the editor to
> the new place.
>
> -Alex
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Mike_Robinson_98
> Sent: Tuesday, May 08, 2007 9:43 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Keyboarding up/down editable columns in
> Datagrid
>
>
>
> I need to handle the endEdit event to do some data massaging on the
> input as well as update other values based on that input value.
> Besides, it seems to me that the end result would be the same whether
I
> handled endEdit or the DG handled endEdit, that is losing of focus in
> the new cell. Yes?
>
> --- In flexcoders@yahoogroups.com

> , "Alex Harui" aharui@ wrote:
> >
> > What are you using the endEdit for? You should just let the DG call
> it
> > when you change editedItemPosition.
> >
> > 
> >
> > From: flexcoders@yahoogroups.com

> [mailto:flexcoders@yahoogroups.com

> ]
> On
> > Behalf Of Mike_Robinson_98
> > Sent: Monday, May 07, 2007 9:02 PM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] Re: Keyboarding up/down editable columns in
> > Datagrid
> >
> >
> >
> > --- In flexcoders@yahoogroups.com
> 
> 
> > , "Mike_Robinson_98"
> > mike_robinson_98@ wrote:
> > >
> > > --- In flexcoders@yahoogroups.com
> 
> >  , "Manish Jethani"
> > >  wrote:
> > > >
> > > > On 5/8/07, Mike_Robinson_98  wrote:
> > > > > Has anyone come up with a good way to let a user move up/down
in
> > an
> > > > > editable column of a datagrid using the keyboard? These
columns
> > use a
> > > > > TextInput as the itemEditor.
> > > > >
> > > > > Right now I use a handler for the keyFocusChangeEvent on the
> > datagrid
> > > > > to handle TAB and Shift-TAB keys to move horizontally through
> the
> > > > > rows. However, moving up/down in the columns is more difficult
> > because
> > > > > the editor's TextInput captures the Return key and the
> > > > > TextFieldAutomationHelper class captures all the other
> interesting
> > > > > keystrokes (navigation keys like UP and DOWN arrows) and it
> > seems the
> > > > > DataGrid is only interested in the TAB key when it handles
> > focusChange
> > > > > events.
> > > >
> > > > This simple test worked for me:
> > > >
> > > > 
> > > > http://www.adobe.com/2006/mxml
> 
> >  > "
> > > > xmlns="*">
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > private function handleKeyDown():void
> > > > {
> > > > var v:Object = dg.editedItemPosition;
> > > > v.rowIndex++;
> > > > dg.editedItemPosition = v;
> > > > }
> > > > 
> > > > 
> > > >
> > > > Use the down arrow key to move from foo to bar.
> > > >
> > > Thanks a lot for the reply. That is a nice, simple solution.
> > >
> > > I have one more slight problem along this line maybe you could
shed
> > > some light on. In my app, I use the endEdit function for the
> datagrid.
> > > Unfortunately, although I move the focus to the column in the new
> row,
> > > the endEdit code gets call after this focus occurs and
consequently
> > > focus is lost. I have tried 'callLater' for the focus method but
> have
> > > the same result. Even, setup a timer to delay the focus for 200
ms.
> > > Still endedit come along and focus is lost. Have you or any other
> > > reader run into this issue?
> > >
> > Another note - actually, the setting of the focus is what is causing
> > the endedit event for the previous cell. Seems like a catch-22.
> > Setting the focus caused the endevent for the previous cell which
then
> > causes the current cell to lose focus. Again, I am probably making
> > things too complex.
> >
>




[flexcoders] Extending ArrayCollection - where'd my 'source' go?

2007-05-08 Thread Scott Stroz

I am attempting to cerate a custom class based on ArrayCollection.

I can create a new collection based on this new class without issue.

Anytime I refer to 'this.source.length' inside my class file, it returns 0.
However, if I create a new arrayCollection, based on my custom class, in an
MXML file, and bind { myAc.source.length} to a text bock, it displays the
correct information.  I can even set the new collection to the dataProvider
of a dataGrid and everything displays as expected.

Anyone have any ideas of what I may be doing wrong?

Thanx in advance.

--
Scott Stroz
Software Architect
AboutWeb, LLC
http://www.aboutweb.com


Re: [flexcoders] newb need help with states

2007-05-08 Thread Derrick Anderson
thank you for your reply, i did figure out that constraints are styles and 
solved that problem,  the other i resolved by getting rid of the 'visible' 
property altogether and using addChild and removeChild instead, although the 
logic behind removeChild is throwing me for a loop, my default state has a 
'removeChild' that errors because the state that adds that child has not been 
loaded (i get that) but when i switch states (which adds a child) then i switch 
back to the default state and i want what was added (addChild) to then be 
removed- since  i cannot put logic in mxml- i don't really know how to 
accomplish this properly.

SO.. if my default state needs to hide a panel (removeChild) that gets added in 
state 2, how do you do it?

- Original Message 
From: Manish Jethani <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, May 8, 2007 2:58:59 PM
Subject: Re: [flexcoders] newb need help with states









  



On 5/8/07, Derrick Anderson  wrote:



> 1) setting the 'right' property of a panel- i get an error saying that

> Container does not have that as a property.



"right" is a style. Use SetStyle instead.



> 2) setting the 'visible' property- i have found that no matter what i use as

> a target, the visible property is being applied to the entire application ,



No idea about this one. Spooky.




  















__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[flexcoders] Questions regarding printAsBitmap - true v.s. false

2007-05-08 Thread Mike Anderson
Hello All,

This printer setting seems obvious enough, and have played with the
settings pretty extensively - in order to compare my printer outputs
side-by-side.

The document in particular that I am trying to print, is primarily made
up of high-res images, and then in the middle of all that, a DataGrid
Control populated with 140 Rows.

Now if I try to print the document as Vector, I lose all of my Drop
Shadows - and the .png transparency no longer works.  Wherever there is
a Zero Alpha area on the .png, it shows up as Black on the printout.

Furthermore, if I try to print the document as Bitmap, I get my Drop
Shadows back as well as the transparencies, BUT the TEXT within the
DataGrid is no longer all the sharp & crisp.  It's not bad, but it's
absolutely beautiful when I print it all as Vector.  Also, the Images
too - are not as sharp as they were when printing as Vector.

In fact, the document overall, loses a bit of quality, whenever I send
it as a Bitmap.

Could somebody shed some light on this topic, and indicate if there is a
way for me to either get my .png transparencies to work when sending as
a Vector, OR how to get my Fonts to be sharper, when sending as a
Bitmap.

Thanks in advance for your help,

Mike


Re: [flexcoders] HTTPservice and Images

2007-05-08 Thread Manish Jethani
On 5/8/07, Denis <[EMAIL PROTECTED]> wrote:

> I'm developer and maintainer for the IIPImage software,
> iipimage.sf.net , and I would like to provide it with a flash viewer.
> I've started investigating httpservice and the result is not so good,
> I query the server for a jpeg image, the server send to me a jpeg but
> I get only the header!
[...]

I haven't looked at your code in detail, but it looks like you're
using an HTTPService to display an image in an Image component where
you can use the URL of the image directly.

 http://example.com/path/to/image.jpg"; />


Re: [flexcoders] Complex AS Objects to a file (serialization)

2007-05-08 Thread Manish Jethani
On 5/8/07, nxzone <[EMAIL PROTECTED]> wrote:
> How we can serialize a objects and save it to a file like xml?

 var bytes:ByteArray = new ByteArray();
 bytes.writeObject(myComplexObject);
 // write bytes to file


[flexcoders] Hibernate & AnnotationConfigurations

2007-05-08 Thread Kevin
Does anyone know if the FDS built-in HibernateAssembler can use  
annotations in the Java classes rather than the hbm.xml files?  If we  
do not have to generate/manage hbm.xml files from our annotated  
classes all the better!

Thanks, Kevin


Re: [flexcoders] newb need help with states

2007-05-08 Thread Manish Jethani
On 5/8/07, Derrick Anderson <[EMAIL PROTECTED]> wrote:

> 1) setting the 'right' property of a panel- i get an error saying that
> Container does not have that as a property.

"right" is a style. Use SetStyle instead.

> 2) setting the 'visible' property- i have found that no matter what i use as
> a target, the visible property is being applied to the entire application ,

No idea about this one. Spooky.


[flexcoders] Re: Flex and XSLT

2007-05-08 Thread Steven Lira
Have you made any progress on this?  I have a similar situation and 
I'm thinking that XSLT is probably the best solution for manipulating 
the current XML for display purposes.  I have flat xml data which 
needs to be presented in a hierarchical tree.

XML like:





Needs to be displayed in a tree as:

safety
--> homer
core operations
--> carl
--> lenny
CEO
--> monty

My thought is that xslt would be a potential solution versus custom 
coding.

If anyone else has any ideas, I'm listening.

Thanks,
Steven


--- In flexcoders@yahoogroups.com, "Jamie O" <[EMAIL PROTECTED]> 
wrote:
>
> I'm just beginning to experiment on thisWill post back any
> successful results I find on this.
> 
> --- In flexcoders@yahoogroups.com, "Leon Tanner"  wrote:
> >
> > Hi All,
> > 
> > Has anyone tried their hand at using XSLT to transform XML data 
to a
> > Flex interface?  
> > 
> > I have been given a piece of work that will involve me receiving 
XML
> > data (schema already exist) and make it presentable within a Flex 
app,
> > making use of already existing XSLT style sheets (that tie up to 
this
> > specific XML data).  After trawling the web for examples, I 
haven't
> > found anything obvious - and it seems sensible to ask if anyone 
here has
> > been involved with any such work?
> > 
> > Many thanks for any help!
> > Leon
> >
>




Re: [flexcoders] Add a node to a tree programatically

2007-05-08 Thread John Robinson
I'm running out the door but here's a quickie example. Note.. I'm not  
quite sure about adding a node while there is no node selected (aka,  
how to set selectedNode to the root node of the tree)


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







 
 
 
 
 
 
 
 
 
 
 
 
 
 








On May 7, 2007, at 6:28 PM, Alejandro Narancio wrote:

> Guys,
>
> I want to add a node programatically to a tree using ActionScript,  
> anybodoy know how can I do that?
>
> Thanks in advance,
> Alex




Re: [flexcoders] Image Component Nightmare

2007-05-08 Thread Manish Jethani
On 5/8/07, vitcheff <[EMAIL PROTECTED]> wrote:

> What I'm trying is to achieve is to have a thumbnails bar with some
> images in it, which, when clicked, should display the corresponding
> large version in a Canvas.
>
> I'm doing this through AS3 in UIComponent-based class. There is an
> Image component instance which is placed in a Canvas instance. What
> I'm trying to do is scale the image down to the canvas's size and then
> provide a slider to zoom it in/out.

If you set scaleContent=true on the image (which is the default), the
content should scale automatically to the size of the component. So
all you need to do is adjust the width/height of the Image object to
the desired value.


[flexcoders] Using Hibernate Association on Data Grid

2007-05-08 Thread headjoog
Hello - new on this group and to flex and was hoping for some 
feedback...

I've been able to get a simple one-to-many association configured in 
FDS and Hibernate. One table has Users, the other a list of records 
that users created. I have a data grid that shows the list of records.  
The list of records is returned correctly, but under the "createuser" 
field where the user name should be displayed I get "[object Users]" 
(which is the class that contains the user info).   And I can't get 
either the user id or the user name (which is what I really want) 
diplayed in the grid.  

How do you display the user in Flex?  I have simple POJOs, have the AS 
classes, and no errors in my logs.  Can somebody clue me in?
I'll post some code snips if necessary.




[flexcoders] Re: Absolutely forcing chart to redraw

2007-05-08 Thread simonjpalmer
I have been grappling with a similar issue.  I put this down a week or
so ago but I was next going to try and invalidate the stage and see
what happened.  Something along the lines of Stage.invalidate(). 
Worth a try.

--- In flexcoders@yahoogroups.com, "carl_steinhilber"
<[EMAIL PROTECTED]> wrote:
>
> I asked this earlier and didn't get any response... but I think maybe
> I hijacked another thread, so I'll ask again as it's own topic.
> 
> I have a PlotChart that uses a custom itemRenderer. The dataProvider
> bound to the chart has objects with the keys:
>- xAxis:Number, which translates to the position on the xAxis of
> the chart (-10 to 10), as the value moves to negative, the items color
> changes from green to orange to red
>- yAxis:Number, which translates to the position on the yAxis of
> the chart (-10 to 10), as the value moves to negative, the items color
> changes from green to orange to red
>- size:Number, which translates to the size of the item (diameter
> of circle)
>- visible:Boolean, which determines whether the item is actually
> plotted on the chart or not
> 
> At runtime, the chart initially loads exactly as expected (items the
> correct size, color and position). Then if I update the values for
> xAxis and/or yAxis, the item moves on the chart as expected (though if
> it moves from a positive value to negative value on either axis, the
> color remains green). 
> But if I update the value for size it doesn't update the item on the
> chart, and if I update visible to false the item remains visible.
> 
> Obviously the data setter function in my itemRenderer class is not
> called when I expect.
> 
> Also, if I completely replace the dataProvider with a new object, item
> 1 retains the color and size of item 1 in the old data, and so on.
> 
> I've tried explicitly calling invalidateDisplayList() and
> validateNow() on the chart, but it seems to just run the
> updateDisplayList(). This makes some sense... I guess set data is only
> run when the chart is first initialized. Seems like I really want the
> bulk of the logic that's currently in the data setter to be in the
> updateDisplayList() function... but I don't seem to have access to the
> dataProvider data in that function.
> 
> How do I force the chart to rerun the renderer for the item(s) with
> updated data? Or, conversely, how do I get at dataProvider values from
> the updateDisplayList() function in the class?
> 
> Any help would be appreciated.
> 
> Thanks in advance!
> -Carl
> 
> 
> Here's the class
> ==
> package
> {
> import mx.skins.ProgrammaticSkin;
> import flash.geom.Rectangle;
> import mx.graphics.*;
> import flash.display.Graphics;
> import mx.core.IDataRenderer;
> 
> import mx.charts.ChartItem;
> import flash.events.MouseEvent;
> import mx.core.UIComponent;
> import mx.controls.Label;
> import mx.charts.PlotChart;
> import mx.charts.series.items.PlotSeriesItem;
> 
> 
> public class ClientItemRenderer extends UIComponent implements
> IDataRenderer
> {
>private var _label:Label;
>private var _status:Label;
>private var _itemFill:uint;
>private var _itemVisible:Boolean;
>private var _itemSize:int;
>private var _itemXAxis:int;
>private var _itemYAxis:int;
>   
>public function ClientItemRenderer()
>{
>   super();
>   _label = new Label();
>   addChild(_label);
>   _label.setStyle("color",0x00);
>   _status = new Label();
>   addChild(_status);
>   _status.setStyle("color",0x00);
>}
>private var _chartItem:ChartItem;
> 
>public function get data():Object
>{
>   return _chartItem;
>}
> 
>public function set data(value:Object):void
>{
>   if (_chartItem == value)
>  return;
>   _chartItem = ChartItem(value);
>   _itemVisible = false;
> 
>   if(_chartItem != null){
>  _itemXAxis = _chartItem.item.xAxis;
>  _itemYAxis = _chartItem.item.yAxis;
>   
>  var size = _chartItem.item.size;
>  _itemSize = 1;
>  if (int(size) > 25)
> _itemSize = 2;
>  if (int(size) > 50) 
> _itemSize = 3;
>  if (int(size) > 75) 
> _itemSize = 4;
>  if (int(size) > 99) 
> _itemSize = 5;
> 
>  if (String(_chartItem.item.visible)=="True") 
> _itemVisible = true;
> 
>  _label.text = _chartItem.item.clientname;
>  _status.text = String(_itemSize);
>   
>  _itemFill = 0xFFA023;
>  if (_itemXAxis < 0 && _itemYAxis < 0) 
> _itemFill = 0xFF;
>  if (_itemXAxis >= 0 && _itemYAxis >= 0) 
> _itemFill = 0x26B417;
>   }
>   
>}
> 
>private var _over:Boolean = false;
>   
>private static var rcFill:Rectangle = new Rectangle();
>   
>private function rollOver(e:MouseEvent):vo

RE: [flexcoders] Security sandbox violation

2007-05-08 Thread Alex Harui
The crossdomain.xml must be on www.lemonde.fr



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thierrybertossa
Sent: Tuesday, May 08, 2007 11:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Security sandbox violation



I have a strange probleme with the security sandbox...

I can't load a rss feed when I put my project on my IIS (localhost)
I have tried:







In wwwroot
and in my project root...
and with 
Security.loadPolicyFile("../crossdomain.xml");
Security.loadPolicyFile("crossdomain.xml");

the error message is :
Error #2044: Unhandled securityError:. text=Error #2048: Security 
sandbox violation: http://localhost/RssNewsCalendar/RssNewsCalendar-
 
debug.swf cannot load data from 
http://www.lemonde.fr/rss/sequence/0,2-3224,1-0,0.xml.
 

I don't understand what's wrong ?



 


[flexcoders] Security sandbox violation

2007-05-08 Thread thierrybertossa
I have a strange probleme with the security sandbox...

I can't load a rss feed when I put my project on my IIS (localhost)
I have tried:




  


In wwwroot
and in my project root...
and with 
Security.loadPolicyFile("../crossdomain.xml");
Security.loadPolicyFile("crossdomain.xml");


the error message is :
Error #2044: Unhandled securityError:. text=Error #2048: Security 
sandbox violation: http://localhost/RssNewsCalendar/RssNewsCalendar-
debug.swf cannot load data from 
http://www.lemonde.fr/rss/sequence/0,2-3224,1-0,0.xml.

I don't understand what's wrong ?



[flexcoders] TileList using itemRenderer showing wrong data after resize or heavy use

2007-05-08 Thread Pat Buchanan

I'll try to explain this in as few as words as possible  I'll provide more
detail as needed.

I have a TileList with a custom itemRenderer.  There is an image and label
in the renderer.  The TileList is located inside an HDividedBox.  Sometimes
when you resize the HDividedBox, **some** images don't match their label
anymore.  This also happens when scrolling too quickly or too much.
Verified on multiple machines.

The only thing I found Googling is this:
http://viconflex.blogspot.com/2006/12/doubleclickenabled-other-little-flex.html

It only says: "Having issues with the custom Item Renderer in your TileList
not updating when the underlying data changes? Make sure you're not using an
ArrayCollection, it doesn't quite work every time."

Vic has some great articles, but no fix for this one in particular.

It will be very hard to provide a working source set for this, since the
image is being loaded via a URL call (
http://www.domain.com/getImage.cfm?image_id=1)

Any thoughts  Help!

Thanks Flexers!
-Pat Buchanan
-DataNotion


Re: [flexcoders] Re: Image Component Nightmare

2007-05-08 Thread Pat Buchanan

I think this will help you in your quest.  It may not be perfect, but it's
what I've been using.

http://www.tricedesigns.com/tricedesigns_home/blog/2007/03/free-imagezoomer-flex-component.html

I've had the same problems as you of dealing with the width and height = 0.
I really have no idea why, but I have noticed that it does correct itself -
like it's delaying setting the values or something.  If you run across a
solution please let me know.

All I want is an image component that I can set zoom level, set position,
ask to re-center, ask to best-fit.  :)

Enjoy!

-Pat Buchanan
-DataNotion



On 5/8/07, vitcheff <[EMAIL PROTECTED]> wrote:


  Thanks for your replay. Had a look on it, maybe will take another one,
but as I was trying to do the same with a Loader component, issues
were the same. Event.INIT event is fired by the Loader and it's width
and height remain 0, and I have to use loader.content too. That's just
something I don't get. Why do width and height remain 0 after an INIT
event?


--- In flexcoders@yahoogroups.com , "Adam
Royle" <[EMAIL PROTECTED]> wrote:
>
> Not sure if this will help, but have you looked at Ely Greenfield's
SuperImage Component?
>
>

http://www.quietlyscheming.com/blog/2007/01/23/some-thoughts-on-doubt-on-flex-as-the-best-option-orhow-i-made-my-flex-images-stop-dancing/
>
> Adam
>
> - Original Message -
> From: vitcheff
> To: flexcoders@yahoogroups.com 
> Sent: Tuesday, May 08, 2007 8:39 PM
> Subject: [flexcoders] Image Component Nightmare
>
>
> Hi all,
> What I'm trying is to achieve is to have a thumbnails bar with some
> images in it, which, when clicked, should display the corresponding
> large version in a Canvas.
>
> I'm doing this through AS3 in UIComponent-based class. There is an
> Image component instance which is placed in a Canvas instance. What
> I'm trying to do is scale the image down to the canvas's size and then
> provide a slider to zoom it in/out.
>
> What makes me crazy is that I have to scale image.content instead of
> the image itself and after that make a ton of magic when trying to
> figure what the width and height of the image is, to be able to
center it.
>
> Although the content is scaled down, image.width remains unchanged,
> and working with the content's size still brings some unexpected
> behaviour in.
>
> Is there something bad about my approach. Handling a simple image
> shouldn't be that freaking hard. Do I miss something?
>
> Thanks in advance!
>

 



[flexcoders] AMF Netconnection calls

2007-05-08 Thread Austin Kottke
Hi, I'm doing a remoting to call to a j2ee service. The service takes 
about a total
of 15 seconds to run. The problem is the call is made, it executes the 
java call, but because the
call is still processing there is no 'return' value to the remoting 
gateway so it gives me a Netconnection.call.failed
status.

Even though it successfully called the service. Any ideas?

And then when the java call finally finishes and returns the status this 
doesnt show up in a responder object. There
is no output as it seems like the connection stops waiting...

Best, austin


Re: [flexcoders] Flex FDS security

2007-05-08 Thread Douglas McCarroll
Jeremy,

I'm not at all sure that these address FDS, but they may be of some use:

http://store1.adobe.com/products/flex/whitepapers/pdfs/flashsecurity.pdf#search=%22Adobe%20Flash%20Security%20and%20Adobe%20Enterprise%20Solutions%20pdf%22

http://www.adobe.com/devnet/flex/articles/flex_security_wp/flex_security_wp.html

Douglas




cardinalflexjeremy wrote:
>
> I am working on an enterprise public facing application and we are
> going to be using flex with FDS.
>
> Anyone know of any good documentation on securing flex from the
> frontend, and anything having to do with Flex FDS security protocol,
> or flex security methodologies or anything of that sort?
>
> Basically in short, the best practice to make flex and FDS
> communication secure.
>
> Jeremy
>
>  




RE: [flexcoders] AVM1Movie wrong size

2007-05-08 Thread Alex Harui
If you are using SWFLoader, make sure scaleContent="false"



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of richard druce
Sent: Monday, May 07, 2007 6:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AVM1Movie wrong size



Hi,

I am loading an swf as an AVM1Movie from an external site. It appears as

though its coming out larger than its width and height indicate it
should 
be. I've tried drawing a rectangle over the top of it using the same
width 
and height but it appears to be smaller. I'm sure this shouldn't be 
happening so I was wandering if anyone had encountered a similar issue 
before (the scaleX and scaleY are 1 also). Any help is much appreciated.

cheers,
Richard.

__
Advertisement: Win a trip to the exquisite Daintree Ecolodge & Spa in 
Cairns, QLD! 
http://ninemsn.com.au/share/redir/adTrack.asp?mode=click&clientID=781&re
ferral=hotmailtaglineMay&URL=http://music.ninemsn.com.au/compIntro.aspx?
compId=2386
 



 


RE: [flexcoders] Flex Event Management Issues

2007-05-08 Thread Alex Harui
You can never get them "simultaneously" since actionscript is
single-threaded.  You can add logic that waits for both events before
dispatching a custom event.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of subbusos
Sent: Tuesday, May 08, 2007 3:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Event Management Issues



Hi all,

I am facing a peculiar issue where Flex events are stacked to fire.

I am developing a search feature to search videos from different sites
like YouTube, Google etc.,

The results events are stacked for two different search queries, if I
start the query immediately after the another. That is the class is
getting the results, but the events are not fired for the second query
until the first query's result events are fired.

For your information, for each query, there will be an instance to
handle that query. The second instance is waiting for the first
instance to finish its result events. Once its done, all the result
events of second instance are fired.

I want to get the events simultaneously. Please help me to solve this
issue.

Thanks & Regards
Subbu 



 


RE: [flexcoders] Zooming of the whole Application !!! Doesnt behave like a authorin tool published SWF

2007-05-08 Thread Alex Harui
You would listen for stage.resize yourself and set application's
width/height appropriately.  The stage or systemManager will send the
resize event when the browser resizes.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ravi Kumar Gummadi
Sent: Tuesday, May 08, 2007 6:33 AM
To: flexcoders@yahoogroups.com
Cc: [EMAIL PROTECTED]
Subject: RE: [flexcoders] Zooming of the whole Application !!! Doesnt
behave like a authorin tool published SWF



Alex,

 

I couldn't get how we are gonna control the stage size. If we are giving
absolute width and height for the Application ( I guess it's the same
size of stage) the application is not listening or dispatching to any
resize events ( Both the application as well as stage are not
responding) and hence browser resizing is not at all effecting the
Application.

 

But on contrary to that in authoring tool , though we are hardcoding the
stage size to some fixed value, the player/browser resize is effecting
it.

 

 

EvilCflex

stageMode set to showall gets somewhere near to that but...its scaling
out..! U told about setting the width and height but..its clipping the
stage instead of zooming down U referred to  this.parent. ..but
whose parent are u actually referring to??

 

Regards

Ravi

 

 


** The
information contained in this email, and any attachments hereto, is
strictly confidential and solely intended for use by the individual(s)
and/or entity(s) to which it is addressed. If you have received this
email in error, please notify the System Manager at
[EMAIL PROTECTED] as soon as possible. Thank you for your attention
to this matter.

**



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Monday, May 07, 2007 11:11 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Zooming of the whole Application !!! Doesnt
behave like a authorin tool published SWF

 

In theory, you either want the player to do the scaling or Flex to do
the scaling.  Flex doesn't really know how so it just looks at the new
stage size and tries a non-scaled layout.  If the player also tries to
scale, you'll get the wrong result.  Setting a non% width/height should
prevent Flex from trying the non-scaled layout.

 

You can then listen to the Stage resize event yourself and resize the
Application to whatever makes it work for you.

 

I think one "hard" part may be in controlling the stage size.  As you
resize the browser, it is resizing the player and if the player is given
an aspect ratio different from the original you might get bad results.
You may want to add some Javascript in the wrapper that you call from
ExternalInterface in your Stage resize event that tries to force the
browser to give the player an aspect ratio you like.

 

-Alex

 

 


RE: [flexcoders] Update Progress Bar during processing

2007-05-08 Thread Alex Harui
Use setInterval, timer events, or callLater to break up the loop into
chunks.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Maher
Sent: Tuesday, May 08, 2007 7:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Update Progress Bar during processing



This seems like a simple thing, but I have a progress bar that works 
just fine. The problem is the loop I'm working through is taking all 
of the resources for the flash container while it works.

Put another way:

I am processing 1000 records
It takes 45 seconds to complete and is invisible to the user
While this loop of processing takes place I want to update a progress 
meter telling the user I'm still working

but

Since this loop is so intense the whole flash container "hangs" or 
apears to pause. In fact, the whole browser is in this state.

Is there a way I can throttle this work a little so that screen 
updates and interactions can still take place?

(as a note, I'm walking through some data DTOs and creating an XML 
object from the properties on them)

Thanks



 


RE: [flexcoders] Accessing stage Height

2007-05-08 Thread Alex Harui
There are some funky initialization rules in AS3.0.  You cannot do
certain things in the constructor of the main class.  All of our stuff
starts up like this:
 
public class test extends MovieClip
{

public function test()
{
 super();
 root.loaderInfo.addEventListener(Event.INIT, initialize);
 
}
 
public function initialize(event:Event):void
{
// do all your real constructor work here.
...



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Patrick Lemiuex
Sent: Tuesday, May 08, 2007 8:48 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Accessing stage Height



Actually, this project is all AS3.0  no flex, so I have to access the
property through the sprites stage object.  creationComplete is out and
so is the Application object.  Hmmm. 

I am just confused.  I had to actually used a fixed stage height and
pass it into through every class constructor I created for this project
I to get the stage height property.  I also found that loading flashvars
in an all as3.0 proect has issues too.  I had to set a timer event to
work around that issue too.   I prefer using flex because all this stuff
is moot under flex.

Has anyone else noticed these issues out there?

Thanks for your time.
Patrick






On May 4, 2007, at 4:23 PM, Alex Harui wrote:




It has been instantaited and added as a child to Application
(unless it is a true downloadprogressbar preloader) but the entire
application is not on stage yet.



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Michael Wills
Sent: Friday, May 04, 2007 2:00 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Acessing stage Height



Hmm... sorry newbie here. So it's returning null because "this",
the _preloader, hasn't actually been instantiated yet? But if this were
called after applicationComplete then it would be fine?

Michael

Alex Harui wrote:


There is an evil nasty trick in Flex that your
components aren't on the display list until the applicationComplete
event.  We did that to get a measurable performance gain at app startup.
The stage is still available, but as systemManager.stage.
 
-Alex



From: flexcoders@yahoogroups.com [mailto:flexcoders@
 yahoogroups.com] On Behalf Of patricklemiuex
Sent: Friday, May 04, 2007 12:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Acessing stage Height



I have a sprite, it's added to the display... 

I understand that any display object has access to the
stage Object.
Can someone clear the confusion for me, what's the deal
here, I get a
null error trying to access the stage height... I've
even tried to
call another method after addChild to make sure that
it's already in
the display. My preloader extends sprite (of course).

This is baffling.

var _preloader = new _preloader();
addChild(_preloader);

_preloader.getHeight();

inside my preloader...

public function getHeight(){
trace (this.stage.stageHeight); //returns null object
reference???

Thanks,
Patrick








 


RE: [flexcoders] System Memory Bug - tracing output kicks an errror but not always

2007-05-08 Thread Alex Harui
If you don't have a debugger player, you won't get errors.  You should
get the error if you have the debugger player.  It is better to use:
 
import flash.system.System;
 
trace("Memory:", System.totalMemory/1024);



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of patricklemiuex
Sent: Tuesday, May 08, 2007 9:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] System Memory Bug - tracing output kicks an errror
but not always



I have this exact line of code on two projects on my computer this
works, on my work computer it kicks an error

trace("Memory: ",flash.system.System.totalMemory/1024);

Description Resource In Folder Location Creation Time Id
2 1120: Access of undefined property flash. SimpleTween.as
MeBucket3/com/me/views/types line 531 May 8, 2007 9:05:56 AM 283048

Thanks,
Patrick



 


[flexcoders] Flex FDS security

2007-05-08 Thread cardinalflexjeremy
I am working on an enterprise public facing application and we are
going to be using flex with FDS. 

Anyone know of any good documentation on securing flex from the
frontend, and anything having to do with Flex FDS security protocol,
or flex security methodologies or anything of that sort? 

Basically in short, the best practice to make flex and FDS
communication secure. 

Jeremy



RE: [flexcoders] Re: Keyboarding up/down editable columns in Datagrid

2007-05-08 Thread Alex Harui
Maybe.  If you force too many updates on the DG, it might close out the
edit session.  It might be worth trying it w/o your endEdit logic to see
if that is causing the focus issue.
 
If on some keystroke you simply set editedItemPosition, the code says
that it will dispatch ITEM_EDIT_END before trying to set the editor to
the new place.
 
-Alex



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike_Robinson_98
Sent: Tuesday, May 08, 2007 9:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Keyboarding up/down editable columns in
Datagrid



I need to handle the endEdit event to do some data massaging on the
input as well as update other values based on that input value. 
Besides, it seems to me that the end result would be the same whether I
handled endEdit or the DG handled endEdit, that is losing of focus in
the new cell. Yes?

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> What are you using the endEdit for? You should just let the DG call
it
> when you change editedItemPosition.
>
> 
>
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
]
On
> Behalf Of Mike_Robinson_98
> Sent: Monday, May 07, 2007 9:02 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Keyboarding up/down editable columns in
> Datagrid
>
>
>
> --- In flexcoders@yahoogroups.com
 

> , "Mike_Robinson_98"
> mike_robinson_98@ wrote:
> >
> > --- In flexcoders@yahoogroups.com
 
>  , "Manish Jethani"
> >  wrote:
> > >
> > > On 5/8/07, Mike_Robinson_98  wrote:
> > > > Has anyone come up with a good way to let a user move up/down in
> an
> > > > editable column of a datagrid using the keyboard? These columns
> use a
> > > > TextInput as the itemEditor.
> > > >
> > > > Right now I use a handler for the keyFocusChangeEvent on the
> datagrid
> > > > to handle TAB and Shift-TAB keys to move horizontally through
the
> > > > rows. However, moving up/down in the columns is more difficult
> because
> > > > the editor's TextInput captures the Return key and the
> > > > TextFieldAutomationHelper class captures all the other
interesting
> > > > keystrokes (navigation keys like UP and DOWN arrows) and it
> seems the
> > > > DataGrid is only interested in the TAB key when it handles
> focusChange
> > > > events.
> > >
> > > This simple test worked for me:
> > >
> > > 
> > > http://www.adobe.com/2006/mxml
 
>  > "
> > > xmlns="*">
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > private function handleKeyDown():void
> > > {
> > > var v:Object = dg.editedItemPosition;
> > > v.rowIndex++;
> > > dg.editedItemPosition = v;
> > > }
> > > 
> > > 
> > >
> > > Use the down arrow key to move from foo to bar.
> > >
> > Thanks a lot for the reply. That is a nice, simple solution.
> >
> > I have one more slight problem along this line maybe you could shed
> > some light on. In my app, I use the endEdit function for the
datagrid.
> > Unfortunately, although I move the focus to the column in the new
row,
> > the endEdit code gets call after this focus occurs and consequently
> > focus is lost. I have tried 'callLater' for the focus method but
have
> > the same result. Even, setup a timer to delay the focus for 200 ms.
> > Still endedit come along and focus is lost. Have you or any other
> > reader run into this issue?
> >
> Another note - actually, the setting of the focus is what is causing
> the endedit event for the previous cell. Seems like a catch-22.
> Setting the focus caused the endevent for the previous cell which then
> causes the current cell to lose focus. Again, I am probably making
> things too complex.
>



 


RE: [flexcoders] String methods doesn't work

2007-05-08 Thread Alex Harui
Something's wierd.  The ListEvent does not have a value property.  How
did you get the value?  The renderer's data property is an object and
not a string.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Freiman
Sent: Tuesday, May 08, 2007 10:05 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] String methods doesn't work



instead of 

if (value.indexOf("Character") > -1) {

try

var temp:int = value.indexOf("Character");
trace(value);
trace("Character");
trace(temp);
if (temp > -1) { 

my guess is that the trace will show that either "Character" or value
isn't what you thought it was and that the function is returning -1.
(I'm assuming you're replacing "Character" with a variable or literal
character in the code and not keeping it as "Character", because
otherwise that's you're problem right there). 

Dan Freiman
nondocs  


On 5/8/07, haravallabhan <[EMAIL PROTECTED]
 > wrote: 

Hi,

It seems I alone get such wierd problems. I tried to pass an
ListEvent 
from the DataGrid on itemClick. I got the value from the event.
I mean 
the de\isplay value. I tried to check for a character in the
value 
using the value.indexOf("Character") > -1. it doesnt work. The
method 
is not returning anything.

When I check on the helper in the flex builder 2.0 IDE I could
see only 
the length method displayed and no other methods which is
suppose be 
for a string.

Can some body help me n this regard

Thanks in advance
Cheers
Hara






 


Re: [flexcoders] String methods doesn't work

2007-05-08 Thread Daniel Freiman

instead of

if (value.indexOf("Character") > -1) {

try

var temp:int = value.indexOf("Character");
trace(value);
trace("Character");
trace(temp);
if (temp > -1) {

my guess is that the trace will show that either "Character" or value isn't
what you thought it was and that the function is returning -1.
(I'm assuming you're replacing "Character" with a variable or literal
character in the code and not keeping it as "Character", because otherwise
that's you're problem right there).

Dan Freiman
nondocs 

On 5/8/07, haravallabhan <[EMAIL PROTECTED]> wrote:


  Hi,

It seems I alone get such wierd problems. I tried to pass an ListEvent
from the DataGrid on itemClick. I got the value from the event. I mean
the de\isplay value. I tried to check for a character in the value
using the value.indexOf("Character") > -1. it doesnt work. The method
is not returning anything.

When I check on the helper in the flex builder 2.0 IDE I could see only
the length method displayed and no other methods which is suppose be
for a string.

Can some body help me n this regard

Thanks in advance
Cheers
Hara

 



[flexcoders] Absolutely forcing chart to redraw

2007-05-08 Thread carl_steinhilber
I asked this earlier and didn't get any response... but I think maybe
I hijacked another thread, so I'll ask again as it's own topic.

I have a PlotChart that uses a custom itemRenderer. The dataProvider
bound to the chart has objects with the keys:
   - xAxis:Number, which translates to the position on the xAxis of
the chart (-10 to 10), as the value moves to negative, the items color
changes from green to orange to red
   - yAxis:Number, which translates to the position on the yAxis of
the chart (-10 to 10), as the value moves to negative, the items color
changes from green to orange to red
   - size:Number, which translates to the size of the item (diameter
of circle)
   - visible:Boolean, which determines whether the item is actually
plotted on the chart or not

At runtime, the chart initially loads exactly as expected (items the
correct size, color and position). Then if I update the values for
xAxis and/or yAxis, the item moves on the chart as expected (though if
it moves from a positive value to negative value on either axis, the
color remains green). 
But if I update the value for size it doesn't update the item on the
chart, and if I update visible to false the item remains visible.

Obviously the data setter function in my itemRenderer class is not
called when I expect.

Also, if I completely replace the dataProvider with a new object, item
1 retains the color and size of item 1 in the old data, and so on.

I've tried explicitly calling invalidateDisplayList() and
validateNow() on the chart, but it seems to just run the
updateDisplayList(). This makes some sense... I guess set data is only
run when the chart is first initialized. Seems like I really want the
bulk of the logic that's currently in the data setter to be in the
updateDisplayList() function... but I don't seem to have access to the
dataProvider data in that function.

How do I force the chart to rerun the renderer for the item(s) with
updated data? Or, conversely, how do I get at dataProvider values from
the updateDisplayList() function in the class?

Any help would be appreciated.

Thanks in advance!
-Carl


Here's the class
==
package
{
import mx.skins.ProgrammaticSkin;
import flash.geom.Rectangle;
import mx.graphics.*;
import flash.display.Graphics;
import mx.core.IDataRenderer;

import mx.charts.ChartItem;
import flash.events.MouseEvent;
import mx.core.UIComponent;
import mx.controls.Label;
import mx.charts.PlotChart;
import mx.charts.series.items.PlotSeriesItem;


public class ClientItemRenderer extends UIComponent implements
IDataRenderer
{
   private var _label:Label;
   private var _status:Label;
   private var _itemFill:uint;
   private var _itemVisible:Boolean;
   private var _itemSize:int;
   private var _itemXAxis:int;
   private var _itemYAxis:int;

   public function ClientItemRenderer()
   {
  super();
  _label = new Label();
  addChild(_label);
  _label.setStyle("color",0x00);
  _status = new Label();
  addChild(_status);
  _status.setStyle("color",0x00);
   }
   private var _chartItem:ChartItem;

   public function get data():Object
   {
  return _chartItem;
   }

   public function set data(value:Object):void
   {
  if (_chartItem == value)
 return;
  _chartItem = ChartItem(value);
  _itemVisible = false;

  if(_chartItem != null){
 _itemXAxis = _chartItem.item.xAxis;
 _itemYAxis = _chartItem.item.yAxis;

 var size = _chartItem.item.size;
 _itemSize = 1;
 if (int(size) > 25)
_itemSize = 2;
 if (int(size) > 50) 
_itemSize = 3;
 if (int(size) > 75) 
_itemSize = 4;
 if (int(size) > 99) 
_itemSize = 5;

 if (String(_chartItem.item.visible)=="True") 
_itemVisible = true;

 _label.text = _chartItem.item.clientname;
 _status.text = String(_itemSize);

 _itemFill = 0xFFA023;
 if (_itemXAxis < 0 && _itemYAxis < 0) 
_itemFill = 0xFF;
 if (_itemXAxis >= 0 && _itemYAxis >= 0) 
_itemFill = 0x26B417;
  }

   }

   private var _over:Boolean = false;

   private static var rcFill:Rectangle = new Rectangle();

   private function rollOver(e:MouseEvent):void
   {
  _over = true;
  invalidateDisplayList();  
   }
   private function rollOut(e:MouseEvent):void
   {
  _over = false;
  invalidateDisplayList();
   }

   override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void
   {
  super.updateDisplayList(unscaledWidth, unscaledHeight);
  if (_itemVisible){
 var fill:* = (_over)? 0xFF:_itemFill;
 var stroke:IStroke = getStyle("stroke");
 var w:Number = (_itemSize - 1) * 4;
 

[flexcoders] Re: Keyboarding up/down editable columns in Datagrid

2007-05-08 Thread Mike_Robinson_98
I need to handle the endEdit event to do some data massaging on the
input as well as update other values based on that input value. 
Besides, it seems to me that the end result would be the same whether I
handled endEdit or the DG handled endEdit, that is losing of focus in
the new cell. Yes?

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> What are you using the endEdit for?  You should just let the DG call
it
> when you change editedItemPosition.
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Mike_Robinson_98
> Sent: Monday, May 07, 2007 9:02 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Keyboarding up/down editable columns in
> Datagrid
>
>
>
> --- In flexcoders@yahoogroups.com

> , "Mike_Robinson_98"
> mike_robinson_98@ wrote:
> >
> > --- In flexcoders@yahoogroups.com
>  , "Manish Jethani"
> >  wrote:
> > >
> > > On 5/8/07, Mike_Robinson_98  wrote:
> > > > Has anyone come up with a good way to let a user move up/down in
> an
> > > > editable column of a datagrid using the keyboard? These columns
> use a
> > > > TextInput as the itemEditor.
> > > >
> > > > Right now I use a handler for the keyFocusChangeEvent on the
> datagrid
> > > > to handle TAB and Shift-TAB keys to move horizontally through
the
> > > > rows. However, moving up/down in the columns is more difficult
> because
> > > > the editor's TextInput captures the Return key and the
> > > > TextFieldAutomationHelper class captures all the other
interesting
> > > > keystrokes (navigation keys like UP and DOWN arrows) and it
> seems the
> > > > DataGrid is only interested in the TAB key when it handles
> focusChange
> > > > events.
> > >
> > > This simple test worked for me:
> > >
> > > 
> > > http://www.adobe.com/2006/mxml
>  "
> > > xmlns="*">
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > private function handleKeyDown():void
> > > {
> > > var v:Object = dg.editedItemPosition;
> > > v.rowIndex++;
> > > dg.editedItemPosition = v;
> > > }
> > > 
> > > 
> > >
> > > Use the down arrow key to move from foo to bar.
> > >
> > Thanks a lot for the reply. That is a nice, simple solution.
> >
> > I have one more slight problem along this line maybe you could shed
> > some light on. In my app, I use the endEdit function for the
datagrid.
> > Unfortunately, although I move the focus to the column in the new
row,
> > the endEdit code gets call after this focus occurs and consequently
> > focus is lost. I have tried 'callLater' for the focus method but
have
> > the same result. Even, setup a timer to delay the focus for 200 ms.
> > Still endedit come along and focus is lost. Have you or any other
> > reader run into this issue?
> >
> Another note - actually, the setting of the focus is what is causing
> the endedit event for the previous cell. Seems like a catch-22.
> Setting the focus caused the endevent for the previous cell which then
> causes the current cell to lose focus. Again, I am probably making
> things too complex.
>




Re: [flexcoders] bottom="0" bug

2007-05-08 Thread Tadas Ziemys

hmm, Button still acts on his on and doesnt stick to the bottom, nows its
somewhere in the middle, very strange behavier :)

2007/5/8, Igor Costa <[EMAIL PROTECTED]>:


  Tadas

It's a Bug

But a Bug with Work arround.

Here's a little solution works, but the Bottom should work at all.



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

 
 
 








Regards.

Igor Costa





On 5/6/07, Tadas Ziemys < [EMAIL PROTECTED]> wrote:
>
>   Hello!
>
> i wanted to make ApplicationControlBar in bottom of my site. It works
> well as long as there is no vertical scroll bar. When it appears and i
> scroll down ApplicationControlBar (or anything else with property
> bottom="0"), doesnt move and appears in middle of application.
>
> Any solutions to this problem?
>
> Thanks in advance
> Tadas
>



--

Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta

 



[flexcoders] String methods doesn't work

2007-05-08 Thread haravallabhan
Hi,

It seems I alone get such  wierd problems. I tried to pass an ListEvent 
from the DataGrid on itemClick. I got the value from the event. I mean 
the de\isplay value. I tried to check for a character in the value 
using the value.indexOf("Character") > -1. it doesnt work. The method 
is not returning anything.

When I check on the helper in the flex builder 2.0 IDE I could see only 
the length method displayed and no other methods which is suppose be 
for a string.

Can some body help me n this regard

Thanks in advance
Cheers
Hara



Re: [flexcoders] Re: AS3 codegen

2007-05-08 Thread Kevin

from Java classes or from UML?

- Kevin


On May 8, 2007, at 5:29 AM, ghzeiljunior wrote:


You can use Sparx Entreprise Architect to generate AS3 classes.







[flexcoders] System Memory Bug - tracing output kicks an errror but not always

2007-05-08 Thread patricklemiuex
I have this exact line of code on two projects on my computer this
works, on my work computer it kicks an error


trace("Memory: ",flash.system.System.totalMemory/1024);

Description ResourceIn Folder   LocationCreation Time   
Id
2   1120: Access of undefined property flash.   SimpleTween.as
MeBucket3/com/me/views/typesline 531May 8, 2007 9:05:56 AM  283048

Thanks,
Patrick



RE: [flexcoders] Zooming of the whole Application !!! Doesnt behave like a authorin tool published SWF

2007-05-08 Thread Ravi Kumar Gummadi
Thanks all ,

 

I figured out an insane fix to the issue I am facing.

 

When you give stage.scaleMode = SHOW_ALL , the application would be
scaling out due to some issue which I am not aware of! 

So in the creationComplete event listener of the application have a zoom
effect which scales down to the application so that it fits the browser.

Later when u resize the browser the zoom ratio  is maintained anyhow.

 

A known bug to the fix is , if you are creating any popups they wouldn't
of the zoom ration 1:1 instead of the new zoom ration. The zoom ratio
affects only the base Application. So you have to be careful that you
are zooming all the popups by the same ratio as soon as u create them.

 

Private function onCreationComplete(event:Event){

 

  this.systemManager.stage.scaleMode =
StageScaleMode.SHOW_ALL;

this.systemManager.stage.align = StageAlign.TOP_LEFT; //
else the zoom effect would center ur application
after the zoom completlets 

  Var zoom:Zoom = new Zoom();

  zoom.zoomHeightFrom = 1; 

  zoom.zoomWidthFrom = 1;

  zoom.zoomHeightTo = 0.7;

  zoom.zoomWidthTo = 0.7;

 
zoom.addEventListener(EffectEvent.EFFECT_END,onZoomEnd);

  zoom.play([this]);

}

 

Would be glad to explain it more clearly, if anything is not clear

 

HTH

 

Regards

Ravi

 


** The
information contained in this email, and any attachments hereto, is
strictly confidential and solely intended for use by the individual(s)
and/or entity(s) to which it is addressed. If you have received this
email in error, please notify the System Manager at
[EMAIL PROTECTED] as soon as possible. Thank you for your attention
to this matter.

**



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ravi Kumar Gummadi
Sent: Tuesday, May 08, 2007 7:03 PM
To: flexcoders@yahoogroups.com
Cc: [EMAIL PROTECTED]
Subject: RE: [flexcoders] Zooming of the whole Application !!! Doesnt
behave like a authorin tool published SWF

 

Alex,

 

I couldn't get how we are gonna control the stage size. If we are giving
absolute width and height for the Application ( I guess it's the same
size of stage) the application is not listening or dispatching to any
resize events ( Both the application as well as stage are not
responding) and hence browser resizing is not at all effecting the
Application.

 

But on contrary to that in authoring tool , though we are hardcoding the
stage size to some fixed value, the player/browser resize is effecting
it.

 

 

EvilCflex

stageMode set to showall gets somewhere near to that but...its scaling
out..! U told about setting the width and height but..its clipping the
stage instead of zooming down U referred to  this.parent. ..but
whose parent are u actually referring to??

 

Regards

Ravi

 

 


** The
information contained in this email, and any attachments hereto, is
strictly confidential and solely intended for use by the individual(s)
and/or entity(s) to which it is addressed. If you have received this
email in error, please notify the System Manager at
[EMAIL PROTECTED] as soon as possible. Thank you for your attention
to this matter.

**



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Monday, May 07, 2007 11:11 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Zooming of the whole Application !!! Doesnt
behave like a authorin tool published SWF

 

In theory, you either want the player to do the scaling or Flex to do
the scaling.  Flex doesn't really know how so it just looks at the new
stage size and tries a non-scaled layout.  If the player also tries to
scale, you'll get the wrong result.  Setting a non% width/height should
prevent Flex from trying the non-scaled layout.

 

You can then listen to the Stage resize event yourself and resize the
Application to whatever makes it work for you.

 

I think one "hard" part may be in controlling the stage size.  As you
resize the browser, it is resizing the player and if the player is given
an aspect ratio different from the original you might get bad results.
You may want to add some Javascript in the wrapper that you call from
ExternalInterface in your Stage resize event that tries to force the
browser to give the player an aspect ratio you like.

 

-Alex

 

 



[flexcoders] Re: error 2032 Stream Error

2007-05-08 Thread scott_flex
Like i said, nothing "just all of a sudden happens".  An error, deep 
down in a nested component, based on the data passed to my web 
service was throwing an error... there was a small change in a 
nullable field in our database.

So...i couldn't just let this post die without confessing that I 
caused my own bug (my first... yeah right!!) and my back end didn't 
log it at all  Then some of my debugging code was failing too, 
ha, what a morning.

I'll take full blame on this one but it sure would have been nice if 
the real error message could have travelled back to my Flex app.  I 
probably would have caught it much earlier, instead of sorting 
through all the code to finally realized what was happening.


--Scott



--- In flexcoders@yahoogroups.com, "scott_flex" <[EMAIL PROTECTED]> wrote:
>
> 
> And... this is not just an IE thing for me, it's Firefox and 
> Netscape, running on Windows xp.
> 
> And.. the only time I ever get this message is with a single web 
> service call, and it's one where I can potentially pass an xml 
> parameter up to 15k. 
> 
> This was working in the past, not sure what's different now.
> 
> --Scott
> 
> --- In flexcoders@yahoogroups.com, "scott_flex"  wrote:
> >
> > 
> > Well, i'm glad i'm not the only one, except that i released my 
app 
> > and now it seems every other time or so i get this error...i'm in 
a 
> > tight jam right now.
> > 
> > It appears but NOT always, that when call my web service and pass 
> it 
> > xml, the larger the xml parameter, at some threshold, it throws 
the 
> > error more often.  That's just a symptom i've noticed.
> > 
> > Searching the web for the error doesn't turn up to many results.
> > 
> > I possible could have changed something in my code, doubt it but 
> > possible or something changes on my server but nothing to my 
> > knowledge.  So it appears to "just" start happening.  Which 
> normally 
> > is never true to "just" all of a sudden start happening.  I'm at 
a 
> > loss of where to begin searching for the resolution.
> > 
> > --Scott
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "bhaq1972"  wrote:
> > >
> > > Your not alone. We have these inconsistent problems as well. 
> > > 
> > > Its a shame flex doesn't show what the server fault is. would 
> help.
> > > 
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "scott_flex"  
wrote:
> > > >
> > > > 
> > > > I just started getting the 2032 error when calling a web 
> service 
> > > and 
> > > > for the life of me cannot determine what's causing it.
> > > > 
> > > > Code snippet looks like:
> > > > var ws:WebService = new WebService()
> > > > ws.addEventListener("fault", faultHandler); // alerts error
>   
> > > > ws.loadWSDL("http://mylocalservers/test.asmx?WSDL";);
> > > > ws.updateTest(__xml);
> > > > 
> > > > 
> > > > Sometimes i get it, and sometimes i don't.  Not sure why 
though.
> > > > 
> > > > faultCode Server.Error.Request
> > > > faultDetail: Error: IOErrorEventtype: "ioError"
> > > > faultString: HTTP Request error
> > > > 
> > > > I getting in production when i'm in an SSL environement and I 
> get 
> > > it 
> > > > in my development environment where i'm running the flex app 
> and 
> > > web 
> > > > services all locally.
> > > > 
> > > > The url to my web service url is correct and the web services 
> > runs 
> > > > properly when called and tested from other apps.
> > > > 
> > > > What's weird is that i haven't changes how my web service 
calls 
> > or 
> > > > web service itself works...
> > > > 
> > > > Any help or pointers would be greatly appreciated.
> > > > 
> > > > --Scott
> > > >
> > >
> >
>




[flexcoders] Re: Staging an AS3 for Flash 8?

2007-05-08 Thread jnbeck86
Hey thanks for the reply Scott!

I understand that I can't play AS3 content in Flash 8.  

In the situation of a user only having Flash 8, they would see the
Flash 8 / AS2 content.

However, what if the user has Flash Player 9? I want it to load a
Flash 8 movie that determines that the user has flash 9, and then load
the AS3 version.

I believe that is what http://www.kongregate.com/ is doing with some
AS3 content (search for "understanding games").

Could someone point me in the right direction of how to accomplish
this, I'm hitting a wall.

Thanks!
Nate



[flexcoders] newb need help with states

2007-05-08 Thread Derrick Anderson
hi, with the code below i am trying to create 2 states and both of the 
SetProperty calls are giving me trouble.

1) setting the 'right' property of a panel- i get an error saying that 
Container does not have that as a property.  ok, a quick look in the docs and 
sure enough there is no 'right' property- how do i change the constraint of the 
panel?

2) setting the 'visible' property- i have found that no matter what i use as a 
target, the visible property is being applied to the entire application , now i 
am compiling this for apollo and it seems specific to that as i don't see that 
behavior when using the regular flex compiler.  When compiling for apollo, i am 
also noticing that it is not just 'visible' that gets set to the entire 
application, but any property i change, it seem the target is ignored.  what is 
going on here?







  




  

  




  




data grid in here










__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: [flexcoders] Accessing stage Height

2007-05-08 Thread Patrick Lemiuex
Actually, this project is all AS3.0  no flex, so I have to access the  
property through the sprites stage object.  creationComplete is out  
and so is the Application object.  Hmmm.


I am just confused.  I had to actually used a fixed stage height and  
pass it into through every class constructor I created for this  
project I to get the stage height property.  I also found that  
loading flashvars in an all as3.0 proect has issues too.  I had to  
set a timer event to work around that issue too.   I prefer using  
flex because all this stuff is moot under flex.


Has anyone else noticed these issues out there?

Thanks for your time.
Patrick






On May 4, 2007, at 4:23 PM, Alex Harui wrote:



It has been instantaited and added as a child to Application  
(unless it is a true downloadprogressbar preloader) but the entire  
application is not on stage yet.


From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Michael Wills

Sent: Friday, May 04, 2007 2:00 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Acessing stage Height

Hmm... sorry newbie here. So it's returning null because "this",  
the _preloader, hasn't actually been instantiated yet? But if this  
were called after applicationComplete then it would be fine?


Michael

Alex Harui wrote:


There is an evil nasty trick in Flex that your components aren't  
on the display list until the applicationComplete event.  We did  
that to get a measurable performance gain at app startup.  The  
stage is still available, but as systemManager.stage.


-Alex

From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of patricklemiuex

Sent: Friday, May 04, 2007 12:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Acessing stage Height

I have a sprite, it's added to the display...

I understand that any display object has access to the stage Object.
Can someone clear the confusion for me, what's the deal here, I get a
null error trying to access the stage height... I've even tried to
call another method after addChild to make sure that it's already in
the display. My preloader extends sprite (of course).

This is baffling.

var _preloader = new _preloader();
addChild(_preloader);

_preloader.getHeight();

inside my preloader...

public function getHeight(){
trace (this.stage.stageHeight); //returns null object reference???

Thanks,
Patrick









[flexcoders] Tie a control to a function?

2007-05-08 Thread Ian Skinner
Can somebody give a simple example of using a function to show a total 
of other controls that may or may not be filter from a master array 
collection?



[flexcoders] newb needs help with states

2007-05-08 Thread andersonwebstudio
hi, with the code below i am trying to create 2 states and both of the
SetProperty calls are giving me trouble.

1) setting the 'right' property of a panel- i get an error saying that
Container does not have that as a property.  ok, a quick look in the
docs and sure enough there is no 'right' property- how do i change the
constraint of the panel?

2) setting the 'visible' property- i have found that no matter what i
use as a target, the visible property is being applied to the entire
application , now i am compiling this for apollo and it seems specific
to that as i don't see that behavior when using the regular flex
compiler.  When compiling for apollo, i am also noticing that it is
not just 'visible' that gets set to the entire application, but any
property i change, it seem the target is ignored.  what is going on here?















...data grid in here








Re: [flexcoders] Building flex apps with Maven 2?

2007-05-08 Thread Christian Gruber
Actually, maven-flex2-plugin from israfil does - it's me, and I have  
others offering to help - I just need to set up some infrastructure  
to do so.  I just released 1.0 (quietly) last week and will probably  
do a 1.1 soon with some fixes and a few extra features. The plugin is  
available on repo1/ibiblio's maven repository.

You can use the maven-flex2-plugin with cairngorm, as long as you can  
install the cairngorm code as a .swc in your repository (I haven't  
worked with Cairngorm yet, so I don't know how it's packaged).

the current plugin can use .swc dependencies and now .swc's can be  
built to consume the .flexLibProperties file which instructs the  
compiler what classes/resources to include in the .swc, so shared  
image directories, shared .css files, etc. are all possible.

Christian.


On May 7, 2007, at 9:24 PM, Brian Sterling wrote:

> I found some old posts about the Israfil plugin
>   http://www.israfil.net/projects/mojo/maven-flex2-plugin/
> and found the ServeBox Maven2Flex2 plugin
>   http://sourceforge.net/projects/mvnflex2plugin
> from the wikipedia article on Flex.
>
> Neither one seems to have an especially active developer community.
>
> Any suggestions on how I should be building a multiple-module project
> with third-party dependencies (e.g. Cairngorm) with Maven 2?
>
> It sounds like several of us are interested in this - maybe it's time
> to collaborate on building up one of these plugins (or start a new
> one?).
>
> -Brian
>

christian gruber + [EMAIL PROTECTED] + bus 905.640.1119 + mob  
416.998.6023
process coach and architect + ISRÁFÍL CONSULTING SERVICES




[flexcoders] Re: does FLEX2 support text direction right to left?

2007-05-08 Thread Harris Reynolds
Mike... can you point to any of the suggested "workarounds" that 
Adobe has put forward?  We'd like to be able to support RTL text 
editing (for Arabic) in an application I'm working on.

~harris

--- In flexcoders@yahoogroups.com, "Michael Labriola" <[EMAIL PROTECTED]> 
wrote:
>
> 
> Unfortunately, no.
> 
> This is an area where I have spent countless hours trying to work
> around. Flash player has absolutely no support for right to left
> natively. Further, while you can manually do *some* things to fix
> this, ultimately none of the text components (input, area, etc) 
allow
> editing in RTL. So, you can *display* RTL text, however, you can not
> actually edit it.
> 
> Adobe has some suggestions for workarounds. However, they all 
require
> a significant amount of work and none can be accomplished directly 
in
> flash player in a real-time environment.
> 
> Sorry. This is an issue which has been the subject of countless
> debates and is really limiting the ability to use Flash as a serious
> development platform for true international solutions. Adobe is 
aware
> and we are all hoping that this can be resolved within the next few
> releases.
> 
> --Mike
> 
> --- In flexcoders@yahoogroups.com, "shemeshkale"  
wrote:
> >
> > hello,
> > can someone tell me if flex2 have an option of RTL text?
> > 
> > i need to use hebrew and arabic in my flex app but i know the 
flash
> > player do not have support for RTL text. or does it?
> > 
> > is there any way to work with RTL texts ?
> >
>




[flexcoders] Complex AS Objects to a file (serialization)

2007-05-08 Thread nxzone
How we can serialize a objects and save it to a file like xml?



[flexcoders] Re: Popup Menu Button. I want to click anywhere on the button

2007-05-08 Thread boy_trike
I am confused:  My PopupMenuButton looks like:




the itemClick Event is ONLY triggered if i click on the down arrow at the end 
of the button.  
If I add a click event  it sends a MOUSE event not a MENU event.  How can I get 
the menu 
event sent if I click on the button?  I need the Menu Event to know which item 
they 
selected.

thanks

Bruce

--- In flexcoders@yahoogroups.com, "Manish Jethani" <[EMAIL PROTECTED]> wrote:
>
> On 5/7/07, boy_trike <[EMAIL PROTECTED]> wrote:
> > If I click on the arrow, I get the itemClick event and everything is fine 
> > since I get a 
menuEvent
> > and I can tell which item was selected.  My problem is that I want to let 
> > the user click 
on the
> > label in the button and still be able to tell which item they selected.  I 
> > am having 
problems
> > with this.  Any suggestions?
> 
> You get the "itemClick" event on the button click as well.
>




[flexcoders] HTTPservice and Images

2007-05-08 Thread Denis
Hi all,
I'm new to flex, I've started reading the adobe documentation and
looking around for examples in the net.
And now I've started to do my first program.
I'm developer and maintainer for the IIPImage software,
iipimage.sf.net , and I would like to provide it with a flash viewer.
I've started investigating httpservice and the result is not so good,
I query the server for a jpeg image, the server send to me a jpeg but
I get only the header!
this is the code:


http://www.adobe.com/2006/mxml";
creationComplete="iipRequest.send()"
layout="absolute"
xmlns:ext="nl.wv.extenders.panel.*"
>












{IIPQLT}
{IIPWID}
{IIPCVT}

























Thanks for your help,
Denis



[flexcoders] Update Progress Bar during processing

2007-05-08 Thread Matt Maher
This seems like a simple thing, but I have a progress bar that works 
just fine. The problem is the loop I'm working through is taking all 
of the resources for the flash container while it works.

Put another way:

I am processing 1000 records
It takes 45 seconds to complete and is invisible to the user
While this loop of processing takes place I want to update a progress 
meter telling the user I'm still working

but


Since this loop is so intense the whole flash container "hangs" or 
apears to pause. In fact, the whole browser is in this state.

Is there a way I can throttle this work a little so that screen 
updates and interactions can still take place?



(as a note, I'm walking through some data DTOs and creating an XML 
object from the properties on them)


Thanks



RE: [flexcoders] Request For Information On Use Of List Classes

2007-05-08 Thread Dimitrios Gianninas
1) Never have to this point.
 
2) Yes I have subclassed, but I dont believe any of the changes below would 
affect my subclass.
 
Dimitrios Gianninas
Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex 
Harui
Sent: Friday, May 04, 2007 2:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Request For Information On Use Of List Classes



FlexCoders,
 
We here at Adobe are looking at adding some cool new features to the DataGrid 
for the next major release.  As we look at the implementation issues we've 
realized that we could get better performance out of the new features if we 
make some changes to the current implementation that won't affect the API, but 
will affect assumption you could make about the objects you can access via the 
API.
 
So, I'm looking for feedback on two things:
 
1) Do you use lockedRowCount and/or lockedColumnCount?  If so, what do you use 
it for?  Are you using it to create extra row headers or fake column headers, 
or are you actually locking in some portion of the data?
 
2) Have you subclassed DataGrid or any of the other list classes?  If so, would 
we break you if 
a) listItems[0] was no longer the first visible row, but could be an 
off-screen row?  
b) visibleData contained renderers that were created but off-screen?  
c) listItems.length was no longer the number of visible rows because it 
also contained off-screen rows?
d) The DataGrid header was no longer in listItems[0]?
e) locked rows/column were no longer in listItems at all?
 
Thanks,
-Alex

 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



RE: [flexcoders] Zooming of the whole Application !!! Doesnt behave like a authorin tool published SWF

2007-05-08 Thread Ravi Kumar Gummadi
Alex,

 

I couldn't get how we are gonna control the stage size. If we are giving
absolute width and height for the Application ( I guess it's the same
size of stage) the application is not listening or dispatching to any
resize events ( Both the application as well as stage are not
responding) and hence browser resizing is not at all effecting the
Application.

 

But on contrary to that in authoring tool , though we are hardcoding the
stage size to some fixed value, the player/browser resize is effecting
it.

 

 

EvilCflex

stageMode set to showall gets somewhere near to that but...its scaling
out..! U told about setting the width and height but..its clipping the
stage instead of zooming down U referred to  this.parent. ..but
whose parent are u actually referring to??

 

Regards

Ravi

 

 


** The
information contained in this email, and any attachments hereto, is
strictly confidential and solely intended for use by the individual(s)
and/or entity(s) to which it is addressed. If you have received this
email in error, please notify the System Manager at
[EMAIL PROTECTED] as soon as possible. Thank you for your attention
to this matter.

**



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Monday, May 07, 2007 11:11 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Zooming of the whole Application !!! Doesnt
behave like a authorin tool published SWF

 

In theory, you either want the player to do the scaling or Flex to do
the scaling.  Flex doesn't really know how so it just looks at the new
stage size and tries a non-scaled layout.  If the player also tries to
scale, you'll get the wrong result.  Setting a non% width/height should
prevent Flex from trying the non-scaled layout.

 

You can then listen to the Stage resize event yourself and resize the
Application to whatever makes it work for you.

 

I think one "hard" part may be in controlling the stage size.  As you
resize the browser, it is resizing the player and if the player is given
an aspect ratio different from the original you might get bad results.
You may want to add some Javascript in the wrapper that you call from
ExternalInterface in your Stage resize event that tries to force the
browser to give the player an aspect ratio you like.

 

-Alex

 



RE: [flexcoders] Re: Setting ByteArray to a specific string value ?

2007-05-08 Thread Peter Farland
Let's discuss options for the hotfix offline.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jamiebadman
Sent: Tuesday, May 08, 2007 4:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Setting ByteArray to a specific string value ?



Thanks for the info. Does this mean that until the hotfix is 
released, there's no way I can call this webservice from Flex? 
Unfortunately time constraints on this mean I need to find a way to 
do this asap so waiting for a fix won't be an option. Don't suppose 
this fix is already in Flash 9 is it ? I could possibly create a 
function in Flash for the call to the webservice then embed the 
Flash in Flex and call the Flash function from the Flex... would 
that work ?!

BTW - an earlier post suggested I try writeUTFBytes - unfortunately 
it doesn't seem to work. Here's what happens...

My string in Flex, for example, might be 'FRED'... so I do this:

var bAryObj:ByteArray = new ByteArray();
var password:String = "FRED";
bAryObj.writeUTFBytes(password);

If I look in bAryObj I can see it is 4 bytes in size.

So I then call the webservice and look at the packet sent to it via 
Ethereal which shows me this:

http://xxx.yyy.com  ">
R1JFRA==


And then of course the service fails with invalid username/password.

So what is happening is, the bAryObj is being 64-bit encoded before 
it gets sent to the service. Normally this would be fine - but 
unfortunately in this case, I do not want the encoding to take 
place - because the string I have is already encoded.

I thought maybe I could decode it then pass THAT value across so it 
then gets encoded back to the original but unfortunately the decoded 
version does not seem to be a string at all; it's a true binary 
array.

Any ideas ?

Jamie.

--- In flexcoders@yahoogroups.com 
, "Peter Farland" <[EMAIL PROTECTED]> 
wrote:
>
> The new WebService implementation due out soon in Flex 2.0.1 
Hotfix 2
> (developed during the LCDS 2.5 timeframe) should fix this problem.
> 
> FWIW, there is a Base64Encoder in rpc.swc that is not yet 
documented
> (but will be in the next version of Flex). Here's how you can use 
it
> now:
> 
> import mx.utils.Base64Encoder;
> 
> // ...
> 
> var encoder:Base64Encoder = new Base64Encoder();
> encoder.encode(myPassword);
> var encodedPassword:String = encoder.drain();
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of jamiebadman
> Sent: Friday, May 04, 2007 6:46 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Setting ByteArray to a specific string 
value ?
> 
> 
> 
> Ok, I'm not even sure if the topic is right... here's what I'm 
> trying to do...
> 
> I need to call a webservice which has as a parameter a base 64 
> binary field. This needs to contain a password field in an 
encrypted 
> (string) form. This has been provided to me as a string and it is 
> this exact value I need to send to the webservice.
> 
> So I tried first sending it as a string but when I run ethereal 
> (which shows me what's actually being sent to the webservice) I 
see 
> that no data is being sent for the password.
> 
> So I tried using ByteArray instead - and this shows data being 
sent -
> but not the data I tried to store in the ByteArray... I tried 
> storing the string into the ByteArray using writeUTF, 
> writeMultiByte, looping through the string and storing each char 
> code in each ByteArray element... no luck as yet - the value of 
the 
> ByteArray being sent to the Service always seems to have a value 
> different from the value I'm trying to set it to!
> 
> I'm certain this is a case of pure ignorance on my part - does 
> anyone both understand what I'm trying to do and also understand 
why 
> it's not right ?! If so... help
> 
> Thanks,
> 
> Jamie.
>



 


RE: [flexcoders] Re: Pin a single child element to the bottom of a parent VBox?

2007-05-08 Thread Ian Skinner
Ian,

Let me ask, what are your intentions? What is the purpose of the pinned
instance?

Then I could explain why I over engineered what Doug put so simply :)

Peace, Mike

 

Sure thing Mike, Doug's solution is something I would give a try.

 

I have a series of containers, currently VBoxes, laid out in a grid
consisting of seven columns by four to six rows; a calendar.  Each of
these containers contains 0 to N (a dozen or so max) events with their
details displayed in child containers of the previous day containers.
The height of each row of day containers is determined by the day with
the most events in that row.  At the bottom of each day container,
another child container containing notes for the given day is to be
displayed.  The users want it at the bottom of the container whether
there is 0 events or 14 events.

 

Thanks Ian


Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.

--- Begin Message ---
Ian,

Let me ask, what are your intentions? What is the purpose of the pinned 
instance?

Then I could explain why I over engineered what Doug put so simply :)

Peace, Mike



On 5/7/07, Michael Schmalle mailto:[EMAIL PROTECTED]> 
gmail.com> wrote:

> One way you could do this is with a Spacer before the last child box to 
push it to the bottom. Nice 'n' easy in static mxml.

That is an easy way also if you do not have flexible children. When I was 
answering his question I was seeing in my head a layout independent of the view 
children. 

Peace, Mike



On 5/7/07, Doug Lowder <   [EMAIL PROTECTED]> wrote:

One way you could do this is with a Spacer before the last child box to 
push it to the bottom. Nice 'n' easy in static mxml.



--- In [EMAIL PROTECTED]  ups.com, Ian 
Skinner <[EMAIL PROTECTED]> wrote:
>
> Is this possible in a standard 'vertical' layout VBox, or does one 
have 
> to go 'absolute' layout?
> 
> I have a VBox displaying 1-N child boxes, and I want one to be pinned 
to 
> the bottom. Is this possible or do I need to wrap an absolute layout 
> around this?
>








-- 
Teoti Graphix
  http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2com  ponents.com 

You can find more by solving the problem then by 'asking the question'. 




-- 
Teoti Graphix
http://www.teotigra  phix.com

Blog - Flex2Components
  http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'. 

 
--- End Message ---


[flexcoders] Re: Image Component Nightmare

2007-05-08 Thread vitcheff
Thanks for your replay. Had a look on it, maybe will take another one,
but as I was trying to do the same with a Loader component, issues
were the same. Event.INIT event is fired by the Loader and it's width
and height remain 0, and I have to use loader.content too. That's just
 something I don't get. Why do width and height remain 0 after an INIT
event?



--- In flexcoders@yahoogroups.com, "Adam Royle" <[EMAIL PROTECTED]> wrote:
>
> Not sure if this will help, but have you looked at Ely Greenfield's
SuperImage Component?
> 
>
http://www.quietlyscheming.com/blog/2007/01/23/some-thoughts-on-doubt-on-flex-as-the-best-option-orhow-i-made-my-flex-images-stop-dancing/
> 
> Adam
> 
>   - Original Message - 
>   From: vitcheff 
>   To: flexcoders@yahoogroups.com 
>   Sent: Tuesday, May 08, 2007 8:39 PM
>   Subject: [flexcoders] Image Component Nightmare
> 
> 
>   Hi all,
>   What I'm trying is to achieve is to have a thumbnails bar with some
>   images in it, which, when clicked, should display the corresponding
>   large version in a Canvas.
> 
>   I'm doing this through AS3 in UIComponent-based class. There is an
>   Image component instance which is placed in a Canvas instance. What
>   I'm trying to do is scale the image down to the canvas's size and then
>   provide a slider to zoom it in/out.
> 
>   What makes me crazy is that I have to scale image.content instead of
>   the image itself and after that make a ton of magic when trying to
>   figure what the width and height of the image is, to be able to
center it.
> 
>   Although the content is scaled down, image.width remains unchanged,
>   and working with the content's size still brings some unexpected
>   behaviour in.
> 
>   Is there something bad about my approach. Handling a simple image
>   shouldn't be that freaking hard. Do I miss something?
> 
>   Thanks in advance!
>




RE: [flexcoders] Pin a single child element to the bottom of a parent VBox?

2007-05-08 Thread Ian Skinner
If this sounds like something you would want to try, I can be more
specific.

Peace, Mike

 

That does not sound all that simple for my very first, non-tutorial Flex
application and may be overkill for what I want.  But it's good to know
the concepts of what is possible when my skills advance somewhat.

 

Ian

 


Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.

--- Begin Message ---
Hi,

As it is the Box disregaurds x and y. 

My advice as a component developer is, subclass the Box and create a 
bottomRenderer property that is IFactory. Create a method that overrides 
layoutChrome() and layout the renderer based on your required dimensions. This 
instance would be added to rawChildren. 

Another angle is if you need the box created in mxml for some reason(in the 
content children), override createComponentsFromDescriptors() remove the 
instance you have identified, put it in rawChildren and layout it out in the 
chrome. You will need to override viewMetrics() and add the height of the 
instance to the bottom property. 

If this sounds like something you would want to try, I can be more specific.

Peace, Mike



On 5/7/07, Ian Skinner <   [EMAIL PROTECTED]> wrote:

Is this possible in a standard 'vertical' layout VBox, or does one have 
to go 'absolute' layout?

I have a VBox displaying 1-N child boxes, and I want one to be pinned to 
the bottom. Is this possible or do I need to wrap an absolute layout 
around this?







-- 
Teoti Graphix
http://www.teotigra  phix.com

Blog - Flex2Components
http://www.flex2com  ponents.com 

You can find more by solving the problem then by 'asking the question'. 

 
--- End Message ---


  1   2   >