RE: [flexcoders] Vertical scrolling without horizontal scrolling? How do I make 100% == 100% of available width?

2007-11-13 Thread Alex Harui
I think you want the content to use 100% but have minWidth=0.  You're
hitting an obscure 'rule' of flex that we don't shrink containers when
they decide to put up scrollbars else it could propagate scrollbars down
to its children.  Also, if or when you know you want scrollbars,
changing the policy to "on" will factor the scrollbars into the layout.
minWidth usually solves it though.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Tuesday, November 13, 2007 11:13 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Vertical scrolling without horizontal
scrolling? How do I make 100% == 100% of available width?

 

The content is set up to be in some cases 100%, otherwise it's
anchored to top/bottom/sides.

If I have the container (vbox) anchored to the bottom of the
application, or no height specifcation at all, or any %, it simply
grows out and i get the dual scrollbars. If i specify a pixel height,
the container itself gets a scrollbar and everything works fine. Is
there no way to have a container that has an "anchored to the
application" minimum size, but will scroll internally if it needs to?
I imagine setting the height to a pixel size when the application
detects a resize would achieve the results I'm after, but that's
awfully kludgey.

I feel like I'm trying to do CSS-based design in HTML :-/

-Josh

On Nov 14, 2007 4:49 PM, Alex Harui <[EMAIL PROTECTED]
 > wrote:
>
>
>
>
>
>
>
>
>
> Does the content need to fill the width of the container? If it does,
I
> think you'll always get an hbar since even narrowing it would obscure
> content.
>
>
>
> Otherwise, try setting minWidth=0 on the content items and maybe the
> container as well.
>
>
>
> 
>
>
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Josh McDonald
> Sent: Tuesday, November 13, 2007 10:24 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Vertical scrolling without horizontal scrolling?
How
> do I make 100% == 100% of available width?
>
>
>
>
>
>
>
> Hi guys,
>
> I'm having a problem where as soon as my content goes taller than a
> container (be it the application, or a panel) and a vertical scrollbar
> is needed, it simply covers up some of the container rather than
> narrowing it. This of course creates a horizontal scrollbar as well.
> Is there an easy way to get around this? It's really the last thing I
> want, and to me seems like the last thing anybody would want. I'm sure
> it's something simple, but it's just one of those things that appears
> difficult to google for :)
>
> Any help appreciated :)
>
> -Josh
>
> --
> "This is crazy! Why are we talking about going to bed with Wilma
> Flintstone... She'll never leave Fred and we know it. "
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]  
>
> 

-- 
"This is crazy! Why are we talking about going to bed with Wilma
Flintstone... She'll never leave Fred and we know it. "

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

 



Re: [flexcoders] Vertical scrolling without horizontal scrolling? How do I make 100% == 100% of available width?

2007-11-13 Thread Josh McDonald
The content is set up to be in some cases 100%, otherwise it's
anchored to top/bottom/sides.

If I have the container (vbox) anchored to the bottom of the
application, or no height specifcation at all, or any %, it simply
grows out and i get the dual scrollbars. If i specify a pixel height,
the container itself gets a scrollbar and everything works fine. Is
there no way to have a container that has an "anchored to the
application" minimum size, but will scroll internally if it needs to?
I imagine setting the height to a pixel size when the application
detects a resize would achieve the results I'm after, but that's
awfully kludgey.

I feel like I'm trying to do CSS-based design in HTML :-/

-Josh

On Nov 14, 2007 4:49 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
>
>
> Does the content need to fill the width of the container?  If it does, I
> think you'll always get an hbar since even narrowing it would obscure
> content.
>
>
>
> Otherwise, try setting minWidth=0 on the content items and maybe the
> container as well.
>
>
>
>  
>
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Josh McDonald
>  Sent: Tuesday, November 13, 2007 10:24 PM
>  To: flexcoders@yahoogroups.com
>  Subject: [flexcoders] Vertical scrolling without horizontal scrolling? How
> do I make 100% == 100% of available width?
>
>
>
>
>
>
>
> Hi guys,
>
>  I'm having a problem where as soon as my content goes taller than a
>  container (be it the application, or a panel) and a vertical scrollbar
>  is needed, it simply covers up some of the container rather than
>  narrowing it. This of course creates a horizontal scrollbar as well.
>  Is there an easy way to get around this? It's really the last thing I
>  want, and to me seems like the last thing anybody would want. I'm sure
>  it's something simple, but it's just one of those things that appears
>  difficult to google for :)
>
>  Any help appreciated :)
>
>  -Josh
>
>  --
>  "This is crazy! Why are we talking about going to bed with Wilma
>  Flintstone... She'll never leave Fred and we know it. "
>
>  :: Josh 'G-Funk' McDonald
>  :: 0437 221 380 :: [EMAIL PROTECTED]
>
>  



-- 
"This is crazy! Why are we talking about going to bed with Wilma
Flintstone... She'll never leave Fred and we know it. "

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


RE: [flexcoders] Vertical scrolling without horizontal scrolling? How do I make 100% == 100% of available width?

2007-11-13 Thread Alex Harui
Does the content need to fill the width of the container?  If it does, I
think you'll always get an hbar since even narrowing it would obscure
content.

 

Otherwise, try setting minWidth=0 on the content items and maybe the
container as well.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Tuesday, November 13, 2007 10:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Vertical scrolling without horizontal scrolling?
How do I make 100% == 100% of available width?

 

Hi guys,

I'm having a problem where as soon as my content goes taller than a
container (be it the application, or a panel) and a vertical scrollbar
is needed, it simply covers up some of the container rather than
narrowing it. This of course creates a horizontal scrollbar as well.
Is there an easy way to get around this? It's really the last thing I
want, and to me seems like the last thing anybody would want. I'm sure
it's something simple, but it's just one of those things that appears
difficult to google for :)

Any help appreciated :)

-Josh

-- 
"This is crazy! Why are we talking about going to bed with Wilma
Flintstone... She'll never leave Fred and we know it. "

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

 



[flexcoders] Vertical scrolling without horizontal scrolling? How do I make 100% == 100% of available width?

2007-11-13 Thread Josh McDonald
Hi guys,

I'm having a problem where as soon as my content goes taller than a
container (be it the application, or a panel) and a vertical scrollbar
is needed, it simply covers up some of the container rather than
narrowing it. This of course creates a horizontal scrollbar as well.
Is there an easy way to get around this? It's really the last thing I
want, and to me seems like the last thing anybody would want. I'm sure
it's something simple, but it's just one of those things that appears
difficult to google for :)

Any help appreciated :)

-Josh

-- 
"This is crazy! Why are we talking about going to bed with Wilma
Flintstone... She'll never leave Fred and we know it. "

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


RE: [flexcoders] Re: Item Renderer Not Updating

2007-11-13 Thread Alex Harui
Unless the data object is [bindable], modifications to data objects must
be accompanied by a call to itemUpdated on the collection.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Geoffrey
Sent: Tuesday, November 13, 2007 8:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Item Renderer Not Updating

 

I know there's got to be something simple that I'm overlooking, and I
thought that I read 
something pertaining to this in the docs, but for the life of me I can't
find it.

Thanks for any suggestions,
Geoff

--- In flexcoders@yahoogroups.com 
, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> I have a List that is bound to an ArrayCollection. If I programaticly
> update the ArrayCollection, the itemRenderer fails to update as well.
> 
>  dataProvider="{__resourceModel.userSummaries}"
> selectable="false"
> itemClick="onItemClick(event)"
> itemRenderer="mx.controls.CheckBox"
> width="100%" height="100%"/>
> 
> 
> __resourceModel.userSummaries is an ArrayCollection of
> ResourceItemModels which looks like:
> public class ResourceItemModel implements ModelLocator
> {
> public var username:String;
> public var firstName:String;
> public var lastName:String;
> // These are used by an itemRenderer
> public var label:String;
> public var selected:Boolean;
> 
> }
> 
> 
> The List is a list of CheckBoxes with the username as the label. When
> someone selects one of the CheckBoxes, it go off and sets the
> 'selected' property of the specific ResourceItemModel to true. This
> part works just fine.
> 
> After a certain user gesture, I want to set all selections back to
> false, then reselect any CheckBox selections that may have existed. 
> This information comes from another model. The resetting of the
> CheckBoxes is in a loop that does:
> ResourceItemModel(userSummaries[i]).selected = false;
> 
> This properly sets the models selected property to false, but the view
> does not update (ie. the CheckBox is still selected).
> 
> 
> How do I update the itemRender after I programmaticly update the
> dataProvider?
> 
> Thanks,
> Geoff
>

 



[flexcoders] Re: Item Renderer Not Updating

2007-11-13 Thread Geoffrey
I know there's got to be something simple that I'm overlooking, and I thought 
that I read 
something pertaining to this in the docs, but for the life of me I can't find 
it.

Thanks for any suggestions,
Geoff

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> I have a List that is bound to an ArrayCollection.  If I programaticly
> update the ArrayCollection, the itemRenderer fails to update as well.
> 
>  dataProvider="{__resourceModel.userSummaries}"
> selectable="false"
> itemClick="onItemClick(event)"
> itemRenderer="mx.controls.CheckBox"
> width="100%" height="100%"/>
> 
> 
> __resourceModel.userSummaries is an ArrayCollection of
> ResourceItemModels which looks like:
> public class ResourceItemModel implements ModelLocator
> {
> public var username:String;
> public var firstName:String;
> public var lastName:String;
> // These are used by an itemRenderer
> public var label:String;
> public var selected:Boolean;
> 
> }
> 
> 
> The List is a list of CheckBoxes with the username as the label.  When
> someone selects one of the CheckBoxes, it go off and sets the
> 'selected' property of the specific ResourceItemModel to true.  This
> part works just fine.
> 
> After a certain user gesture, I want to set all selections back to
> false, then reselect any CheckBox selections that may have existed. 
> This information comes from another model.  The resetting of the
> CheckBoxes is in a loop that does:
> ResourceItemModel(userSummaries[i]).selected = false;
> 
> This properly sets the models selected property to false, but the view
> does not update (ie. the CheckBox is still selected).
> 
> 
> How do I update the itemRender after I programmaticly update the
> dataProvider?
> 
> Thanks,
> Geoff
>




[flexcoders] DataServices HIbernate and Interceptors

2007-11-13 Thread Kevin
Does anyone know OR has anyone has success using Interceptors with  
DataSevices and Hibernate.  Specifically we want to be able to modify  
data as we are sending it through to Hibernate and do not know how  
that will affect our DataServices framework and data pushing.

This also begs the questions, how does DataServices deal with changes  
made to the database from outside the Flex client (but within  
Hibernate).  For example, is there a way to use our Flex session in  
Java to make a HIbernate call that will get reflected in the Flex  
clients.  If there is any information on these subjects feel free to  
send some URLs.  We have had trouble finding info on this.

Thanks for help with these questions.

- Kevin


RE: [flexcoders] reference a class instance from another mxml

2007-11-13 Thread elr

Big thanks Tracy ;-)

I religiously study your notes.

That I still need to master are relations between 
MXML entities and AS ones (MXMLcode from/to AS 
classes, MXML codes from/to AS scripts, MXML 
components from/to AS classes and so on...)
By the way, you"re right, events are much cleaner 
but I just wanted to gain time for a presentation draft :(


Thx !

Eric

At 2007-11-13   15:06, you wrote:

Ah, that is the problem.  Packages and 
namespaces are really compile-time things.  You 
don’t use them in run-time references.  Instead, 
you want to use the run-time DOM.




There are several ways to reach “up” the 
dom.  One is application.application.  You use 
the id of your instantiated component to 
reference its public members.  So one way to do what you want is::


Import mx.core.Application;

…

private var _app:Application

…

_app = Application.application;

user = _app.loginpanel1.user



below are some additional notes on traversing the DOM.

Tracy



Communicating between Components:



Note: for "loose coupling" use events.  But that is another topic.



A non-trivial flex application is "component" 
based. While all of the built in controls are 
components, the question of communicating 
between components really only arises when you 
are using a custom component. A custom 
component, whether implemented in mxml or 
ActionScript, has its own "scope". Within that 
component (Application is a component too!), all 
sibling child controls share the same scope, so 
you can refer to controls by their id.  If the 
controls(components) have public properties or 
methods, you can refernce those members directly through the id:








Ok, so far, its a "duh" right?



When you use custom components in a Flex app, at 
run time they make a document object model 
hierarchy (DOM).  Each subcomponent has its own 
scope and can't *directly* reference the member 
properties or methods of its sibling subcomponents.




So again, within a component, you can refernce 
siblings directly, as in the example above.  But 
there are two other cases inherent in a 
hierarchy.  You might want to reference "up", to 
get to public members of the parent, or 'down", 
to get to public members of some child.




Accessing members in the parent:

On an ordinary component DOM, you can reference 
the parent component using the .parent 
property.  Say that a control with 
id="textinput1" exists in the parent of the 
current component.  then you could do:






Accessing members in the main application:

Components can be nested, sometimes very 
deeply.  If the reference you want is all the 
way at the top-level, main application (the one 
with the  tag), you could do 
{parent.parent.parent.textinput1.text}, but you 
would have to count the component levels just 
right.  Instead, you can use Application.application to get to that scope:


text="{Application.application.textinput1.text}" .../>


You can shoretn this style of reference by 
importing mx.core.Application, and assigning 
Application.application to a variable, like 
_app, the doing (_app.textinput1.text)




Accessing members of a child component:

Say that in this case, a child component has the 
TextInput control you want to reference.  First, 
make sure the child component has an id:




Then, in the same scope (the same component/file 
that contains as the tag above) you can say:






Accessing a nested component:

As mentioned above you can go "up" the hierarchy 
using "parent.parent...".  You can als go "down" 
the hirearchy using id references:


text="{mycc1.mycc11.mycc.12.textinput1.text}" .../>




Additional notes:

If you are using SWFLoader to load an entire 
Application, you can reference the immediate 
parent application using "parentDocument".  You 
can also use Application.application to reach the main app, as shown above.




Accessing members of an application loaded by 
SWFLoader is a bit more complicated.  See the example here:


http://www.cflex.net/showFileDetails.cfm?ObjectID=690



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

Sent: Monday, November 12, 2007 11:47 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] reference a class instance from another mxml




Yes Tracy  both of my 2 mxml (A and B) are in 
a  directory   /comps and both have this:


xmlns:comps="comps.*"

namespace reference. Maybe I missed something 
but it sounds correct as Flex code hinting lists 
me all my components as soon as I type down 'comps'.


LoginPanel was instanciated in a state of Main.mxml (the Application)

Here's Main.mxml:


http://www.adobe.com/2006/mxml";
  xmlns:user="classes.*"
  xmlns:comps="comps.*" >

  
  

   
 
 

RE: [flexcoders] Re: Loading *existing* modules into a ModuleLoader

2007-11-13 Thread Alex Harui
I'm not sure what your goal is.  Why not just switch between several
ModuleLoaders?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tdf0wler
Sent: Tuesday, November 13, 2007 2:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Loading *existing* modules into a ModuleLoader

 

Is there any way to achieve what I'm trying to do?

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> ModuleLoader.child is not watched for changes. It wasn't anticipated
> that you'd try to switch out children.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of tdf0wler
> Sent: Tuesday, November 13, 2007 2:00 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Loading *existing* modules into a ModuleLoader
> 
> 
> 
> I have a fringe use case here, and I think it may be a simple fix but
> I'm a little stumped.
> 
> I have a shell Flex application loading modules via ModuleLoader. When
> a module is instantiated I also add a reference to it in a ViewLocator
> class (singleton) containing a hash map. For instance, when Module1 is
> loaded, the constructor for Module1's code-behind class (Module1Base)
> references the ViewLocator, like so:
> 
> class Module1Base
> {
> public function Module1Base()
> {
> // some code
> ViewLocator.getInstance().addView(this);
> }
> .
> .
> .
> }
> 
> There is a case where I am loading additional modules into the same
> ModuleLoader that Module1 occupies. For instance, I want to load
> Module2 into said ModuleLoader. Subsequently, I will want to load
> Module1 back into the aforementioned ModuleLoader. I am having
> difficulty figuring this part out. I am attempting to set the
> ModuleLoader's child property to the existing reference in the
> ViewLocator, like so:
> 
> // after Module1 was loaded, then another module (e.g. Module2)
> // then back to Module1
> m = moduleLoaderInMainApp;
> 
> m.child =
> ViewLocator.getInstance().getView(getQualifiedClassName(Module1));
> 
> Does anyone have any idea if this can be done, or how to do it?
> 
> Thanks,
> 
> Thomas
>

 



Re: [flexcoders] Left focus from browser, back and click, editable DG with empty dataprovider got RTE Error #1010.

2007-11-13 Thread George
Thanks Alex.

I found a similar fixed bug report: Tabbing to an editable DataGrid that 
is empty causes a RTE
https://bugs.adobe.com/jira/browse/SDK-7518

I made a simple test file, the Tab bug above could still be reproduced 
in Flex 3. Also the browser-back problem as I tested.
--

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











   

--

