RE: [flexcoders] Flex Component still active, even know TitleWindow it resides in, is deleted -

2007-06-04 Thread Alex Harui
You can't really blow things away in AS3 (or Java).  You kill all
references to them and they go away when garbage collected.  If you are
listening to the app model, it means the app model has a reference to
the event listener and thus it won't go away.  Use weak references or
clean up when removed from the display list.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Sunday, June 03, 2007 11:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Component still active, even know TitleWindow
it resides in, is deleted -

 

Hello All,

I have a WEIRD problem, and I am hoping you can all shed some light on
this.

I have a Popup TitleWindow which serves the purpose of displaying
details from a Master Grid. Among all the other controls housed within
the TitleWindow, I am using the ObserveValue Component, which monitors
a Boolean Value residing in my ApplicationModel.

Once the user is finished looking at the Details, they must close the
Window. I am using the PopUpManager.removePopUp() method of closing the
TitleWindow, which should in essence, blow away the TitleWindow itself,
in addition to all the Controls that reside within it.

Even know the TitleWindow gets closed, I am still getting Trace Messages
outputted to my custom Debug Window (which demonstrates the fact, that
my ObserveValue Component is still active  functioning). A quick note,
I am tracing the output so that I can monitor my variables during
development of my app.

How is this possible??

I must get to the bottom of this ASAP, as this is causing some problems
with the rest of my application.

Thanks in advance for any help you can throw my way.

Mike

 



Re: [flexcoders] click event handler of datagrid, make it fire on rows only

2007-06-04 Thread Harish Sivaramakrishnan

Listen to itemClick on datagrid, It fires only when an item of the datagrid
is clicked.

On 6/4/07, Swaroop C H [EMAIL PROTECTED] wrote:


   You can monitor MouseEvent.DOUBLE_CLICK event and then use
mouseEventToItemRenderer to fetch the item renderer at the mouse position.

If the item renderer is not present in the listItems[0] array, that mean
it is not part of the header i.e. it is rendering a data/row.



Regards,

Swaroop
 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Derrick Anderson
*Sent:* Monday, June 04, 2007 3:40 AM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] click event handler of datagrid, make it fire
on rows only



thanks that event does work better, but hopefully this can be expanded
upon- for instance, using ListEvent.CHANGE fires when the user uses arrow
keys to switch between records- in my case that will open a popup each
time.  it would be best if i could fire an event on dbl click of a row only,
how can i do this?

- Original Message 
From: EECOLOR [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, June 3, 2007 4:50:36 PM
Subject: Re: [flexcoders] click event handler of datagrid, make it fire on
rows only

You should listen to ListEvent.CHANGE.

From the documentation:

change - Dispatched when the selectedIndex or selectedItem property
changes as a result of user interaction.


Greetz Erik

 On 6/3/07, *Derrick Anderson* andersonwebstudio@ yahoo.com
[EMAIL PROTECTED] wrote:

hi,  anyone know how i can get the 'click' property of the datagrid to
only fire when i click a row?  right now it fires even if you are clicking
on one of the headers
...
mx:DataGrid width=100% height=100% id=leadsList
click={displayProfile( event);}
mx:columns
mx:DataGridColumn id=clmn_contactID
dataField=contactID headerText=ID/






 --

Shape Yahoo! in your own image. Join our Network Research Panel 
today!http://us.rd.yahoo.com/evt=48517/*http:/surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7

 



Re: [flexcoders] Sleep / Blink Image

2007-06-04 Thread Harish Sivaramakrishnan

use flash.utils.Timer / setInterval() to call a method on timer.

On 6/4/07, Christopher Olsen [EMAIL PROTECTED] wrote:


  Is there a way to make flex sleep for a specified amount of miliseconds?

I'm trying to make an icon flash

or does anyone have any alternate solutions for this

 



RE: [flexcoders] Sleep / Blink Image

2007-06-04 Thread Alex Harui
Sorry, AS doesn't sleep.  To blink something, listen for enterFrame
events and change the visuals..

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Christopher Olsen
Sent: Sunday, June 03, 2007 6:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Sleep / Blink Image

 

Is there a way to make flex sleep for a specified amount of miliseconds?

I'm trying to make an icon flash

or does anyone have any alternate solutions for this

 



Re: [flexcoders] Regular expression

2007-06-04 Thread keith
Maybe you are coming from another type of language, but you can use the 
match method.

It will  return an Array of Strings your regular expression matched.
So you could see if the output is what you intended.
Maybe my answer is obvious, if not, the Flex docs on Regular Expressions 
is good to look at.


[code]
myMatches:Array=someWord.match(/re syntax here/);
[/code]

-- Keith H --


rid_b80 wrote:


Hi all,

In actionscript 3, is there any function that are able to check if the
regular expression entered has the right syntax or not.

I'm trying to make a page that allows user to define their own regular
expression and i'm just trying to make sure that the expression that
they enter is in the right format.

Thanks in advance,

Anthony

 




RE: [flexcoders] Flex Component still active, even know TitleWindow it resides in, is deleted -

2007-06-04 Thread Mike Anderson
Okay, that helps explain things a tad -
 
If this was yourself in this predicament, how would you go about
handling this problem?
 
I am just curious how I can force a Garbage Collection to take place, in
order to remove this component from memory (and more important, to make
it stop responding to my model changes - as this is happening on a very
regular basis)
 
Also, what would be the proper way to create a weak reference to my
ApplicationModel, so that the corresponding resources get released,
whenever the TitleWindow container gets blown away?
 
Thanks in advance for your help - this is a topic that I've been needing
to dive into for quite some time, and this would be a perfect
opportunity to address everything.
 
Mike



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Monday, June 04, 2007 12:29 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex Component still active, even know
TitleWindow it resides in, is deleted -



You can't really blow things away in AS3 (or Java).  You kill all
references to them and they go away when garbage collected.  If you are
listening to the app model, it means the app model has a reference to
the event listener and thus it won't go away.  Use weak references or
clean up when removed from the display list.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mike Anderson
Sent: Sunday, June 03, 2007 11:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Component still active, even know TitleWindow
it resides in, is deleted -

 

Hello All,

I have a WEIRD problem, and I am hoping you can all shed some light on
this.

I have a Popup TitleWindow which serves the purpose of displaying
details from a Master Grid. Among all the other controls housed within
the TitleWindow, I am using the ObserveValue Component, which monitors
a Boolean Value residing in my ApplicationModel.

Once the user is finished looking at the Details, they must close the
Window. I am using the PopUpManager.removePopUp() method of closing the
TitleWindow, which should in essence, blow away the TitleWindow itself,
in addition to all the Controls that reside within it.

Even know the TitleWindow gets closed, I am still getting Trace Messages
outputted to my custom Debug Window (which demonstrates the fact, that
my ObserveValue Component is still active  functioning). A quick note,
I am tracing the output so that I can monitor my variables during
development of my app.

How is this possible??

I must get to the bottom of this ASAP, as this is causing some problems
with the rest of my application.

Thanks in advance for any help you can throw my way.

Mike

 


[flexcoders] Loading images and CSS from SWF file

2007-06-04 Thread Mark Ingram
Hi, I know it is possible to load images from an SWF file, and I know
it's possible to compile a CSS file into an SWF to load the styles in -
but - is it possible to combine both images and CSS into one file? E.g.
So I could have a complete skin and styles for the application in one
file (making it easy to update).

 

Any help on the subject gratefully received!

 

Mark

 

 

 



Re: [flexcoders] click event handler of datagrid, make it fire on rows only

2007-06-04 Thread EECOLOR

it would be best if i could fire an event on dbl click of a row only, how

can i do this?

I would advise you to start reading the documentation. At the DataGrid page
at the events section, you could have found:

ListEvent.ITEM_DOUBLE_CLICK

In the documentation it sais:

itemDoubleClick - Dispatched when the user double-clicks on an item in the
control.


Greetz Erik


Re: [flexcoders] Flex Component still active, even know TitleWindow it resides in, is deleted -

2007-06-04 Thread Carlos Rovira

Hi Alex,

I'm interested as well in the solution. My application have multiple window
and I notice the problem with the observer tag, so I changed to
ChangeWatcher that works better, but still notice the window is not removed
from memory.

Maybe the problem are the bindings to the model, but...how to clear bindings
created in MXML with  {} notation?

Any light on this would be very appreciated

Thanks in advance.

C.


2007/6/4, Mike Anderson [EMAIL PROTECTED]:


   Okay, that helps explain things a tad -

If this was yourself in this predicament, how would you go about handling
this problem?

I am just curious how I can force a Garbage Collection to take place, in
order to remove this component from memory (and more important, to make it
stop responding to my model changes - as this is happening on a very regular
basis)

Also, what would be the proper way to create a weak reference to my
ApplicationModel, so that the corresponding resources get released, whenever
the TitleWindow container gets blown away?

Thanks in advance for your help - this is a topic that I've been needing
to dive into for quite some time, and this would be a perfect opportunity to
address everything.

Mike

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Alex Harui
*Sent:* Monday, June 04, 2007 12:29 AM
*To:* flexcoders@yahoogroups.com
*Subject:* RE: [flexcoders] Flex Component still active, even know
TitleWindow it resides in, is deleted -

 You can't really blow things away in AS3 (or Java).  You kill all
references to them and they go away when garbage collected.  If you are
listening to the app model, it means the app model has a reference to the
event listener and thus it won't go away.  Use weak references or clean up
when removed from the display list.


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Mike Anderson
*Sent:* Sunday, June 03, 2007 11:32 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Flex Component still active, even know TitleWindow
it resides in, is deleted -



Hello All,

I have a WEIRD problem, and I am hoping you can all shed some light on
this.

I have a Popup TitleWindow which serves the purpose of displaying
details from a Master Grid. Among all the other controls housed within
the TitleWindow, I am using the ObserveValue Component, which monitors
a Boolean Value residing in my ApplicationModel.

Once the user is finished looking at the Details, they must close the
Window. I am using the PopUpManager.removePopUp() method of closing the
TitleWindow, which should in essence, blow away the TitleWindow itself,
in addition to all the Controls that reside within it.

Even know the TitleWindow gets closed, I am still getting Trace Messages
outputted to my custom Debug Window (which demonstrates the fact, that
my ObserveValue Component is still active  functioning). A quick note,
I am tracing the output so that I can monitor my variables during
development of my app.

How is this possible??

I must get to the bottom of this ASAP, as this is causing some problems
with the rest of my application.

Thanks in advance for any help you can throw my way.

Mike

  





--
::| Carlos Rovira
::| http://www.carlosrovira.com
::| http://www.madeinflex.com


[flexcoders] Re: Really complex buttons (aka what WPF got right)

2007-06-04 Thread pk_wasp
I've been learning/doing a bit of WPF, Silverlight and Flex.

Agree with alot of points discussed so far.

I think Adobe (IMHO) should take some ideas from XAML like data
templates, templates, style triggers etc.

They should make some sort of a native XML dialect in the Flash Player
(like Silverlight) for primative graphics, shapes, media and common 
base controls like buttons and textboxes.

Then higher level frameworks like Flex can sit on top of it, so you
get composition, can define vector graphics etc in XML etc if you want
etc (this would probably reduce the size of the Flex framework and
unify things between the flash and flex world a bit).

I think both WPF and Silveright are missing a high level framework
like Flex to build RIAs and Enterprise Applications quickly and easily
and Flash is missing a low level XML dialect to do things like
composition or styling in XML etc.

Maybe Microsoft and Adobe should merge? (joking).

cheers

--- In flexcoders@yahoogroups.com, borekbe [EMAIL PROTECTED] wrote:

 Hi Ely
 
 It's great to hear directly from a Flex developer! I would like to
 take a chance and share my views while you listen :) I must stress
 again that I'm fairly new to Flex but maybe that can be a good thing
 now - I can see all the problems very clearly because I often don't
 have enough experience to find adequate solutions. Here are few
 assorted comments that expand on our discussion.
 
 1) I used WPF in the title where I should have used XAML instead, my
 apologies. But I hope it was obvious what I meant from the code sample.
 
 2) I really don't know why is this but both you and Aral Balkan (in a
 blog post I saw the other day) seem to suggest that MXML is more
 Notepad-friendly than XAML. In my personal experience, from the
 application developer point of view, these formats are in almost 1:1
 relationship when you leave aside the fact that you can express vector
 graphics and many other things, like 3D or text documents, in XAML. If
 all you need are layout containers, form controls, buttons, assets and
 other common things, you'll end up with almost the same XML markup
 whichever technology you use. With one exception – XAML allows for
 much better composability as was pointed in the Button example before.
 
 3) I'm glad you brought up the concepts of power and simplicity
 which is very important in many aspects of software development. What
 Microsoft achieved with XAML is something like a miracle in my eyes –
 they achieved *both*. Please compare the Button example that I posted
 before with (the truly excellent) CanvasButton component

[http://dougmccune.com/blog/2007/06/01/new-component-canvasbutton-added-to-flexlib/]
 Doug brilliantly created in a few moments.
 
 To quickly compare both versions:
 * XAML-like and MXML snippets are now almost the same. I still prefer
 XAML version better because it uses the standard Button while MXML
 uses CanvasButton. You can say right now what Button does but you
 will need to slightly investigate CanvasButton if you wish to use it.
 This is added complexity.
 
 * In XAML, there is no code required.
 
 * In Flex, you need to distribute and maintain separate component. In
 XAML, you don't.
 
 All three points mean that in Flex, you have less power and need more
 skills/effort.
 
 4) I can't comment on performance since I don't really understand the
 internals of Flex compilers etc. But I can hardly imagine how the
 serialization format, or whether you use direct XML notation or a
 custom container that then holds some child components, can influence
 the performance any significantly. But you used this argument twice so
 there may be some issues.
 
 5) The more I think about Adobe's and Microsoft's serialization
 formats, the more I believe that Flex is much closer to
 ASP.NET/WebForms declarative language than to XAML. With WebForms
 markup, you have similar concepts of user and custom controls (first
 for simple scenarios and defined in markup, second for arbitrarily
 complicated components but defined in code), you have similar
 limitation etc. XAML is really a next gen programming language and I
 don't feel that MXML is there yet.
 
 In conclusion…
 
 I don't want this to be a useless rant. I very much like Flex as a
 platform – ActionScript is a really nice language and the framework
 seems to do what it's intended for. I even like MXML much better that
 var b:Button = new Button() :) But I want to see it improving even
 further. To be honest, I thought that the development on the Flex
 platform will be quicker – it was all fine until I needed to have
 slightly more complicated tab in the TabNavigator. In WPF, I would
 simply carry on composing the UI while in Flex, I've lost much time
 investigating how to work around the technical limitations of
 mx:Button. There can be some technical problems like performace (as
 mentioned above) but I also understand that it may be simply too
 difficult to implement something like XAML – there, the 

[flexcoders] Re: Flex XML parsing E4X question

2007-06-04 Thread alexander.marktl
Hey Brendon.

Now it's working! Thanks for the help


--- In flexcoders@yahoogroups.com, Brendan Meutzner [EMAIL PROTECTED]
wrote:

 Hey Alex,
 
 Given an XML structure like so:
 
 [Bindable]
 private var myXML:XML = contacts
 contact
 name href=
 http://www.example.com;Huber/name
 /contact
 contact
 name href=
 http://www.example.com;John/name
 /contact
 contact
 name href=
 http://www.example.com;Bob/name
 /contact
 /contacts;
 
 Your datagrid columns would look like this...
 
 mx:DataGridColumn dataField=name /
 mx:DataGridColumn dataField=name labelFunction=myFunc/
 
 And you'd use a labelFunction like this...
 
 private function myFunc(item:Object, column:DataGridColumn):String
 {
 return [EMAIL PROTECTED];
 }
 
 
 
 Brendan
 
 On 6/3/07, alexander.marktl [EMAIL PROTECTED] wrote:
 
Hi,
 
  I wanna parse a XML file like this:
 
  contacts
  contact
  name href=http://www.example.com;Huber/name
  ...
  /contact
  contacts
 
  I have no problem parsing it, except of the href within the name tag.
  My DataGrid looks like this:
 
  mx:DataGrid dataProvider={xmlContacts.contact}
  mx:columns
  mx:DataGridColumn headerText=Name dataField=name /
  mx:DataGridColumn headerText=Link dataField=??? /
  ...
  /mx:columns
  /mx:DataGrid
 
   
 
 
 
 
 -- 
 Brendan Meutzner
 Stretch Media - RIA Adobe Flex Development
 [EMAIL PROTECTED]
 http://www.stretchmedia.ca