Alex Harui wrote:
> Please file a bug.  Use a debug build so we can get line numbers in the
> stack trace.
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of George
> Sent: Tuesday, November 13, 2007 1:09 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Left focus from browser, back and click, editable
> DG with empty dataprovider got RTE Error #1010.
>
> Lastest Flex 3. I think it looks like a bug and I don't know how could 
> avoid it. (I noticed simliar RTE met by colleagues so I test myself.)
>
> I have an editable DG, say it has focusInHandler, itemBeginHandler, 
> itemEndHandler. It has no any problem when I test back and forth. But 
> occasionally I find a problem.
>
> When the DG don't have any items, click it, then move mouse out of 
> browser (so browser lost focus), and then go back and click that DG 
> again. I got RTE all the time:
>
> TypeError: Error #1010: A term is undefined and has no properties.
> at mx.controls::DataGrid/scrollToEditedItem()
> at mx.controls::DataGrid/commitEditedItemPosition()
> at mx.controls::DataGrid/updateDisplayList()
> at mx.controls.listClasses::ListBase/validateDisplayList()
> at mx.managers::LayoutManager/validateDisplayList()
> at mx.managers::LayoutManager/doPhasedInstantiation()
> at Function/http://adobe.com/AS3/2006/builtin::apply
>  ()
> at mx.core::UIComponent/callLaterDispatcher2()
> at mx.core::UIComponent/callLaterDispatcher()
>
> I don't understand where's the problem. I tried to track handlers but 
> none of them received an event at time of RTE.
>
> Any help appreciated.
>
> Thanks,
> George
>   


[flexcoders] Suggestion needed for managing multiple properties

2007-11-13 Thread nwebb
Hi,

I have an interface comprising of several tabs which are individually
enabled/disabled depending on the state of the application.

Currently tab-state depends on various properties. For example...

* is there a selected entity
* is searchMode enabled
* is the selectedEntity in state 1, 2 or 3 (...assuming there is a
selectedEntity)

As you can imagine, a tab's enabled state can depend on combinations
of the above properties, and combinations can change multiple tabs -
e.g.
if (searchModeEnabled && entityState==3){
  enableSearchTab();
  disableDetailsTab();
}else if ...


To get everything up and running quickly I used nested conditional
statements which is just about maintainable, but now it's time to
refactor and I'm looking for the cleanest possible way to manage this.
Perhaps there is a design pattern someone can recommend which is
suited to this kind of management, else perhaps someone can offer some
general guidelines.
I have come up with a few possibilities but none that I am completely
satisfied with so I'm looking for some help.

Cheers


Re: [flexcoders] cairngorm design question , need suggestions

2007-11-13 Thread Bjorn Schultheiss

Hi Yigit,

To execute commanderB from commanderA you need to dispatch eventB  
from commanderA.
You can either pass the instance as an argument of eventB or  
reference via the model in commandB.



regards,

Bjorn



On 14/11/2007, at 9:44 AM, yigit boyar wrote:


hi all;
we have a GUI built with flex using cairngorm microarchitechture.
the GUI is quite complex, and there is an xml schema (xsd) that
represents the VO structure.
We prepared a code generator(using AIR) which parses the xsd and  
creates

vo's,commanders,events,model&frontcontroller, so we just handcode the
view. (Vo's are serializable to XML and deserializable from XML , all
auto generated -sth like jaxb of java- )

the GUI was good for version1 but the XSD had to change a lot and  
we had

to insert hand written code into commaders and we started to have
performance issues.

now there is a new XSD, GUI will be recreated and we want to  
upgrade our

code generator to support the changes (more clever commanders & more
specific events!); so here comes my design question :

every class has it's own commander. and sometimes, when an event is
being executed, another commander should also work(sth more must be
done), and there is a specific event for that operation too.
(e.g. deletion of an instance of class A requires the update of the
instances of class B )
in this situation,
1 should commanderA dispatch an event to update class B instance
or
2 should commanderA call commanderB's execute function with the
needed event as argument
or
3 should commarderA edit B vo's . (we don't prefer this cuz it
violates the generic style of our code & cairngorm)

the second option is more efficient since it does not need to dispatch
the event and wait for it to be caught; but we wonder whether it
violates the cairngorm design pattern rules.

this is a really important project, so we'll be very pleased by taking
your comments.







Re: [flexcoders] Re: excetion bubbling to application level?

2007-11-13 Thread aaron smith
sweet sweet. that's what I was looking for.

On Nov 13, 2007 1:16 PM, Daniel Freiman <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Application dispatches and ErrorEvent every time an error is thrown anywhere
> in the Application.  This will not allow you to have a global error handler,
> but it will allow you to do logging.
>
> - Dan Freiman
>
>
>  On Nov 13, 2007 3:27 PM, ben.clinkinbeard <[EMAIL PROTECTED]>
> wrote:
> >
> >
> >
> >
> >
> >
> > Nope.
> >
> > --- In flexcoders@yahoogroups.com, "aaron smith"
> >
> > <[EMAIL PROTECTED]> wrote:
> > >
> > > Is there a way to get all exceptions to bubble to the Application
> > > level so I can catch all for logging? thanks yo.
> > >
> >
> >
>
>
>  


[flexcoders] Re: Loading *existing* modules into a ModuleLoader

2007-11-13 Thread tdf0wler
Is there any way to achieve what I'm trying to do?

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> ModuleLoader.child is not watched for changes.  It wasn't anticipated
> that you'd try to switch out children.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of tdf0wler
> Sent: Tuesday, November 13, 2007 2:00 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Loading *existing* modules into a ModuleLoader
> 
>  
> 
> I have a fringe use case here, and I think it may be a simple fix but
> I'm a little stumped.
> 
> I have a shell Flex application loading modules via ModuleLoader. When
> a module is instantiated I also add a reference to it in a ViewLocator
> class (singleton) containing a hash map. For instance, when Module1 is
> loaded, the constructor for Module1's code-behind class (Module1Base)
> references the ViewLocator, like so:
> 
> class Module1Base
> {
> public function Module1Base()
> {
> // some code
> ViewLocator.getInstance().addView(this);
> }
> .
> .
> .
> }
> 
> There is a case where I am loading additional modules into the same
> ModuleLoader that Module1 occupies. For instance, I want to load
> Module2 into said ModuleLoader. Subsequently, I will want to load
> Module1 back into the aforementioned ModuleLoader. I am having
> difficulty figuring this part out. I am attempting to set the
> ModuleLoader's child property to the existing reference in the
> ViewLocator, like so:
> 
> // after Module1 was loaded, then another module (e.g. Module2)
> // then back to Module1
> m = moduleLoaderInMainApp;
> 
> m.child =
> ViewLocator.getInstance().getView(getQualifiedClassName(Module1));
> 
> Does anyone have any idea if this can be done, or how to do it?
> 
> Thanks,
> 
> Thomas
>




[flexcoders] cairngorm design question , need suggestions

2007-11-13 Thread yigit boyar
hi all;
we have a GUI built with flex using cairngorm microarchitechture.
the GUI is quite complex, and there is an xml schema (xsd) that 
represents the VO structure.
We prepared a code generator(using AIR) which parses the xsd and creates 
vo's,commanders,events,model&frontcontroller, so we just handcode the 
view. (Vo's are serializable to XML and deserializable from XML , all 
auto generated -sth like jaxb of java- )

the GUI was good for version1 but the XSD had to change a lot and we had 
to insert hand written code into commaders and we started to have 
performance issues.

now there is a new XSD, GUI will be recreated and we want to upgrade our 
code generator to support the changes (more clever commanders & more 
specific events!); so here comes my design question :

every class has it's own commander. and sometimes, when an event is 
being executed, another commander should also work(sth more must be 
done), and there is a specific event for that operation too.
(e.g. deletion of an instance of class A requires the update of the 
instances of class B )
in this situation,
1 should commanderA dispatch an event to update class B instance
or
2 should commanderA call commanderB's execute function with the 
needed event as argument
or
3 should commarderA edit B vo's . (we don't prefer this cuz it 
violates the generic style of our code & cairngorm)

the second option is more efficient since it does not need to dispatch 
the event and wait for it to be caught; but we wonder whether it 
violates the cairngorm design pattern rules.

this is a really important project, so we'll be very pleased by taking 
your comments.



RE: [flexcoders] Editable data in data grid too easily edited

2007-11-13 Thread Alex Harui
Worth a try, but you don't know that the second click is on the same
cell.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Hueners
Sent: Tuesday, November 13, 2007 12:07 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Editable data in data grid too easily edited

 

Could the editable property be reset from false to true on a 2nd click?

On 11/13/07, Alex Harui <[EMAIL PROTECTED]   >
wrote:

If you handle change events & mousedown/up you might know when to cancel
itemEditBeginning

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Scott Melby
Sent: Tuesday, November 13, 2007 4:36 AM
To: flexcoders@yahoogroups.com  
Subject: [flexcoders] Editable data in data grid too easily edited

 

IMO it is too easy to get into "edit" mode on an editable DataGrid or 
AdvancedDataGrid. For instance, if I am just selecting a row that was 
not previously selected it would be great if it did not invoke the 
editor until I clicked in the editable column again. This is 
particularly problematic in the AdvancedDataGrid if the first column 
(tree column) is editable. In this case even expanding/contracting the 
tree node puts the user into edit mode on the data in the first column 
of that row.

I am guessing that I would need to extend DataGrid, AdvancedDataGrid and

possibly also provide a custom itemEditor to resolve this issue. But 
wanted to hear if others had suggestions for the cleanest solution.

Any help is appreciated.

Thanks
Scott

-- 
Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com  

 

 



RE: [flexcoders] Left focus from browser, back and click, editable DG with empty dataprovider got RTE Error #1010.

2007-11-13 Thread Alex Harui
Please file a bug.  Use a debug build so we can get line numbers in the
stack trace.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of George
Sent: Tuesday, November 13, 2007 1:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Left focus from browser, back and click, editable
DG with empty dataprovider got RTE Error #1010.

 

Lastest Flex 3. I think it looks like a bug and I don't know how could 
avoid it. (I noticed simliar RTE met by colleagues so I test myself.)

I have an editable DG, say it has focusInHandler, itemBeginHandler, 
itemEndHandler. It has no any problem when I test back and forth. But 
occasionally I find a problem.

When the DG don't have any items, click it, then move mouse out of 
browser (so browser lost focus), and then go back and click that DG 
again. I got RTE all the time:

TypeError: Error #1010: A term is undefined and has no properties.
at mx.controls::DataGrid/scrollToEditedItem()
at mx.controls::DataGrid/commitEditedItemPosition()
at mx.controls::DataGrid/updateDisplayList()
at mx.controls.listClasses::ListBase/validateDisplayList()
at mx.managers::LayoutManager/validateDisplayList()
at mx.managers::LayoutManager/doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply
 ()
at mx.core::UIComponent/callLaterDispatcher2()
at mx.core::UIComponent/callLaterDispatcher()

I don't understand where's the problem. I tried to track handlers but 
none of them received an event at time of RTE.

Any help appreciated.

Thanks,
George

 



RE: [flexcoders] Loading *existing* modules into a ModuleLoader

2007-11-13 Thread Alex Harui
ModuleLoader.child is not watched for changes.  It wasn't anticipated
that you'd try to switch out children.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tdf0wler
Sent: Tuesday, November 13, 2007 2:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Loading *existing* modules into a ModuleLoader

 

I have a fringe use case here, and I think it may be a simple fix but
I'm a little stumped.

I have a shell Flex application loading modules via ModuleLoader. When
a module is instantiated I also add a reference to it in a ViewLocator
class (singleton) containing a hash map. For instance, when Module1 is
loaded, the constructor for Module1's code-behind class (Module1Base)
references the ViewLocator, like so:

class Module1Base
{
public function Module1Base()
{
// some code
ViewLocator.getInstance().addView(this);
}
.
.
.
}

There is a case where I am loading additional modules into the same
ModuleLoader that Module1 occupies. For instance, I want to load
Module2 into said ModuleLoader. Subsequently, I will want to load
Module1 back into the aforementioned ModuleLoader. I am having
difficulty figuring this part out. I am attempting to set the
ModuleLoader's child property to the existing reference in the
ViewLocator, like so:

// after Module1 was loaded, then another module (e.g. Module2)
// then back to Module1
m = moduleLoaderInMainApp;

m.child =
ViewLocator.getInstance().getView(getQualifiedClassName(Module1));

Does anyone have any idea if this can be done, or how to do it?

Thanks,

Thomas

 



[flexcoders] Item Renderer Not Updating

2007-11-13 Thread Geoffrey
I have a List that is bound to an ArrayCollection.  If I programaticly
update the ArrayCollection, the itemRenderer fails to update as well.




__resourceModel.userSummaries is an ArrayCollection of
ResourceItemModels which looks like:
public class ResourceItemModel implements ModelLocator
{
public var username:String;
public var firstName:String;
public var lastName:String;
// These are used by an itemRenderer
public var label:String;
public var selected:Boolean;

}


The List is a list of CheckBoxes with the username as the label.  When
someone selects one of the CheckBoxes, it go off and sets the
'selected' property of the specific ResourceItemModel to true.  This
part works just fine.

After a certain user gesture, I want to set all selections back to
false, then reselect any CheckBox selections that may have existed. 
This information comes from another model.  The resetting of the
CheckBoxes is in a loop that does:
ResourceItemModel(userSummaries[i]).selected = false;

This properly sets the models selected property to false, but the view
does not update (ie. the CheckBox is still selected).


How do I update the itemRender after I programmaticly update the
dataProvider?

Thanks,
Geoff




[flexcoders] Rotated headings

2007-11-13 Thread Richard Rodseth
I'm trying to do some rotated column headings using a repeater (or
list, potentially) with rotated labels. But I need the utlimate bounds
of the rotated label to be accurate after the rotation. i.e. if it's
rotated 90 degrees, the width should narrow. What's the appropriate
way to deal with this?


[flexcoders] CSS cheat sheets

2007-11-13 Thread brileach
First time poster long time reader. 

Are there any good flex css cheat sheets out there? Ideally it would
list all selectors, properties and values. I'm new to flex and the
syntax vs. traditional css is killing me.

The style explorer is extremely handy but a list of everything would
be extremely useful.

Thanks.

-Brian



[flexcoders] Loading *existing* modules into a ModuleLoader

2007-11-13 Thread tdf0wler
I have a fringe use case here, and I think it may be a simple fix but
I'm a little stumped.

I have a shell Flex application loading modules via ModuleLoader. When
a module is instantiated I also add a reference to it in a ViewLocator
class (singleton) containing a hash map. For instance, when Module1 is
loaded, the constructor for Module1's code-behind class (Module1Base)
references the ViewLocator, like so:

class Module1Base
{
 public function Module1Base()
 {
  // some code
  ViewLocator.getInstance().addView(this);
 }
.
.
.
}

There is a case where I am loading additional modules into the same
ModuleLoader that Module1 occupies. For instance, I want to load
Module2 into said ModuleLoader. Subsequently, I will want to load
Module1 back into the aforementioned ModuleLoader. I am having
difficulty figuring this part out. I am attempting to set the
ModuleLoader's child property to the existing reference in the
ViewLocator, like so:

// after Module1 was loaded, then another module (e.g. Module2)
// then back to Module1
m = moduleLoaderInMainApp;

m.child =
ViewLocator.getInstance().getView(getQualifiedClassName(Module1));

Does anyone have any idea if this can be done, or how to do it?

Thanks,

Thomas



RE: [flexcoders] Re: DataGrid not populating from XMLListCollection - namespace issue?

2007-11-13 Thread Tracy Spratt
I've never used the child() method but I just looked it up and your
usage is right.  But I think instead of:

child("OrdMedList");

it should be:

child("OrdMed");

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, November 13, 2007 4:55 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: DataGrid not populating from
XMLListCollection - namespace issue?

 

I am concerned about this expression:

ordMedXMLList = resultXML.child("OrdMedList");

 

Why not:

ordMedXMLList = resultXML.OrdMed;  //You'll need the namespace
identifier in there or have a default.

trace(ordMedXMLList.length()); 

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Tuesday, November 13, 2007 1:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DataGrid not populating from XMLListCollection
- namespace issue?

 

Hi Brian,

These days I usually want to end up with strongly typed objects, so I
generally implement my VO classes so that they accept XML in their
constructor. I pass the XML node to the constructor, throw a "use
namespace" in there and then grab the properties I need from the XML.

HTH,
Ben

--- In flexcoders@yahoogroups.com 
, "Brian" <[EMAIL PROTECTED]> wrote:
>
> Thanks! I've tried it and am still having problems. Sorry for the
> newbie questions.
> 
> You mentioned in the comments on your blog that you like to leave the
> resultFormat defaulted to Object. So then how do you construct your
> dataProvider? I'm confused because on one hand we're talking about
> handling XML/namespace data, but then you talk about leaving it as an
> Object. Do you still use a result Handler to parse your Object data
> into a different model?
> 
> --- In flexcoders@yahoogroups.com
 , "ben.clinkinbeard"
>  wrote:
> >
> > This might help, hope it does.
> >
>
http://www.returnundefined.com/2006/07/datagrid-labelfunction-and-namesp
aces/
 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com
 , "Brian"  wrote:
> > >
> > > I've been trying to get a DataGrid populated from a WebService and
> > > having much trouble. I'm wondering if the issue might be namespace
> > > issues, but I'm confused by the usage and syntax of namespace
from the
> > > posts I've found here on that. There is no data in the DataGrid,
but
> > > it does appear to flicker and slightly resize it self when I
call the
> > > service so it looks like _something_ is going on. I've bound the
> > > service response to an XMLListCollection so I can trace() it and
I can
> > > see the XML tree that should be displayed in the DataGrid.
> > > 
> > > Any ideas why it's not working? Would appreciate any help, been
> > > banging my head on this for days now. Thanks.
> > > 
> > > Here is the mxml :
> > > 
> > > 
> > > http://www.adobe.com/2006/mxml
 "
> > > layout="absolute">
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  > > 
wsdl="http://localhost:8080/OrderViewWeb/services/OrderableMed?wsdl
 "
> > > showBusyCursor="true">
> > >  > > result="handleOrdMedSearch(event)">
> > > 
> > > {ordMedSearchText.text}
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  > > click="ordMedSearchWS.searchStartsWith.send()"/>
> > > 
> > > 
> > > 
> > >  > > dataProvider="{ordMedList}">
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Here is the xml from the trace : 
> > > 
> > > http://services.company.com/
 "
> > > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
 ">
> > > http://services.company.com
 ">
> > > http://services.company.com
 ">tylenol
> > > http://services.company.com
 ">7607
> > > 
> > > http://services.company.com
 ">
> > > http://services.company.com
 ">aspirin
> > > http://services.company.com
 ">7608
> > > 
> > > http://services.company.com
 ">
> > > http://services.company.com 
">ibuprofen
> > > http://services.company.com
 ">7609
> > > 
> > > 
> > >
> >
>

 



RE: [flexcoders] Re: DataGrid not populating from XMLListCollection - namespace issue?

2007-11-13 Thread Tracy Spratt
I am concerned about this expression:

ordMedXMLList = resultXML.child("OrdMedList");

 

Why not:

ordMedXMLList = resultXML.OrdMed;  //You'll need the namespace
identifier in there or have a default.

trace(ordMedXMLList.length()); 

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Tuesday, November 13, 2007 1:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: DataGrid not populating from XMLListCollection
- namespace issue?

 

Hi Brian,

These days I usually want to end up with strongly typed objects, so I
generally implement my VO classes so that they accept XML in their
constructor. I pass the XML node to the constructor, throw a "use
namespace" in there and then grab the properties I need from the XML.

HTH,
Ben

--- In flexcoders@yahoogroups.com 
, "Brian" <[EMAIL PROTECTED]> wrote:
>
> Thanks! I've tried it and am still having problems. Sorry for the
> newbie questions.
> 
> You mentioned in the comments on your blog that you like to leave the
> resultFormat defaulted to Object. So then how do you construct your
> dataProvider? I'm confused because on one hand we're talking about
> handling XML/namespace data, but then you talk about leaving it as an
> Object. Do you still use a result Handler to parse your Object data
> into a different model?
> 
> --- In flexcoders@yahoogroups.com
 , "ben.clinkinbeard"
>  wrote:
> >
> > This might help, hope it does.
> >
>
http://www.returnundefined.com/2006/07/datagrid-labelfunction-and-namesp
aces/
 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com
 , "Brian"  wrote:
> > >
> > > I've been trying to get a DataGrid populated from a WebService and
> > > having much trouble. I'm wondering if the issue might be namespace
> > > issues, but I'm confused by the usage and syntax of namespace
from the
> > > posts I've found here on that. There is no data in the DataGrid,
but
> > > it does appear to flicker and slightly resize it self when I
call the
> > > service so it looks like _something_ is going on. I've bound the
> > > service response to an XMLListCollection so I can trace() it and
I can
> > > see the XML tree that should be displayed in the DataGrid.
> > > 
> > > Any ideas why it's not working? Would appreciate any help, been
> > > banging my head on this for days now. Thanks.
> > > 
> > > Here is the mxml :
> > > 
> > > 
> > > http://www.adobe.com/2006/mxml
 "
> > > layout="absolute">
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  > > 
wsdl="http://localhost:8080/OrderViewWeb/services/OrderableMed?wsdl
 "
> > > showBusyCursor="true">
> > >  > > result="handleOrdMedSearch(event)">
> > > 
> > > {ordMedSearchText.text}
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  > > click="ordMedSearchWS.searchStartsWith.send()"/>
> > > 
> > > 
> > > 
> > >  > > dataProvider="{ordMedList}">
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > Here is the xml from the trace : 
> > > 
> > > http://services.company.com/
 "
> > > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/
 ">
> > > http://services.company.com
 ">
> > > http://services.company.com
 ">tylenol
> > > http://services.company.com
 ">7607
> > > 
> > > http://services.company.com
 ">
> > > http://services.company.com
 ">aspirin
> > > http://services.company.com
 ">7608
> > > 
> > > http://services.company.com
 ">
> > > http://services.company.com 
">ibuprofen
> > > http://services.company.com
 ">7609
> > > 
> > > 
> > >
> >
>

 



Re: [flexcoders] Re: excetion bubbling to application level?

2007-11-13 Thread Daniel Freiman
Application dispatches and ErrorEvent every time an error is thrown anywhere
in the Application.  This will not allow you to have a global error handler,
but it will allow you to do logging.

- Dan Freiman

On Nov 13, 2007 3:27 PM, ben.clinkinbeard <[EMAIL PROTECTED]>
wrote:

>   Nope.
>
> --- In flexcoders@yahoogroups.com , "aaron
> smith"
>
> <[EMAIL PROTECTED]> wrote:
> >
> > Is there a way to get all exceptions to bubble to the Application
> > level so I can catch all for logging? thanks yo.
> >
>
>  
>


[flexcoders] Left focus from browser, back and click, editable DG with empty dataprovider got RTE Error #1010.

2007-11-13 Thread George
Lastest Flex 3. I think it looks like a bug and I don't know how could 
avoid it. (I noticed simliar RTE met by colleagues so I test myself.)

I have an editable DG, say it has focusInHandler, itemBeginHandler, 
itemEndHandler. It has no any problem when I test back and forth. But 
occasionally I find a problem.

When the DG don't have any items, click it, then move mouse out of 
browser (so browser lost focus), and then go back and click that DG 
again. I got RTE all the time:

TypeError: Error #1010: A term is undefined and has no properties.
at mx.controls::DataGrid/scrollToEditedItem()
at mx.controls::DataGrid/commitEditedItemPosition()
at mx.controls::DataGrid/updateDisplayList()
at mx.controls.listClasses::ListBase/validateDisplayList()
at mx.managers::LayoutManager/validateDisplayList()
at mx.managers::LayoutManager/doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()
at mx.core::UIComponent/callLaterDispatcher()

I don't understand where's the problem. I tried to track handlers but 
none of them received an event at time of RTE.

Any help appreciated.

Thanks,
George


Re: [flexcoders] Multiple filter criteria in DataGrid

2007-11-13 Thread Mr Greg Murnock
Got it to work using the big nested IF statement with multiple Boolean.

thanks,

Greg 



- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, November 13, 2007 2:41:03 PM
Subject: RE: [flexcoders] Multiple filter criteria in DataGrid

Are you choosing between filters or need a complex filter?  You can set up just 
about anything as a filterfunciton on the collection.
 



From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Mr Greg Murnock
Sent: Tuesday, November 13, 2007 10:42 AM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Multiple filter criteria in DataGrid
 
I have a DG populated by an AC.  I want to filter the DG with any number of 
selection criteria, up to 4 plus between dates.  I can get one of the 
item=selected to work but not more than one.  
Is this where I need to have a big nested IF statement with a bunch of boolean 
expressions to accommodate 5 different iterations of fields?  Any help much 
appreciated.
Greg 
 



Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.



  

Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 

[flexcoders] ColumnChart help

2007-11-13 Thread dbronk
I have a column chart that will have at least 20 different entries.  I
have a few of questions...

1.  How do I remove the horizontal lines in the chart?  I want only
the bars, not y axis lines.

2.  How do I set a minimum width for each bar?  right not it simply
makes each bar skinnier and skinnier as I add more values.

3.  Along with the minWidth question, how do I make the column chart
scroll horizontally when instead of squeezing all data into the
viewable chart area?

Thanks,
Dale



[flexcoders] Re: excetion bubbling to application level?

2007-11-13 Thread ben.clinkinbeard
Nope.


--- In flexcoders@yahoogroups.com, "aaron smith"
<[EMAIL PROTECTED]> wrote:
>
> Is there a way to get all exceptions to bubble to the Application
> level so I can catch all for logging? thanks yo.
>




[flexcoders] Re: internet Explorer 7 cache problem

2007-11-13 Thread mubasherhaneef
But the same code works fine over firefox and opera without 
configuring/setting anything.


--- In flexcoders@yahoogroups.com, Stephen Allison 
<[EMAIL PROTECTED]> wrote:
>
> Hello,
> It's the cache-control headers on the response from the server 
that  
> determine whether or not the browser caches the XML.
> You can set them programatically or by configuring your web server 
to  
> add the headers to the response it sends back to the Flex  
> application.  Exactly what you need to do will depend on your 
choice  
> of web server and server side programming environment.
> 
> Stephen
> 
> On 13 Nov 2007, at 18:08, Mubasher Hanif wrote:
> 
> >
> > Hi All,
> >
> > I am having problem in loading xml document. I am using 
URLLoader  
> > for loading xml document. If I delete all files/clear explorer  
> > cache by going into Tools/internetOptions, it loads exact same 
xml  
> > document whatever is present on my harddrive. But after that If 
I  
> > dont clear cache and change some thing in xml document, it still  
> > loads the old cached xml document and for some reason not 
loading  
> > the updated xml document.
> >
> > I tried every thing like pargma and cache control as a url 
headers  
> > but I am still facing same problem. Below I am writing my code. 
If  
> > anybody can take a look at that code and suggest me some thing 
then  
> > that would be really helpful for me.
> >
> > I took help from adobe livdocs as-well but still not able to  
> > resolve the cached problem.
> >
> > Here is the link:
> > http://livedocs.adobe.com/flex/2/langref/flash/net/ 
> > URLRequestHeader.html
> >
> > Thanks,
> > Mubasher
> >
> > /*CODE*/
> > private function loadXML():void {
> >
> >
> >
> >
> > var myLoader:URLLoader = new URLLoader();
> >
> > myLoader.addEventListener("complete", xmlLoaded);
> >
> >
> > var header:URLRequestHeader = new URLRequestHeader("pragma", "no- 
> > cache");
> >
> > var header1:URLRequestHeader = new URLRequestHeader("Cache- 
> > Control:", "no-store, no-cache, must-revalidate, post-check=0, 
pre- 
> > check=0");
> >
> > //var header2:URLRequestHeader = new URLRequestHeader
("", "private");
> >
> >
> > var request:URLRequest = new URLRequest("Items/Links.xml");
> >
> > //request.requestHeaders.push(header,header1);
> >
> > request.requestHeaders.push(header);
> >
> > request.method = URLRequestMethod.POST;
> >
> >
> >
> > try {
> >
> > myLoader.load(request);
> >
> > trace("xml document is loaded.");
> >
> > }catch (error:Error) {
> >
> > trace("Unable to load xmldocument.");
> >
> > }
> >
> >
> >
> > }
> >
> > /*END-CODE*/
> >
> > Get easy, one-click access to your favorites. Make Yahoo! your  
> > homepage.
> >
> >
>




[flexcoders] Datagrid and data from service

2007-11-13 Thread pulp_on_air
Hi,
I got problems getting a datagrid to work with an array of objects
received via service. 
The data is generate by amfphp. From php it looks like this 

array (
 [1] => object (
   ... //plain properties
 )
 
 [2] => object (
   ... //plain properties
 ) 
 
)


Note that it starts at 1! If i add a [0] dummy entry in php it works
if i dont i just get 2 colums side by side saying "object".

This is what the Debugger gave me :

Object (
 [1] => object (
   ... //plain properties
 )
 
 [2] => object (
   ... //plain properties
 ) 
)

BTW: i am using flex 3 beta 2.
Cheers,
Nikolas




Re: [flexcoders] Editable data in data grid too easily edited

2007-11-13 Thread Steve Hueners
Could the editable property be reset from false to true on a 2nd click?

On 11/13/07, Alex Harui <[EMAIL PROTECTED]> wrote:
>
>If you handle change events & mousedown/up you might know when to
> cancel itemEditBeginning
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Scott Melby
> *Sent:* Tuesday, November 13, 2007 4:36 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Editable data in data grid too easily edited
>
>
>
> IMO it is too easy to get into "edit" mode on an editable DataGrid or
> AdvancedDataGrid. For instance, if I am just selecting a row that was
> not previously selected it would be great if it did not invoke the
> editor until I clicked in the editable column again. This is
> particularly problematic in the AdvancedDataGrid if the first column
> (tree column) is editable. In this case even expanding/contracting the
> tree node puts the user into edit mode on the data in the first column
> of that row.
>
> I am guessing that I would need to extend DataGrid, AdvancedDataGrid and
> possibly also provide a custom itemEditor to resolve this issue. But
> wanted to hear if others had suggestions for the cleanest solution.
>
> Any help is appreciated.
>
> Thanks
> Scott
>
> --
> Scott Melby
> Founder, Fast Lane Software LLC
> http://www.fastlanesw.com
>
>  
>


RE: [flexcoders] Want to call a function from custom component on button click...

2007-11-13 Thread Tracy Spratt
You need to traverse the run-time DOM to access members in different
component scopes.

 

Se the notes below.

Tracy

 

Communicating between Components:

 

Note: for "loose coupling" use events.  But that is another topic.

 

A non-trivial flex application is "component" based. While all of the
built in controls are components, the question of communicating between
components really only arises when you are using a custom component. A
custom component, whether implemented in mxml or ActionScript, has its
own "scope". Within that component (Application is a component too!),
all sibling child controls share the same scope, so you can refer to
controls by their id.  If the controls(components) have public
properties or methods, you can refernce those members directly through
the id:





 

Ok, so far, its a "duh" right?

 

When you use custom components in a Flex app, at run time they make a
document object model hierarchy (DOM).  Each subcomponent has its own
scope and can't *directly* reference the member properties or methods of
its sibling subcomponents.

 

So again, within a component, you can refernce siblings directly, as in
the example above.  But there are two other cases inherent in a
hierarchy.  You might want to reference "up", to get to public members
of the parent, or 'down", to get to public members of some child.

 

Accessing members in the parent:

On an ordinary component DOM, you can reference the parent component
using the .parent property.  Say that a control with id="textinput1"
exists in the parent of the current component.  then you could do:



 

Accessing members in the main application:

Components can be nested, sometimes very deeply.  If the reference you
want is all the way at the top-level, main application (the one with the
 tag), you could do
{parent.parent.parent.textinput1.text}, but you would have to count the
component levels just right.  Instead, you can use
Application.application to get to that scope:



You can shoretn this style of reference by importing
mx.core.Application, and assigning Application.application to a
variable, like _app, the doing (_app.textinput1.text)

 

Accessing members of a child component:

Say that in this case, a child component has the TextInput control you
want to reference.  First, make sure the child component has an id:



Then, in the same scope (the same component/file that contains as the
tag above) you can say:



 

Accessing a nested component:

As mentioned above you can go "up" the hierarchy using
"parent.parent...".  You can als go "down" the hirearchy using id
references:



 

Additional notes:

If you are using SWFLoader to load an entire Application, you can
reference the immediate parent application using "parentDocument".  You
can also use Application.application to reach the main app, as shown
above.

 

Accessing members of an application loaded by SWFLoader is a bit more
complicated.  See the example here:

http://www.cflex.net/showFileDetails.cfm?ObjectID=690

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of keszeli
Sent: Monday, November 12, 2007 7:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Want to call a function from custom component on
button click...

 

In my main application I have these lines of code:





In a custom component:






than again calling a custom component in main application:



when I run the application it says 'Access of undefined property
remoting' if the custom component is embedded within main app all runs
fine. I'm probably wrong but maybe I should use something like
...

 



[flexcoders] Re: DataGrid not populating from WebService, error: Unknown Property

2007-11-13 Thread Brian
I started a new thread to continue this issue because I had gotten
past the 'Unknown Property' error with the handlers. I wanted the new
thread to be more specific to the problem, which has evolved into
DataGrid not populating from XMLListCollection and namespace issues. 

Here's the new thread:

http://tech.groups.yahoo.com/group/flexcoders/message/93492

The 'OrdMedList' node is there in the original post. But a quick
answer to your question, here's what the structure looks like, w/out
the namespaces:


  
5
tylenol
  
  
97
advil
  
  ...


This is the output of the trace() on my XMLListCollection. I also
implemented a labelFunction to try to deal with the namespace issue,
and found a weird result: there are 10 OrdMed nodes in my list, but
the length of OrdMedList is 1 and the labelFunction is invoked 4
times, 2 each for id and desc.


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> What does an "OrdMedList" node look like?  Are id and desc first
> generation child nodes? Or attributes?
> 
>  
> 
> Also in the hanlder, to check your dataprovider expression, do:
> 
> trace(ordMedList.length)
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Brian
> Sent: Monday, November 12, 2007 11:25 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: DataGrid not populating from WebService,
> error: Unknown Property
> 
>  
> 
> OK I've changed the resultFormat to "e4x" and added a result handler.
> With trace I'm able to see the result coming back. I tried using a
> namespace variable also after further searching here, but I'm still
> confused about how that works. The error is gone, but I'm still not
> getting any results in the datagrid. I'm assuming I'm missing
> something with the dataProvider expression and/or handling of the
> XMLList and Collection. 
> 
> Here's my current mxml:
> 
> 
> http://www.adobe.com/2006/mxml
>  "
> layout="absolute">
> 
> 
> 
> 
> 
>  wsdl="http://localhost:8080/OrderViewWeb/services/OrderableMed?wsdl
>  "
> showBusyCursor="true">
>  result="handleOrdMedSearch(event)">
> 
> {ordMedSearchText.text}
> 
> 
> 
> 
> 
> 
> 
>  click="ordMedSearchWS.searchStartsWith.send()"/>
> 
> 
> 
>  dataProvider="{ordMedList}">
> 
> 
> 
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com 
> , "Tracy Spratt"  wrote:
> >
> > Use trace() to display the xml content you are getting back from the
> > WebService, so you can see exactly how to build the dataProvider
> > expression... oops, you can't, because you are binding to lastResult.
> > Consider using a result handler instead..
> > 
> > 
> > 
> > Also, specify resultFormat="e4x". The default converts your xml to a
> > nested object structure of some sort.
> > 
> > 
> > 
> > Tracy
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of Brian
> > Sent: Friday, November 09, 2007 3:40 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] DataGrid not populating from WebService, error:
> > Unknown Property
> > 
> > 
> > 
> > OK I'm back with my next WebService question. I got one working when
> > there was only one object coming back. Now I'm trying to populate a
> > DataGrid with the lastResult from a WebService and I'm getting an
> > Unknown Property error. I've searched for this here and am wondering
> > if I either need a [] somewhere in the dataProvider or I need to put
> > the result into an ArrayCollection first and then set the dataProvider
> > to that. Or could it be that the OrdMedList element doesn't have a
> > namespace like all the other elements? That's due to a weird issue
> > with CXF and JAX-WS.
> > 
> > Here's the error: 
> > 
> > Error: Unknown Property: 'OrdMedList'.
> > at
> >
> mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscrip
>  
> > t/flash/proxy::getProperty
> >   > ()
> > 
> > Here's my mxml:
> > 
> > http://www.adobe.com/2006/mxml
>  
> >  > "
> > layout="absolute">
> >  > wsdl="http://localhost:8080/OrderWeb/services/OrdMed?wsdl
>  
> >   > "
> > showBusyCursor="true">
> > 
> > 
> > {ordMedSearchText.text}
> > 
> > 
> > 
> > 
> > 
> > 
> >  > click="ordMedSearchWS.searchStartsWith.send()" />
> > 
> > 
> >

RE: [flexcoders] reference a class instance from another mxml

2007-11-13 Thread Tracy Spratt
Ah, that is the problem.  Packages and namespaces are really
compile-time things.  You don't use them in run-time references.
Instead, you want to use the run-time DOM.

 

There are several ways to reach "up" the dom.  One is
application.application.  You use the id of your instantiated component
to reference its public members.  So one way to do what you want is::

Import mx.core.Application;

...

private var _app:Application

...

_app = Application.application;

user = _app.loginpanel1.user

 

below are some additional notes on traversing the DOM.

Tracy

 

Communicating between Components:

 

Note: for "loose coupling" use events.  But that is another topic.

 

A non-trivial flex application is "component" based. While all of the
built in controls are components, the question of communicating between
components really only arises when you are using a custom component. A
custom component, whether implemented in mxml or ActionScript, has its
own "scope". Within that component (Application is a component too!),
all sibling child controls share the same scope, so you can refer to
controls by their id.  If the controls(components) have public
properties or methods, you can refernce those members directly through
the id:





 

Ok, so far, its a "duh" right?

 

When you use custom components in a Flex app, at run time they make a
document object model hierarchy (DOM).  Each subcomponent has its own
scope and can't *directly* reference the member properties or methods of
its sibling subcomponents.

 

So again, within a component, you can refernce siblings directly, as in
the example above.  But there are two other cases inherent in a
hierarchy.  You might want to reference "up", to get to public members
of the parent, or 'down", to get to public members of some child.

 

Accessing members in the parent:

On an ordinary component DOM, you can reference the parent component
using the .parent property.  Say that a control with id="textinput1"
exists in the parent of the current component.  then you could do:



 

Accessing members in the main application:

Components can be nested, sometimes very deeply.  If the reference you
want is all the way at the top-level, main application (the one with the
 tag), you could do
{parent.parent.parent.textinput1.text}, but you would have to count the
component levels just right.  Instead, you can use
Application.application to get to that scope:



You can shoretn this style of reference by importing
mx.core.Application, and assigning Application.application to a
variable, like _app, the doing (_app.textinput1.text)

 

Accessing members of a child component:

Say that in this case, a child component has the TextInput control you
want to reference.  First, make sure the child component has an id:



Then, in the same scope (the same component/file that contains as the
tag above) you can say:



 

Accessing a nested component:

As mentioned above you can go "up" the hierarchy using
"parent.parent...".  You can als go "down" the hirearchy using id
references:



 

Additional notes:

If you are using SWFLoader to load an entire Application, you can
reference the immediate parent application using "parentDocument".  You
can also use Application.application to reach the main app, as shown
above.

 

Accessing members of an application loaded by SWFLoader is a bit more
complicated.  See the example here:

http://www.cflex.net/showFileDetails.cfm?ObjectID=690

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of elr
Sent: Monday, November 12, 2007 11:47 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] reference a class instance from another mxml

 


Yes Tracy  both of my 2 mxml (A and B) are in a  directory   /comps and
both have this:

xmlns:comps="comps.*"  

namespace reference. Maybe I missed something but it sounds correct as
Flex code hinting lists me all my components as soon as I type down
'comps'.

LoginPanel was instanciated in a state of Main.mxml (the Application) 

Here's Main.mxml:

  
http://www.adobe.com/2006/mxml";  
  xmlns:user="classes.*" 
  xmlns:comps="comps.*" >

  
  

   
 
 

   
  

  
  





Here's what my mxml B (UserPanel)  looks like ( User class is located in
/classes dir)

  
http://www.adobe.com/2006/mxml";  
   xmlns:user="classes.*" 
   xmlns:comps="comps.*" 
   creationComplete="init()">

  
 
 
...




Again ,thank's all for y

[flexcoders] excetion bubbling to application level?

2007-11-13 Thread aaron smith
Is there a way to get all exceptions to bubble to the Application
level so I can catch all for logging? thanks yo.


Re: [flexcoders] internet Explorer 7 cache problem

2007-11-13 Thread Stephen Allison
Hello,
It's the cache-control headers on the response from the server that  
determine whether or not the browser caches the XML.
You can set them programatically or by configuring your web server to  
add the headers to the response it sends back to the Flex  
application.  Exactly what you need to do will depend on your choice  
of web server and server side programming environment.

Stephen

On 13 Nov 2007, at 18:08, Mubasher Hanif wrote:

>
> Hi All,
>
> I am having problem in loading xml document. I am using URLLoader  
> for loading xml document. If I delete all files/clear explorer  
> cache by going into Tools/internetOptions, it loads exact same xml  
> document whatever is present on my harddrive. But after that If I  
> dont clear cache and change some thing in xml document, it still  
> loads the old cached xml document and for some reason not loading  
> the updated xml document.
>
> I tried every thing like pargma and cache control as a url headers  
> but I am still facing same problem. Below I am writing my code. If  
> anybody can take a look at that code and suggest me some thing then  
> that would be really helpful for me.
>
> I took help from adobe livdocs as-well but still not able to  
> resolve the cached problem.
>
> Here is the link:
> http://livedocs.adobe.com/flex/2/langref/flash/net/ 
> URLRequestHeader.html
>
> Thanks,
> Mubasher
>
> /*CODE*/
> private function loadXML():void {
>
>
>
>
> var myLoader:URLLoader = new URLLoader();
>
> myLoader.addEventListener("complete", xmlLoaded);
>
>
> var header:URLRequestHeader = new URLRequestHeader("pragma", "no- 
> cache");
>
> var header1:URLRequestHeader = new URLRequestHeader("Cache- 
> Control:", "no-store, no-cache, must-revalidate, post-check=0, pre- 
> check=0");
>
> //var header2:URLRequestHeader = new URLRequestHeader("", "private");
>
>
> var request:URLRequest = new URLRequest("Items/Links.xml");
>
> //request.requestHeaders.push(header,header1);
>
> request.requestHeaders.push(header);
>
> request.method = URLRequestMethod.POST;
>
>
>
> try {
>
> myLoader.load(request);
>
> trace("xml document is loaded.");
>
> }catch (error:Error) {
>
> trace("Unable to load xmldocument.");
>
> }
>
>
>
> }
>
> /*END-CODE*/
>
> Get easy, one-click access to your favorites. Make Yahoo! your  
> homepage.
>
> 



[flexcoders] Re: Comparing Date

2007-11-13 Thread flexawesome
Thanks Paul, it works great!

--- In flexcoders@yahoogroups.com, Paul Decoursey <[EMAIL PROTECTED]> wrote:
>
> try it by accessing the Date.time property for you math operations.
> 
> 
> On Nov 13, 2007, at 12:36 PM, flexawesome wrote:
> 
> > Hey, I am working on Comparing the Date, the following code does work
> > with declare :*, however I would like to declare to :Date, but it
> > doesn't work.
> >
> > Does anybody know how to declare for dDays and fully handle this?  
> > Thanks
> >
> > ===
> > 
> > http://www.adobe.com/2006/mxml";
> > initialize="init();">
> > 
> > 
> > 
> > 
> > ===
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
>




RE: [flexcoders] Multiple filter criteria in DataGrid

2007-11-13 Thread Alex Harui
Are you choosing between filters or need a complex filter?  You can set
up just about anything as a filterfunciton on the collection.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mr Greg Murnock
Sent: Tuesday, November 13, 2007 10:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Multiple filter criteria in DataGrid

 

I have a DG populated by an AC.  I want to filter the DG with any number
of selection criteria, up to 4 plus between dates.  I can get one of the
item=selected to work but not more than one.  

Is this where I need to have a big nested IF statement with a bunch of
boolean expressions to accommodate 5 different iterations of fields?
Any help much appreciated.

Greg 

 



Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See
how.  

 



RE: [flexcoders] Re: fetching values of inline itemrenderers in datagrids

2007-11-13 Thread Alex Harui
Renderers are recycled and intended to be data driven.  See my blog for
more info (blogs.adobe.com/aharui)

 

However, in some cases you can use indexToItemRenderer

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of danny_yoo88
Sent: Tuesday, November 13, 2007 10:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: fetching values of inline itemrenderers in
datagrids

 

Hi all,

Any thoughts on this one?

Thanks,

Danny

--- In flexcoders@yahoogroups.com 
, "danny_yoo88" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I've got an HSlider in an inline itemrenderer in a datagrid. I can't
> seem to read the value of the slider at all. 
> 
> The debugger doesn't show any way to reach:
> 
> dg..mySlider.value
> 
> It seems to me that the Component is inaccessible like a black box but
> I don't know enough about how Flex works in this regard.
> 
> Any suggestions?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Thanks,
> 
> Danny
>

 



[flexcoders] Chart - width of the axis

2007-11-13 Thread iilsley
Is it possible to get the width of the axis ?

I'd like to position something under the graph but offset 
to the vertical axis .. 

eg:

100 -   x
 75 - x
 50 - x
 25 -   x
  0 1 23
 
 POSITION HERE


thanks



Re: [flexcoders] Comparing Date

2007-11-13 Thread Paul Decoursey
try it by accessing the Date.time property for you math operations.


On Nov 13, 2007, at 12:36 PM, flexawesome wrote:

> Hey, I am working on Comparing the Date, the following code does work
> with declare :*, however I would like to declare to :Date, but it
> doesn't work.
>
> Does anybody know how to declare for dDays and fully handle this?  
> Thanks
>
> ===
> 
> http://www.adobe.com/2006/mxml";
> initialize="init();">
> 
> 
> 
> 
> ===
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>



Re: [flexcoders] Connecting to flash display from html code and extracting params

2007-11-13 Thread Derrick Anderson
you can use the flex-ajax bridge to do this

http://labs.adobe.com/wiki/index.php/Flex_Framework:FABridge

On Nov 13, 2007 2:08 PM, s_tibrewal <[EMAIL PROTECTED]> wrote:

>   Hello Folks,
>
> Having heard a lot about it I am just trying out using Flex/Flash on a
> web app and have run into a problem.
>
> I am playing a video in Flash and when I click an html button
> (GetElapsedTime) on different part of the page, outside of Flash
> window, I want to go to Flash playing the video and find out the
> elapsed time of video played. So if I have played 3 minutes and 59
> seconds of video I want to get that.
>
> I have browsed around the Flex tutorials and newsgroups, looked in
> ActionScript but from what I understand all those actions are for
> events going out of Flex - apologies if I am mixing up the terminology
> between Flex and Flash here. I can't find a way to connect to the
> flash player and get the elapsed time. Perhaps I am not looking at it
> the right way.
>
> It sounds like when I click the button GetElapsedTime it has to fire
> some JavaScript that should somehow connect to the Flash player and
> extract the elapsed time out of it. Any thoughts on how to do that
> will be helpful.
>
> TIA,
> Sanjay.
>
>  
>


[flexcoders] Connecting to flash display from html code and extracting params

2007-11-13 Thread s_tibrewal
Hello Folks,

Having heard a lot about it I am just trying out using Flex/Flash on a
web app and have run into a problem.

I am playing a video in Flash and when I click an html button
(GetElapsedTime) on different part of the page, outside of Flash
window, I want to go to Flash playing the video and find out the
elapsed time of video played. So if I have played 3 minutes and 59
seconds of video I want to get that. 

I have browsed around the Flex tutorials and newsgroups, looked in
ActionScript but from what I understand all those actions are for
events going out of Flex - apologies if I am mixing up the terminology
between Flex and Flash here. I can't find a way to connect to the
flash player and get the elapsed time. Perhaps I am not looking at it
the right way.

It sounds like when I click the button GetElapsedTime it has to fire
some JavaScript that should somehow connect to the Flash player and
extract the elapsed time out of it. Any thoughts on how to do that
will be helpful.

TIA,
Sanjay.



Re: [flexcoders] ScrollEvent.SCROLL -- what comes after?

2007-11-13 Thread Rick Schmitty
I'm still lost by this... Shouldnt the updateCompletePendingFlag be
false when updateComplete event is fired

I tried to update the example application to make it more obvious, the
debug call shows the correct tracking point and false for the flag,
while updateComplete shows true for the flag and isnt in the correct
position



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





























On Nov 8, 2007 2:16 PM, Rick Schmitty <[EMAIL PROTECTED]> wrote:
> The 2nd option didnt move the tracking graphics for me and the first
> option produced the same results: updateComplete placement was lagged
> behind where the debug button places it.
>
>
> Here is the traceoutput if you cant run it, my notes in **  The x,y
> values is where I trace the variable p which is generated by the same
> localToGlobal function
>
>
> ** movie done loading  **
> update green
> (x=200, y=200)
> ** next i scroll the container **
> update green
> (x=200, y=200)
> update green
> (x=193, y=200)
> update green
> (x=188, y=200)
> ** now I click the debug button a few seconds later and do not touch
> anything else **
> debug blue
> (x=181, y=200)
> ** in this case updateComplete was 7 pixels off where the object
> stopped actually scrolling **
>
>
>
> On Nov 7, 2007 9:49 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
> >
> > I didn't run it, but I think you're off a level.  Normally you either do:
> >
> >
> >
> > var p:Point=box.localToGlobal(new Point(box.width,box.height))
> >
> >
> >
> > or
> >
> >
> >
> > var p:Point=box.parent.localToGlobal(new
> > Point(box.x+box.width,box.y+box.height))
> >
> >
> >
> > because 'local' is local to box or box.parent.
> >
> >
> >
> >  
> >
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> > Behalf Of Rick Schmitty
> >  Sent: Wednesday, November 07, 2007 3:31 PM
> >  To: flexcoders@yahoogroups.com
> >  Subject: Re: [flexcoders] ScrollEvent.SCROLL -- what comes after?
> >
> >
> >
> >
> >
> >
> >
> >
> > Am I using/understanding updateComplete correctly? If you run this
> >  sample file, scroll with the mousewheel or the scrollbars it will
> >  trace the scroll and updateComplete values. But if you hit the debug
> >  button it shows things arent the same. Sometimes within a few pixels
> >  othertimes up to 24 pixel difference
> >
> >  
> >  http://www.adobe.com/2006/mxml";
> > layout="absolute">
> >  
> >  
> >  
> >
> >  
> >
> >  
> >   >  width="200" height="200"/>
> >
> >  
> >   >  backgroundAlpha="0.1"/>
> >
> >  
> >
> >  
> >
> >  
> >  
> >
> >  
> >
> >  On Nov 7, 2007 2:13 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
> >  >
> >  >
> >  >
> >  >
> >  >
> >  >
> >  >
> >  >
> >  >
> >  > updateComplete
> >  >
> >  >
> >  >
> >  > 
> >  >
> >  >
> >  > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> >  > Behalf Of Rick Schmitty
> >  > Sent: Wednesday, November 07, 2007 1:42 PM
> >  > To: flexcoders@yahoogroups.com
> >  > Subject: [flexcoders] ScrollEvent.SCROLL -- what comes after?
> >  >
> >  >
> >  >
> >  >
> >  >
> >  >
> >  >
> >  > From the docs it says "At the time when this event is dispatched, the
> >  > scrollbar has been updated to the new position, but the container's
> >  > child objects have not been shifted to reflect the new scroll
> >  > position." What should I be listening for when the container's child
> >  > object have finished shifting?
> >  >
> >  > Thanks in advance!
> >  >
> >  >
> >
> >
> >
> >  
>


[flexcoders] Re: fetching values of inline itemrenderers in datagrids

2007-11-13 Thread danny_yoo88
Hi all,

Any thoughts on this one?

Thanks,

Danny

--- In flexcoders@yahoogroups.com, "danny_yoo88" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I've got an HSlider in an inline itemrenderer in a datagrid. I can't
> seem to read the value of the slider at all. 
> 
> The debugger doesn't show any way to reach:
> 
> dg..mySlider.value
> 
> It seems to me that the Component is inaccessible like a black box but
> I don't know enough about how Flex works in this regard.
> 
> Any suggestions?
> 
> 
>   
> 
>   
> 
>   
> 
>   
> 
>   
> 
> 
> Thanks,
> 
> Danny
>




Re: [flexcoders] Re: Flex2Gateway only allowing one site??

2007-11-13 Thread Derrick Anderson
that is great that u figured it out, kinda sucks for me as i will have many
different applications (and the list is growing) that have the same name and
that is another step to manage it all

but maybe it's a good time to re-think that model :).

thanks for solving that one!

On Nov 13, 2007 11:43 AM, brandon.culpepper <[EMAIL PROTECTED]>
wrote:

>   Holy crap it works!! All I had to do was make sure that the .swf files
> were named something different. For some reason because I was using
> main.html and main.swf in both sites the swf was getting cached I
> guess. So I created one Flex app called RemoteTesting-1 and one called
> RemoteTesting-2. I then compiled and pushed RemoteTesting-1 out to
> mySite-1 and pushed RemoteTesting-2 out to mySite-2 and each are
> working now using their own respective Application.cfm's. Let me know
> if you have any questions Derrick.
>
> --- In flexcoders@yahoogroups.com , "Derrick
> Anderson"
>
> <[EMAIL PROTECTED]> wrote:
> >
> > OMG!! i thought i was the only one in the world! i can confirm this
> behavior
> > and i can also confirm that it happens on application.cfm files with
> > different names and no instance vars.
> >
> > it is absolutely killing me, let me know if u find anything and i'll
> do the
> > same!
> >
> > derrick
> >
> > On Nov 13, 2007 11:04 AM, Jeffry Houser <[EMAIL PROTECTED]> wrote:
> >
> > > Does each site have the same application name, set in the
> cfapplication
> > > tag (or possibly as an instance variable in the Application.cfc )
> > >
> > >
> > > brandon.culpepper wrote:
> > > >
> > > >
> > > > Not sure if this is a Caching problem or not.
> > > >
> > > > Server setup:
> > > > One CFMX 7.0.2 Standard Edition server with many sites in their own
> > > > directories in the webroot. This is not the multi-instance
> install of
> > > > CF I would prefer but we are working towards that.
> > > >
> > > > Problem:
> > > > mySite-1 hits the flex2gateway and everything is fine. mySite-2
> tries
> > > > to hit the flex2gateway and for some reason the flex app is
> trying to
> > > > use the Application.cfm for mySite-1 and is bombing out because it
> > > > thinks I am not logged in.
> > > >
> > > > When I restart the CF service and hit the
> > > > flex2gateway from mySite-2 first everything is fine but hitting it
> > > > from mySite-1 is now trying to use the Application.cfm from
> mySite-2.
> > > >
> > > > It seems to only want to use the Application.cfm from what ever the
> > > > first site is to hit it.
> > > >
> > > > Any one else come across this?
> > > >
> > > >
> > >
> > > --
> > > Jeffry Houser, Technical Entrepreneur, Software Developer, Author,
> > > Recording Engineer
> > > AIM: Reboog711 | Phone: 1-203-379-0773
> > > --
> > > My Company: 
> > > My Podcast: 
> > > My Blog: 
> > >
> > >
> > >
> >
>
>  
>


[flexcoders] Multiple filter criteria in DataGrid

2007-11-13 Thread Mr Greg Murnock
I have a DG populated by an AC.  I want to filter the DG with any number of 
selection criteria, up to 4 plus between dates.  I can get one of the 
item=selected to work but not more than one.  
Is this where I need to have a big nested IF statement with a bunch of boolean 
expressions to accommodate 5 different iterations of fields?  Any help much 
appreciated.
Greg


  

Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  
http://overview.mail.yahoo.com/

[flexcoders] Re: DataGrid not populating from XMLListCollection - namespace issue?

2007-11-13 Thread ben.clinkinbeard
Hi Brian,

These days I usually want to end up with strongly typed objects, so I
generally implement my VO classes so that they accept XML in their
constructor. I pass the XML node to the constructor, throw a "use
namespace" in there and then grab the properties I need from the XML.

HTH,
Ben



--- In flexcoders@yahoogroups.com, "Brian" <[EMAIL PROTECTED]> wrote:
>
> Thanks! I've tried it and am still having problems. Sorry for the
> newbie questions.
> 
> You mentioned in the comments on your blog that you like to leave the
> resultFormat defaulted to Object. So then how do you construct your
> dataProvider? I'm confused because on one hand we're talking about
> handling XML/namespace data, but then you talk about leaving it as an
> Object. Do you still use a result Handler to parse your Object data
> into a different model?
> 
> --- In flexcoders@yahoogroups.com, "ben.clinkinbeard"
>  wrote:
> >
> > This might help, hope it does.
> >
>
http://www.returnundefined.com/2006/07/datagrid-labelfunction-and-namespaces/
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Brian"  wrote:
> > >
> > > I've been trying to get a DataGrid populated from a WebService and
> > > having much trouble. I'm wondering if the issue might be namespace
> > > issues, but I'm confused by the usage and syntax of namespace
from the
> > > posts I've found here on that. There is no data in the DataGrid, but
> > > it does appear to flicker and slightly resize it self when I
call the
> > > service so it looks like _something_ is going on. I've bound the
> > > service response to an XMLListCollection so I can trace() it and
I can
> > > see the XML tree that should be displayed in the DataGrid.
> > > 
> > > Any ideas why it's not working? Would appreciate any help, been
> > > banging my head on this for days now. Thanks.
> > > 
> > > Here is the mxml :
> > > 
> > > 
> > > http://www.adobe.com/2006/mxml";
> > > layout="absolute">
> > > 
> > >   
> > >   
> > >   
> > >   
> > >> >   
wsdl="http://localhost:8080/OrderViewWeb/services/OrderableMed?wsdl";
> > >   showBusyCursor="true">
> > >> > result="handleOrdMedSearch(event)">
> > >   
> > >   {ordMedSearchText.text}
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >   
> > >> > click="ordMedSearchWS.searchStartsWith.send()"/>
> > >   
> > >   
> > >   
> > >> > dataProvider="{ordMedList}">
> > >   
> > >> > dataField="id" width="100"/>
> > >> > dataField="desc" />
> > >   
> > >   
> > >   
> > > 
> > > 
> > > Here is the xml from the trace : 
> > > 
> > > http://services.company.com/";
> > > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
> > >   http://services.company.com";>
> > > http://services.company.com";>tylenol
> > > http://services.company.com";>7607
> > >   
> > >   http://services.company.com";>
> > > http://services.company.com";>aspirin
> > > http://services.company.com";>7608
> > >   
> > >   http://services.company.com";>
> > > http://services.company.com";>ibuprofen
> > > http://services.company.com";>7609
> > >   
> > > 
> > >
> >
>




[flexcoders] Comparing Date

2007-11-13 Thread flexawesome
Hey, I am working on Comparing the Date, the following code does work
with declare :*, however I would like to declare to :Date, but it
doesn't work.

Does anybody know how to declare for dDays and fully handle this? Thanks

===

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

===




RE: [flexcoders] How to scale containers?

2007-11-13 Thread Alex Harui
You;ll have to add another container layer

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: Tuesday, November 13, 2007 6:19 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to scale containers?

 

I suppose I should say the problem I have, that might help:

 

If I have a component that is 100x100, I want to display it's contents
scaled down by 50%. So I set the scaleX & scaleY properties to 0.50. The
trouble is, when I view my container, it is now 50x50. I can see why
it's done that, but really I was hoping to just scale the contents - not
the container itself (the scrollbars are also 50% scaled).

 

Mark

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: 13 November 2007 12:47
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to scale containers?

 

Hi, I have a custom container which is based on the Canvas control. It
just displays other custom controls that are also based on Canvas. If I
wanted to do a thumbnail preview of the main container, how do I go
about scaling everything? For instance, if the main container displays
at 800x600, how can I scale it down into a control 80x60?

(I'm assuming there is something built in to flex to do most of this
without manually writing scaling code?)

 

Thanks,

 

Mark

 

 

 

 



RE: [flexcoders] Editable data in data grid too easily edited

2007-11-13 Thread Alex Harui
If you handle change events & mousedown/up you might know when to cancel
itemEditBeginning

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Melby
Sent: Tuesday, November 13, 2007 4:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Editable data in data grid too easily edited

 

IMO it is too easy to get into "edit" mode on an editable DataGrid or 
AdvancedDataGrid. For instance, if I am just selecting a row that was 
not previously selected it would be great if it did not invoke the 
editor until I clicked in the editable column again. This is 
particularly problematic in the AdvancedDataGrid if the first column 
(tree column) is editable. In this case even expanding/contracting the 
tree node puts the user into edit mode on the data in the first column 
of that row.

I am guessing that I would need to extend DataGrid, AdvancedDataGrid and

possibly also provide a custom itemEditor to resolve this issue. But 
wanted to hear if others had suggestions for the cleanest solution.

Any help is appreciated.

Thanks
Scott

-- 
Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com  

 



[flexcoders] internet Explorer 7 cache problem

2007-11-13 Thread Mubasher Hanif
Hi All,

I am having problem in loading xml document. I am using URLLoader for loading 
xml document. If I delete all files/clear explorer cache by going into 
Tools/internetOptions, it loads exact same xml document whatever is present on 
my harddrive. But after that If I dont clear cache and change some thing in xml 
document, it still loads the old cached xml document and for some reason not 
loading the updated xml document.

I tried every thing like pargma and cache control as a url headers but I am 
still facing same problem. Below I am writing my code. If anybody can take a 
look at that code and suggest me some thing then that would be really helpful 
for me.

I took help from adobe livdocs as-well but still not able to resolve the cached 
problem.

Here is the link: 
http://livedocs.adobe.com/flex/2/langref/flash/net/URLRequestHeader.html

Thanks,
Mubasher

/*CODE*/
private function loadXML():void {

var myLoader:URLLoader = new URLLoader();
myLoader.addEventListener("complete", xmlLoaded);
var header:URLRequestHeader = new URLRequestHeader("pragma", "no-cache");
var header1:URLRequestHeader = new URLRequestHeader("Cache-Control:", 
"no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); 
//var header2:URLRequestHeader = new URLRequestHeader("", "private"); 
var request:URLRequest = new URLRequest("Items/Links.xml");
//request.requestHeaders.push(header,header1); 
request.requestHeaders.push(header); 
request.method = URLRequestMethod.POST;
try {
myLoader.load(request);
trace("xml document is loaded.");
}catch (error:Error) {
trace("Unable to load xmldocument.");
}
}
/*END-CODE*/


  

Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 

RE: [flexcoders] Re: Can't select an item renderer in a list

2007-11-13 Thread Alex Harui
There are no additional interfaces, but as my blog points out, your
renderer must be completely data-driven and get its visual state from
calls to isItemSelected/Highlighted as renderers are recycled so the
cannot retain state

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of icepaco33
Sent: Tuesday, November 13, 2007 5:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Can't select an item renderer in a list

 

Humble excuse Alex,
but you are not answering my question / problem.

I have no problem with my highlight / selection showing...
My problem is that if I do drag & drop operation and if I change the
Data Provider then sometimes I can no longer select some items even
tho they are showing...

I have found out that if I remove my Highlighter class from my
renderer then everything will work out fine (I can drag & drop and
then select any / every items in the list).

So I was wondering if it is because my Highlighter class isn't
implementing some Interface that are necessary for a sub component of
a Renderer...

Thanx !
--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> The Flex classes draw highlight and selection behind the renderer, so
> any renderer with an opaque background will obscure it. Folks either
> test for isItemSelected/Highlighted and change their own background
> color, or remove the background color. You can see examples on my blog
> (blogs.adobe.com/aharui
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of icepaco33
> Sent: Monday, November 12, 2007 9:22 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Can't select an item renderer in a list
> 
> 
> 
> Salutations,
> I have found out the culprit.
> So first here is the code of the renderer :
> 
> 
> http://www.adobe.com/2006/mxml
 
>  > "
width="100%"
> styleName="myStyle1" verticalScrollPolicy="off"
> implements="mx.managers.IFocusManagerComponent" toolTip="{data.uid}"
> creationComplete="SentenceRendererCreationCompleteEventHandler()">
> 
> 
> 
> 
> 
>  value="false"/>
> 
> 
>
SentenceRendererSelectedCurrentStateChangeEventHandler() :handler>
> 
> 
> 
> 
> 
> 
> 
> 
>  borderStyle="none" text="{data.Text}" textIndent="25"
> styleName="myStyle1" textDecoration="none" selectable="false"
> verticalScrollPolicy="off" minHeight="60"> 
> 
>  height="15" color="#ff">
> 
>
@Embed('Ressources/Librairie/History/Btn_S_D.swf') Skin>
> 
>
@Embed('Ressources/Librairie/History/Btn_S_U.swf') Skin>
> 
>
@Embed('Ressources/Librairie/History/Btn_S_U.swf') >
> 
> 
> 
> 
> 
> 
> The problem resides in the sub components Highlighter. This component
> draws a rectangle in the back of the text. (This is someone else's lib
> that I modified a bit)
> 
> Anyway if I don't refer to this sub class at all then my application
> works fine.
> 
> I believe I have to implements some Interface from Flex so that I can
> use this sub class in my Renderer...
> 
> Thanx for the help
> 
> --- In flexcoders@yahoogroups.com


> , "Alex Harui"  wrote:
> >
> > The UID's in the data, not the renderer matter. Renderers definitely
> > get recycled so you can't store anything about selection in the
> renderer
> > and have to use isItemSelected to update it during
updateDisplayList.
> > 
> > 
> > 
> > If you want to post a mini-example, we can take a look.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com


> [mailto:flexcoders@yahoogroups.com


> ] On
> > Behalf Of icepaco33
> > Sent: Sunday, November 11, 2007 4:04 PM
> > To: flexcoders@yahoogroups.com 
 
> > Subject: [flexcoders] Re: Can't select an item renderer in a list
> > 
> > 
> > 
> > No I do not have the same problem if I use the default renderer.
> > I checked the UIDs in the following manner :
> > 
> > - Manually changing the UID of each renderer to make sure they are
> > unique
> > 
> > - Using debug mode and monitoring the UID : they are different. 
> > 
> > In both cases tho the behavior of this bug is exactly the same :
> > 
> > Behavior of the list during a drag and drop is to create 2 new
> renderer:
> > 
> > 1 that represent the item being dragged which will never make it to
> > the list. (So that new item doesn't cause the bug)
> > 1 that will take the place of the item that you dragged but will
> > contain the info of the item next to

[flexcoders] Re: DataGrid not populating from XMLListCollection - namespace issue?

2007-11-13 Thread Brian
Thanks! I've tried it and am still having problems. Sorry for the
newbie questions.

You mentioned in the comments on your blog that you like to leave the
resultFormat defaulted to Object. So then how do you construct your
dataProvider? I'm confused because on one hand we're talking about
handling XML/namespace data, but then you talk about leaving it as an
Object. Do you still use a result Handler to parse your Object data
into a different model?

--- In flexcoders@yahoogroups.com, "ben.clinkinbeard"
<[EMAIL PROTECTED]> wrote:
>
> This might help, hope it does.
>
http://www.returnundefined.com/2006/07/datagrid-labelfunction-and-namespaces/
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Brian"  wrote:
> >
> > I've been trying to get a DataGrid populated from a WebService and
> > having much trouble. I'm wondering if the issue might be namespace
> > issues, but I'm confused by the usage and syntax of namespace from the
> > posts I've found here on that. There is no data in the DataGrid, but
> > it does appear to flicker and slightly resize it self when I call the
> > service so it looks like _something_ is going on. I've bound the
> > service response to an XMLListCollection so I can trace() it and I can
> > see the XML tree that should be displayed in the DataGrid.
> > 
> > Any ideas why it's not working? Would appreciate any help, been
> > banging my head on this for days now. Thanks.
> > 
> > Here is the mxml :
> > 
> > 
> > http://www.adobe.com/2006/mxml";
> > layout="absolute">
> > 
> > 
> > 
> > 
> > 
> >  > 
> > wsdl="http://localhost:8080/OrderViewWeb/services/OrderableMed?wsdl";
> > showBusyCursor="true">
> >  > result="handleOrdMedSearch(event)">
> > 
> > {ordMedSearchText.text}
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  > click="ordMedSearchWS.searchStartsWith.send()"/>
> > 
> > 
> > 
> >  > dataProvider="{ordMedList}">
> > 
> >  > dataField="id" width="100"/>
> >  > dataField="desc" />
> > 
> > 
> > 
> > 
> > 
> > Here is the xml from the trace : 
> > 
> > http://services.company.com/";
> > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
> >   http://services.company.com";>
> > http://services.company.com";>tylenol
> > http://services.company.com";>7607
> >   
> >   http://services.company.com";>
> > http://services.company.com";>aspirin
> > http://services.company.com";>7608
> >   
> >   http://services.company.com";>
> > http://services.company.com";>ibuprofen
> > http://services.company.com";>7609
> >   
> > 
> >
>




[flexcoders] possible bug in loading mxml swf's in vista64

2007-11-13 Thread cohcoloco
I posted earlier that I was having trouble accessing public variables
from a loaded swf that was compiled from mxml, but worked fine if it
was pure as3, and this problem only seems to exist on my vista64 machine.

it seems to work fine on linux and winxp :/  is this a known bug?



[flexcoders] Re: accessing public properties from loaded mxml swf (flex 2.01)

2007-11-13 Thread cohcoloco
ok, in testing this with a few other boxes, I believe this to be a bug
in Vista64, where the bug was showing itself.  The code works fine in
linux and xp.  i'll send this to Adobe as a bug report.


--- In flexcoders@yahoogroups.com, "cohcoloco" <[EMAIL PROTECTED]> wrote:
>
> I'm trying to access the public properties from an swf that I've loaded,
> but I get the error: ReferenceError: Error #1069: Property test_property
> not found on _test_app_mx_managers_SystemManager and there is no default
> value.  I load an as3 swf using the same technique, with the same
> variable name, and it works fine.  the swf's are from the same host as
> well.
> 
> the way im loading is:
> public function loadAsset(url:String):void {
>  var aLoader:Loader = new Loader();
>  aLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
> assetLoaded);
>  var context:LoaderContext = new LoaderContext();
>  context.applicationDomain= ApplicationDomain.currentDomain;
>  aLoader.load(new URLRequest(url), context);
> }
>   private function assetLoaded(eventEvent:Event):void {
>   return assetEvent.target as LoaderInfo
> }
> 
> .. then from the calling class..
> 
> my_app = app_loader.assetInfo(appString).content;
> 
> doing something like  trace(describeType(appWin).toString());  reveals
> that my public variables are not available from the mxml swf, but
> available fine if I use this on a regular as3 swf, ive tried
> my_app.application["test_property"] .. etc
> 
> Anyone know what I'm doing wrong?
>




[flexcoders] How do I place a preload to the objects loaded in an XMLList?

2007-11-13 Thread Fernando Comet
How do I place a preload to the objects loaded in an XMLList?

And, how do I place a preload every time I load an image? The images
are as much as 100kb, I don´t know it is necessarty.

This is my application: http://www.fernandocomet.com/Comet_porfolio.html
This is my code: http://www.fernandocomet.com/srcview/index.html

Thank you very much! 



RE: [flexcoders] Re: Custom List component Height Issue

2007-11-13 Thread Alex Harui
You will need to override measure() and set measuredHeight based on
explicitWidth.  There is code like that in ListItemRenderer

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of davidch204
Sent: Monday, November 12, 2007 2:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Custom List component Height Issue

 

Hi Alex, the thing is I list other data, I just left out the component
in my example below, but basically its a . That's why I
use the renderer. That and I style the renderer also.

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> That renderer should not be necessary. Set wordWrap and
> variableRowHeight=true on the list
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of davidch204
> Sent: Monday, November 12, 2007 11:58 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Custom List component Height Issue
> 
> 
> 
> Hi all, I created a custom item renderer and in it I have:
> 
> 
> 
> 
> 
> 
> 
> The text inside  includes spaces like /r, so most items take up
> at least two lines. However my problem is that it only seems to be
> rendering the first line of text and is not displaying the rest.
> 
> If I set the height strictly it'll display the full text, but this
> would seem odd for items that are only one line of text.
> 
> Anyone have issues/solutions with variable heights in list items?
>

 



RE: [flexcoders] accessing public properties from loaded mxml swf (flex 2.01)

2007-11-13 Thread Alex Harui
content.application.test_property

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of cohcoloco
Sent: Tuesday, November 13, 2007 5:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] accessing public properties from loaded mxml swf
(flex 2.01)

 

I'm trying to access the public properties from an swf that I've loaded,
but I get the error: ReferenceError: Error #1069: Property test_property
not found on _test_app_mx_managers_SystemManager and there is no default
value. I load an as3 swf using the same technique, with the same
variable name, and it works fine. the swf's are from the same host as
well.

the way im loading is:
public function loadAsset(url:String):void {
var aLoader:Loader = new Loader();
aLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
assetLoaded);
var context:LoaderContext = new LoaderContext();
context.applicationDomain= ApplicationDomain.currentDomain;
aLoader.load(new URLRequest(url), context);
}
private function assetLoaded(eventEvent:Event):void {
return assetEvent.target as LoaderInfo
}

.. then from the calling class..

my_app = app_loader.assetInfo(appString).content;

doing something like trace(describeType(appWin).toString()); reveals
that my public variables are not available from the mxml swf, but
available fine if I use this on a regular as3 swf, ive tried
my_app.application["test_property"] .. etc

Anyone know what I'm doing wrong?

 



RE: [flexcoders] Overriding inherited skin style

2007-11-13 Thread Alex Harui
borderSkin: null 

 

didn't work?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of polestar11
Sent: Tuesday, November 13, 2007 6:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Overriding inherited skin style

 

Hi there

I have a global Panel style defined, which contains a border-skin swf.
I want to be able to turn this off for specific panels. There seems to
be no explicit way to turn this off (Eg. boder-skin:none) & the only
way I have managed so far is to reference a transparent / blank swf as
the skin. The problem with this though is background colour is then
ignored & I get a transparent panel, which I cannot really style.
Another alternative is to create the global panel style as a styleName
& reference it in each component in question. But there are more
components using this style than not, so it makes more sense to switch
it off for special cases.

Here's the code:
Panel {
borderSkin: Embed(source="flex_skins.swf", symbol="Panel_borderSkin");
}
CustomPanel {
borderSkin: Embed(source="empty.swf",
symbol="Panel_titleBackgroundSkin");
/*None of the following styles are implemented*/
backgroundColor: #1b2c36;
border-alpha:0;
border-thickness:0;
border-style:none;
}

Cheers
Tracy

 



[flexcoders] Rendering offstage

2007-11-13 Thread Mike Krotscheck
Is there a way of forcing a displayObject to render (for the purposes of
IBitmapDrawable) without adding it to the stage?

 

Michael Krotscheck

Senior Developer

 
RESOURCE INTERACTIVE

 www.resource.com  

[EMAIL PROTECTED]  

 



This email and any of its attachments may contain Resource Interactive
proprietary information, which is privileged, confidential and may be
subject to copyright or other intellectual property rights belonging to
Resource Interactive. This email is intended solely for the use of the
individual or entity to which it is addressed. If you are not the
intended recipient of this email, you are hereby notified that any
dissemination, distribution, copying or action taken in relation to the
contents of and attachments to this email is strictly prohibited and may
be unlawful. If you have received this email in error, please notify the
sender immediately and permanently delete the original and any copy of
this email and any printout.




RE: [flexcoders] How can I convert from XmlList to ArrayCollection?

2007-11-13 Thread Alex Harui
Also see xmldecoder

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Tuesday, November 13, 2007 8:18 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How can I convert from XmlList to
ArrayCollection?

On Tuesday 13 Nov 2007, real_yoni wrote:
> How can I convert from XmlList to ArrayCollection?

for each loop ?

-- 
Tom Chiverton
Helping to continuously integrate bleeding-edge portals
on: http://thefalken.livejournal.com



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

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at St James's Court Brown Street Manchester M2 2JF.  A list
of members is available for inspection at the registered office.  Any
reference to a partner in relation to Halliwells LLP means a member of
Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

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

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


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links





[flexcoders] Have you monkey patched the Flex framework?

2007-11-13 Thread Matt Chotin
Have you modified the framework source for your own purposes on a
production Flex application?  If so I'd like to hear from you as we're
currently trying to understand where folks are making changes and the
kind of impact they could have on applications with relation to our new
cached framework strategy.

Please let me know the following:
1) What files (or at least what areas) have you patched
2) Is SWF size an important consideration for your app
3) Was patching really the only solution available to you
4) Are you comfortable creating RSLs