RE: [flexcoders] Loading images and CSS from SWF file

2007-06-04 Thread Kenneth Sutherland
I seem to remember that session 4 from silvafug discussed what you are
asking about.

Check out http://www.silvafug.org/

Or more specifically http://adobechats.adobe.acrobat.com/p69494882/

 

That should give you all to info you need.

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: 04 June 2007 08:49
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Loading images and CSS from SWF file

 

Hi, I know it is possible to load images from an SWF file, and I know
it's possible to compile a CSS file into an SWF to load the styles in -
but - is it possible to combine both images and CSS into one file? E.g.
So I could have a complete skin and styles for the application in one
file (making it easy to update).

 

Any help on the subject gratefully received!

 

Mark

 

 

 

 



[flexcoders] HttpFlexSession Register in web.xml

2007-06-04 Thread Dharmendran A
Hi,

Iam trying to access a RemoteObject (java class) thru Flex and iam getting this 
error while calling thru Flex UI. (I have a datagrid dataprovider bound to 
event.result.)

[Flex] [WARN] HttpFlexSession has not been registered as a listener in web.xml f
or this application so no events will be dispatched to FlexSessionAttributeListe
ners or FlexSessionBindingListeners. To correct this, register flex.messaging.Ht
tpFlexSession as a listener in web.xml.



when i cheked the web.xml there is already an entry 

listener
listener-classflex.messaging.HttpFlexSession/listener-class
/listener

So, pls help me what i need to do...further



Dharmendran A


  

Shape Yahoo! in your own image.  Join our Network Research Panel today!   
http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 



Re: [flexcoders] Re: Tooltip in itemeditor of datagrid BUG or... WIsh...

2007-06-04 Thread Harish Sivaramakrishnan

are you looking at something like this?
http://flexgeek.wordpress.com/2007/06/04/tips-tricks-itemeditors-iii/

On 6/3/07, Alex Harui [EMAIL PROTECTED] wrote:


   Tried it in hotfix2, tooltip came up and editor did not lose focus.
Which player, browser, os?


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *nxzone
*Sent:* Friday, June 01, 2007 12:08 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Re: Tooltip in itemeditor of datagrid BUG or...
WIsh...



Enter more then 10 character in the email and rollover the textinput :)

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
mx:XMLList id=employees
employee
nameChristina Coenraets/name
email[EMAIL PROTECTED] ccoenraets%40fictitious.com/email
/employee
/mx:XMLList
mx:Component id=actionbt 
mx:TextInput text= creationComplete=doInit()
mx:Script
![CDATA[
import mx.validators.StringValidator;
public var validator:StringValidator= new StringValidator();

private function doInit():void {
validator.source= this
validator.maxLength=10
validator.property=text;
validator.trigger=this;
validator.triggerEvent =change;
validator.validate();
}
]]
/mx:Script
/mx:TextInput
/mx:Component
mx:DataGrid id=dg y=200 editable=true width=100%
height=100% rowCount=5 dataProvider={employees}
mx:columns
mx:DataGridColumn dataField=name headerText=Name/
mx:DataGridColumn dataField=email headerText=Email
itemEditor={actionbt}/
/mx:columns
/mx:DataGrid


/mx:Application

 



RE: [flexcoders] Loading images and CSS from SWF file

2007-06-04 Thread Mark Ingram
Thanks Kenneth, so to summarise, our graphics artists must create a SWF
file and then a developer must embed symbols from the SWF in to the CSS,
which must then be compiled back into SWF? It's a shame that CSS and
images can't be compiled together straight away (rather than extracting,
then re-embedding symbols from a SWF file).

 

Thanks for the links!

 

Mark

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kenneth Sutherland
Sent: 04 June 2007 10:52
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Loading images and CSS from SWF file

 

I seem to remember that session 4 from silvafug discussed what you are
asking about.

Check out http://www.silvafug.org/

Or more specifically http://adobechats.adobe.acrobat.com/p69494882/

 

That should give you all to info you need.

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Mark Ingram
Sent: 04 June 2007 08:49
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Loading images and CSS from SWF file

 

Hi, I know it is possible to load images from an SWF file, and I know
it's possible to compile a CSS file into an SWF to load the styles in -
but - is it possible to combine both images and CSS into one file? E.g.
So I could have a complete skin and styles for the application in one
file (making it easy to update).

 

Any help on the subject gratefully received!

 

Mark

 

 

 

 



Re: [flexcoders] PopUpManager.createPopUp

2007-06-04 Thread robert was

PopUpManager.createPopUp(this,main,true);
Just open modable window

On 31/05/07, Rohan Pinto [EMAIL PROTECTED] wrote:


  how to i prevent a popup if the popup TileWindow is already Open..

ie: in my conrtol i have

click=PopUpManager.createPopUp(this,main,false);

if the user clicks this several times, it opens up multiple popups of
the same window. how do i prevent the popup to just 1 instance ?

 





--
Robert


RE: [flexcoders] Re: Disable Clicks while on busyCursor

2007-06-04 Thread Alex Harui
It will have impact on rendering, but I wouldn't expect significant
impact.  You can set alpha to 0 and see if it gets better.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Bjorn Schultheiss
Sent: Friday, June 01, 2007 5:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Disable Clicks while on busyCursor

 

Al, 

you mentioned the 'mouse shield' in the modal situation.
This is cool, but does the alpha setting of this shield have an affect
on the application rendering speed?
Hence, animations running behind this shield slowing in performance?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 Try calling validateNow after setting enabled to false.
 
 
 
 Animations can shut down validatiom. If you can disable and