Thanks,
Matt


[flexcoders] Question about Changing font style of Tree Node

2007-11-13 Thread prabs73511
Hi All,

This is stripped down version of my Application. where I am trying to
change font style of particular tree node. can any one help me how to
do this ? Actually I want to make fontStyle Bold of first node in tree.

here is code. it's not the complete one. just to post it here, I
striped it. it may have some bugs. but this is just to show how I am 
filling the tree.

http://www.adobe.com/2006/mxml";
layout="vertical" title="Test"
creationPolicy="all" creationComplete="onCreationComplete()">









thanks
-- Prabs



Re: [flexcoders] Re: Flex2Gateway only allowing one site??

2007-11-13 Thread Derrick Anderson
in my case, i have multiple copies of the same or 'similar' swf files
accessing cfc's on the backend.  i had considered the names being the same
affecting cache somehow but i have not been able to try changing one yet.

right now all my CFC's for each app have hard-coded variables instead of
application variables.  it definitely goes to the right path to look for the
CFC's, but it is reading the wrong application.cfm is what i have noticed,
sounds like exactly what you are seeing. because of this i cannot use
application or session variables to hold anything.

d.

On Nov 13, 2007 11:06 AM, brandon.culpepper <[EMAIL PROTECTED]>
wrote:

>   No, each site has a different Application name set in the
> Application.cfm.
>
> Could this be due to the flex app swf file having the same name in
> each directory? I know it sounds like I am reaching at this point,
> but I have been banging my head on this for a couple days now with no
> luck.
>
>
> --- In flexcoders@yahoogroups.com , Jeffry
> Houser <[EMAIL PROTECTED]> wrote:
> >
> > Does each site have the same application name, set in the cfapplication
> > tag (or possibly as an instance variable in the Application.cfc )
> >
> > brandon.culpepper wrote:
> > >
> > >
> > > Not sure if this is a Caching problem or not.
> > >
> > > Server setup:
> > > One CFMX 7.0.2 Standard Edition server with many sites in their own
> > > directories in the webroot. This is not the multi-instance install of
> > > CF I would prefer but we are working towards that.
> > >
> > > Problem:
> > > mySite-1 hits the flex2gateway and everything is fine. mySite-2 tries
> > > to hit the flex2gateway and for some reason the flex app is trying to
> > > use the Application.cfm for mySite-1 and is bombing out because it
> > > thinks I am not logged in.
> > >
> > > When I restart the CF service and hit the
> > > flex2gateway from mySite-2 first everything is fine but hitting it
> > > from mySite-1 is now trying to use the Application.cfm from mySite-2.
> > >
> > > It seems to only want to use the Application.cfm from what ever the
> > > first site is to hit it.
> > >
> > > Any one else come across this?
> > >
> > >
> >
> > --
> > Jeffry Houser, Technical Entrepreneur, Software Developer, Author,
> > Recording Engineer
> > AIM: Reboog711 | Phone: 1-203-379-0773
> > --
> > My Company: 
> > My Podcast: 
> > My Blog: 
> >
>
>  
>


[flexcoders] Flex Logging ~ log4j

2007-11-13 Thread Claude Hussenet
What are the options to log information in a flex components without 
pushing any information to the server ?

I am looking for something similar to what can done with an Applet
sending logs into the java console.

Is FAST (http://www.adobe.com/devnet/flex/articles/fast_userguide.html)
still the recomended option with Flex 3 ?

Thank you for your help.

Rgds
Claude Hussenet




[flexcoders] Re: Flex2Gateway only allowing one site??

2007-11-13 Thread brandon.culpepper
Holy crap it works!! All I had to do was make sure that the .swf files
were named something different. For some reason because I was using
main.html and main.swf in both sites the swf was getting cached I
guess. So I created one Flex app called RemoteTesting-1 and one called
RemoteTesting-2. I then compiled and pushed RemoteTesting-1 out to
mySite-1 and pushed RemoteTesting-2 out to mySite-2 and each are
working now using their own respective Application.cfm's. Let me know
if you have any questions Derrick.

--- In flexcoders@yahoogroups.com, "Derrick Anderson"
<[EMAIL PROTECTED]> wrote:
>
> OMG!! i thought i was the only one in the world! i can confirm this
behavior
> and i can also confirm that it happens on application.cfm files with
> different names and no instance vars.
> 
> it is absolutely killing me, let me know if u find anything and i'll
do the
> same!
> 
> derrick
> 
> On Nov 13, 2007 11:04 AM, Jeffry Houser <[EMAIL PROTECTED]> wrote:
> 
> >   Does each site have the same application name, set in the
cfapplication
> > tag (or possibly as an instance variable in the Application.cfc )
> >
> >
> > brandon.culpepper wrote:
> > >
> > >
> > > Not sure if this is a Caching problem or not.
> > >
> > > Server setup:
> > > One CFMX 7.0.2 Standard Edition server with many sites in their own
> > > directories in the webroot. This is not the multi-instance
install of
> > > CF I would prefer but we are working towards that.
> > >
> > > Problem:
> > > mySite-1 hits the flex2gateway and everything is fine. mySite-2
tries
> > > to hit the flex2gateway and for some reason the flex app is
trying to
> > > use the Application.cfm for mySite-1 and is bombing out because it
> > > thinks I am not logged in.
> > >
> > > When I restart the CF service and hit the
> > > flex2gateway from mySite-2 first everything is fine but hitting it
> > > from mySite-1 is now trying to use the Application.cfm from
mySite-2.
> > >
> > > It seems to only want to use the Application.cfm from what ever the
> > > first site is to hit it.
> > >
> > > Any one else come across this?
> > >
> > >
> >
> > --
> > Jeffry Houser, Technical Entrepreneur, Software Developer, Author,
> > Recording Engineer
> > AIM: Reboog711 | Phone: 1-203-379-0773
> > --
> > My Company: 
> > My Podcast: 
> > My Blog: 
> >
> >  
> >
>




[flexcoders] Re: Flex Builder 3 Performance Profiling not working os x 10.4.10

2007-11-13 Thread init_app
Hey Rico,

Undue whatever you've attempted and then give this a try:

http://initapp.com/2007/10/29/flex-builder-3-mac-air-debugprofiler-switcher-app/

Regards,
Steven

--- In flexcoders@yahoogroups.com, "rleuthold" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I've tried to do a performance profiling of my App, following the 
> Instructions on the 
Adobe 
> Labs Page 
> 
http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Performance_and_M
em
> ory_Profiling (I quit Firefox before starting as well), but the Performance 
> Profile Panel is 
always 
> empty. 
> 
> I've found a filed bug (FB-10646) saying that there is a known problem on os 
> x 10.5. 
But I'm 
> running 10.4.10 and experience the same thing.
> 
> Ideas, Information ? 
> 
> Thanks_rico
>





[flexcoders] Re: Flex2Gateway only allowing one site??

2007-11-13 Thread brandon.culpepper
No, each site has a different Application name set in the
Application.cfm. 

Could this be due to the flex app swf file having the same name in
each directory?  I know it sounds like I am reaching at this point,
but I have been banging my head on this for a couple days now with no
luck.

--- In flexcoders@yahoogroups.com, Jeffry Houser <[EMAIL PROTECTED]> wrote:
>
> Does each site have the same application name, set in the cfapplication 
> tag (or possibly as an instance variable in the Application.cfc )
> 
> brandon.culpepper wrote:
> > 
> > 
> > Not sure if this is a Caching problem or not.
> > 
> > Server setup:
> > One CFMX 7.0.2 Standard Edition server with many sites in their own
> > directories in the webroot. This is not the multi-instance install of
> > CF I would prefer but we are working towards that.
> > 
> > Problem:
> > mySite-1 hits the flex2gateway and everything is fine. mySite-2 tries
> > to hit the flex2gateway and for some reason the flex app is trying to
> > use the Application.cfm for mySite-1 and is bombing out because it
> > thinks I am not logged in.
> > 
> > When I restart the CF service and hit the
> > flex2gateway from mySite-2 first everything is fine but hitting it
> > from mySite-1 is now trying to use the Application.cfm from mySite-2.
> > 
> > It seems to only want to use the Application.cfm from what ever the
> > first site is to hit it.
> > 
> > Any one else come across this?
> > 
> > 
> 
> -- 
> Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
> Recording Engineer
> AIM: Reboog711  | Phone: 1-203-379-0773
> --
> My Company: 
> My Podcast: 
> My Blog: 
>




Re: [flexcoders] How can I convert from XmlList to ArrayCollection?

2007-11-13 Thread Tom Chiverton
On Tuesday 13 Nov 2007, real_yoni wrote:
> How can I convert from XmlList to ArrayCollection?

for each loop ?

-- 
Tom Chiverton
Helping to continuously integrate bleeding-edge portals
on: http://thefalken.livejournal.com



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
Solicitors Regulation Authority.

CONFIDENTIALITY

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

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


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] Flex2Gateway only allowing one site??