re-validate
 before the animations start, that would be best.
 
 
 
 However, what it does, and what modal dialogs do is put up a mouse
 shield over the whole app. It's a relatively easy thing to do, and I
 wouldn't want to put it in CursorManager as it really doesn't have
 anything to do with cursors. You could have a progress bar and no busy
 cursor and still want to block. Maybe we need to see if we can come up
 with a best practice for how to use application.enabled.
 
 
 
 -Alex
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Bjorn Schultheiss
 Sent: Thursday, May 31, 2007 11:13 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Disable Clicks while on busyCursor
 
 
 
 This is quite slow.
 I wait for the app to disable, then any animations running while the
 app is disabled lag.
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  Did you try Application.application.enabled = false?
  
  
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of Troy Gilbert
  Sent: Thursday, May 31, 2007 10:19 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
  Subject: Re: [flexcoders] Disable Clicks while on busyCursor
  
  
  
  Is it just me, or is it a bit surprising that we've got to hack
  something together to handle this? Come on, Adobe... what's a proper
  solution (and why wasn't it built into the CursorManager!)? I've got
  enough asynchronous problems to deal with than have to worry that
the
  user's going to go off willy-nilly clicking buttons while the busy
  cursor is being shown. I understand that some folks may not want it
to
  *always* prevent mouse clicks, but a little boolean flag (or two) in
 the
  CursorManager that prevents mouse clicks and/or focus
changes/keyboard
  events would be very, very nice. 
  
  Troy.
  
  
  
  On 5/31/07, Anthony Lee anthony.f.lee@
  mailto:anthony.f.lee@  wrote:
  
   - Make all your active components register themselves then loop
  through 
   and disable/enable them according to your busy state 
  
   Too taxing on cpu...
  
  How many components are we talking about?
  
  Hack #3
  Generate an Alert and position it outside the viewable area. They're
  modal by default... meaning the user shouldn't be able to click on
  anything till you clear it. 
  
  Anthony
 


 



RE: [flexcoders] Image click handler

2007-06-04 Thread Alex Harui
You might have to set mouseEnabled and/or mouseChildren on the Image

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cesare Rocchi
Sent: Saturday, June 02, 2007 6:13 PM
To: flexcoders
Subject: [flexcoders] Image click handler

 

Hello everybody,

I am experimenting with Flex.
I started from official examples, from Adobe. 
Particularly this one:
http://www.adobe.com/devnet/flex/quickstart/httpservice/
http://www.adobe.com/devnet/flex/quickstart/httpservice/ 


Looking at the demo I thought it would have been nicer to have the
picture of page open when the picture itself, and not the link button
below, is clicked.
I noticed that mx:Image has a 'click' event so I very simply copied
the same instruction in the image tag, like this:

mx:Image 

source={parseImageUrl(photos.currentItem.content)}

click=openAuthorPage(event);

/



mx:LinkButton 

label={photos.currentItem.author.name}

click=openAuthorPage(event);

/

Compiled (no error) and tested. I click on the image and it does not
happen anything. Link button still works.
Isn't the same action fired from 2 different 'places' in the ui?
Looks very very strange to me. 
Any idea?

ps. I tested other functions on image click (e.g. Alert.show('hello')).
They work. What's wrong? Is the event considered in a different way?

Thanks in advance,

-c.

 



Shape Yahoo! in your own image. Join our Network Research Panel today!
http://us.rd.yahoo.com/evt=48517/*http:/surveylink.yahoo.com/gmrs/yahoo
_panel_invite.asp?a=7  

 



RE: [flexcoders] Checkbox needs to have the same behavior like 'ctrlkey+mouse click' in datagrid

2007-06-04 Thread Alex Harui
You could just keep setting selectedIndices

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of handitan
Sent: Friday, June 01, 2007 3:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Checkbox needs to have the same behavior like
'ctrlkey+mouse click' in datagrid

 

Hi,

I have a datagrid that allows me to do select multiple rows by holding 
down ctrlkey and clicking each row, and it also allows me to drag those 
rows to a tree.

Now, I have been told to replicate this same behavior but with checkbox.

So I already have checkbox as part of the datagridColumn but I got 
confused on how to solve this after my first solution failed.

My solution was I am dispatching the ctrkey event to dataGrid and let 
the dataGrid does it magic in saving the selected row as I mouseclick 
the row. 

public function chkBoxHandler(event:Event):void
{
myGrid.dispatchEvent(new KeyboardEvent
(KeyboardEvent.KEY_DOWN,true,false,0,17,1,true));
}

mx:DataGrid id=myGrid dataProvider={dataBucket.datas}
height=100% 
width=100%
dragEnabled=true
dragEnter=onDragEnter(event) 
dragOver=onDragOver(event) 
dragDrop=onDragDrop(event)
allowMultipleSelection=true
doubleClickEnabled=true
itemDoubleClick=itemDoubleClickEvt(event)
itemClick=itemClickEvt(event)

mx:columns
mx:DataGridColumn id=checkBox minWidth=20 width=20 
sortable=false 
mx:itemRenderer
mx:Component
mx:HBox
mx:CheckBox labelPlacement=bottom height=18 
click=outerDocument.chkBoxHandler(event)/ 
/mx:HBox
/mx:Component
/mx:itemRenderer
/DataGridColumn
... and there are multiple other DataGridColumns

Any ideas?




 



Re: [flexcoders] Re: OPENTUBE

2007-06-04 Thread Peter Hall

why - what is it?

On 6/2/07, Rohan Pinto [EMAIL PROTECTED] wrote:


  all volunteers: please join my project called opentube hosted on
google : http://code.google.com/p/opentube

Rohan

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Rohan
Pinto [EMAIL PROTECTED] wrote:

 Hi,

 i am in the process of creating a flex based open sourced video
 sharing app which (in addition to) also allows for
 indexing/bookmarking of youtube videos (i plan to allow for
 indexing/bookmarking of videos from all other popular video sharing
 sites too) and a streaming player... + amazon S3 storage + streaming.

 any suggestions what to call the app, and where to host the
sourcecode ?

 also need volunteers to help coding...

 email me @ [EMAIL PROTECTED]
 Rohan


 



Re: [flexcoders] Re: YouTube style video (Video vs VideoDisplay)

2007-06-04 Thread yiğit boyar

you may want to take a look at this article; streaming video with php
http://www.flashcomguru.com/index.cfm/2005/11/2/Streaming-flv-video-via-PHP-take-two

On 6/1/07, Rohan Pinto [EMAIL PROTECTED] wrote:


  Are you looking at displaying a thumbnail in the VideoPlayer itself ?

look at Jeron Wijering's flvplayer
(http://www.jeroenwijering.com/?item=Flash_video_Player)
you could use that... probably... it does display a preview thumbnail...

Rohan

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Mark
Ingram [EMAIL PROTECTED] wrote:

 Hi, I need to create a YouTube style video control. What is the best
 starting point - Video or VideoDisplay? I've seen this code which
 automatically downloads a preview of the video, but is it the best
 solution? http://www.flashcomguru.com/tutorials/progressive_preview.cfm



 Essentially I want to show a thumbnail of the movie, then allow the user
 to click the thumbnail to continue watching the whole movie.



 Cheers,



 Mark


 



[flexcoders] Fill never completes over RTMP ..

2007-06-04 Thread vitopn
I am having an odd issue that seems to be specific to the RTMP (or
RTMPS) channel.  

Certain fills do complete when they are run on an RTMP channel.  if I
switch the channel to HTTP everything works well.  One other thing I
noticed is that when the client and server where on the same machine
the fill completed even when using RTMP, the problem only seems to
occur when the client and server are on different machines.  

Some other observations:
I have had this happen in two separate projects.  One using RTMPS and
another using RTMP.
I've tried turning the FDS server logs to DEBUG and it appears that
the fill completes OK (I see the serialization of the list).

Has anyone seen this?  Any thoughts?







[flexcoders] How to get a shadow around all four sides

2007-06-04 Thread mhaskinsny
Hello,

I would like to have a shadow around all four sides of a TitleWindow. Mostly 
left side, right 
and bottom but a little on the top too-- just like the shadows around Mac 
windows.

I have a design background and I tried to revise the shadow of the panel 
graphic in the Flash 
skins file. It kindof worked but when I run the app in a browser, the shadow 
leaves 
graphic trails every time you move the window. So I thought maybe extending the 
shadow 
through scripting somehow might be better.

If anyone can help, thanks!!

MHaskins



[flexcoders] Online poker

2007-06-04 Thread genphp
Hello!

I am a php programmer wanting to try my hand with a little flash-php
php-flash stuff...

I thought a good example would be to make a small online poker app
just like the big sites have... so i started reading up on flash and
eventually got shown this site and FLEX

My questions for you more seasoned guys are:

Have any of you tried this? (online poker)
Do you think this is suited to make that or do you suggest normal
flash? (I used to use flash 4/5 before)
Any other suggestions?

Thanks in advance!
Mag



Re: [flexcoders] Image click handler

2007-06-04 Thread Cesare Rocchi
Ok. I quickly discovered, during debugging, that in case the action is fired by 
the image the event is null. That's why it is not working, though I would 
expect 'same attribute name same interface and same 
behaviour'...anyway...thanks.

-c.

- Original Message 
From: Cesare Rocchi [EMAIL PROTECTED]
To: flexcoders flexcoders@yahoogroups.com
Sent: Sunday, June 3, 2007 3:12:43 AM
Subject: [flexcoders] Image click handler









  




Hello everybody,

I am experimenting with Flex.
I started from official examples, from Adobe. 
Particularly this one: http://www.adobe. com/devnet/ flex/quickstart/ 
httpservice/


Looking at the demo I thought it would have been nicer to have the picture of 
page open when the picture itself, and not the link button below, is clicked.
I noticed that mx:Image has a 'click' event so I very simply copied the same 
instruction in the image tag, like this:
mx:Image 
source={parseImageUrl(photos.currentItem. content)}
click=openAuthorPa ge(event);
/

mx:LinkButton 
label={photos.currentItem. author.name}
click=openAuthorPa ge(event);
/
Compiled (no error) and tested. I click on the image and it does not happen 
anything. Link button still works.
Isn't the same action fired from 2 different 'places' in the ui?
Looks very very strange to me. 
Any idea?

ps. I tested other functions on image click (e.g. Alert.show(' hello')). They 
work. What's wrong? Is the event considered in a different way?

Thanks in advance,

-c.




  Shape Yahoo! in your own image.  
Join our Network Research Panel today!


  







!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a {
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc {
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o {font-size:0;}
.MsoNormal {
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq {margin:4;}
--








   
Ready
 for the edge of your seat? 
Check out tonight's top picks on Yahoo! TV. 
http://tv.yahoo.com/

[flexcoders] Counting value occurances inside E4X XML File

2007-06-04 Thread thomas.vachon
Hi all,

New to the group, Flex, and AS.  I was wondering how i can iterate through 
a XML file 
imported via HTTPService and count the occurances of countries, in thie case.  
So how many 
times USA shows up verus Canada.  However, I need to knwo people register this 
month, so it 
would need to be able to basically make two arrays, one for previous to current 
month, and 
one with current month only.

Thanks
Tom



[flexcoders] Re: Dynamic context menu item

2007-06-04 Thread Greg Groves
OK, 

Looks like no one else can see a problem here either. Does anyone have
a working example of a Tree with dynamic context menus I can compare with?

thanks,
Greg

--- In flexcoders@yahoogroups.com, Greg Groves [EMAIL PROTECTED] wrote:

 I'm trying to create a dynamic item in a context menu, and I'm having
 a weird problem. The code:
 
 var node:XML = XML(lastTreeItem.itemRenderer.data);
 var hideOrShow:ContextMenuItem;
 if ([EMAIL PROTECTED] == null || [EMAIL PROTECTED] ==  || [EMAIL PROTECTED]
 == false)
   hideOrShow = new ContextMenuItem(Hide);
 else
   hideOrShow = new ContextMenuItem(Show);
 hideOrShow.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,
 hideOrShowSelected);
 treeMenu.customItems.push(hideOrShow);
 Debug.show(treeMenu);
 
 The item does not show in the menu. However, if I code it explicitly:
 
 var hideOrShow:ContextMenuItem = new ContextMenuItem(Hide);
 hideOrShow.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,
 hideOrShowSelected);
 treeMenu.customItems.push(hideOrShow);
 
 it works.
 
 It actually does seem to be there, according to Debug's output:
 
 (flash.ui::ContextMenu)#0
   builtInItems = (flash.ui::ContextMenuBuiltInItems)#1
 forwardAndBack = false
 loop = false
 play = false
 print = false
 quality = false
 rewind = false
 save = false
 zoom = false
   customItems = (Array)#2
 [0] (flash.ui::ContextMenuItem)#3
   caption = Show
   enabled = true
   separatorBefore = false
   visible = true
 
 SDK bug? Or am I missing something? I found some other examples of
 dynamic context menus by Googing, but I don't see any differences
 between their code and mine.
 
 thanks,
 
 Greg





[flexcoders] Legend: spacing between marker label

2007-06-04 Thread Anton Raath

Hi all!

Would anyone know how to reduce the horizontal spacing between a marker and
its label in a Legend? Perhaps I'm just being dense, but after re-reading
the Flex documentation twice and trying every style element that appeared
appropriate, it's starting to look impossible.

I have a fairly basic legend, displayed horizontally:

mx:Legend id=myLegend dataProvider={myBarChart} direction=horizontal
horizontalGap=0 labelPlacement=right/

I could increase the horizontalGap to clearly indicate which marker and
legend go together, but the width of my panel is quite narrow. The text
can't go any smaller, so my only remaining option would be to close the
fairly large gap between the marker and the legend.

Any ideas?

Thanks!

Anton.
--
==
Do not go gentle into that good night,
Old age should burn and rave at close of day;
Rage, rage against the dying of the light.
 -- Dylan Thomas
==


[flexcoders] Re: removeItemAt combined with getItemAt - Manipulating an arrayCollection

2007-06-04 Thread michaelmatynka
Some more info, and I am getting closer.

I am using the following function, but it returns a value of -1, out of bounds, 
regardless of 
what value I try to get the index of:

public function remItem():void{
fields.removeItemAt(fields.getItemIndex({fieldTag: small, 
value:t}));
}

Remember that the arrayCollection looks like:
private var fields:ArrayCollection = new ArrayCollection([{fieldTag: big, 
value:t}, {fieldTag: 
small, value: t}]);


Does anybody know why getItemIndex would return a value of -1?



[flexcoders] AS2XML, SimpleXMLEncoder

2007-06-04 Thread driverdude
AS2XML is broken in Flex 2.0.1?  What happened to the createElement 
function?

What's the easiest way to take a hierarchial object tree and convert it 
back into XML for sending to an HTTP service?

I'm exploring SimpleXMLEncoder, but there isn't much documentation on 
it.



Re: [flexcoders] YouTube style video (Video vs VideoDisplay)

2007-06-04 Thread Johannes Nel

for progressive and simple streaming videoDisplay is fine. i find it too
limiting to build a robust streaming system (something that needs to try
different ports switch to rtmpt etc) and we ended up writing our own
wrappers for netstream and netconnection and extending UIComponent  and
attching the Video object to that so it can be used in flex.

On 6/1/07, Mark Ingram [EMAIL PROTECTED] wrote:


   Hi, I need to create a YouTube style video control. What is the best
starting point – Video or VideoDisplay? I've seen this code which
automatically downloads a preview of the video, but is it the best solution?
http://www.flashcomguru.com/tutorials/progressive_preview.cfm



Essentially I want to show a thumbnail of the movie, then allow the user
to click the thumbnail to continue watching the whole movie.



Cheers,



Mark







 





--
j:pn
http://www.lennel.org


[flexcoders] Bug in databinding with repeater in a URLrequest?

2007-06-04 Thread hoytlee2000
Hello,

Has anybody come across this problem?

I am using a repeater to create a simple list of link buttons from an
xml file. The repeater the databinding is working for all elements in
the repeater except the URLRequest function. (I have even wrapped the
xml databinding expression with the String() wrapper since I know the
URLRequest takes a string argument.

I know the data access and resolving is correct because I can print
out the data via some labels within the same repeater.

I appreciate any help or confirmation of this problem so I can attack
it from a different way.  I'm basically doing a proof of concept for
my company, moving old AJAX apps to Flex, to prove the viability of
using flex in the studio.

I've included the relevant code and files below, it's not much at all.

thanks,
hoyt


I get the error message when I click on the link button:
Error: Repeater is not executing.
at mx.core::Repeater/get currentItem()
at testAS3/__webButton_click()


The pared down code to the essential:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=myxml.send()

mx:Script
![CDATA[
import mx.rpc.events.*;
import mx.collections.*;
import mx.controls.*;

[Bindable]
private var webInfo:XMLList;

private function webHandler(evt:ResultEvent):void
{
webInfo= evt.result.page;
}
]]
/mx:Script

mx:HTTPService id=myxml
url=http://192.168.1.102/~hoytng/Workspace/VSCVTC/xml/myxml.xml;
resultFormat=e4x result=webHandler(event)
/mx:HTTPService

mx:VBox

mx:Repeater id=myrepeater dataProvider={webInfo}

mx:HBox

mx:LinkButton id=webButton
label={myrepeater.currentItem.name}
click={navigateToURL(new
URLRequest(String(myrepeater.currentItem.link)), '_blank')}/

mx:Label text={myrepeater.currentItem.link}/

/mx:HBox

/mx:Repeater

/mx:VBox

/mx:Application


The xml data file I used:

?xml version=1.0 encoding=UTF-8?
!-- test for repeater --

webpages
page
namegoogle/name
linkhttp://.google.com/link
/page
page
namecnn/name
linkhttp://www.cnn.com/link
/page
page
namesfgate/name
linkhttp://www.sfgate.com/link
/page
/webpages



Re: [flexcoders] YouTube style video (Video vs VideoDisplay)

2007-06-04 Thread Jeffry Houser

  VideoDisplay is set up to try 4 different ports.  Open up the SDK 
source code to verify this.

  There may be other reasons not to use it, though.  I've had 
significant problems with the VideoDisplay component for streaming 
media.  It doesn't always properly open / close connections and in some 
situations you can get multiple streams playing at the same time.  Only 
one video is displayed, but you can hear two (or more) audio tracks.

Johannes Nel wrote:
 
 
 for progressive and simple streaming videoDisplay is fine. i find it too 
 limiting to build a robust streaming system (something that needs to try 
 different ports switch to rtmpt etc) and we ended up writing our own 
 wrappers for netstream and netconnection and extending UIComponent  and 
 attching the Video object to that so it can be used in flex.
 
 On 6/1/07, *Mark Ingram* [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 Hi, I need to create a YouTube style video control. What is the best
 starting point – Video or VideoDisplay? I've seen this code which
 automatically downloads a preview of the video, but is it the best
 solution?
 http://www.flashcomguru.com/tutorials/progressive_preview.cfm
 http://www.flashcomguru.com/tutorials/progressive_preview.cfm
 
  
 
 Essentially I want to show a thumbnail of the movie, then allow the
 user to click the thumbnail to continue watching the whole movie.
 
  
 
 Cheers,
 
  
 
 Mark

-- 
Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: http://www.dot-com-it.com
My Podcast: http://www.theflexshow.com
My Blog: http://www.jeffryhouser.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] Making an individual Bar on a BarGraph stand out?

2007-06-04 Thread Sunil Bannur
The upcoming release of Flex, has capabilities to specify fill colors
for individual chart items, but till then

 

There are 2 ways to achieve this

 

a.  Have a custom renderer, which specifically checks for the
particular item during rendering and highlights that
b.  This is a round about way of achieving this 

1.  on creation complete - dispatch a mouse move event to
the item you want to highlight, the sample code is this



var p:Point = bar.dataToLocal(10,USA);

 

var m:MouseEvent = new
MouseEvent(MouseEvent.MOUSE_OVER, true, false,

p.x, p.y);

bar.dispatchEvent(m);

 

2.  Have an event handler for itemRollOver for your bar
chart and get access to the chartitem
3.  In the event handler, check for the item which needs to
be highlighted, change the fill of that and call the itemRenderer's
invalidatedisplaylist as shown in the sample code

 

  private function
OnItemRollOver(event:ChartItemEvent):void

  {

 
if(HitData(event.hitSet[0]).chartItem.index == 0) // this is the item,
you want to standout

  {

  event.hitSet[0].chartItem.fill
= new SolidColor(0);

 
event.hitSet[0].chartItem.itemRenderer.invalidateDisplayList();

  }

  }

 

The downside of this, you have do dispatch the mouseevent, whenever
there is a change in the data, where the series gets invalidated.

 

 

Hopefully this should help



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of abba_t
Sent: Saturday, June 02, 2007 9:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Making an individual Bar on a BarGraph stand out?

 

It seems simple probably is, but I have searched high and low and 
probably have tried over one hundred different pieces of code but with 
no luck. I can not seem to find a way to highlite one particular bar 
on a bar graph. I can change the properties of the group of bars 
(alpha, fill, width etc.) but I am trying to apply something to an 
individual bar to make it appear highlited.

Any help would be greatly appreciated.



 



[flexcoders] Tree leafnodeicon

2007-06-04 Thread Christopher Olsen
Hello,

What's the best way to dynamically control a leafnodeicon?

I have my tree bound to xml variable inside the xml i have an property 
@online and i want if online = 1 the leafnode is one icon and if online 
= 0 the leafnode is a different icon

-Christopher



[flexcoders] My component always returns width = 0

2007-06-04 Thread Webdevotion

Hello,

I'm having a problem with my component.
It has the same sort of functionality as a tabbar,
but more visual requirements ( hover fx etc.  ).

My tabs ( = Canvas component ) always returns width=0;
What am I doing wrong ?





This is my code for the main class:

package be.webdevotion.connguide.view
{
import mx.core.UIComponent;
import flash.display.Sprite;
import mx.containers.Canvas;
import be.webdevotion.shapes.Rectangle;

public class TopMenu extends UIComponent
{
private var _items : Array;
private var tabs : Canvas;
private var children : Array;
private var itemsChanged : Boolean = false;

public function TopMenu()
{
super();
}
[Bindable]
public function set items ( a : Array ) : void
{
_items = a;
itemsChanged = true;
invalidateProperties();
invalidateSize();
}
public function get items () : Array
{
return _items;
}
override protected function createChildren () : void
{
super.createChildren();
if( ! tabs )
{
children = new Array();
tabs = new Canvas();
}
addChild( tabs );
}
override protected function commitProperties():void
{
super.commitProperties();
if( itemsChanged )
{
var i : Number = 0;
var n : Number = _items.length;
var tab : Tab;
var remw : Number = 0;
for(i=0;in;i++)
{
tab = new Tab();
children.push( tab );
tab.label = _items[i];
tab.x = remw;
remw = tab.width;
tabs.addChild( tab );
}
}
}
override protected function measure():void
{
super.measure();
measuredWidth = measuredMinWidth = this.width;
measuredHeight = measuredMinHeight = this.height;
trace(+tabs.width);
}
override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void
{
super.updateDisplayList(unscaledWidth,unscaledHeight);
tabs.x = unscaledWidth - tabs.width;
trace(+tabs.width);
}
private function onResize ( event : Event = null ) : void
{
tabs.x = this.width - tabs.width;
}
}
}


RE: [flexcoders] Tree leafnodeicon

2007-06-04 Thread Jason Hawryluk
Have a look at the iconFunction

jason


  -Message d'origine-
  De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la
part de Christopher Olsen
  Envoyé : lundi 4 juin 2007 15:14
  À : flexcoders@yahoogroups.com
  Objet : [flexcoders] Tree leafnodeicon


  Hello,

  What's the best way to dynamically control a leafnodeicon?

  I have my tree bound to xml variable inside the xml i have an property
  @online and i want if online = 1 the leafnode is one icon and if online
  = 0 the leafnode is a different icon

  -Christopher



  


Re: [flexcoders] My component always returns width = 0

2007-06-04 Thread Tom Chiverton
On Monday 04 Jun 2007, Webdevotion wrote:
 tab = new Tab();
 children.push( tab );
 tab.label = _items[i];
 tab.x = remw;
 remw = tab.width;

Unless you wait for Tab to be drawn, it will have zero width.

-- 
Tom Chiverton
Helping to greatly entrench 24/365 platforms
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 Law 
Society.

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

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] HttpFlexSession Register in web.xml

2007-06-04 Thread Peter Farland
I need more info to help you out. Are you using FDS? What J2EE
application server are you using? Have you confirmed that you have
flex-messaging.jar in /WEB-INF/lib? How did you install FDS? Did you
start with a clean war file or did you try to merge a new one over an
older one?



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dharmendran A
Sent: Monday, June 04, 2007 6:22 AM
To: flex coders
Subject: [flexcoders] HttpFlexSession Register in web.xml



Hi,
 
Iam trying to access a RemoteObject (java class) thru Flex and iam
getting this error while calling thru Flex UI. (I have a datagrid
dataprovider bound to event.result.)
 
[Flex] [WARN] HttpFlexSession has not been registered as a listener in
web.xml f
or this application so no events will be dispatched to
FlexSessionAttributeListe
ners or FlexSessionBindingListeners. To correct this, register
flex.messaging.Ht
tpFlexSession as a listener in web.xml.
 
 
 
when i cheked the web.xml there is already an entry 
 
listener
listener-classflex.messaging.HttpFlexSession/listener-class
/listener
 
So, pls help me what i need to do...further

 
 
Dharmendran A



Get the Yahoo! toolbar and be alerted to new email
http://us.rd.yahoo.com/evt=48225/*http://new.toolbar.yahoo.com/toolbar/
features/mail/index.php wherever you're surfing. 

 


Re: [flexcoders] My component always returns width = 0

2007-06-04 Thread Harish Sivaramakrishnan

override the method createChildren() and then create the tab in that method,
after updateDisplayList is called you will be able to get the correct width
of the tab.

On 6/4/07, Tom Chiverton [EMAIL PROTECTED] wrote:


On Monday 04 Jun 2007, Webdevotion wrote:
 tab = new Tab();
 children.push( tab );
 tab.label = _items[i];
 tab.x = remw;
 remw = tab.width;

Unless you wait for Tab to be drawn, it will have zero width.

--
Tom Chiverton
Helping to greatly entrench 24/365 platforms
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 Law Society.

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

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] Re: Counting value occurances inside E4X XML File

2007-06-04 Thread ben.clinkinbeard
Your description is fairly vague, but I think something along these
lines is what you're asking for:

var numUSA:int = xmlData..country.(@name == USA).length;
and/or
var numUSACurrentMonth:int = xmlData..country.(@name == USA 
@month == August).length;

The @ implies that the values to filter on are attributes. If your
data needs to filter on child nodes simply remove the @.

HTH,
Ben


--- In flexcoders@yahoogroups.com, thomas.vachon [EMAIL PROTECTED]
wrote:

 Hi all,
 
 New to the group, Flex, and AS.  I was wondering how i can
iterate through a XML file 
 imported via HTTPService and count the occurances of countries, in
thie case.  So how many 
 times USA shows up verus Canada.  However, I need to knwo people
register this month, so it 
 would need to be able to basically make two arrays, one for previous
to current month, and 
 one with current month only.
 
 Thanks
 Tom





Re: [flexcoders] My component always returns width = 0

2007-06-04 Thread Webdevotion

Thanks guys!
Finally got the way it works.
Was a bit lost for a moment.


Re: [flexcoders] My component always returns width = 0

2007-06-04 Thread Webdevotion

How could I solve this then ?

This doesn't work either ...

..

for(i=0;in;i++)
{
   tab = new Tab();
   children.push( tab );
   tab.label = _items[i];
   tab.x = remw;
   remw = tab.width;
   tabs.addChild( tab );
}
this.callLater(measure);



On 6/4/07, Tom Chiverton [EMAIL PROTECTED] wrote:


On Monday 04 Jun 2007, Webdevotion wrote:
 tab = new Tab();
 children.push( tab );
 tab.label = _items[i];
 tab.x = remw;
 remw = tab.width;

Unless you wait for Tab to be drawn, it will have zero width.

--
Tom Chiverton
Helping to greatly entrench 24/365 platforms
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 Law Society.

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

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] Re: removeItemAt combined with getItemAt - Manipulating an arrayCollection

2007-06-04 Thread ben.clinkinbeard
I believe its because you're passing in and looking for a new object.
Even though it has the same properties as an object in the collection
its not the same object. Try this:

var smObj:Object = {fieldTag: small, value:t};
var bigObj:Object = {fieldTag: big, value:t};

public function remItem():void
{
   fields.removeItemAt(fields.getItemIndex(smObj));
}

HTH,
Ben


--- In flexcoders@yahoogroups.com, michaelmatynka
[EMAIL PROTECTED] wrote:

 Some more info, and I am getting closer.
 
 I am using the following function, but it returns a value of -1, out
of bounds, regardless of 
 what value I try to get the index of:
 
 public function remItem():void{
   fields.removeItemAt(fields.getItemIndex({fieldTag: small,
value:t}));
   }
 
 Remember that the arrayCollection looks like:
 private var fields:ArrayCollection = new ArrayCollection([{fieldTag:
big, value:t}, {fieldTag: 
 small, value: t}]);
 
 
 Does anybody know why getItemIndex would return a value of -1?





Re: [flexcoders] click event handler of datagrid, make it fire on rows only

2007-06-04 Thread Derrick Anderson
yeah thanks for the tip but i tried that- my fault was assuming that the 
ITEM_DOUBLE_CLICK event would suffer the same faults as ITEM_CLICK in that it 
worked on the header and blank rows(sometimes, have not figured it out) too...  
luckily it does not.  

- Original Message 
From: EECOLOR [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, June 4, 2007 5:00:31 AM
Subject: Re: [flexcoders] click event handler of datagrid, make it fire on rows 
only









  




it would be best if i could fire an event on dbl click of a row only, how can 
i do this?

I would advise you to start reading the documentation. At the DataGrid page at 
the events section, you could have found:


ListEvent.ITEM_ DOUBLE_CLICK

In the documentation it sais:

itemDoubleClick -   Dispatched when the user double-clicks on an item in 
the control.
 


Greetz Erik



  







!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a {
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc {
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o {font-size:0;}
.MsoNormal {
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq {margin:4;}
--








 

Expecting? Get great news right away with email Auto-Check. 
Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html 

[flexcoders] Re: Cairngorm 2.2 incompatible with AS-based ServiceLocator?

2007-06-04 Thread ben.clinkinbeard
Hi Ali,

Sorry its taken me so long to respond- had to finish up a project.
Anyhow, I was able to solve the mystery pretty quickly once I
revisited things this morning. I followed your advice and examined the
output of describeType(), which led me to discover that the web
services properties were made bindable in the MXML based
ServiceLocator subclass, but not in the AS based one. This resulted in
the web service properties being defined in variable nodes in
describeType() rather than accessor nodes. Marking the properties
[Bindable] in my AS-based class allows things to work properly, but I
still have a couple of question marks about this.

How/why do the services get marked bindable in the MXML-based
ServiceLocator? What change in Caingorm 2.2 necessitates explicitly
marking AS-based services as [Bindable]?

Thanks for your help on this,
Ben



--- In flexcoders@yahoogroups.com, Alistair McLeod [EMAIL PROTECTED] wrote:

 Hi Ben,
 
 It does sound like something to do with describeType(), though I can't
 see Cairngorm 2.2 could have changed what it returns. Can you compare
 the describeType() output in the two versions. Have you debugged the
 application and stepped through the getWebService() call to see whats
 happening there?
 
 Ali
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: 18 May 2007 14:47
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Cairngorm 2.2 incompatible with AS-based
 ServiceLocator?
 
 Hi Alistair,
 
 _webServices is empty, but we already knew that. Looking at
 ServiceLocator in the debugger shows all of my WebService objects
 properly constructed and present, they're just not registered for
 whatever reason. As far as I can tell, getWebService() does not get
 called before the first time I try to access one of my WS objects, which
 is when it bombs. I thought maybe it was because I had forgotten to
 remove my manual calls to loadWSDL(), but removing those didn't help
 either.
 
 I've been up to date on the Flex SDK for a while now. Like I said, this
 began as soon as I switched to 2.2 without changing anything else.
 
 The _webServices dictionary is populated by calling describeType() and
 then harvesting the accessors XMLList, correct? I am almost positive
 that is the problem. WS properties defined in AS don't seem to be
 included in accessors, resulting in them never getting registered.
 
 Let me know what you think.
 Ben
 
 PS - I've converted to an MXML ServiceLocator, so this issue isn't
 holding me up, I'm just trying to make Cairngorm as robust as possible.
 
 
 --- In flexcoders@yahoogroups.com, Alistair McLeod amcleod@
 wrote:
 
  Hi Ben,
  
  I can't think of anything that's changed between 2.1 and 2.2 that 
  would cause this. I'm guessing that the web services your defining 
  dynamically aren't getting registered with the service locator, so its
 
  probably a timing thing. Have you moved to Flex 2.0.1 at the same 
  time, though I don't know of any specific reason why that would change
 something.
  
  Can you check if your web services have registered in the  
  _webServices Dictionary stored inside ServiceLocator? That dictionary 
  is created through lazy instantiation on the first call to get 
  webServices() on the service locator, so ensure that that call never 
  happens before you have created your dynamic web services.
  
  Thanks,
  
  Alistair
  
  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
  On Behalf Of ben.clinkinbeard
  Sent: 17 May 2007 19:07
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Cairngorm 2.2 incompatible with AS-based 
  ServiceLocator?
  
  I declared my ServiceLocator subclass in AS rather than MXML, and when
 
  my app loads I load an XML file. That XML file contains the WSDL URLs 
  for all the WebServices that I use in my app, so once it is loaded I 
  call an initServices() method that I defined on the ServiceLocator 
  subclass. The initServices() method declares my WebService objects, 
  sets up event listeners and calls loadWSDL() for each, using the URLs 
  defined in the loaded XML. Once all my loadWSDL() calls have returned 
  the app continues on to other startup tasks.
  
  This all worked perfectly in Cairngorm 2.1. With 2.2 however, as soon 
  as I call ServiceLocator.getInstance().getWebService(), I get the 
  error and callstack pasted below. Debugging shows that all of my 
  WebService variables are defined and in memory, but for some reason 
  they are not registered with the ServiceLocator. In some quick tests, 
  I noticed that the describeType() call in AbstractServices.as does not
 
  seem to include references to variables defined in AS. Since the 
  accessors list from
  describeType() seems to be the source of what gets registered with 
  ServiceLocator, my guess is that that is the source of the problem.
  
  You can see a slightly obfuscated version of the class at 

Re: [flexcoders] My component always returns width = 0

2007-06-04 Thread Tom Chiverton
On Monday 04 Jun 2007, Webdevotion wrote:
 this.callLater(measure);

There are several good articles about the purpose and ordering of 
createChildren(), measure() etc.

-- 
Tom Chiverton
Helping to quickly mesh magnetic 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 Law 
Society.

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

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/
 


[flexcoders] Using the Flex Builder search to navigate through my asdoc docs

2007-06-04 Thread Nuno Morgadinho
I've developed a small framework for which I have generated
documentation with ASDoc.

I would now like to have this documentation integrated with the Flex
documentation so I can use the Flex Builder search to navigate through
my docs.

I've seen a commercial product at myflex.org (Fx2Doc) that does this
so I know its possible somehow. Are there any hints on how to
accomplish this?


[flexcoders] Re: Tooltip in itemeditor of datagrid BUG or... WIsh...

2007-06-04 Thread nxzone
My sample is working on your computer ?
I dont have hotfix2 (download in progress). I try with player 
9,0,28,0 and  9,0,45,0 on firefox and internet explorer on Windows.


--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Tried it in hotfix2, tooltip came up and editor did not lose focus.
 Which player, browser, os?
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of nxzone
 Sent: Friday, June 01, 2007 12:08 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Tooltip in itemeditor of datagrid BUG or...
 WIsh...
 
  
 
 Enter more then 10 character in the email and rollover the textinput :)
 
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml 
 layout=absolute
 mx:XMLList id=employees
 employee
 nameChristina Coenraets/name
 email[EMAIL PROTECTED] mailto:ccoenraets%40fictitious.com
 /email
 /employee
 /mx:XMLList
 mx:Component id=actionbt  
 mx:TextInput text= creationComplete=doInit()
 mx:Script
 ![CDATA[
 import mx.validators.StringValidator;
 public var validator:StringValidator= new StringValidator();
 
 private function doInit():void { 
 validator.source= this
 validator.maxLength=10
 validator.property=text;
 validator.trigger=this;
 validator.triggerEvent =change;
 validator.validate();
 }
 ]]
 /mx:Script
 /mx:TextInput
 /mx:Component 
 mx:DataGrid id=dg y=200 editable=true width=100%
 height=100% rowCount=5 dataProvider={employees}
 mx:columns
 mx:DataGridColumn dataField=name headerText=Name/
 mx:DataGridColumn dataField=email headerText=Email
 itemEditor={actionbt}/
 /mx:columns
 /mx:DataGrid
 
 
 /mx:Application





Re: [flexcoders] Using the Flex Builder search to navigate through my asdoc docs

2007-06-04 Thread Tom Chiverton
On Monday 04 Jun 2007, Nuno Morgadinho wrote:
 I would now like to have this documentation integrated with the Flex
 documentation so I can use the Flex Builder search to navigate through
 my docs.

Just run ASDoc over the SDK source as well as your source.

-- 
Tom Chiverton
Helping to seamlessly harvest web-enabled metrics
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 Law 
Society.

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

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/
 


[flexcoders] Re: Is anyone using WebORB with a Java back end?

2007-06-04 Thread kyle.vanvranken
I haven't had much experience with WebORB, but I believe it was meant
to be used with langs other then Java. I remember reading something
about not planing to have a Java version as FDS already does that well.

One product you might want to check out as a Java alternative:

http://www.graniteds.org/confluence/display/INTRO/Granite+Data+Services+Overview

Not tons of info on it on this board, but I believe some people are
using it pretty successfully.



[flexcoders] Buttons with dynamic loaded images

2007-06-04 Thread flashcrow2000
Hello everybody,

I have the next problem: I'm trying to build a field containing a
Button/SimpleButton and a LinkButton. I also have an XML file which
points, for each entry, to a text, an URL, and three pictures, one for
each button state: up, over, down. 

I'm having trouble displaying a button with a dynamic loaded picture.
If I ebed them, it works ok. I've tried using the Image class, with an
event listener to catch when the picture loaded completely and then
adding it to the button, still nothing.
This is the button declaration:

display:SimpleButton 
id=btn 
mouseOver=onBtnOver() 
mouseOut=onBtnOut() 
/

and this are the actions i'm using:

public var upState:Image = new Image();
public var upStateString:String = null;
private function onInit():void {
upState.load(upStateString);
upState.addEventListener(Event.COMPLETE, onImageComplete)
}

private function onImageComplete(event:Event) : void {
btn.upState = DisplayObject(upState);
}

Any ideas? Please :D
thanks!




[flexcoders] Re: Tooltip in itemeditor of datagrid BUG or... WIsh...

2007-06-04 Thread nxzone
Not working with the hotfix 2. Doea anyone have try my sample?

--- In flexcoders@yahoogroups.com, nxzone [EMAIL PROTECTED] wrote:

 My sample is working on your computer ?
 I dont have hotfix2 (download in progress). I try with player 
 9,0,28,0 and  9,0,45,0 on firefox and internet explorer on Windows.
 
 
 --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
 
  Tried it in hotfix2, tooltip came up and editor did not lose focus.
  Which player, browser, os?
  
   
  
  
  
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of nxzone
  Sent: Friday, June 01, 2007 12:08 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Tooltip in itemeditor of datagrid BUG or...
  WIsh...
  
   
  
  Enter more then 10 character in the email and rollover the
textinput :)
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
  http://www.adobe.com/2006/mxml 
  layout=absolute
  mx:XMLList id=employees
  employee
  nameChristina Coenraets/name
  emailccoenraets@ mailto:ccoenraets%40fictitious.com
  /email
  /employee
  /mx:XMLList
  mx:Component id=actionbt  
  mx:TextInput text= creationComplete=doInit()
  mx:Script
  ![CDATA[
  import mx.validators.StringValidator;
  public var validator:StringValidator= new StringValidator();
  
  private function doInit():void { 
  validator.source= this
  validator.maxLength=10
  validator.property=text;
  validator.trigger=this;
  validator.triggerEvent =change;
  validator.validate();
  }
  ]]
  /mx:Script
  /mx:TextInput
  /mx:Component 
  mx:DataGrid id=dg y=200 editable=true width=100%
  height=100% rowCount=5 dataProvider={employees}
  mx:columns
  mx:DataGridColumn dataField=name headerText=Name/
  mx:DataGridColumn dataField=email headerText=Email
  itemEditor={actionbt}/
  /mx:columns
  /mx:DataGrid
  
  
  /mx:Application
 





[flexcoders] Style Manager

2007-06-04 Thread pateyog
I am trying to use the run-time CSS using StyleManager and am getting
bizzare behavior when loading multiple css files. My code looks
something like 

StyleManager.loadStyleDeclarations(styles/core.swf);
//Add the service specific styles from the argument passed
StyleManager.loadStyleDeclarations(styles/RegistrationForm.swf);
//Add the locale and brand specific styles
StyleManager.loadStyleDeclarations(styles/en/custom.swf);
StyleManager.loadStyleDeclarations(styles/en_US/custom.swf);
StyleManager.loadStyleDeclarations(styles/en_US/brand1/custom.swf);

What happens when I run this is the cascading effect from these
compiled CSS files does not happen. Keep hitting refresh and once a
while it will work. 

Thanks in advance for suggesting an appropriate solution.



Re: [flexcoders] Style Manager

2007-06-04 Thread Tom Chiverton
On Monday 04 Jun 2007, pateyog wrote:
 Thanks in advance for suggesting an appropriate solution.

Try setting the 'update' parameter to 'false' in all but the last 
loadStyleDeclarations()

-- 
Tom Chiverton
Helping to dynamically engineer viral products
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 Law 
Society.

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

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/
 


[flexcoders] Re: Using the Flex Builder search to navigate through my asdoc docs

2007-06-04 Thread nunomorgadinho
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Monday 04 Jun 2007, Nuno Morgadinho wrote:
  I would now like to have this documentation integrated with the Flex
  documentation so I can use the Flex Builder search to navigate through
  my docs.
 
 Just run ASDoc over the SDK source as well as your source.

I'm glad its easy but running ASDoc over the SDK source gives me this
error:

Error: could not find source for class mx.validators:ZipCodeValidator
in namespace http://framework.

Here's the command I used:

C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2bin\asdoc.exe
-source-path frameworks -namespace http://framework
frameworks/core-framework-manifest.xml -doc-namespaces http://framework
Loading configuration file C:\Program Files\Adobe\Flex Builder 2\Flex
SDK 2\frameworks\flex-config.xml


Something wrong?




Re: [flexcoders] Re: Using the Flex Builder search to navigate through my asdoc docs

2007-06-04 Thread Tom Chiverton
On Monday 04 Jun 2007, nunomorgadinho wrote:
 Error: could not find source for class mx.validators:ZipCodeValidator
 in namespace http://framework.

If only there was a way to --exclude-dependencies and then give a list 
of --doc-classe eh ?

-- 
Tom Chiverton
Helping to enthusiastically incentivize viral metrics
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 Law 
Society.

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

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] Re: Conditional formatting of tree node labels

2007-06-04 Thread ivo
Thanks for the response Barry. I was away  just now
catching up on email.

Turns out I did not have to do:

var treeListData:TreeListData =
TreeListData(super.listData);
if(treeListData.isDirty){
this.label.setStyle('fontStyle', 'italic');
}

but just:

var treeListData:TreeListData =
TreeListData(super.listData);
if(treeListData.isDirty){
setStyle('fontStyle', 'italic');
}

I had one of those doh moments when I noticed it.

Regards,

Ivo


--- barry.beattie [EMAIL PROTECTED] wrote:

 Ivo, did you find a solution?
 
 the tree controls' labelFunction (instead of
 labelField) could be
 an easy way out to conditionally modify the label's
 condition0
 
 just a quick suggestion
 
 best'o'luck
 barry.b
 
 
 mx:Tree  width=100% height=100%
 dataProvider={questionaire.section} 
 labelFunction=treeLabel 
 change=onTreeNodeSelected(event)
   /  
 
 
 private function treeLabel( item:Object ) : String
 {
  var node:XML = XML(item);
  var labelText:String;
  // choose what to use for label
  // TODO: replace hard-coded node name with [if
 not hasChildren]
  if( node.localName() == question)
  {
   labelText = String([EMAIL PROTECTED]);
  }
  else 
  {
 labelText = String([EMAIL PROTECTED]);
  }
  if (labelText.length  30) // too long
  {
   labelText = labelText.substr(0,30) + ...;
  } 
  return labelText;
 } 
 
 
 



[flexcoders] Convert htmlText to plain text

2007-06-04 Thread pdflibpilot
I saw a couple of post about removing all the formatting tags from
htmlText and came up with this solution that uses RegExp.

I am not completely satisfied with the form though it works. If anyone
has any suggestions for improvement or if there is an easier way that
I am missing let me know. 

function removeHTMLTags(Str):String{
  var matchArr = Str.match(/[a-zA-Z0-9\/][^]*/g)
// returns raw text but with a leading '' and trailing ''
// then loop to remove the brackets and adds a space to the text
  var newStr:String = 
  for each(var matchItem in matchArr){
   var mStr = matchItem.substring(1,matchItem.length-1)+ 
newStr += mStr
  }
return newStr

}

I had no luck using a replace(regX,) to try and remove all xxx
tags for some reason. Maybe someone can shed some light on that too.





--
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] Buttons with dynamic loaded images