2007-11-13 Thread Derrick Anderson
OMG!! i thought i was the only one in the world! i can confirm this behavior
and i can also confirm that it happens on application.cfm files with
different names and no instance vars.

it is absolutely killing me, let me know if u find anything and i'll do the
same!

derrick

On Nov 13, 2007 11:04 AM, Jeffry Houser <[EMAIL PROTECTED]> wrote:

>   Does each site have the same application name, set in the cfapplication
> tag (or possibly as an instance variable in the Application.cfc )
>
>
> brandon.culpepper wrote:
> >
> >
> > Not sure if this is a Caching problem or not.
> >
> > Server setup:
> > One CFMX 7.0.2 Standard Edition server with many sites in their own
> > directories in the webroot. This is not the multi-instance install of
> > CF I would prefer but we are working towards that.
> >
> > Problem:
> > mySite-1 hits the flex2gateway and everything is fine. mySite-2 tries
> > to hit the flex2gateway and for some reason the flex app is trying to
> > use the Application.cfm for mySite-1 and is bombing out because it
> > thinks I am not logged in.
> >
> > When I restart the CF service and hit the
> > flex2gateway from mySite-2 first everything is fine but hitting it
> > from mySite-1 is now trying to use the Application.cfm from mySite-2.
> >
> > It seems to only want to use the Application.cfm from what ever the
> > first site is to hit it.
> >
> > Any one else come across this?
> >
> >
>
> --
> Jeffry Houser, Technical Entrepreneur, Software Developer, Author,
> Recording Engineer
> AIM: Reboog711 | Phone: 1-203-379-0773
> --
> My Company: 
> My Podcast: 
> My Blog: 
>
>  
>


Re: [flexcoders] Flex2Gateway only allowing one site??

2007-11-13 Thread Jeffry Houser
Does each site have the same application name, set in the cfapplication 
tag (or possibly as an instance variable in the Application.cfc )

brandon.culpepper wrote:
> 
> 
> Not sure if this is a Caching problem or not.
> 
> Server setup:
> One CFMX 7.0.2 Standard Edition server with many sites in their own
> directories in the webroot. This is not the multi-instance install of
> CF I would prefer but we are working towards that.
> 
> Problem:
> mySite-1 hits the flex2gateway and everything is fine. mySite-2 tries
> to hit the flex2gateway and for some reason the flex app is trying to
> use the Application.cfm for mySite-1 and is bombing out because it
> thinks I am not logged in.
> 
> When I restart the CF service and hit the
> flex2gateway from mySite-2 first everything is fine but hitting it
> from mySite-1 is now trying to use the Application.cfm from mySite-2.
> 
> It seems to only want to use the Application.cfm from what ever the
> first site is to hit it.
> 
> Any one else come across this?
> 
> 

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: 
My Podcast: 
My Blog: 



[flexcoders] Flex2Gateway only allowing one site??

2007-11-13 Thread brandon.culpepper
Not sure if this is a Caching problem or not.

Server setup:
One CFMX 7.0.2 Standard Edition server with many sites in their own
directories in the webroot. This is not the multi-instance install of
CF I would prefer but we are working towards that.

Problem:
mySite-1 hits the flex2gateway and everything is fine. mySite-2 tries
to hit the flex2gateway and for some reason the flex app is trying to
use the Application.cfm for mySite-1 and is bombing out because it
thinks I am not logged in.

When I restart the CF service and hit the
flex2gateway from mySite-2 first everything is fine but hitting it
from mySite-1 is now trying to use the Application.cfm from mySite-2.

It seems to only want to use the Application.cfm from what ever the
first site is to hit it.

Any one else come across this?



[flexcoders] Re: AIR: HTML components not redraw?

2007-11-13 Thread TJ Downes
Ok so Adobe has officially replied that this is a bug and will be
fixed in the next release:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=72&catid=641&threadid=1313878&enterthread=y


Thanks for all the help :P




[flexcoders] Re: My first post here - styling the TabBar rollover colors

2007-11-13 Thread mydarkspoon
Hi Rico, thanks for the help, but I couldn't download the file
attachment since that I wasn't registered to the mail notification. 
Could you please re-send it ? (subscribed now...)

Thanks a lot! :)

--- In flexcoders@yahoogroups.com, Rico Leuthold <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I'm not sure if you can do it without a programmatic skin. Here is  
> the as and the css part for how to do it with a programmatic skin  
> (works for me):
> 
> 
> _rico
> 
> 
> 
> On 13.11.2007, at 14:21, mydarkspoon wrote:
> 
> > Hello all!
> >
> > I'm styling the flex TabBar using Adobe flex explorer, and facing a
> > very annoying problem while trying to set the rollOver color of the  
> > tabs.
> >
> > At first place I thought I could set the rollover color using the
> > tabStyleName's fillColors style, but this style can only get 2 colors
> > that determines the default bg color, unlike the ButtonBar, whose
> > fillColors can get 4 colors where the last 2 determines the rollover
> > colors.
> >
> > Since TabBar extends ButtonBar, I thought that instead of using the
> > .tabStyleName I could use the buttonStyleName , in which I can define
> > rollover colors with the fillColors style which receives 4 colors,
> > where the last two, determines the rollover color, as the
> > buttonStyleName has no effect on the tabs.
> >
> > This is a link to a demo project that illustrates the problem:
> > http://files-upload.com/files/616415/TabsRolloverColor.rar
> >
> > I will be very glad to get some ideas to get around this.
> >
> > Thanks a lot,
> > Almog.
> >
> >
> > 
> 
> ...
> Rico Leuthold
> [EMAIL PROTECTED]
> +41(0)76 512 05 50
> ...
>






[flexcoders] Re: AIR: HTML components not redraw?

2007-11-13 Thread TJ Downes
Here's a test case:


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







index.html:



http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml";>


Insert title here

function changeSelector() {
document.getElementById("mySelector").selectedIndex = 0;
}





One
Two
Three
Four





Re: [flexcoders] SandBox, crossdomain.xml

2007-11-13 Thread John VanHorn
1. Make sure you have the appropriate secure attributes in you crossdomain
file:



2. Also note that flash player doesnt trust any self-signed certs.

3. be wary of the IE no-cache header thing.

for #2 and #3, see:
http://kb.adobe.com/selfservice/viewContent.do?externalId=fdc7b5c&sliceId=2

On Nov 12, 2007 1:07 AM, <[EMAIL PROTECTED]> wrote:

>   hey people,
>
> got some questions about crossdomain.xml
>
> i got a swf file that loads up under https//www.test.com and the swf file
> also load in https.
>
> now I had to make my crossdomain calls http so i can call
> http://sub1.test.com.
>
> We only have a SSL cert for www.test.com. So if I try to make a
> crossdomain call to https://sub1.test.com it will not load the
> crossdomain.xml.
>
> Is this because the https://sub1.test.com doesn't have a SSL cert?
>
> If I got a wild-card SSL cert for *.test.com would my sub1.test.com calls
> over https work?
>
> Can I even make corssdomain https calls?
>
> any help would be good.
>
>  
>



-- 
John Van Horn
[EMAIL PROTECTED]


RE: [flexcoders] Flex Localization Support

2007-11-13 Thread Samuel R. Neff

Flash doesn't support RTL (the next version will, but also remember that
even when Flash is updated, if you're using Flex you'll need to wait for a
corresponding Flex framework update as well).

There have been some experiments with hacks in Flash but I haven't seen
anything yet in Flex.  Here's one example:

http://www.quasimondo.com/archives/000332.php

Not pretty but apparently doable if it's a must.

HTH,

Sam 


---
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jehanzeb Musani
Sent: Tuesday, November 13, 2007 9:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Localization Support

Hello All,

I want to support Arabic content in my application.
That is the client can choose whether he want to view
the content of my applicaiton in Arabic or English at
runtime. Can anyone tell me how can I change the
content of Flex application at runtime? Also, do I
need to create separate SWF files for English and
Arabic content?

When the user selects to view the application in
Arabic, the application layout should change from
Left-To-Right to Right-To-Left. In .NET and HTML,
there is inherent support for this. In .NET all UI
controls have RightToLeft property. In HTML we can set
the "direction" attribute to "rtl" for Right-To-Left.
Can anyone tell me whether Flex supports this
inherently or not?

Regards,
Jehanzeb



[flexcoders] How can I convert from XmlList to ArrayCollection?

2007-11-13 Thread real_yoni
How can I convert from XmlList to ArrayCollection?

Thanks,
Yoni.



Re: [flexcoders] Flex Localization Support

2007-11-13 Thread Paul Hastings
Jehanzeb Musani wrote:
> Can anyone tell me whether Flex supports this
> inherently or not?

it's the flash player that currently doesn't support BIDI. i think it's been 
announced that BIDI will be supported in the next flash client release.


[flexcoders] Flex Localization Support

2007-11-13 Thread Jehanzeb Musani
Hello All,

I want to support Arabic content in my application.
That is the client can choose whether he want to view
the content of my applicaiton in Arabic or English at
runtime. Can anyone tell me how can I change the
content of Flex application at runtime? Also, do I
need to create separate SWF files for English and
Arabic content?

When the user selects to view the application in
Arabic, the application layout should change from
Left-To-Right to Right-To-Left. In .NET and HTML,
there is inherent support for this. In .NET all UI
controls have RightToLeft property. In HTML we can set
the "direction" attribute to "rtl" for Right-To-Left.
Can anyone tell me whether Flex supports this
inherently or not?

Regards,
Jehanzeb


  

Get easy, one-click access to your favorites. 
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs 


[flexcoders] Overriding inherited skin style

2007-11-13 Thread polestar11
Hi there

I have a global Panel style defined, which contains a border-skin swf.
I want to be able to turn this off for specific panels. There seems to
be no explicit way to turn this off (Eg. boder-skin:none) & the only
way I have managed so far is to reference a transparent / blank swf as
the skin. The problem with this though is background colour is then
ignored & I get a transparent panel, which I cannot really style.
Another alternative is to create the global panel style as a styleName
& reference it in each component in question. But there are more
components using this style than not, so it makes more sense to switch
it off for special cases.

Here's the code:
Panel {
borderSkin: Embed(source="flex_skins.swf", 
symbol="Panel_borderSkin");
}
CustomPanel {
borderSkin: Embed(source="empty.swf",
symbol="Panel_titleBackgroundSkin");
/*None of the following styles are implemented*/
backgroundColor: #1b2c36;
border-alpha:0;
border-thickness:0;
border-style:none;
}

Cheers
Tracy




RE: [flexcoders] How to scale containers?

2007-11-13 Thread Mark Ingram
I suppose I should say the problem I have, that might help:

 

If I have a component that is 100x100, I want to display it's contents
scaled down by 50%. So I set the scaleX & scaleY properties to 0.50. The
trouble is, when I view my container, it is now 50x50. I can see why
it's done that, but really I was hoping to just scale the contents - not
the container itself (the scrollbars are also 50% scaled).

 

Mark

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: 13 November 2007 12:47
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to scale containers?

 

Hi, I have a custom container which is based on the Canvas control. It
just displays other custom controls that are also based on Canvas. If I
wanted to do a thumbnail preview of the main container, how do I go
about scaling everything? For instance, if the main container displays
at 800x600, how can I scale it down into a control 80x60?

(I'm assuming there is something built in to flex to do most of this
without manually writing scaling code?)

 

Thanks,

 

Mark

 

 

 

 



[flexcoders] Re: Can't select an item renderer in a list