2007-06-04 Thread Alex Harui
Button doesn't carry the extra code to load external images.  You can
write a subclass that does.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flashcrow2000
Sent: Monday, June 04, 2007 7:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Buttons with dynamic loaded images

 

Hello everybody,

I have the next problem: I'm trying to build a field containing a
Button/SimpleButton and a LinkButton. I also have an XML file which
points, for each entry, to a text, an URL, and three pictures, one for
each button state: up, over, down. 

I'm having trouble displaying a button with a dynamic loaded picture.
If I ebed them, it works ok. I've tried using the Image class, with an
event listener to catch when the picture loaded completely and then
adding it to the button, still nothing.
This is the button declaration:

display:SimpleButton 
id=btn 
mouseOver=onBtnOver() 
mouseOut=onBtnOut() 
/

and this are the actions i'm using:

public var upState:Image = new Image();
public var upStateString:String = null;
private function onInit():void {
upState.load(upStateString);
upState.addEventListener(Event.COMPLETE, onImageComplete)
}

private function onImageComplete(event:Event) : void {
btn.upState = DisplayObject(upState);
}

Any ideas? Please :D
thanks!

 



RE: [flexcoders] Re: removeItemAt combined with getItemAt - Manipulating an arrayCollection

2007-06-04 Thread Alex Harui
Each time you use {}, you instantiate a unique new object which of
course is not findable in the collection.  You can use find() for that
though.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of michaelmatynka
Sent: Monday, June 04, 2007 4:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: removeItemAt combined with getItemAt -
Manipulating an arrayCollection

 

Some more info, and I am getting closer.

I am using the following function, but it returns a value of -1, out of
bounds, regardless of 
what value I try to get the index of:

public function remItem():void{
fields.removeItemAt(fields.getItemIndex({fieldTag: small,
value:t}));
}

Remember that the arrayCollection looks like:
private var fields:ArrayCollection = new ArrayCollection([{fieldTag:
big, value:t}, {fieldTag: 
small, value: t}]);

Does anybody know why getItemIndex would return a value of -1?

 



RE: [flexcoders] Re: Tooltip in itemeditor of datagrid BUG or... WIsh...

2007-06-04 Thread Alex Harui
I ran a test with your code on SAFlashPlayer.  There's too many
browser/player configs for me to try them all so I asked for a few
configs.

 

I'll try to run those configs today, but it may be a while before I get
to it.  Do you have a custom wrapper?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nxzone
Sent: Monday, June 04, 2007 7:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Tooltip in itemeditor of datagrid BUG or...
WIsh...

 

Not working with the hotfix 2. Doea anyone have try my sample?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, nxzone [EMAIL PROTECTED] wrote:

 My sample is working on your computer ?
 I dont have hotfix2 (download in progress). I try with player 
 9,0,28,0 and 9,0,45,0 on firefox and internet explorer on Windows.
 
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote:
 
  Tried it in hotfix2, tooltip came up and editor did not lose focus.
  Which player, browser, os?
  
  
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
  Behalf Of nxzone
  Sent: Friday, June 01, 2007 12:08 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

  Subject: [flexcoders] Re: Tooltip in itemeditor of datagrid BUG
or...
  WIsh...
  
  
  
  Enter more then 10 character in the email and rollover the
textinput :)
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
  http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml  
  layout=absolute
  mx:XMLList id=employees
  employee
  nameChristina Coenraets/name
  emailccoenraets@ mailto:ccoenraets%40fictitious.com
  /email
  /employee
  /mx:XMLList
  mx:Component id=actionbt  
  mx:TextInput text= creationComplete=doInit()
  mx:Script
  ![CDATA[
  import mx.validators.StringValidator;
  public var validator:StringValidator= new StringValidator();
  
  private function doInit():void { 
  validator.source= this
  validator.maxLength=10
  validator.property=text;
  validator.trigger=this;
  validator.triggerEvent =change;
  validator.validate();
  }
  ]]
  /mx:Script
  /mx:TextInput
  /mx:Component 
  mx:DataGrid id=dg y=200 editable=true width=100%
  height=100% rowCount=5 dataProvider={employees}
  mx:columns
  mx:DataGridColumn dataField=name headerText=Name/
  mx:DataGridColumn dataField=email headerText=Email
  itemEditor={actionbt}/
  /mx:columns
  /mx:DataGrid
  
  
  /mx:Application
 


 



[flexcoders] Adding a menubar to a cell in a datagrid

2007-06-04 Thread bill.fogarty17
Hi folks,

I need to add a flyout menu to a cell in my datagrid. I customised a 
Menubar so that it has the style and menu options that I need. But 
I'm having problems adding it to my datagrid.

mx:DataGridColumn dataField=actions headerText=Actions 
width=60
mx:itemRenderer
mx:Component  
mx:MenuBar height=13 width=35 labelField=[EMAIL PROTECTED] 
styleName=optionsPanel itemClick=outerDocument.menuHandler
(event); dataProvider={outerDocument.menuBarCollection} /   

/mx:Component
/mx:itemRenderer
/mx:DataGridColumn

This is the error I get:
1195: Attempted access of inaccessible method menuHandler through a 
reference with static type 

Any suggestiongs would be much appreciated.
Bill




Re: [flexcoders] Convert htmlText to plain text

2007-06-04 Thread Daniel Freiman

I doubt it's the most efficient way, but a really easy way should be this:

function removeHTMLTags(str:String):String {
var tf:TextField = new TextField();
tf.htmlText = str;
return tf.text;
}

Dan Freiman
nondocs http://nondocs.blogspot.com


On 6/4/07, pdflibpilot [EMAIL PROTECTED] wrote:


I saw a couple of post about removing all the formatting tags from
htmlText and came up with this solution that uses RegExp.

I am not completely satisfied with the form though it works. If anyone
has any suggestions for improvement or if there is an easier way that
I am missing let me know.

function removeHTMLTags(Str):String{
  var matchArr = Str.match(/[a-zA-Z0-9\/][^]*/g)
// returns raw text but with a leading '' and trailing ''
// then loop to remove the brackets and adds a space to the text
  var newStr:String = 
  for each(var matchItem in matchArr){
   var mStr = matchItem.substring(1,matchItem.length-1)+ 
newStr += mStr
  }
return newStr

}

I had no luck using a replace(regX,) to try and remove all xxx
tags for some reason. Maybe someone can shed some light on that too.





--
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] Problems installing HotFix 2...Please choose an existing Eclipse 3.1 (or greate

2007-06-04 Thread gary_mangum
We have been unable to successfully install HotFix 2 on Windows

- I downloaded FB2_Hotfix2_Installer_Win.exe
- When I run it, I point to the default FB2 directory where I have FB2
installed, C:\Program Files\Adobe\Flex Builder 2
- I get the following error:
Please choose an existing Eclipse 3.1 (or greater) folder to be
updated.  This folder must contain the standard Eclipse folders named
plugins and features.

I verified that the install dir is correct.  Any ideas?

I also tried surrounding the dir path with quotes thinking it might
not like the spaces in the path.  When I try this I get the following
error:
Error!
You do not have write permissions to the chosen installation
destination.  Please choose a different location for installation.

This is not correct either.


I can't be the only person having this problem!



[flexcoders] Re: Custom Attributes

2007-06-04 Thread gary_mangum
I just tried this with hotfix 2 and it did not work any differently
for me.  Can you point me to the example that you saw working so that
I can try it?

Also, how can I verify that I have hotfix 2 installed?  The windows
installer was not working (see my other post) so I ended up unzipping
the zip hotfix 2 instead.

Gary

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 I saw an internal discussion that there may have been a bug.  I tried a
 similar example in hotfix 2 and it worked for me so upgrade to hotfix 2
 and give it a try there.
 
  
 
 -Alex
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of gary_mangum
 Sent: Saturday, June 02, 2007 6:48 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Custom Attributes
 
  
 
 So, can something like this be done or not? I want to define a bunch
 of constant values and pass them in as the value for a custom
 attribute. Can I do this? I don't want to hard code these values.
 
 Thanks!
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  There used to be warnings. I can't recall if we've gotten around them
  yet, but you still might be getting hit up by some initialization
 thing.
  Try looking in your trace output, it might be a runtime warning.
  
  
  
  Also dump out the value of that constant at various time. It might
  start out 0 and gets set to 2 during component instantiation.
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of gary_mangum
  Sent: Friday, June 01, 2007 3:33 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: Custom Attributes
  
  
  
  Thanks for your response!
  
  I am not getting any compiler errors...should I be? Is it illegal to
  assign constant values to an attribute?
  
  I am trying to create an attribute that is an integer mask and then
  use OR-ed together constants to pass in and set the attribute? Isn't
  this possible?
  I'd hate to hard code all of my attribute values to magic numbers if
  it is possible to use constants instead for readability and
  maintainability.
  
  In my example, myComponent.xml is the class, not MyComponent. 
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , Alex Harui aharui@ wrote:
  
   Aren't you getting compiler warnings about binding to statics?
   
   
   
   What is myComponent? MyComponent is the class, but myComponent
   must be something else?
   
   
   
   
   
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of gary_mangum
   Sent: Friday, June 01, 2007 10:53 AM
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Re: Custom Attributes
   
   
   
   Still haven't figured this one out...is this a bug in flex?
   
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   , gary_mangum garym@ wrote:
   
I am unsuccessfully trying to pass an integer constant to a custom
integer attribute of a custom component. Confused yet? Here's an
example of what I am trying to do:

Application:
?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml 
  http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml  
   http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml   
  width=700
height=250 borderStyle=solid xmlns:ns1=*
ns1:myComponent supportsMultiselect=true
supportTypeMask={myComponent.TYPE_MASK_TEXT}/
/mx:Application

MyComponent:
?xml version=1.0 encoding=utf-8?
mx:Button xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml 
  http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml  
   http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml   
mx:Script
![CDATA[
public static const TYPE_MASK_ALL:int = -1;
public static const TYPE_MASK_NONE:int = 0;
public static const TYPE_MASK_IMAGE:int = 1;
public static const TYPE_MASK_TEXT:int = 2;
public static const TYPE_MASK_SPRITE:int = 4;

public var supportsMultiselect:Boolean;
public var supportTypeMask:int;
]]
/mx:Script
/mx:Button


The public var supportTypeMask is never getting set for some
 reason
 

RE: [flexcoders] Re: Custom Attributes

2007-06-04 Thread Alex Harui
SomeClass id=sc selectedIndex={SomeClass.ID2} 

dataProvider

mx:StringAlpha/mx:String

mx:StringBeta/mx:String

mx:StringGamma/mx:String

/dataProvider

/SomeClass

 

Where:

 

package

{

import mx.controls.ComboBox;

 

public class SomeClass extends ComboBox

{



public static const ID1:int = 1;

public static const ID2:int = 2;

public static const ID3:int = 3;



public function SomeClass()

{

super();

}



}

}

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gary_mangum
Sent: Monday, June 04, 2007 9:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Custom Attributes

 

I just tried this with hotfix 2 and it did not work any differently
for me. Can you point me to the example that you saw working so that
I can try it?

Also, how can I verify that I have hotfix 2 installed? The windows
installer was not working (see my other post) so I ended up unzipping
the zip hotfix 2 instead.

Gary

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 I saw an internal discussion that there may have been a bug. I tried a
 similar example in hotfix 2 and it worked for me so upgrade to hotfix
2
 and give it a try there.
 
 
 
 -Alex
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of gary_mangum
 Sent: Saturday, June 02, 2007 6:48 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Custom Attributes
 
 
 
 So, can something like this be done or not? I want to define a bunch
 of constant values and pass them in as the value for a custom
 attribute. Can I do this? I don't want to hard code these values.
 
 Thanks!
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  There used to be warnings. I can't recall if we've gotten around
them
  yet, but you still might be getting hit up by some initialization
 thing.
  Try looking in your trace output, it might be a runtime warning.
  
  
  
  Also dump out the value of that constant at various time. It might
  start out 0 and gets set to 2 during component instantiation.
  
  
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of gary_mangum
  Sent: Friday, June 01, 2007 3:33 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: Custom Attributes
  
  
  
  Thanks for your response!
  
  I am not getting any compiler errors...should I be? Is it illegal to
  assign constant values to an attribute?
  
  I am trying to create an attribute that is an integer mask and
then
  use OR-ed together constants to pass in and set the attribute? Isn't
  this possible?
  I'd hate to hard code all of my attribute values to magic numbers if
  it is possible to use constants instead for readability and
  maintainability.
  
  In my example, myComponent.xml is the class, not MyComponent. 
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , Alex Harui aharui@ wrote:
  
   Aren't you getting compiler warnings about binding to statics?
   
   
   
   What is myComponent? MyComponent is the class, but
myComponent
   must be something else?
   
   
   
   
   
   From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of gary_mangum
   Sent: Friday, June 01, 2007 10:53 AM
   To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Re: Custom Attributes
   
   
   
   Still haven't figured this one out...is this a bug in flex?
   
   --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com
  

[flexcoders] Tab Navigator Confirm on tab change

2007-06-04 Thread cbs1918
I have a tab navigator with a form on each of the tabs.  I am looking
for a solution where if data has changed on the form and not been
saved, when the user tries to change tabs show a confirmation message
'Any unsaved data will be lost', and if the user selects yes, go ahead
and change tabs, else stay on the current tab.

I have seen this topic in the forums but have not seen a working
example yet.  Does anyone have any solutions or ideas to solve this issue?



[flexcoders] Re: Checkbox needs to have the same behavior like 'ctrlkey+mouse click' in datagrid

2007-06-04 Thread handitan
Hi Alex,

Thank you for the reply.
After I dig further the forum, I found a thread that actually already 
tackle this problem.

Here's the thread:
http://tech.groups.yahoo.com/group/flexcoders/message/69360

Find the reply by Doug McCune.
He got the solution in his blog.

Doug, you are the man!

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 You could just keep setting selectedIndices
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of handitan
 Sent: Friday, June 01, 2007 3:06 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Checkbox needs to have the same behavior like
 'ctrlkey+mouse click' in datagrid
 
  
 
 Hi,
 
 I have a datagrid that allows me to do select multiple rows by 
holding 
 down ctrlkey and clicking each row, and it also allows me to drag 
those 
 rows to a tree.
 
 Now, I have been told to replicate this same behavior but with 
checkbox.
 
 So I already have checkbox as part of the datagridColumn but I got 
 confused on how to solve this after my first solution failed.
 
 My solution was I am dispatching the ctrkey event to dataGrid and 
let 
 the dataGrid does it magic in saving the selected row as I 
mouseclick 
 the row. 
 
 public function chkBoxHandler(event:Event):void
 {
 myGrid.dispatchEvent(new KeyboardEvent
 (KeyboardEvent.KEY_DOWN,true,false,0,17,1,true));
 }
 
 mx:DataGrid id=myGrid dataProvider={dataBucket.datas}
 height=100% 
 width=100%
 dragEnabled=true
 dragEnter=onDragEnter(event) 
 dragOver=onDragOver(event) 
 dragDrop=onDragDrop(event)
 allowMultipleSelection=true
 doubleClickEnabled=true
 itemDoubleClick=itemDoubleClickEvt(event)
 itemClick=itemClickEvt(event)
 
 mx:columns
 mx:DataGridColumn id=checkBox minWidth=20 width=20 
 sortable=false 
 mx:itemRenderer
 mx:Component
 mx:HBox
 mx:CheckBox labelPlacement=bottom height=18 
 click=outerDocument.chkBoxHandler(event)/ 
 /mx:HBox
 /mx:Component
 /mx:itemRenderer
 /DataGridColumn
 ... and there are multiple other DataGridColumns
 
 Any ideas?





[flexcoders] Automatically Cast CF Arrays to Flex ArrayCollections?

2007-06-04 Thread jamckinn2001
Is there an automatic way to cast a variable in a custom object as
ArrayCollection from a CFC service call? How about nested
ArrayCollections also? Something like how cfquery automatically casts.  

Below is an example of custom objects where the AS classes are mapped
via RemoteClass to the CFCs (built with the CF Wizard). I would like
to do a simple assignment like var myAccount:Account = new Account(
event.result );  

AS Classes:
package vo
{
[RemoteClass(alias=com.theSite.Account)]

[Bindable]
public class Account {
public var id:Number = 0;
public var name:String = ;
public var orders:ArrayCollection = null;  //order objects
}
}
package vo
{
[RemoteClass(alias=com.theSite.Order)]

[Bindable]
public class Order {
public var id:Number = 0;
public var total:Number = 0;
public var orderDate:Date = null;
}
}

CFCs on Server:
cfcomponent output=false alias=com.theSite.Account
cfproperty name=id type=numeric default=0
cfproperty name=name type=string default=
cfproperty name=orders type=Array default=Order[]
...

/cfcomponent

cfcomponent output=false alias=com.theSite.Order
cfproperty name=id type=numeric default=0
cfproperty name=total type=numeric default=
cfproperty name=orderDate type=date default=
...

/cfcomponent


Thanks



RE: [flexcoders] Re: Really complex buttons (aka what WPF got right)

2007-06-04 Thread Ely Greenfield
 

Hi Borek. Thanks for your thoughts.  They are very much appreciated.
And for what it's worth, on a purely technical level, I agree with you,
Microsoft has done a very nice job in the architecture of their
framework.

 

Let me respond to a few comments.

 

1)  Actually, no, I think you were right when you said 'WPF.'  For
both .NET/3 and Flex, the serialization languages (XAML, MXML) are very
thin syntaxes on top of complex frameworks. In both cases, most of the
functionality you're looking at is framework functionality, not language
functionality.  It's similar in my mind to how many people conflate the
language javascript with the library of DOM and other apis provided by
the browser (i.e., many desktop tools use javascript as a scripting
language, which helps developers learn to script them, but learning a
language is not the hard part...it's how to use the functionality in the
APIs that's difficult).

2)  To that point, you're right that performance isn't really an
issue when you're discussing a serialization format.  MXML is already
very capable today of doing the kind of composition we're discussing
here (case in point:  Doug was able to write a component that uses the
composition feature of MXML).  It's the performance cost of a framework
that supports that level of abstraction and flexibility that we're
concerned with.