2007-11-13 Thread icepaco33
Hello,
Nope that's not it...
As I said, if you remove all the calls to the sub class Highlighter
(by commenting the data setter 
(  override public function set data(value:Object):void   ) 

and removing the CompleteEventHandler 
( private function SentenceRendererCreationCompleteEventHandler
> ():void  )

then everything will work fine.  (Aka you will be able to do drag &
drop and then select any item in the list etc.)

So the problem lies in the sub class _Highlighter.

Once again my theory is that since this class is totally custom my
guess is that there is an Interface that it should implements as a sub
component of a renderer...

thanx !

--- In flexcoders@yahoogroups.com, "yossigordin" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> When a drag-n-drop operation is made, the data setter is not fired, 
> rather the data changeEvent.
> I think that the problem is with your itemRenderer - you have 
> overriden the data setter but you didn't add an event listener for 
> dataChange events.
> Try to add a Flex.DataChangeEvent listener that does exactly what 
> the setter does.
> 
> Hope it helps
> Josef
> 
> --- In flexcoders@yahoogroups.com, "icepaco33"  wrote:
> >
> > Humble excuse Alex,
> > but you are not answering my question / problem.
> > 
> > I have no problem with my highlight / selection showing...
> > My problem is that if I do drag & drop operation and if I change 
> the
> > Data Provider then sometimes I can no longer select some items even
> > tho they are showing...
> > 
> > I have found out that if I remove my Highlighter class from my
> > renderer then everything will work out fine (I can drag & drop and
> > then select any / every items in the list).
> > 
> > So I was wondering if it is because my Highlighter class isn't
> > implementing some Interface that are necessary for a sub component 
> of
> > a Renderer...
> > 
> > Thanx !
> > --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> > >
> > > The Flex classes draw highlight and selection behind the 
> renderer, so
> > > any renderer with an opaque background will obscure it.  Folks 
> either
> > > test for isItemSelected/Highlighted and change their own 
> background
> > > color, or remove the background color.  You can see examples on 
> my blog
> > > (blogs.adobe.com/aharui
> > > 
> > >  
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > > Behalf Of icepaco33
> > > Sent: Monday, November 12, 2007 9:22 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Re: Can't select an item renderer in a list
> > > 
> > >  
> > > 
> > > Salutations,
> > > I have found out the culprit.
> > > So first here is the code of the renderer :
> > > 
> > > 
> > > http://www.adobe.com/2006/mxml
> > >  " width="100%"
> > > styleName="myStyle1" verticalScrollPolicy="off"
> > > implements="mx.managers.IFocusManagerComponent" 
> toolTip="{data.uid}"
> > > creationComplete="SentenceRendererCreationCompleteEventHandler
> ()">
> > > 
> > > 
> > >  value="#ff"/>
> > > 
> > > 
> > >  > > value="false"/>
> > > 
> > > 
> > > 
> SentenceRendererSelectedCurrentStateChangeEventHandler()
>  > > :handler>
> > > 
> > > 
> > > 
> > >  value="#808080"/>
> > > 
> > > 
> > > 
> > > 
> > >  > > borderStyle="none" text="{data.Text}" textIndent="25"
> > > styleName="myStyle1" textDecoration="none" selectable="false"
> > > verticalScrollPolicy="off" minHeight="60"> 
> > > 
> > >  > > height="15" color="#ff">
> > > 
> > > @Embed('Ressources/Librairie/History/Btn_S_D.swf')
>  > > Skin>
> > > 
> > > @Embed('Ressources/Librairie/History/Btn_S_U.swf')
>  > > Skin>
> > > 
> > > @Embed('Ressources/Librairie/History/Btn_S_U.swf')
>  > > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > The problem resides in the sub components Highlighter. This 
> component
> > > draws a rectangle in the back of the text. (This is someone 
> else's lib
> > > that I modified a bit)
> > > 
> > > Anyway if I don't refer to this sub class at all then my 
> application
> > > works fine.
> > > 
> > > I believe I have to implements some Interface from Flex so that 
> I can
> > > use this sub class in my Renderer...
> > > 
> > > Thanx for the help
> > > 
> > > --- In flexcoders@yahoogroups.com  40yahoogroups.com>
> > > , "Alex Harui"  wrote:
> > > >
> > > > The UID's in the data, not the renderer matter. Renderers 
> definitely
> > > > get recycled so you can't store anything about selection in the
> > > renderer
> > > > and have to use isItemSelected to update it during 
> updateDisplayList.
> > > > 
> > > > 
> > > > 
> > > > If you want to post a mini-example, we can take a look.
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > From: flexcoders@yahoogroups.com  40yahoogroups.com>
> > > [mailto:flexcoders@yahoogroups.com  40yahoogroups.com>
> > > ] On
> > > > Behalf Of icepaco33
> > > > S

[flexcoders] accessing public properties from loaded mxml swf (flex 2.01)

2007-11-13 Thread cohcoloco
I'm trying to access the public properties from an swf that I've loaded,
but I get the error: ReferenceError: Error #1069: Property test_property
not found on _test_app_mx_managers_SystemManager and there is no default
value.  I load an as3 swf using the same technique, with the same
variable name, and it works fine.  the swf's are from the same host as
well.

the way im loading is:
public function loadAsset(url:String):void {
 var aLoader:Loader = new Loader();
 aLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
assetLoaded);
 var context:LoaderContext = new LoaderContext();
 context.applicationDomain= ApplicationDomain.currentDomain;
 aLoader.load(new URLRequest(url), context);
}
  private function assetLoaded(eventEvent:Event):void {
  return assetEvent.target as LoaderInfo
}

.. then from the calling class..

my_app = app_loader.assetInfo(appString).content;

doing something like  trace(describeType(appWin).toString());  reveals
that my public variables are not available from the mxml swf, but
available fine if I use this on a regular as3 swf, ive tried
my_app.application["test_property"] .. etc

Anyone know what I'm doing wrong?





[flexcoders] Re: Can't select an item renderer in a list

2007-11-13 Thread yossigordin
Hi,

When a drag-n-drop operation is made, the data setter is not fired, 
rather the data changeEvent.
I think that the problem is with your itemRenderer - you have 
overriden the data setter but you didn't add an event listener for 
dataChange events.
Try to add a Flex.DataChangeEvent listener that does exactly what 
the setter does.

Hope it helps
Josef

--- In flexcoders@yahoogroups.com, "icepaco33" <[EMAIL PROTECTED]> wrote:
>
> Humble excuse Alex,
> but you are not answering my question / problem.
> 
> I have no problem with my highlight / selection showing...
> My problem is that if I do drag & drop operation and if I change 
the
> Data Provider then sometimes I can no longer select some items even
> tho they are showing...
> 
> I have found out that if I remove my Highlighter class from my
> renderer then everything will work out fine (I can drag & drop and
> then select any / every items in the list).
> 
> So I was wondering if it is because my Highlighter class isn't
> implementing some Interface that are necessary for a sub component 
of
> a Renderer...
> 
> Thanx !
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > The Flex classes draw highlight and selection behind the 
renderer, so
> > any renderer with an opaque background will obscure it.  Folks 
either
> > test for isItemSelected/Highlighted and change their own 
background
> > color, or remove the background color.  You can see examples on 
my blog
> > (blogs.adobe.com/aharui
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> > Behalf Of icepaco33
> > Sent: Monday, November 12, 2007 9:22 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Can't select an item renderer in a list
> > 
> >  
> > 
> > Salutations,
> > I have found out the culprit.
> > So first here is the code of the renderer :
> > 
> > 
> > http://www.adobe.com/2006/mxml
> >  " width="100%"
> > styleName="myStyle1" verticalScrollPolicy="off"
> > implements="mx.managers.IFocusManagerComponent" 
toolTip="{data.uid}"
> > creationComplete="SentenceRendererCreationCompleteEventHandler
()">
> > 
> > 
> > 
> > 
> > 
> >  > value="false"/>
> > 
> > 
> > 
SentenceRendererSelectedCurrentStateChangeEventHandler()
 > :handler>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >  > borderStyle="none" text="{data.Text}" textIndent="25"
> > styleName="myStyle1" textDecoration="none" selectable="false"
> > verticalScrollPolicy="off" minHeight="60"> 
> > 
> >  > height="15" color="#ff">
> > 
> > @Embed('Ressources/Librairie/History/Btn_S_D.swf')
 > Skin>
> > 
> > @Embed('Ressources/Librairie/History/Btn_S_U.swf')
 > Skin>
> > 
> > @Embed('Ressources/Librairie/History/Btn_S_U.swf')
 > >
> > 
> > 
> > 
> > 
> > 
> > 
> > The problem resides in the sub components Highlighter. This 
component
> > draws a rectangle in the back of the text. (This is someone 
else's lib
> > that I modified a bit)
> > 
> > Anyway if I don't refer to this sub class at all then my 
application
> > works fine.
> > 
> > I believe I have to implements some Interface from Flex so that 
I can
> > use this sub class in my Renderer...
> > 
> > Thanx for the help
> > 
> > --- In flexcoders@yahoogroups.com 
> > , "Alex Harui"  wrote:
> > >
> > > The UID's in the data, not the renderer matter. Renderers 
definitely
> > > get recycled so you can't store anything about selection in the
> > renderer
> > > and have to use isItemSelected to update it during 
updateDisplayList.
> > > 
> > > 
> > > 
> > > If you want to post a mini-example, we can take a look.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com 
> > [mailto:flexcoders@yahoogroups.com 
> > ] On
> > > Behalf Of icepaco33
> > > Sent: Sunday, November 11, 2007 4:04 PM
> > > To: flexcoders@yahoogroups.com  
> > > Subject: [flexcoders] Re: Can't select an item renderer in a 
list
> > > 
> > > 
> > > 
> > > No I do not have the same problem if I use the default 
renderer.
> > > I checked the UIDs in the following manner :
> > > 
> > > - Manually changing the UID of each renderer to make sure they 
are
> > > unique
> > > 
> > > - Using debug mode and monitoring the UID : they are 
different. 
> > > 
> > > In both cases tho the behavior of this bug is exactly the 
same :
> > > 
> > > Behavior of the list during a drag and drop is to create 2 new
> > renderer:
> > > 
> > > 1 that represent the item being dragged which will never make 
it to
> > > the list. (So that new item doesn't cause the bug)
> > > 1 that will take the place of the item that you dragged but 
will
> > > contain the info of the item next to it.
> > > 
> > > That last item for whatever reason will be considerer by the 
list's
> > > selection model as the last item in the list

[flexcoders] My first post here - styling the TabBar rollover colors

2007-11-13 Thread mydarkspoon
Hello all!

I'm styling the flex TabBar using Adobe flex explorer, and facing a
very annoying problem while trying to set the rollOver color of the tabs.

At first place I thought I could set the rollover color using the
tabStyleName's fillColors style, but this style can only get 2 colors
that determines the default bg color, unlike the ButtonBar, whose
fillColors can get 4 colors where the last 2 determines the rollover
colors.

Since TabBar extends ButtonBar, I thought that instead of using the
.tabStyleName I could use the buttonStyleName , in which I can define
rollover colors with the fillColors style which receives 4 colors,
where the last two, determines the rollover color, as the
buttonStyleName has no effect on the tabs.

This is a link to a demo project that illustrates the problem:
http://files-upload.com/files/616415/TabsRolloverColor.rar

I will be very glad to get some ideas to get around this.

Thanks a lot,
Almog.




[flexcoders] Want to call a function from custom component on button click...

2007-11-13 Thread keszeli
In my main application I have these lines of code:





In a custom component:






than again calling a custom component in main application:



when I run the application it says 'Access of undefined property
remoting' if the custom component is embedded within main app all runs
fine. I'm probably wrong but maybe I should use something like
...



[flexcoders] Re: Custom List component Height Issue

2007-11-13 Thread davidch204
Hi Alex, the thing is I list other data, I just left out the component
in my example below, but basically its a . That's why I
use the renderer. That and I style the renderer also.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> That renderer should not be necessary.  Set wordWrap and
> variableRowHeight=true on the list
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of davidch204
> Sent: Monday, November 12, 2007 11:58 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Custom List component Height Issue
> 
>  
> 
> Hi all, I created a custom item renderer and in it I have:
> 
> 
> 
> 
> 
> 
> 
> The text inside  includes spaces like /r, so most items take up
> at least two lines. However my problem is that it only seems to be
> rendering the first line of text and is not displaying the rest.
> 
> If I set the height strictly it'll display the full text, but this
> would seem odd for items that are only one line of text.
> 
> Anyone have issues/solutions with variable heights in list items?
>




[flexcoders] Disappearing content/Platform Differences...

2007-11-13 Thread bithroop
I have been developing on an XP SP2 box and a Macbook, bouncing back
and forth. Tonight I started having a problem where a remoting call
was throwing an error on the PC but the Mac was fine.

So I decided to grab my wife's laptop and see how the app did on hers.
I was shocked and saddened to see that some functionality that works
fine on the other two machines goes bad on hers. Specifically, content
that I do a startDrag() on seemed to disappear. I have no idea what is
going on, but in order to sleep tonight, I wanted to ask...

a) Is this common in Flash land? I picked this platform because I
thought I'd be able to avoid this.

b) When you run into cases like this, what do you do? First thing that
came to mind was to do a remote debugging session off of her computer.


FWIW, her machine is a Dell Inspiron 640m. I tried updating the Intel
gfx drivers, but no luck.

Any insight would be great.



[flexcoders] Re: Can't select an item renderer in a list

2007-11-13 Thread icepaco33
Humble excuse Alex,
but you are not answering my question / problem.

I have no problem with my highlight / selection showing...
My problem is that if I do drag & drop operation and if I change the
Data Provider then sometimes I can no longer select some items even
tho they are showing...

I have found out that if I remove my Highlighter class from my
renderer then everything will work out fine (I can drag & drop and
then select any / every items in the list).

So I was wondering if it is because my Highlighter class isn't
implementing some Interface that are necessary for a sub component of
a Renderer...

Thanx !
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> The Flex classes draw highlight and selection behind the renderer, so
> any renderer with an opaque background will obscure it.  Folks either
> test for isItemSelected/Highlighted and change their own background
> color, or remove the background color.  You can see examples on my blog
> (blogs.adobe.com/aharui
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of icepaco33
> Sent: Monday, November 12, 2007 9:22 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Can't select an item renderer in a list
> 
>  
> 
> Salutations,
> I have found out the culprit.
> So first here is the code of the renderer :
> 
> 
> http://www.adobe.com/2006/mxml
>  " width="100%"
> styleName="myStyle1" verticalScrollPolicy="off"
> implements="mx.managers.IFocusManagerComponent" toolTip="{data.uid}"
> creationComplete="SentenceRendererCreationCompleteEventHandler()">
> 
> 
> 
> 
> 
>  value="false"/>
> 
> 
> SentenceRendererSelectedCurrentStateChangeEventHandler() :handler>
> 
> 
> 
> 
> 
> 
> 
> 
>  borderStyle="none" text="{data.Text}" textIndent="25"
> styleName="myStyle1" textDecoration="none" selectable="false"
> verticalScrollPolicy="off" minHeight="60"> 
> 
>  height="15" color="#ff">
> 
> @Embed('Ressources/Librairie/History/Btn_S_D.swf') Skin>
> 
> @Embed('Ressources/Librairie/History/Btn_S_U.swf') Skin>
> 
> @Embed('Ressources/Librairie/History/Btn_S_U.swf') >
> 
> 
> 
> 
> 
> 
> The problem resides in the sub components Highlighter. This component
> draws a rectangle in the back of the text. (This is someone else's lib
> that I modified a bit)
> 
> Anyway if I don't refer to this sub class at all then my application
> works fine.
> 
> I believe I have to implements some Interface from Flex so that I can
> use this sub class in my Renderer...
> 
> Thanx for the help
> 
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > The UID's in the data, not the renderer matter. Renderers definitely
> > get recycled so you can't store anything about selection in the
> renderer
> > and have to use isItemSelected to update it during updateDisplayList.
> > 
> > 
> > 
> > If you want to post a mini-example, we can take a look.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of icepaco33
> > Sent: Sunday, November 11, 2007 4:04 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Re: Can't select an item renderer in a list
> > 
> > 
> > 
> > No I do not have the same problem if I use the default renderer.
> > I checked the UIDs in the following manner :
> > 
> > - Manually changing the UID of each renderer to make sure they are
> > unique
> > 
> > - Using debug mode and monitoring the UID : they are different. 
> > 
> > In both cases tho the behavior of this bug is exactly the same :
> > 
> > Behavior of the list during a drag and drop is to create 2 new
> renderer:
> > 
> > 1 that represent the item being dragged which will never make it to
> > the list. (So that new item doesn't cause the bug)
> > 1 that will take the place of the item that you dragged but will
> > contain the info of the item next to it.
> > 
> > That last item for whatever reason will be considerer by the list's
> > selection model as the last item in the list.
> > 
> > So while you can still see the other items in the list you can no
> > longer rollover / select them.
> > 
> > If I repopulate the list by changing the list's dataProvider then for
> > some reason the list will use the renderer's already there but in
> > reverse order. That means that the first item is selectable but none
> > of the following items will be.(Unless the new list is longer than the
> > old one which means that all the new items which will require new
> > renderers will then be selectable)
> > 
> > Hope this help clarify !
> > 
> > --- In flexcoders@yahoogroups.com
> 
> 
> > , "Alex Harui"  wrote:
> > >
> > > Double check the UIDs. Try

[flexcoders] Flex Builder 3 Performance Profiling not working os x 10.4.10

2007-11-13 Thread rleuthold
Hi,

I've tried to do a performance profiling of my App, following the Instructions 
on the Adobe 
Labs Page 
http://labs.adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Performance_and_Mem
ory_Profiling (I quit Firefox before starting as well), but the Performance 
Profile Panel is always 
empty. 

I've found a filed bug (FB-10646) saying that there is a known problem on os x 
10.5. But I'm 
running 10.4.10 and experience the same thing.

Ideas, Information ? 

Thanks_rico






Re: [flexcoders] Editable data in data grid too easily edited

2007-11-13 Thread Steve Hueners
Absolutely! I'd take it a step farther and suggest it'd be better to have
the first click should highlight a given row even if clicking on an editable
field.

Will be interested in seeing how your resolve your objective.


[flexcoders] How to scale containers?

2007-11-13 Thread Mark Ingram
Hi, I have a custom container which is based on the Canvas control. It
just displays other custom controls that are also based on Canvas. If I
wanted to do a thumbnail preview of the main container, how do I go
about scaling everything? For instance, if the main container displays
at 800x600, how can I scale it down into a control 80x60?

(I'm assuming there is something built in to flex to do most of this
without manually writing scaling code?)

 

Thanks,

 

Mark

 

 

 



[flexcoders] Editable data in data grid too easily edited

2007-11-13 Thread Scott Melby
IMO it is too easy to get into "edit" mode on an editable DataGrid or 
AdvancedDataGrid.  For instance, if I am just selecting a row that was 
not previously selected it would be great if it did not invoke the 
editor until I clicked in the editable column again.  This is 
particularly problematic in the AdvancedDataGrid if the first column 
(tree column) is editable.  In this case even expanding/contracting the 
tree node puts the user into edit mode on the data in the first column 
of that row.

I am guessing that I would need to extend DataGrid, AdvancedDataGrid and 
possibly also provide a custom itemEditor to resolve this issue.  But 
wanted to hear if others had suggestions for the cleanest solution.

Any help is appreciated.

Thanks
Scott

-- 
Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com




[flexcoders] Binding with Associatives Arrays

2007-11-13 Thread peuga
hello coders.

i'm trying to bind an associative array to some component property,
something like:

- - -




- - -

but flex can't bind this, even with monitorInfo.getItemAt('sum').
can anyone one help me whith this??

thanks a lot.






Re: [flexcoders] Bug in ContextMenu

2007-11-13 Thread Scott Melby
There are certain words that cannot be included in context menu 
captions.  "Delete" is definitely one of those words try "Remove" or 
something like that instead.  You can find a list of words that you 
cannot use in the API docs 
.


hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



Anzer wrote:


The context menu is not working for some captions.

Eg:- captions start with de is not displaying

De, del, delete etc is not working. Is it a bug? I want to show 
"Delete" in the menu, please help.


 


[flexcoders] Re: Code for preventing browser caching of SWF

2007-11-13 Thread johantrax
I used to be rather good in js, and I think i found your solution.
In AC_OETags.js, the function AC_GetArgs, change the following (line 200):

  case "src":
  case "movie": 
args[i+1] = AC_AddExtension(args[i+1], ext);
ret.embedAttrs["src"] = args[i+1];
ret.params[srcParamName] = args[i+1];
break;
to this
  case "src":
  case "movie": 
args[i+1] = AC_AddExtension(args[i+1], ext) + '?build=' + (new
Date()).getTime();
ret.embedAttrs["src"] = args[i+1];
ret.params[srcParamName] = args[i+1];
break;


The new Date() creates a date-object of the current moment and
getTime() return the milliseconds for that date since 1/1/1970 (GMT)

Hope it works,
--jeetee

--- In flexcoders@yahoogroups.com, Darren Houle <[EMAIL PROTECTED]> wrote:
>
> 
> I'm trying to stop the client's browser from caching my flex app swf
so that each time they call the html wrapper they get the latest swf.
>  
> I've found some suggestions out there for accomplishing this, and I
think adding the "myapp.swf?build=12341234" (some timestamp) solution
looks cleanest, but I was wondering...
>  
> Has anyone modified their index.template.html wrapper so that each
time you compile your app it auto-generates and appends that random
(or time based) number like this?  Anyone know if there's an example
out there I can look at?  It would be nice if this was automatic and I
didn't have to implant a new number in the wrapper each time by hand.
>  
> Thanks
> Darren
>




Re: [flexcoders] FlexBuilder 3 Beta 2 charting and license

2007-11-13 Thread Tom Chiverton
On Monday 12 Nov 2007, frank_sommers wrote:
> purchased a license for Flex Charting for the Flex 2 SDK, would that
> license key make the watermark disappear in the AdvancedDataGrid in
> FlexBuilder 3, also?

Only until Builder 3 is release, afaik, then you'll need to upgrade (unless 
you bought maintaince).

-- 
Tom Chiverton
Helping to globally expedite customized design-patterns
on: http://thefalken.livejournal.com



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
Solicitors Regulation Authority.

CONFIDENTIALITY

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

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


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


  1   2   >