3)  It's worth pointing out that some of your arguments below focus
specifically on the components available out of the box with the
frameworks (i.e., the button scenario). For example, for a new 3rd party
component, you have to distribute and maintain a separate component in
WPF just as you with Flex. So in many respects (not all, I know), the
comparison boils down to what's available out of the box vs. what the
platform enables the community to build and provide.  I'm not trying to
trivialize that difference...yes, having it available out of the box is
a big plus. 

4)  Re: complexity: my comment is based on my previous usage of WPF.
In my experience, while very basic usage of both technologies is
comparable in terms of markup complexity, more complex features tend to
balloon your markup in XAML.  I also believe that both flex and WPF have
a 'cliff' you walk off when you cross over a certain level of
complexity.  From my experience, it takes longer to get to that cliff in
WPF (i.e., you can do more out of the box in just markup), but once you
get there, it's a much bigger cliff.  Put more simply, my experience was
that writing a good custom component is much harder in WPF.  But I'm
sure my focus when working with WPF has been different from yours, and I
think this is as much a matter of opinion and personal experience as
anything else, so I can't argue too strongly that I'm right and you're
wrong J

5)  Rest assured, we want to see MXML and flex improve further as
well, and power and flexibility is one key area where we want to
continue to evolve.  But we need to continue to adopt a pay as you go
model...the power and flexibility needs to be there, but not at the
expense of developers and use cases that have no need for them.   We
will continue to balance flexibility and power against performance,
ubiquity, simplicity, familiarity  and other concerns.  All so that flex
applications continue to be something that the broad populations of
developers can create, and the broad population of end users can use.

 

Ely.

 

 

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of borekbe
Sent: Friday, June 01, 2007 4:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Really complex buttons (aka what WPF got
right)

 

Hi Ely

It's great to hear directly from a Flex developer! I would like to
take a chance and share my views while you listen :) I must stress
again that I'm fairly new to Flex but maybe that can be a good thing
now - I can see all the problems very clearly because I often don't
have enough experience to find adequate solutions. Here are few
assorted comments that expand on our discussion.

1) I used WPF in the title where I should have used XAML instead, my
apologies. But I hope it was obvious what I meant from the code sample.

2) I really don't know why is this but both you and Aral Balkan (in a
blog post I saw the other day) seem to suggest that MXML is more
Notepad-friendly than XAML. In my personal experience, from the
application developer point of view, these formats are in almost 1:1
relationship when you leave aside the fact that you can express vector
graphics and many other things, like 3D or text documents, in XAML. If
all you need are layout containers, form controls, buttons, assets and
other common things, you'll end up with almost the same XML markup
whichever technology you use. With one exception - XAML allows for
much better composability as was pointed in the Button example before.

3) I'm glad you brought up the concepts of power and simplicity
which is very important in many aspects of 

[flexcoders] Re: Style Manager

2007-06-04 Thread pateyog
Tom I tried as per your suggestion but did not work, I also Tried
calling the different styles sheet mentioned in my original message 
from preinitialize to creation complete and each of these places the
result was the same. Probably the one that loads last takes the
precedence and is not according to the order in which it is invoded.


--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Monday 04 Jun 2007, pateyog wrote:
  Thanks in advance for suggesting an appropriate solution.
 
 Try setting the 'update' parameter to 'false' in all but the last 
 loadStyleDeclarations()
 
 -- 
 Tom Chiverton
 Helping to dynamically engineer viral products
 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 Law Society.
 
 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 8008.
 
 For more information about Halliwells LLP visit www.halliwells.com.





Re: [flexcoders] Convert htmlText to plain text

2007-06-04 Thread Ben Marchbanks
Thanks Daniel - your solution is really much cleaner - works for me !

Daniel Freiman wrote:
 I doubt it's the most efficient way, but a really easy way should be this:
 
 function removeHTMLTags(str:String):String {
 var tf:TextField = new TextField();
 tf.htmlText = str;
 return tf.text;
 }
 
 Dan Freiman
 nondocs http://nondocs.blogspot.com
 
 
 On 6/4/07, pdflibpilot [EMAIL PROTECTED] wrote:

 I saw a couple of post about removing all the formatting tags from
 htmlText and came up with this solution that uses RegExp.

 I am not completely satisfied with the form though it works. If anyone
 has any suggestions for improvement or if there is an easier way that
 I am missing let me know.

 function removeHTMLTags(Str):String{
   var matchArr = Str.match(/[a-zA-Z0-9\/][^]*/g)
 // returns raw text but with a leading '' and trailing ''
 // then loop to remove the brackets and adds a space to the text
   var newStr:String = 
   for each(var matchItem in matchArr){
var mStr = matchItem.substring(1,matchItem.length-1)+ 
 newStr += mStr
   }
 return newStr

 }

 I had no luck using a replace(regX,) to try and remove all xxx
 tags for some reason. Maybe someone can shed some light on that too.





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




 

-- 
Ben Marchbanks

::: alQemy ::: transforming information into intelligence
http://www.alQemy.com

::: magazooms ::: digital magazines
http://www.magazooms.com

Greenville, SC
864.284.9918


[flexcoders] Re: Tooltip in itemeditor of datagrid BUG or... WIsh...

2007-06-04 Thread nxzone
No custom html wrapper

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 I ran a test with your code on SAFlashPlayer.  There's too many
 browser/player configs for me to try them all so I asked for a few
 configs.
 
  
 
 I'll try to run those configs today, but it may be a while before I get
 to it.  Do you have a custom wrapper?
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of nxzone
 Sent: Monday, June 04, 2007 7:48 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Tooltip in itemeditor of datagrid BUG or...
 WIsh...
 
  
 
 Not working with the hotfix 2. Doea anyone have try my sample?
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , nxzone nxzone@ wrote:
 
  My sample is working on your computer ?
  I dont have hotfix2 (download in progress). I try with player 
  9,0,28,0 and 9,0,45,0 on firefox and internet explorer on Windows.
  
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , Alex Harui aharui@ wrote:
  
   Tried it in hotfix2, tooltip came up and editor did not lose focus.
   Which player, browser, os?
   
   
   
   
   
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
   Behalf Of nxzone
   Sent: Friday, June 01, 2007 12:08 PM
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 
   Subject: [flexcoders] Re: Tooltip in itemeditor of datagrid BUG
 or...
   WIsh...
   
   
   
   Enter more then 10 character in the email and rollover the
 textinput :)
   
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
 http://www.adobe.com/2006/mxml 
   http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml  
   layout=absolute
   mx:XMLList id=employees
   employee
   nameChristina Coenraets/name
   emailccoenraets@ mailto:ccoenraets%40fictitious.com
   /email
   /employee
   /mx:XMLList
   mx:Component id=actionbt  
   mx:TextInput text= creationComplete=doInit()
   mx:Script
   ![CDATA[
   import mx.validators.StringValidator;
   public var validator:StringValidator= new StringValidator();
   
   private function doInit():void { 
   validator.source= this
   validator.maxLength=10
   validator.property=text;
   validator.trigger=this;
   validator.triggerEvent =change;
   validator.validate();
   }
   ]]
   /mx:Script
   /mx:TextInput
   /mx:Component 
   mx:DataGrid id=dg y=200 editable=true width=100%
   height=100% rowCount=5 dataProvider={employees}
   mx:columns
   mx:DataGridColumn dataField=name headerText=Name/
   mx:DataGridColumn dataField=email headerText=Email
   itemEditor={actionbt}/
   /mx:columns
   /mx:DataGrid
   
   
   /mx:Application
  
 





[flexcoders] Re: Tooltip in itemeditor of datagrid BUG or... WIsh...

2007-06-04 Thread nxzone
This is working but is not exacly what i'm doing... I want to find why
my code is not working...

--- In flexcoders@yahoogroups.com, Harish Sivaramakrishnan
[EMAIL PROTECTED] wrote:

 are you looking at something like this?
 http://flexgeek.wordpress.com/2007/06/04/tips-tricks-itemeditors-iii/
 
 On 6/3/07, Alex Harui [EMAIL PROTECTED] wrote:
 
 Tried it in hotfix2, tooltip came up and editor did not lose focus.
  Which player, browser, os?
 
 
   --
 
  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
  Behalf Of *nxzone
  *Sent:* Friday, June 01, 2007 12:08 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Re: Tooltip in itemeditor of datagrid BUG
or...
  WIsh...
 
 
 
  Enter more then 10 character in the email and rollover the
textinput :)
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute
  mx:XMLList id=employees
  employee
  nameChristina Coenraets/name
  email[EMAIL PROTECTED] ccoenraets%40fictitious.com/email
  /employee
  /mx:XMLList
  mx:Component id=actionbt 
  mx:TextInput text= creationComplete=doInit()
  mx:Script
  ![CDATA[
  import mx.validators.StringValidator;
  public var validator:StringValidator= new StringValidator();
 
  private function doInit():void {
  validator.source= this
  validator.maxLength=10
  validator.property=text;
  validator.trigger=this;
  validator.triggerEvent =change;
  validator.validate();
  }
  ]]
  /mx:Script
  /mx:TextInput
  /mx:Component
  mx:DataGrid id=dg y=200 editable=true width=100%
  height=100% rowCount=5 dataProvider={employees}
  mx:columns
  mx:DataGridColumn dataField=name headerText=Name/
  mx:DataGridColumn dataField=email headerText=Email
  itemEditor={actionbt}/
  /mx:columns
  /mx:DataGrid
 
 
  /mx:Application
 
   
 





[flexcoders] Flex 2 Webservices - load wsdl failed

2007-06-04 Thread thuvu03
I have ported my Flex 1.5 application to Flex 2. I have Flex Builder 
2.0.1 installed with Hot Fix 2. I use Apache Axis 1.2 for our 
webservices, which works fine with my Flex 1.5 application. Now when 
I moved our codes to Flex 2, I got errors when it tries to load my 
wsdl. Here is a snippet of my wsdl:


?xml version=1.0 encoding=UTF-8 ? 
- wsdl:definitions name=UIManager 
targetNamespace=urn:us:gov:dod:don:ads:uimanager:0:2 
xmlns:bie=urn:us:gov:dod:don:ads:0:2 
xmlns:qdt=urn:us:gov:dod:don:ads:qdt:0:2 
xmlns:tns=urn:us:gov:dod:don:ads:uimanager:0:2 
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; 
xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
- wsdl:types
- xsd:schema targetNamespace=urn:us:gov:dod:don:ads:uimanager:0:2 
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  xsd:import namespace=urn:us:gov:dod:don:ads:0:2 
schemaLocation=ADS-BIE-0.2.xsd / 
  xsd:import namespace=urn:us:gov:dod:don:ads:qdt:0:2 
schemaLocation=ADS-QDT-0.2.xsd / 
..

I have mx:TraceTarget turned on and this is what I am seeing in 
the log file:

'D2D4D54F-B6D9-2542-18E4-F794EEAA824F' producer set destination 
to 'DefaultHTTP'.
'0176C4CA-98A9-A1E8-34F0-F794EF8415C2' producer set destination 
to 'DefaultHTTP'.
'direct_http_channel' channel endpoint set to http:
'47EB2BA7-55DB-E143-495D-F794EF94A4CC' producer set destination 
to 'DefaultHTTP'.
'757388B3-7493-1CB8-CD59-F794EF949B66' producer set destination 
to 'DefaultHTTP'.
'D2D4D54F-B6D9-2542-18E4-F794EEAA824F' producer sending 
message '48A20CD2-AECA-574B-12E7-F794EF94C6A4'
'direct_http_channel' channel sending message:
(mx.messaging.messages::HTTPRequestMessage)#0
  body = (Object)#1
  clientId = (null)
  contentType = application/x-www-form-urlencoded
  destination = DefaultHTTP
  headers = (Object)#2
  httpHeaders = (Object)#3
  messageId = 48A20CD2-AECA-574B-12E7-F794EF94C6A4
  method = GET
  recordHeaders = false
  timestamp = 0
  timeToLive = 0
  url = http://10.1.10.2:8080/ads-uimanager/services/UIManagerPort?
wsdl
'D2D4D54F-B6D9-2542-18E4-F794EEAA824F' producer connected.
'D2D4D54F-B6D9-2542-18E4-F794EEAA824F' producer acknowledge 
of '48A20CD2-AECA-574B-12E7-F794EF94C6A4'.
'D2D4D54F-B6D9-2542-18E4-F794EEAA824F' producer sending 
message 'C22A60E4-9FAA-DE9B-83BB-F794F6C8EB68'
'direct_http_channel' channel sending message:
(mx.messaging.messages::HTTPRequestMessage)#0
  body = (Object)#1
  clientId = DirectHTTPChannel0
  contentType = application/x-www-form-urlencoded
  destination = DefaultHTTP
  headers = (Object)#2
  httpHeaders = (Object)#3
  messageId = C22A60E4-9FAA-DE9B-83BB-F794F6C8EB68
  method = GET
  recordHeaders = false
  timestamp = 0
  timeToLive = 0
  url = http://10.1.10.2:8080/ads-uimanager/services/ADS-BIE-
0.2.xsd
'D2D4D54F-B6D9-2542-18E4-F794EEAA824F' producer sending 
message 'DB79A5AE-1AA8-9904-6EE8-F794F6F787DF'
'direct_http_channel' channel sending message:
(mx.messaging.messages::HTTPRequestMessage)#0
  body = (Object)#1
  clientId = DirectHTTPChannel0
  contentType = application/x-www-form-urlencoded
  destination = DefaultHTTP
  headers = (Object)#2
  httpHeaders = (Object)#3
  messageId = DB79A5AE-1AA8-9904-6EE8-F794F6F787DF
  method = GET
  recordHeaders = false
  timestamp = 0
  timeToLive = 0
  url = http://10.1.10.2:8080/ads-uimanager/services/ADS-QDT-
0.2.xsd
'D2D4D54F-B6D9-2542-18E4-F794EEAA824F' producer acknowledge 
of 'C22A60E4-9FAA-DE9B-83BB-F794F6C8EB68'.
'D2D4D54F-B6D9-2542-18E4-F794EEAA824F' producer fault for 'C22A60E4-
9FAA-DE9B-83BB-F794F6C8EB68'.
'D2D4D54F-B6D9-2542-18E4-F794EEAA824F' producer acknowledge 
of 'DB79A5AE-1AA8-9904-6EE8-F794F6F787DF'.
'D2D4D54F-B6D9-2542-18E4-F794EEAA824F' producer fault for 'DB79A5AE-
1AA8-9904-6EE8-F794F6F787DF'.



Does anyone know what's going on? It sounds like it's failing in one 
of the imported schema files, but I don't see anything wrong with it 
using XMLSpy. Thanks in advance for all the help.

-Thu




RE: [flexcoders] Re: Tooltip in itemeditor of datagrid BUG or... WIsh...

2007-06-04 Thread Alex Harui
Tried FireFox and IE on WinXP.  I don't lose focus when the tooltip pops
up.

 

Can you post this on a server?  Then others can quickly see if they can
repro your situation.

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of nxzone
Sent: Monday, June 04, 2007 10:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Tooltip in itemeditor of datagrid BUG or...
WIsh...

 

This is working but is not exacly what i'm doing... I want to find why
my code is not working...

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Harish Sivaramakrishnan
[EMAIL PROTECTED] wrote:

 are you looking at something like this?
 http://flexgeek.wordpress.com/2007/06/04/tips-tricks-itemeditors-iii/
http://flexgeek.wordpress.com/2007/06/04/tips-tricks-itemeditors-iii/ 
 
 On 6/3/07, Alex Harui [EMAIL PROTECTED] wrote:
 
  Tried it in hotfix2, tooltip came up and editor did not lose focus.
  Which player, browser, os?
 
 
  --
 
  *From:* flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] *On
  Behalf Of *nxzone
  *Sent:* Friday, June 01, 2007 12:08 PM
  *To:* flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
  *Subject:* [flexcoders] Re: Tooltip in itemeditor of datagrid BUG
or...
  WIsh...
 
 
 
  Enter more then 10 character in the email and rollover the
textinput :)
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
  layout=absolute
  mx:XMLList id=employees
  employee
  nameChristina Coenraets/name
  email[EMAIL PROTECTED] ccoenraets%40fictitious.com/email
  /employee
  /mx:XMLList
  mx:Component id=actionbt 
  mx:TextInput text= creationComplete=doInit()
  mx:Script
  ![CDATA[
  import mx.validators.StringValidator;
  public var validator:StringValidator= new StringValidator();
 
  private function doInit():void {
  validator.source= this
  validator.maxLength=10
  validator.property=text;
  validator.trigger=this;
  validator.triggerEvent =change;
  validator.validate();
  }
  ]]
  /mx:Script
  /mx:TextInput
  /mx:Component
  mx:DataGrid id=dg y=200 editable=true width=100%
  height=100% rowCount=5 dataProvider={employees}
  mx:columns
  mx:DataGridColumn dataField=name headerText=Name/
  mx:DataGridColumn dataField=email headerText=Email
  itemEditor={actionbt}/
  /mx:columns
  /mx:DataGrid
 
 
  /mx:Application
 
  
 


 



[flexcoders] Re: Using the Flex Builder search to navigate through my asdoc docs

2007-06-04 Thread nunomorgadinho
--- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Monday 04 Jun 2007, nunomorgadinho wrote:
  Error: could not find source for class mx.validators:ZipCodeValidator
  in namespace http://framework.
 
 If only there was a way to --exclude-dependencies and then give a list 
 of --doc-classe eh ?

This also doesn't work. I don't want to have to specify the classes
with --doc-classes since I want all of them. I'm sorry if I'm missing
something... here's the command I used

asdoc.exe -source-path frameworks -namespace http://framework
frameworks/core-framework-manifest.xml -doc-namespaces
http://framework -exclude-dependencies -exclude-classes ZipCodeValidator

and the error:

Error: could not find source for class mx.validators:ZipCodeValidator
in namespace http://framework.



[flexcoders] HorizontalList shows image place holder instead of image

2007-06-04 Thread Nathan Arizona
The code below shows that there are two image tags and one horizontal
list.  The image tags show the images but the the horizontalList does
not.  Can anyone see what I am doing wrong.

Just an FYI.  I am using an example from the flex documenatation. 
Prior to this the HorizontalList was using the same ArrayCollection
that the images are using for a source.  I was getting the same result.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=init()
mx:Script
![CDATA[
import mx.controls.Image;
import mx.collections.ArrayCollection;
import mx.collections.ListCollectionView;
[Bindable]
[Embed(source=C:/Documents and Settings/nathan/My 
Documents/Flex
Builder 2/nmx/com/golfclubadmin/assets/encoder.png)]
public var encoderClass:Class;
[Bindable]
[Embed(source=C:/Documents and Settings/nathan/My 
Documents/Flex
Builder 2/nmx/com/golfClubadmin/assets/audio.png)]
public var audioClass:Class;
[Bindable]
private var graphicList:ArrayCollection;
public static var cat:Array;

public function init():void {
cat = [new audioClass(), new encoderClass()];
graphicList = new ArrayCollection(cat);
/* hl.dataProvider = graphicList; */
}

]]
/mx:Script
mx:Panel title=HorizontalList Control Example height=75%
width=75% 
paddingTop=10 paddingBottom=10 paddingLeft=10
paddingRight=10
mx:HorizontalList columnWidth=100 rowHeight=100 id=hl 
x=10
y=30 
mx:dataProvider
mx:Array
mx:Object label=audio Source 
icon={audioClass}/
mx:Object label=Encoder 
icon={encoderClass}/
/mx:Array
/mx:dataProvider
mx:itemRenderer
mx:Component
mx:Image width=50 height=50/
/mx:Component
/mx:itemRenderer
/mx:HorizontalList
mx:Image id=aud x=0 y=100 width=50 height=50
source={graphicList.getItemAt(0)}/
mx:Image id=enc x=0 y=160 
source={graphicList.getItemAt(1)}/
/mx:Panel
/mx:Application




[flexcoders] Not able to use Colortransform on a Sprite in my Component

2007-06-04 Thread Webdevotion

Hello,

I'm not able to use Colortransform on a sprite in my AS only component.
I read a post from a while ago in the archives.  It stated that you could
run into problems when you use graphics.beginstyle(0xFF).
I changed my color to 0xEFEFEF, but am still not able to use the
colortransform.



private function tweenColor ( o : ColorObject ) : void
{
  var c : ColorTransform = fill.transform.colorTransform;
  c.color = 0xff;
  trace(c.color); // traces 16711680
  c.redOffset = 255;
  c.greenOffset = 50;
  c.blueOffset = 200;
  fill.transform.colorTransform = c;
  trace(fill.transform.colorTransform.color); // traces 16724680
}


[flexcoders] Re: Tooltip in itemeditor of datagrid BUG or... WIsh...

2007-06-04 Thread nxzone
Humm, i don't know what to say but now is working. I changed nothing
in my code and is working after reinstalling 2 time the hotfix the and
all the flash player with the debuger past SDK in my Flex builder
folder. :( Strange... I hope i was alone on the planet to have this
problem...

--- In flexcoders@yahoogroups.com, nxzone [EMAIL PROTECTED] wrote:

 Not working with the hotfix 2. Doea anyone have try my sample?
 
 --- In flexcoders@yahoogroups.com, nxzone nxzone@ wrote:
 
  My sample is working on your computer ?
  I dont have hotfix2 (download in progress). I try with player 
  9,0,28,0 and  9,0,45,0 on firefox and internet explorer on Windows.
  
  
  --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
  
   Tried it in hotfix2, tooltip came up and editor did not lose focus.
   Which player, browser, os?
   

   
   
   
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On
   Behalf Of nxzone
   Sent: Friday, June 01, 2007 12:08 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: Tooltip in itemeditor of datagrid BUG
or...
   WIsh...
   

   
   Enter more then 10 character in the email and rollover the
 textinput :)
   
   ?xml version=1.0 encoding=utf-8?
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
   http://www.adobe.com/2006/mxml 
   layout=absolute
   mx:XMLList id=employees
   employee
   nameChristina Coenraets/name
   emailccoenraets@ mailto:ccoenraets%40fictitious.com
   /email
   /employee
   /mx:XMLList
   mx:Component id=actionbt  
   mx:TextInput text= creationComplete=doInit()
   mx:Script
   ![CDATA[
   import mx.validators.StringValidator;
   public var validator:StringValidator= new StringValidator();
   
   private function doInit():void { 
   validator.source= this
   validator.maxLength=10
   validator.property=text;
   validator.trigger=this;
   validator.triggerEvent =change;
   validator.validate();
   }
   ]]
   /mx:Script
   /mx:TextInput
   /mx:Component 
   mx:DataGrid id=dg y=200 editable=true width=100%
   height=100% rowCount=5 dataProvider={employees}
   mx:columns
   mx:DataGridColumn dataField=name headerText=Name/
   mx:DataGridColumn dataField=email headerText=Email
   itemEditor={actionbt}/
   /mx:columns
   /mx:DataGrid
   
   
   /mx:Application
  
 





[flexcoders] keeping a drawn line attached to 2 objects

2007-06-04 Thread Clint Tredway
Can anyone point me in the direction in drawing a line between to
objects and then keeping that line attached to each object even during
being dragged around the screen?

Thanks

-- 
I am not a diabetic, I have diabetes
my blog - http://grumpee.instantspot.com/blog


[flexcoders] Dynamic text flow - multicolumn page

2007-06-04 Thread pdflibpilot
I am working on a multicolumn page layout. The goal is to be able to
populate 1-4 columns of page content in a newspaper / magazine article
 type format. I have be successful with 2 column layout and want to do
3 and 4 column as well but before moving forward I want to make sure I
am approaching this the right way.  Here is an outline of my current
process with an invitation to offer any comments or suggestions

1. Content is received from database (CMS).

2. VBox is created as a column container

3. For each block of content containing Image (optional) and
richText 1 - n lines a new VBox child is added and content added to
it. 'render' eventListener added to the VBox.

4. When rendered the content height is measured , calculation is made
as to what content should go where and content is repopulated into
colA colB so that it effectively wraps from A to B.

5. Any leftover content, not fitting colB, is displayed within this
same layout using a continued button that repopulates colA, colB
with remaining content.

Is there a way to accomplish the same objective without resorting to
the rendering the content twice in order to do the metrics ? 

I am looking for suggestions on what would be a more technical sound
approach and allow for implementation of effects



[flexcoders] Setting soundTransform on VideoDisplay

2007-06-04 Thread aicfan4
I have a component that uses the VideoDisplay class to play a video. 
It is added to my component in it's constructor as follows:

/* --- VideoContent.as --- */

import mx.containers.HBox;
import mx.controls.VideoDisplay;

public class VideoContent extends HBox {

  private var vid:VideoDisplay;

  /**
   * options.filename contains URL to the FLV to play
   */
  public function VideoContent(options:Object) {
super();

width = options.width;
height = options.height;

vid = new VideoDisplay();
vid.autoPlay = vid.autoRewind = false;
vid.maintainAspectRatio = true;
vid.source = options.filename;
vid.width = width;
vid.height = height;

addChild(vid);
  }

}

/* === VideoContent.as === */

The video is playing correctly, stopping/starting when I want, etc.,
but one of the FLVs I'm trying to load only plays out of the left channel.

I've tried setting the appropriate properties on the soundTransform of
the VideoDisplay, but it still only plays on the left channel.  Is
there another way to control the sound of a VideoDisplay that I'm missing?

What I tried was (in the contructor):

  ...
  vid.height = height;

  vid.soundTransform.pan = 0;
  vid.soundTransform.leftToRight = 1;



RE: [flexcoders] HorizontalList shows image place holder instead of image

2007-06-04 Thread Alex Harui
It looks like you made a custom renderer that just has an Image.  Image
doesn't know how to look for an icon property in the dataprovider.
You might try customizing the .data setter.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nathan Arizona
Sent: Monday, June 04, 2007 11:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HorizontalList shows image place holder instead of
image

 

The code below shows that there are two image tags and one horizontal
list. The image tags show the images but the the horizontalList does
not. Can anyone see what I am doing wrong.

Just an FYI. I am using an example from the flex documenatation. 
Prior to this the HorizontalList was using the same ArrayCollection
that the images are using for a source. I was getting the same result.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml 
layout=absolute creationComplete=init()
mx:Script
![CDATA[
import mx.controls.Image;
import mx.collections.ArrayCollection;
import mx.collections.ListCollectionView;
[Bindable]
[Embed(source=C:/Documents and Settings/nathan/My Documents/Flex
Builder 2/nmx/com/golfclubadmin/assets/encoder.png)]
public var encoderClass:Class;
[Bindable]
[Embed(source=C:/Documents and Settings/nathan/My Documents/Flex
Builder 2/nmx/com/golfClubadmin/assets/audio.png)]
public var audioClass:Class;
[Bindable]
private var graphicList:ArrayCollection;
public static var cat:Array;

public function init():void {
cat = [new audioClass(), new encoderClass()];
graphicList = new ArrayCollection(cat);
/* hl.dataProvider = graphicList; */
}

]]
/mx:Script
mx:Panel title=HorizontalList Control Example height=75%
width=75% 
paddingTop=10 paddingBottom=10 paddingLeft=10
paddingRight=10
mx:HorizontalList columnWidth=100 rowHeight=100 id=hl x=10
y=30 
mx:dataProvider
mx:Array
mx:Object label=audio Source icon={audioClass}/
mx:Object label=Encoder icon={encoderClass}/
/mx:Array
/mx:dataProvider
mx:itemRenderer
mx:Component
mx:Image width=50 height=50/
/mx:Component
/mx:itemRenderer
/mx:HorizontalList
mx:Image id=aud x=0 y=100 width=50 height=50
source={graphicList.getItemAt(0)}/
mx:Image id=enc x=0 y=160 source={graphicList.getItemAt(1)}/
/mx:Panel
/mx:Application

 



[flexcoders] Re: Defining a dynamic UI

2007-06-04 Thread phall121
A very similar issue is now raised in a new thread: Selecting which 
Child Components to add at runtime  ...how to define dynamic children.

--- In flexcoders@yahoogroups.com, gary_mangum [EMAIL PROTECTED] wrote:

 Thanks for the great responses!
 
 I see 2 great options here:
 
 - Place my array of components that might be needed into a 
container
 and change the creationPolicy to NONE.  Then create



[flexcoders] Landscape printing in Flex

2007-06-04 Thread archtechcomputers
Is there anyway to define landscape to the printer?

I am working on a project that I need to print a single page that is in 
landscape.  I've created a component that is 800 x 600, the print job 
adds that component as an print object and sends.  If under the system 
printer dialog box, I don't choose landscape, it won't print out 
properly.  I've tried rotating the object 90 degrees during the print 
process and no luck.

Any suggestions?

thanks




[flexcoders] Selecting which Child Components to add at runtime

2007-06-04 Thread phall121
I want to add views to a ViewStack at runtime by selecting from an 
expanding table of Custom Components.

As the simplified code below shows, I can figure out how to add any 
one and hard code it.  But the addChild method of the ViewStack 
seems to require that you know ahead of time which component you 
want to add.  I can not find in the docs or online a way to make 
this dynamic.

In other words, when I define the new component view to add to the 
view stack 
{
var canCustView:Comp1 = new Comp1();
canCustView.label = Custom  + cbCompList.selectedItem.label;
vsComps.addChild(canCustView);
}
...I want to choose at runtime whether to instantiate views from 
Comp1, Comp17, or Comp53, etc.

Any ideas how to accomplish this?  Thanks for your thoughts!

Here is the simplified code.  


mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute
xmlns:comp=components.*

mx:Script
![CDATA[
import components.*;

private function fAddView():void
{
  var canHardView:TestComp = new TestComp();
  canHardView.label = Hard-Code View2;
  vsComps.addChild(canHardView);
}

private function fAddCustomView():void
{
   var canCustView:Comp1 = new Comp1();
   canCustView.label = Custom  + 
cbCompList.selectedItem.label;
   vsComps.addChild(canCustView);
}

]]
/mx:Script

mx:Button x=25 y=36 label=Add Hard-Coded View
click=fAddView()/

mx:Button x=25 y=68 label=Add Custom Component
click=fAddCustomView()/

mx:ComboBox id=cbCompList x=203 y=67
  mx:dataProvider
mx:Array id=arrCompList
  mx:Object label=Component1 data=Comp1/
  mx:Object label=Component2 data=Comp2/
  mx:Object label=Component3 data=Comp3/
  mx:Object label=Component4 data=Comp4/
  mx:Object label=Component5 data=Comp5/
/mx:Array
  /mx:dataProvider
/mx:ComboBox

mx:TabBar direction=vertical dataProvider={vsComps} 
labelField=app y=108 x=27/

mx:ViewStack id=vsComps width=50% height=50%
x=200 y=108 backgroundColor=#C9

   mx:Canvas id=vView1 label=View1 verticalScrollPolicy=off
horizontalScrollPolicy=off
mx:Label x=68 y=2 width=130 text=Initial View -- 
View 1/
mx:Label id=lblViewName x=68 y=32 width=68 
text=Input:/
mx:TextInput id=txtiInput x=136 y=32/
   /mx:Canvas
/mx:ViewStack

/mx:Application






[flexcoders] AS3 decorator pattern examples

2007-06-04 Thread duncmcm
I've been reading Advanced AS3 with design patterns and wish to get my 
hands on an example of a decorator pattern in AS3. The one in this book 
I have tried but doesn't seem to work.

Without initially posting my code has anyone out there got a tried and 
tested AS3 decorator pattern example I could look at?

Thanks 

Duncan 



Re: [flexcoders] Landscape printing in Flex

2007-06-04 Thread Jurgen Beck

Look at the PrintJobOrientation class and see if that helps:

http://livedocs.adobe.com/flex/2/langref/flash/printing/PrintJobOrientation.html

Jurgen

archtechcomputers wrote:


Is there anyway to define landscape to the printer?

I am working on a project that I need to print a single page that is in
landscape. I've created a component that is 800 x 600, the print job
adds that component as an print object and sends. If under the system
printer dialog box, I don't choose landscape, it won't print out
properly. I've tried rotating the object 90 degrees during the print
process and no luck.

Any suggestions?

thanks

 


[flexcoders] Re: Custom Attributes

2007-06-04 Thread gary_mangum
This is very similar to what I want to do...so now I need to get the
hotfix installed...did you see my other post...any idea why the hotfix
installer will not work for me or any of my team?

I also tried unzipping the zip version of the hotfix.  This did not
update anything of my version numbers that are seen in the help menu.
 How do I know if the hotfix is installed?  The problem that I am
hoping it fixes is still not working.






--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 SomeClass id=sc selectedIndex={SomeClass.ID2} 
 
 dataProvider
 
 mx:StringAlpha/mx:String
 
 mx:StringBeta/mx:String
 
 mx:StringGamma/mx:String
 
 /dataProvider
 
 /SomeClass
 
  
 
 Where:
 
  
 
 package
 
 {
 
 import mx.controls.ComboBox;
 
  
 
 public class SomeClass extends ComboBox
 
 {
 
 
 
 public static const ID1:int = 1;
 
 public static const ID2:int = 2;
 
 public static const ID3:int = 3;
 
 
 
 public function SomeClass()
 
 {
 
 super();
 
 }
 
 
 
 }
 
 }
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of gary_mangum
 Sent: Monday, June 04, 2007 9:52 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Custom Attributes
 
  
 
 I just tried this with hotfix 2 and it did not work any differently
 for me. Can you point me to the example that you saw working so that
 I can try it?
 
 Also, how can I verify that I have hotfix 2 installed? The windows
 installer was not working (see my other post) so I ended up unzipping
 the zip hotfix 2 instead.
 
 Gary
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  I saw an internal discussion that there may have been a bug. I tried a
  similar example in hotfix 2 and it worked for me so upgrade to hotfix
 2
  and give it a try there.
  
  
  
  -Alex
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of gary_mangum
  Sent: Saturday, June 02, 2007 6:48 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] Re: Custom Attributes
  
  
  
  So, can something like this be done or not? I want to define a bunch
  of constant values and pass them in as the value for a custom
  attribute. Can I do this? I don't want to hard code these values.
  
  Thanks!
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  , Alex Harui aharui@ wrote:
  
   There used to be warnings. I can't recall if we've gotten around
 them
   yet, but you still might be getting hit up by some initialization
  thing.
   Try looking in your trace output, it might be a runtime warning.
   
   
   
   Also dump out the value of that constant at various time. It might
   start out 0 and gets set to 2 during component instantiation.
   
   
   
   
   
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
  ] On
   Behalf Of gary_mangum
   Sent: Friday, June 01, 2007 3:33 PM
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
   Subject: [flexcoders] Re: Custom Attributes
   
   
   
   Thanks for your response!
   
   I am not getting any compiler errors...should I be? Is it illegal to
   assign constant values to an attribute?
   
   I am trying to create an attribute that is an integer mask and
 then
   use OR-ed together constants to pass in and set the attribute? Isn't
   this possible?
   I'd hate to hard code all of my attribute values to magic numbers if
   it is possible to use constants instead for readability and
   maintainability.
   
   In my example, myComponent.xml is the class, not MyComponent. 
   
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
   , Alex Harui aharui@ wrote:
   
Aren't you getting compiler warnings about binding to statics?



What is myComponent? MyComponent is the class, but
 myComponent
must be something else?





From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com
  

Re: [flexcoders] Automatically Cast CF Arrays to Flex ArrayCollections?

2007-06-04 Thread Douglas Knudsen

Check out this
http://www.cubicleman.com/2007/02/13/coldfusion-and-flex-composite-cfcs-and-arrays/
I wrote a blog post about this a bit back.

DK

On 6/4/07, jamckinn2001 [EMAIL PROTECTED] wrote:


  Is there an automatic way to cast a variable in a custom object as
ArrayCollection from a CFC service call? How about nested
ArrayCollections also? Something like how cfquery automatically casts.

Below is an example of custom objects where the AS classes are mapped
via RemoteClass to the CFCs (built with the CF Wizard). I would like
to do a simple assignment like var myAccount:Account = new Account(
event.result );

AS Classes:
package vo
{
[RemoteClass(alias=com.theSite.Account)]

[Bindable]
public class Account {
public var id:Number = 0;
public var name:String = ;
public var orders:ArrayCollection = null; //order objects
}
}
package vo
{
[RemoteClass(alias=com.theSite.Order)]

[Bindable]
public class Order {
public var id:Number = 0;
public var total:Number = 0;
public var orderDate:Date = null;
}
}

CFCs on Server:
cfcomponent output=false alias=com.theSite.Account
cfproperty name=id type=numeric default=0
cfproperty name=name type=string default=
cfproperty name=orders type=Array default=Order[]
...

/cfcomponent

cfcomponent output=false alias=com.theSite.Order
cfproperty name=id type=numeric default=0
cfproperty name=total type=numeric default=
cfproperty name=orderDate type=date default=
...

/cfcomponent

Thanks

 





--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


[flexcoders] CDATA and E4X

2007-06-04 Thread Jesse Warden
How do I use CDATA with E4X?

Reading CDATA nodes is easy.  Sending, however, is hampered by the
fact that I cannot use binding within CDATA nodes, and all text is URL
encoded.

So, if I do this:

username = Jesse;
lastname = Warden;

nodes
   node{username}/node
   node![CDATA[{lastname}]]/node
/nodes

It'll look like this:

nodes
   nodeJesse/node
   node![CDATA[{lastname}]]/node
/nodes

If I try assembling manually, it still URL encodes it:

var request:XML = request
moo
gooHello/goo
pan3/pan
/moo
/request;
var sup:String = sup dog;
var s:String = ![CDATA[;
s += sup;
s += ]];
request.moo.appendChild(gai{s}/gai);
trace(request);

This is a problem because I'm sending a URL through E4X with URL
parameters, and it's encoding it twice; basically, my  are becoming
amp;.

I asked the server guy to just let me send this particular value as an
attribute so we could move on, but... no dice, my problem.

???


[flexcoders] Custom Easing Function Explorer

2007-06-04 Thread ddanone2
You can make your custom easing function to apply on effects at 

http://www.madeinflex.com/2007/06/03/custom-easing-function-explorer/

simple but usefull.

Cheers





Re: [flexcoders] CGRM :: ServiceLocator :: Modules - how to share

2007-06-04 Thread Frode

Hi

I had the same problem and solved it my creating a ModuleServiceLocator
which extends the ServiceLocator. Probably not the best coding, but it works
(and for simplicity I user external apps, not modules). There are one main
ModuleServiceLocator, and each other module has their own ModuleServices
which the module registeres and unregisteres on the common
ModuleServiceLocator. Each module/application has their own unique key, so
you wont get any naming collisions.

More about the solution and download the code here: 
http://flexcoding.blogspot.com/2007/06/cairngorm-extension-moduleservicelocato.html



Michael Schmalle wrote:
 
 Hi,
 
 I have a question here I have tried to resolve myself but, I am interested
 in opinions.
 
 Using the new modules algorithm. In my mind I have
 
 Application (shell)
 
  - LoginModule
  - ProjectModule
  - ASDocModule
  - DocumentModule
  - WikiModule
 
 Imagine the 'Application' is a desktop, where you start a program and that
 is a module. It seems to me in this new design pattern, using a
 FrontController for the whole application seems ludicrous. I mean, this is
 set up like we don't really even know what is going to be loaded into this
 desktop, except that we have defined interfaces for what DOES load into
 it.
 
 The ServiceLocator is a singleton, so if you have a service locator
 defined
 in the 'Application' what should I do with the modules that have their own
 dependent service that have nothing to do with the shell application?
 
 I know their are established methodologies out their but, we all know
 things
 must change and I think the current pattern in crgrm is to limiting for an
 application that delegates most of it's processes to module that are
 actually self executing encapsulated ententes themselves.
 
 I have come up with some ideas that actually work but, I ran into a
 problem
 with the service locator. I have each module create a FrontController,
 these
 sub controllers register their commands to the ApplicationController
 through
 interface( no coupling here).
 
 I can't get more specific but, if anyone wants to start a quick
 conversation
 about this and modules, I could maybe get more explicit.
 
 Peace, Mike
 
 
 -- 
 Teoti Graphix
 http://www.teotigraphix.com
 
 Blog - Flex2Components
 http://www.flex2components.com
 
 You can find more by solving the problem then by 'asking the question'.
 
 

-- 
View this message in context: 
http://www.nabble.com/CGRM-%3A%3A-ServiceLocator-%3A%3A-Modules---how-to-share-tf3081019.html#a10957757
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] Landscape printing in Flex

2007-06-04 Thread Mike Weiland
Unfortunelty there is no way to set the orientation, it is read only. What I do 
for http://www.CertificateCreator.com/ is when someone prints is to tell them 
to set their printer to landscape. Once the print job is processed I check the 
orientation and if it was not set to landscape I alert them that their printer 
was not in landscape mode and for full page printing they need to set their 
orientation to landscape.

This has been one of my requests since printing was added to Flash 4.

Good luck,

Mike Weiland
 
Original Message ---
Is there anyway to define landscape to the printer?

I am working on a project that I need to print a single page that is in 
landscape.  I've created a component that is 800 x 600, the print job 
adds that component as an print object and sends.  If under the system 
printer dialog box, I don't choose landscape, it won't print out 
properly.  I've tried rotating the object 90 degrees during the print 
process and no luck.

Any suggestions?

thanks



RE: [flexcoders] Style Manager

2007-06-04 Thread Gordon Smith
Each call to laodStyleDeclarations() starts an asynchronous loading
process which completes at some time in the future. Could the problem be
that they aren't completing in the order they start?
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pateyog
Sent: Monday, June 04, 2007 7:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Style Manager



I am trying to use the run-time CSS using StyleManager and am getting
bizzare behavior when loading multiple css files. My code looks
something like 

StyleManager.loadStyleDeclarations(styles/core.swf);
//Add the service specific styles from the argument passed
StyleManager.loadStyleDeclarations(styles/RegistrationForm.swf);
//Add the locale and brand specific styles
StyleManager.loadStyleDeclarations(styles/en/custom.swf);
StyleManager.loadStyleDeclarations(styles/en_US/custom.swf);
StyleManager.loadStyleDeclarations(styles/en_US/brand1/custom.swf);

What happens when I run this is the cascading effect from these
compiled CSS files does not happen. Keep hitting refresh and once a
while it will work. 

Thanks in advance for suggesting an appropriate solution.



 


[flexcoders] Re: DataGrid edits with XMLListCollection dataprovider

2007-06-04 Thread arieljake

Thank you very much for the help! Here is what I wrote to solve this
problem:

private function handleItemEdit(event:DataGridEvent):void
{
event.preventDefault();

var itemData:XML = event.itemRenderer.data as 
XML;
var newData:Object =
itemEditorInstance[this.columns[event.columnIndex].editorDataField];

itemData.setChildren(newData);

this.destroyItemEditor();
}

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 The DG default code assumes that you are pulling properties for display
 and stuffing them on edit.  Your label functions are not simply property
 pullers so you'll need to customize an ITEM_EDIT_END handler, call
 preventDefault() and stuff it yourself.
 
  
 
 -Alex
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of arieljake
 Sent: Thursday, May 31, 2007 10:53 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: DataGrid edits with XMLListCollection
 dataprovider
 
  
 
 Update:
 
 I do not think this is something to be done with ItemRenderer or 
 ItemEditor. I have tracked this to the DataGrid itself. There is a 
 line there that says:
 
 data[property] = newValue;
 
 This leads to entries in the data like:
 
 fields
 field1
 textmy new value/text
 /field1
 /fields
 
 when the dataField=text
 
 OR
 
 fields
 field1
 nullmy new value/null
 /field1
 /fields
 
 when the dataField is empty.
 
 Text is not a property of an XML object, so there is no setter. And 
 setChildren does not work as a property, only a method.
 
 How else can one get the DataGrid to save the data like:
 
 fields
 field1my new value/field1
 /fields
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , Ariel Jakobovits arieljake@ 
 wrote:
 
  I have this file:
  
  fields
  field1value1/field1
  field2value2/field2
  /fields
  
  output in these columns:
  
  mx:columns
  mx:DataGridColumn headerText=Field width=100 
 editable=false labelFunction=getFieldLabel /
  mx:DataGridColumn headerText=Value editable=true 
 labelFunction=getValueLabel /
  /mx:columns
  
  with these label functions:
  
  private function getFieldLabel(data:Object, 
 column:DataGridColumn):String
  {
  return XML(data).localName().toString();
  }
  private function getValueLabel(data:Object, 
 column:DataGridColumn):String
  {
  return XML(data).text().toString();
  }
  
  Question: if I want to edit the value column, how do I set the text
 () property of an XML node?
 





[flexcoders] Remoting - Authentication and authorization with Acegi

2007-06-04 Thread Collin Peters
Does anyone have any remoting (i.e. RemoteObject) examples of how to
do authentication and authorization with Acegi?  I have been reading
the LiveDocs on securing destinations at
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=ent_services_config_097_15.html,
but this provides no clues as to how it would work with Spring
security (acegi).

Collin


[flexcoders] Convert project to Data Services

2007-06-04 Thread Scott Hoff
If you set up a project as basic, can you change it so that it can use
flex data services? I'm hitting a brick wall with the Web Service
tutorial in the training from the source book. I'm using it in basic
mode and am wondering if I'm getting my error b/c I'm not using the
FDS proxy.



  1   2   >