[flexcoders] Re: How to create a fault in FDS?

2007-02-01 Thread benjidudu
Tom and Jeff, thank you very much. It works without a glitch.

Is this documented somewhere? I looked for it for a while without
finding it.
This brings me to the FDS documentation. I think the Flex
documentation is very well done and detailed. But the FDS
documentation is quite the opposite. It seems to me there is only the
minimum we need to know and everything is scattered in the Flex
documentation.
I would personally prefer a separate doc with detailed explanations on
the Java side.

Benjamin.


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

 You can just throw a RuntimeException from your fill method (or whatever
 server side method that FDS is calling).  That turns into a fault event
 on the client.  If you are using FDS's LoginCommand interface, you can
 just have your login method return a Principal that does not support the
 roles defined by the security constraints you attach to your
 destination's configuration.  This is a declarative approach when you
 simply need to ensure a user has a given role when performing an
 operation.
 
  
 
 Jeff
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of benjidudu
 Sent: Wednesday, January 31, 2007 3:23 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] How to create a fault in FDS?
 
  
 
 I have a fill which is called with a parameter. The user login is
 passed and I check the login in the DAO. What I would like is to
 create a fault event to return to Flex if the login does not pass my
 checks.
 
 Is there a way to do this?
 
 Benjamin.





[flexcoders] Move effect with lager images- flickering images

2007-02-01 Thread maikelsibbald
I've got a HBox with number(about 10) of images (375x200). For some
reason the images are flickering. It's really anoying.

I'm changing they x-property and let the moveEffect handle the rest,
for some reason it really looks weird.

mx:HBox id=preview_container2 
height=100% 
horizontalGap=35 
paddingTop=30 
paddingLeft=30 
paddingRight=30 
moveEffect=previewMove
mx:Repeater id=preview_rpt
dataProvider={mediaTestHelper.galleryDataArray}
controls:PreviewHolder 
data={preview_rpt.currentItem}/
/mx:Repeater
/mx:HBox



Re: [flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?

2007-02-01 Thread Tom Chiverton
On Wednesday 31 Jan 2007, Ted Patrick wrote:
 simplistic but if the login response was that there was 'no user', you
 could prompt the user to 'register', then 'login', then 'getUsers'. It

Maybe you are just picking bad examples of what you are trying to do with 
parsing error messages, but best practice is only to ever return true/false 
from login methods to avoid leaking account details.

-- 
Tom Chiverton
Helping to dynamically integrate low-risk web-readiness



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: How to create a fault in FDS?

2007-02-01 Thread Steve Cox
Agreed. I'm struggling to find real-world examples of using FDS + JAVA.
There's plenty of 1 datagrid - 1 form examples, but nothing more
meaningful.
 
Steve
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of benjidudu
Sent: 01 February 2007 09:01
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to create a fault in FDS?
 
Tom and Jeff, thank you very much. It works without a glitch.

Is this documented somewhere? I looked for it for a while without
finding it.
This brings me to the FDS documentation. I think the Flex
documentation is very well done and detailed. But the FDS
documentation is quite the opposite. It seems to me there is only the
minimum we need to know and everything is scattered in the Flex
documentation.
I would personally prefer a separate doc with detailed explanations on
the Java side.

Benjamin.

--- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com, Jeff Vroom [EMAIL PROTECTED] wrote:

 You can just throw a RuntimeException from your fill method (or
whatever
 server side method that FDS is calling). That turns into a fault event
 on the client. If you are using FDS's LoginCommand interface, you can
 just have your login method return a Principal that does not support
the
 roles defined by the security constraints you attach to your
 destination's configuration. This is a declarative approach when you
 simply need to ensure a user has a given role when performing an
 operation.
 
 
 
 Jeff
 
 
 
 
 
 From: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com [mailto:[EMAIL PROTECTED]
mailto:flexcoders%40yahoogroups.com ups.com] On
 Behalf Of benjidudu
 Sent: Wednesday, January 31, 2007 3:23 AM
 To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com
 Subject: [flexcoders] How to create a fault in FDS?
 
 
 
 I have a fill which is called with a parameter. The user login is
 passed and I check the login in the DAO. What I would like is to
 create a fault event to return to Flex if the login does not pass my
 checks.
 
 Is there a way to do this?
 
 Benjamin.

 


Re: [flexcoders] Apollo features

2007-02-01 Thread Tom Chiverton
On Wednesday 31 Jan 2007, Mike Chambers wrote:
 I think the scenario you described below would be possible without
 having to launch an EXE 

Well, yes, if mailto: HREF's are supported, but we may also want to fire up 
VoIP interface apps etc. etc.

 (although I would have to think about the pull 
 the app off your website).


I'm sure there was a quote about being able to drag applications of web sites 
onto desktops. Maybe I mis-remember and it was dragging local files onto a 
web-based Apollo app.

-- 
Tom Chiverton
Helping to continually create industry-wide segments



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] AS variables at the top level of a package

2007-02-01 Thread Tom Chiverton
On Thursday 01 Feb 2007, Stembert Olivier (BIL) wrote:
 package
 {
   class Test
   {
   }
 }

 var var1 : String;

 public function dummy():void{}
..
 I don't understand why I got the compilation error since I have only one
 declaration with the public attribute.
 duly signed. -

Think about it - which object is your new public method a method on ?

-- 
Tom Chiverton
Helping to evangelistically synergize edge-of-your-seat models



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] Move effect with lager images- flickering images

2007-02-01 Thread Brian Dunphy
Ely over at QuietlyScheming.com just created a SuperImage component
which I believe fixes the issue you're experiencing.

http://www.quietlyscheming.com/blog/2007/01/23/some-thoughts-on-doubt-on-flex-as-the-best-option-orhow-i-made-my-flex-images-stop-dancing/

Cheers,

Brian

On 2/1/07, maikelsibbald [EMAIL PROTECTED] wrote:






 I've got a HBox with number(about 10) of images (375x200). For some
  reason the images are flickering. It's really anoying.

  I'm changing they x-property and let the moveEffect handle the rest,
  for some reason it really looks weird.

  mx:HBox id=preview_container2
  height=100%
  horizontalGap=35
  paddingTop=30
  paddingLeft=30
  paddingRight=30
  moveEffect=previewMove
  mx:Repeater id=preview_rpt
  dataProvider={mediaTestHelper.galleryDataArray}
  controls:PreviewHolder data={preview_rpt.currentItem}/
  /mx:Repeater
  /mx:HBox

  


-- 
Brian Dunphy


[flexcoders] Re: IFrame issue with settings menu

2007-02-01 Thread cheftimbob
bump

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

 I have an application that uses and IFrame to display images and word 
 docs as well as PDFs.
 
 If I right click on the application somewhere, not on the IFrame, and 
 select the settings menu, there application freezes. I think it's 
 because of the modal window that the menu selection is brining up. 
 
 Has anyone seen this or found a workaround?





Re: [flexcoders] Re: IFrame issue with settings menu

2007-02-01 Thread Sam Shrefler

I haven't seen this specific issue, but I also haven't tried to do it.  I
have seen issues with Cntrl+Click in firefox not being able to make mulitple
selections in list components and also wheel mouse functionality not
working.  I believe these are all WMODE issues that have not yet been
resolved.  Hopefully HTML Support from Apollo will make its way into a
future version of Flex and also WMODE issues will be fixed cross browser.

Sam


On 2/1/07, cheftimbob [EMAIL PROTECTED] wrote:


  bump

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

 I have an application that uses and IFrame to display images and word
 docs as well as PDFs.

 If I right click on the application somewhere, not on the IFrame, and
 select the settings menu, there application freezes. I think it's
 because of the modal window that the menu selection is brining up.

 Has anyone seen this or found a workaround?






RE: [flexcoders] Re: Flex 2 HTTPService best practices

2007-02-01 Thread Ian Shafer
Thank you all for the great help. I can't tell you how much I appreciate
it.

One note. I mentioned the command line debugger in my initial post. I
got this working in linux (Ubuntu 6.10). I had to manually install the
flashplayer executable from the Adobe website (I couldn't find it in the
SDK) and I also linked gflashplayer to flashplayer so the debugger (fdb)
would work.

Ian

On Wed, 2007-01-31 at 17:45 -0500, Tracy Spratt wrote:
 I have never been comfortable with the “black box” conversion from xml
 to mx:Object.  I went with xml in 1.5 and am delighted with e4x.  I
 read the post above on XMLEncode with interest and plan to look at
 that, but since I hav so far been in control of both ends, the data
 type problems has not been an issue.
 
  
 
 You should know about AsyncToken and the ACT pattern.  It lets you
 match up results to the corresponding data call, so you can decide how
 to porcess the result.  You can even define a handler function, which
 I think is known as “closure”.  More info is availble on all this.
 
  
 
 Tracy
 
  
 

 __
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of Chris Luebcke
 Sent: Wednesday, January 31, 2007 3:48 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Flex 2 HTTPService best practices
 
 
  
 
 So I tried setting the resultFormat to object for a service that
 returns a fairly deep XML structure. I found that it did a pretty good
 job of mapping the text nodes to the correct types (Boolean, String
 and Number); it didn't map 2006-11-17 to a Date, but hey, you can't
 be all things to all people.
 
 Anybody else out there have experience with resultFormat=object? Is
 there any documentation that specifically describes how the object
 graph is put together and what the text-node-to-object rules are? I
 suppose I could go look at the source code, but figured I might as
 well ask around first.
 
 Thanks,
 Chris
 
 --- In flexcoders@yahoogroups.com, Chris Luebcke [EMAIL PROTECTED]
 wrote:
 
  Hi Ian, I'm using XML over HTTPService in my current app and may be
  able to help with some of this. Responses inline below.
  
  --- In flexcoders@yahoogroups.com, Ian Shafer ian@ wrote:
   ...regarding using HTTPService:
   
   * Should I be using it? I'm choosing to use HTTPService because I
 don't
   want to pay for FDS and it (HTTPService) *seems* simple so that if
 there
   are problems, I could easily be able to fix them (as opposed to
 using
   FDS and Adobe's proprietary encoding). Also, XML over HTTP is
 simple and
   always works. Hooking up remote objects just seems like a pain.
  
  The answer to that question ultimately comes down to your specific
  project needs, of course. I'm not using FDS (for the usual reasons),
  and there doesn't appear to be an open-source (or otherwise really
  cheap) alternative to using AMF3 to communicate to a Java backend.
 So
  that really leaves some flavor of XML over HTTP as the raw message
  language and protocol. We deliberated between SOAP, REST and
 homegrown
  XML message protocols, and ultimately settled on homegrown for a
  variety of reasons I won't bore you with. Again, it really depends
 on
  your specific needs, but so far our solution is shaping up very
 nicely.
  
   * What is the best resultFormat to use. As far as I can tell,
 there are
   three: object, e4x, and xml. The xml format seems obsolete since
 we now
   have e4x. Is there any reason to use xml? I get e4x (pretty sweet,
 I
   think this is a *great* language feature). The only drawback I've
 found
   so far is the datatype of e4x values. They all seem to be Strings.
 I get
   this, but I wonder if there's an easy way to say all @quantity
 fields
   are numeric so it'll sort nice in a DataGrid. object seems cool,
 but
   I'm not 100% clear how it works.
  
  Me neither, frankly. I might consider trying it, though, given that
  there is apparently some basic type casting done when you use this
  format, according to the dev guide:
  
  By default, the resultFormat property value of HTTPService
 components
  and WebService component operations is object, and the data that is
  returned is represented as a simple tree of ActionScript objects.
 Flex
  interprets the XML data that a web service or HTTP service returns
 to
  appropriately represent base types, such as String, Number, Boolean,
  and Date. To work with strongly typed objects, you must populate
 those
  objects using the object tree that Flex creates.
  
   Can I tell HTTPService which class to
   bind the objects to? I don't use Flex Builder (again, I don't like
 to
   pay for software, and I don't have the money), so it's tough to
   introspect the objects at runtime (although I did see something
 about
   command line debugging, I'll have to look into that).
  
  I believe this creates a new graph of objects with dynamically
 created
  properties. I don't 

[flexcoders] Re: tracking a user session

2007-02-01 Thread mthielman11
thanks for the feedback.  We are thinking of some type of object stored and 
passed with 
every HTTP service call.  just not quite sure how to do it.  I will pass this 
along to my 
programmers.  



[flexcoders] Panel and Scrollbars (basic question)

2007-02-01 Thread nwebb

Hi,

I'm sure this is excruciatingly simple but i couldn't find an answer (I must
be searching with the wrong keywords).

I have a Panel.
Inside it is a Text component, and a Repeater underneath that (...repeating
a CheckBox) .
All works fine.

I want to set the maxHeight of the Panel to 200px, so that if I get too
many Checkboxes appearing, my content will scroll vertically.

When I set maxHeight, I get *both* horizontal and vertical scrollbars
appearing - the horizontal scrollbar only appears because the width of the
vertical scrollbar eats in to the Panel width - therefore I get horizontal
scrolling of about 16 pixels.

If I set horizontalScrollbarPolicy to false then my content is still
clipped.
I'm sure I can muster a workaround easily enough (e.g. manually resize Panel
based on ScrollEvent etc), but I thought there surely must be something
in-built and neater, already in place to deal with this kind of scenario?

Any help much appreciated.


RE: [flexcoders] Accessibility and imported components

2007-02-01 Thread Andrew Kirkpatrick
6.0 is really buggy.  I recommend 6.1 or 7.0/7.1.  8.0 is also out but
not quite proven yet.

Other things to look for:
1) don't use anything except wmode=window in the HTML object params.
2) You need to use IE

If those don't help, send me a link and I'll take a look.
AWK

 

 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Jason Goodwin
 Sent: Wednesday, January 31, 2007 2:10 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Accessibility and imported components
 
 I have tried it in both forms mode and virtual cursor modes, 
 in JAWS 6.0.65U.
 
 - J
 
 
 On 1/23/07, Andrew Kirkpatrick  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]  wrote:
 
   Jason,
   The short answer is that it does work. The longer, more 
 useful answer
   requires more information from you about what you've 
 tried, and how you
   are using JAWS (e.g. are you in forms mode or virtual 
 cursor mode)
   
   Thanks,
   AWK
 
   
   
-Original Message-
From: flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com  
[mailto:flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com ] On Behalf Of Jason Goodwin
Sent: Tuesday, January 23, 2007 3:25 PM
To: flexcoders@yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com 
Subject: [flexcoders] Accessibility and imported components

*RE POST (my thread got hijacked)

I have an app with lots of imported components. I can't seem 
to get JAWS to read anything that's not on the main page. I 
have tried several ways of add in the accessibility 
properties to the controls.
Thanks.


   
--
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] Remove a state from a component at run-time ?

2007-02-01 Thread powertool786
I've written a small view-switching component that is based on
mx:Canvas: CanvasSwitcher.

It's set up so that if a child UIComponent is added to it at runtime
(eg: via mx:AddChild in an mx:State), a new mx:State is
automatically added to the CanvasSwitcher instance. 

The added state is also supplied with an eventListener for the
enterState event, such that when the CanvasSwitcher instance's
currentState property is set to be equal to the appropriate child
UIComponent's id property, that UIComponent's visible property
will be set; all others unset.

This works well, looks quite declarative, and has helped to make my
current project's interface quite flexible at runtime.

The problem is that to be truly useful, I need to be able to add a
child, remove it some time later, then re-add it. To do that I need to
be able to remove a state from the CanvasSwitcher via ActionScript.

Can that be done? (I could not see a way in the documentation.)

Is this all too crazy? 

Background:
  I wanted something quite a bit more flexible than the mx:ViewStack
  component. Particularly, I envisage being able to group UIComponent
  instances under additional meta display states, and to re-group
  them on the fly. That seems hard/clumsy with mx:ViewStack.



[flexcoders] AS3 shell

2007-02-01 Thread Mikhail Shevchuk

Is there any shell to play with Action Script 3 like ipython for python or
smth. like that ?
That would be extremely useful for rapid development.

--
A vivid and creative mind characterizes you.


[flexcoders] Determining if there has been any user input on a page

2007-02-01 Thread dean_w_schulze
In Flex is there a way to determine if a user has made any input to any 
control on a page without having to check each individual control?  My 
app. makes use of several TabNavigators with several tabs in each and I 
would like a way to tell which tabs have changes, if any, when the user 
clicks Submit instead of reading the state of every control on every 
page.

What I'm hoping for is something like an uber-event handler that I 
could register every control on a page with, in addition to the 
control's individual event handler.  In the uber-event handler I could 
simply record that something had changed on that page and maybe keep 
track of which controls need to be read on Submit.

Thanks.




[flexcoders] Maven2 + Cairngorm based flex app?

2007-02-01 Thread John Menke
I am trying to use Maven2 with the maven-flex2-plugin to build and
deploy the CairngormStore for Flex 2. 

Has anyone had any success with using Maven with a Cairngorm based
Flex project?  

-john



[flexcoders] web service request population - handling optional data?

2007-02-01 Thread idpjc
Hi,

As the mx:request structure seems to be the place to specify all the
web service elements, can anyone please tell me how this would work
where we could have the situation of optional data?

For example if there was a web service which accepted a number of
previous addresses (say 3) but you only had 2 addresses, what would
the mx:request structure contain (i.e. would you have to specify the
elements three times but leave the the last set of elements with no
data ( in this case would the flex soap message generation
automatically leave out the last address elements as there is no data,
otherwise we could have an issue if the web service receives a empty
[blank] address?).

If anyone has a code example of this situation that would also be
appreciated :)

Thanks,
PhilC 



RE: [flexcoders] Re: Flex applications look like Fisher-Price toys

2007-02-01 Thread Dimitrios Gianninas
Absolutly awesome, great work!
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brian 
Dunphy
Sent: Wednesday, January 31, 2007 10:26 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flex applications look like Fisher-Price toys



VERY nice Dave, you guys do awesome work.

Just curious, did your team use the DistortionEffects library by Alex
Uhlmann to do the CubeRotate effect on the right side panel?

Thanks,

Brian

On 1/31/07, Dave Wolf [EMAIL PROTECTED] mailto:gatorj24%40yahoo.com  wrote:







 For everyone who was interested in seeing more samples of real Flex
 applications and the extent to which you can skin up Flex using all
 the built in features, check out Cynergy TV. The first episode is the
 Flex Showcase and shows a small handful of apps we have built over the
 last year with Flex.

 http://www.cynergysystems.com/blogs/page/davewolf?entry=i_ll_show_you_mine 
 http://www.cynergysystems.com/blogs/page/davewolf?entry=i_ll_show_you_mine 

 http://www.cynergysystems.tv http://www.cynergysystems.tv 
 http://www.cynergytv.com http://www.cynergytv.com 

 CynergyTV itself is a Flex2 as well. We will be hosting many more
 episodes including tutorials, panels, and more samples and examples.

 Cheers,

 --
 Dave Wolf
 Cynergy Systems, Inc.
 Adobe Flex Alliance Partner
 http://www.cynergysystems.com http://www.cynergysystems.com 
 http://www.cynergysystems.com/blogs http://www.cynergysystems.com/blogs 

 Email: [EMAIL PROTECTED] mailto:dave.wolf%40cynergysystems.com 
 Office: 866-CYNERGY


 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
 David Mendels [EMAIL PROTECTED] wrote:
 
  Hello,
 
  Many screenshots of Flex applications here:
  http://www.flickr.com/photos/flexapps/ 
  http://www.flickr.com/photos/flexapps/ 
 
  Many of them look not at all like the out of the box look of Flex.
 
  Regards,
  David
  Adobe
 
 
  
 
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com  
  [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] 
  On
  Behalf Of Shannon Hicks
  Sent: Sunday, January 28, 2007 11:27 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: Re: [flexcoders] Flex applications look like Fisher-Price toys
 
 
 
  Flex 2 has unlimited design potential. You are not limited like you
  think... If a component won't do what you want, you can always re-skin
  it. Here's an example of a Flex site that looks pretty much nothing like
  the standard skin:
 
  http://www.thebetterside.com/scrawl/ScrawlExample3.html 
  http://www.thebetterside.com/scrawl/ScrawlExample3.html 
  http://www.thebetterside.com/scrawl/ScrawlExample3.html 
  http://www.thebetterside.com/scrawl/ScrawlExample3.html 
 
  Shan
 
  Paul Barbieux wrote:
 
  Hi;
 
  I'm a developper but also a web designer.
  And I'm a beginner with Flex...
  But I am frustrated with the possibilities of design of Flex.
  All Flex applications I saw have same look: great buttons and
  input
  fields, great gap between lines. Every elements are great: these
  applications look like Fisher-price toys ! (you know ? Toys for
  children)
 
  Yes, the http://www.scalenine.com/ http://www.scalenine.com/  
  http://www.scalenine.com/ http://www.scalenine.com/ 
  shows beautiful themes. But all
  components have same size !
 
  A have made a click-model for an application in HTML, and now I
  must
  write it with Flex: I loose 1/3 of my page because I can't
  reduce gab
  between lines, I can't reduce padding between the label and the
  border
  of the buttons, ... (oh yes I can reduce all elements: but
  labels and
  texts become trucanted !)
 
  - Does a solution exist?
  - Can someone show me a Flex site where there is a real work of
  design?
  - Can I expect improvements with Flex 3.0 ?
 
  Thank's
 



 

-- 
Brian Dunphy


 

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

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 

[flexcoders] What is the best way to draw about 10,000 to 15,000 rectangles?

2007-02-01 Thread arcencie1978
Hello folks,

I'm trying to put about 10,000 to 15,000 rectangles 

in a stage.

And I'd like to know what could be the best way to do this..

Of course, I can just draw everything on the stage,

without having to make instances of a class,

which defines the way to draw them.

Yet the thing is that,

every rectangle,sized about 5~10 pixel width and 3 pixel height,

has to respond to events such as mouse over and mouse click events..

So I've tried to make a cell class and made some 10,000 instances of 
it

but adding all of them to the display list takes so long and is just 

too much


Yet forgetting about making instances of this sort of class and 
using something like BitmapData 

doesn't give me any idea about how to register events to each cell..


So is there anybody who has developed this sort of application?

By the way, the reason I have to draw these so many pieces is because

each cell actually represents a container in the harbor and there are

just so many of them and my client wants to put all of'em in the

application. 



[flexcoders] Re: Index of an itemRenderer

2007-02-01 Thread evert_dennis
I've got a repeater which is creating objects based on how many items
are in the HorizontalList.  For the sake of this example lets say
there are 6 items.  When I roll over an itemRenderer in the list I am
passing data to that object based on which itemRenderer you are rolled
over using event.itemRenderer.data. That works fine if I am only
passing it to repeated object number 1 from every single item in the
list.  But I would like to pass the appropriate data to each
appropriate object based on which itemRenderer you are over.  So if
you are rolled over itemRenderer 4, pass data to object 4.  Does this
make sense?  Any ideas?



[flexcoders] Custom component not sizing correctly (w/ example link)

2007-02-01 Thread ben.clinkinbeard
Hello, I have created a simple subclass of Canvas that allows rounded
corners and a gradient background, but its position is not being
updated correctly. When binding its width to the width of a child
textfield, it only sizes correctly when the width increases. When the
child textfield's width decreases, my custom canvas stays the same
size (but its position is updated as if the size were adjusted
correctly). A simple demo with source can be seen here: 

http://returnundefined.com/files/RecessedCanvasDemo/RecessedCanvasDemo.html

I am assuming I am missing a call to invalidateSize() or something but
nothing I've tried has helped.

TIA,
Ben



Re: [flexcoders] What is the best way to draw about 10,000 to 15,000 rectangles?

2007-02-01 Thread Daniel Freiman

Assuming the locations are all in some data structure, i'd say keep that
structure and just iterate through each item and draw them on a single
canvas using the Graphics class/object.  Then register a mouse listener for
the entire canvas and calculate which container you clicked on based on the
x and y coordinates of the mouse event.  If the data structure is sorted
this should be a fast enough function.  This solution could have problems
with containers are constantly moving and overlap.  MouseOver graphics
representations could be done by actually putting a new uicomponent over the
container so that you don't have to draw on the canvas as much.  Really this
solution relies on you being able to index and search the data effectively
in any way the application needs.  If I'm not the right direction but
missing something I'll be happy to elaborate on any holes in my idea.

- Dan

On 2/1/07, arcencie1978 [EMAIL PROTECTED] wrote:


  Hello folks,

I'm trying to put about 10,000 to 15,000 rectangles

in a stage.

And I'd like to know what could be the best way to do this..

Of course, I can just draw everything on the stage,

without having to make instances of a class,

which defines the way to draw them.

Yet the thing is that,

every rectangle,sized about 5~10 pixel width and 3 pixel height,

has to respond to events such as mouse over and mouse click events..

So I've tried to make a cell class and made some 10,000 instances of
it

but adding all of them to the display list takes so long and is just

too much

Yet forgetting about making instances of this sort of class and
using something like BitmapData

doesn't give me any idea about how to register events to each cell..

So is there anybody who has developed this sort of application?

By the way, the reason I have to draw these so many pieces is because

each cell actually represents a container in the harbor and there are

just so many of them and my client wants to put all of'em in the

application.

 



[flexcoders] DATAGRID clic on cell

2007-02-01 Thread wifi19
hie

how can i do to get cell clic on a datagrid without edit this cell

thank!



Re: [flexcoders] Re: Flex applications look like Fisher-Price toys

2007-02-01 Thread Douglas Knudsen

awesome work

oh and go gators!  :)

DK

On 1/31/07, Dave Wolf [EMAIL PROTECTED] wrote:


Thanks!  We have some awesome guys here who make all the magic happen.

Yes indeed we did.

--
Dave Wolf
Cynergy Systems, Inc.
Adobe Flex Alliance Partner
http://www.cynergysystems.com
http://www.cynergysystems.com/blogs

Email:  [EMAIL PROTECTED]
Office: 866-CYNERGY

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

 VERY nice Dave, you guys do awesome work.

 Just curious, did your team use the DistortionEffects library by Alex
 Uhlmann to do the CubeRotate effect on the right side panel?

 Thanks,

 Brian

 On 1/31/07, Dave Wolf [EMAIL PROTECTED] wrote:
 
 
 
 
 
 
 
   For everyone who was interested in seeing more samples of real Flex
   applications and the extent to which you can skin up Flex using all
   the built in features, check out Cynergy TV. The first episode is the
   Flex Showcase and shows a small handful of apps we have built
over the
   last year with Flex.
 
 
http://www.cynergysystems.com/blogs/page/davewolf?entry=i_ll_show_you_mine
 
   http://www.cynergysystems.tv
   http://www.cynergytv.com
 
   CynergyTV itself is a Flex2 as well. We will be hosting many more
   episodes including tutorials, panels, and more samples and examples.
 
   Cheers,
 
   --
   Dave Wolf
   Cynergy Systems, Inc.
   Adobe Flex Alliance Partner
   http://www.cynergysystems.com
   http://www.cynergysystems.com/blogs
 
   Email: [EMAIL PROTECTED]
   Office: 866-CYNERGY
 
 
   --- In flexcoders@yahoogroups.com, David Mendels dmendels@ wrote:
   
Hello,
   
Many screenshots of Flex applications here:
http://www.flickr.com/photos/flexapps/
   
Many of them look not at all like the out of the box look of Flex.
   
Regards,
David
Adobe
   
   

   
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of Shannon Hicks
Sent: Sunday, January 28, 2007 11:27 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex applications look like
Fisher-Price toys
   
   
   
Flex 2 has unlimited design potential. You are not limited like you
think... If a component won't do what you want, you can always
re-skin
it. Here's an example of a Flex site that looks pretty much
nothing like
the standard skin:
   
http://www.thebetterside.com/scrawl/ScrawlExample3.html
http://www.thebetterside.com/scrawl/ScrawlExample3.html
   
Shan
   
Paul Barbieux wrote:
   
Hi;
   
I'm a developper but also a web designer.
And I'm a beginner with Flex...
But I am frustrated with the possibilities of design of Flex.
All Flex applications I saw have same look: great buttons and
input
fields, great gap between lines. Every elements are great: these
applications look like Fisher-price toys ! (you know ? Toys for
children)
   
Yes, the http://www.scalenine.com/ http://www.scalenine.com/
shows beautiful themes. But all
components have same size !
   
A have made a click-model for an application in HTML, and now I
must
write it with Flex: I loose 1/3 of my page because I can't
reduce gab
between lines, I can't reduce padding between the label and the
border
of the buttons, ... (oh yes I can reduce all elements: but
labels and
texts become trucanted !)
   
- Does a solution exist?
- Can someone show me a Flex site where there is a real work of
design?
- Can I expect improvements with Flex 3.0 ?
   
Thank's
   
 
 
 
 


 --
 Brian Dunphy





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







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


Re: [flexcoders] DATAGRID clic on cell

2007-02-01 Thread Roman Protsiuk

editable=false on DataGrid or on DataGridColumn if it's the single column
you don't want to edit.

R.

On 2/1/07, wifi19 [EMAIL PROTECTED] wrote:


  hie

how can i do to get cell clic on a datagrid without edit this cell

thank!

 



[flexcoders] How to dynamically change the webservice

2007-02-01 Thread raz_gilad
is changing the wsdl propery of the web service enough ? or should I 
use the loadwsdl method as well?

When I'm, repating the action (in logout login case) - should I logout 
or disconnect the service before resetting the wsdl?

Thanks



Re: [flexcoders] Accessibility and imported components

2007-02-01 Thread Jason Goodwin

I will, hopfully, have a JAWS upgrade coming soon. I am using IE and the
wmode is set to window.

JAWS is finding the movie and even reading the name and description strings
set for a button in the movie. It seems to not be able to find any of the
imported components. I think I have an architectur problem on my hands(?).
The button it is finding is added to to application level in mxml. The
imported stuff is being added through ActionScript. I'm thinking maybe the
components have not been fully created at the time I am calling
updateProperties (even though I have set the timeout to like 10 seconds).

- Jason

On 1/31/07, Andrew Kirkpatrick [EMAIL PROTECTED] wrote:


  6.0 is really buggy. I recommend 6.1 or 7.0/7.1. 8.0 is also out but
not quite proven yet.

Other things to look for:
1) don't use anything except wmode=window in the HTML object params.
2) You need to use IE

If those don't help, send me a link and I'll take a look.
AWK

 -Original Message-
 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
Behalf Of Jason Goodwin
 Sent: Wednesday, January 31, 2007 2:10 PM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: Re: [flexcoders] Accessibility and imported components

 I have tried it in both forms mode and virtual cursor modes,
 in JAWS 6.0.65U.

 - J


 On 1/23/07, Andrew Kirkpatrick  [EMAIL PROTECTED]akirkpat%40adobe.com
 mailto:[EMAIL PROTECTED] akirkpat%40adobe.com  wrote:

 Jason,
 The short answer is that it does work. The longer, more
 useful answer
 requires more information from you about what you've
 tried, and how you
 are using JAWS (e.g. are you in forms mode or virtual
 cursor mode)

 Thanks,
 AWK



  -Original Message-
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 mailto:flexcoders% flexcoders%2540yahoogroups.com
  [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 mailto:flexcoders% flexcoders%2540yahoogroups.com ] On Behalf Of
Jason Goodwin
  Sent: Tuesday, January 23, 2007 3:25 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 mailto:flexcoders% flexcoders%2540yahoogroups.com
  Subject: [flexcoders] Accessibility and imported components
 
  *RE POST (my thread got hijacked)
 
  I have an app with lots of imported components. I can't seem
  to get JAWS to read anything that's not on the main page. I
  have tried several ways of add in the accessibility
  properties to the controls.
  Thanks.
 
 

  --
  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] SOLVED: IFocusManagerComponent and removePopUp

2007-02-01 Thread Roman Protsiuk
Thanks for the huge amount of advises. ;)

As it appeared the hole thing was in method hidePopUp of PopUpWindow.
We do removePopUp there and after it focus of course changes and this
pop-up fires focusOut. in focusOutHandler we call the very same
hidePopUp. But, it isn't popped up now. So the only thing missing in
hidePopUp is test for isPopUp. The final code for hidePopUp is
following:

public function hidePopUp() : void {
if (isPopUp) {
PopUpManager.removePopUp(this);
}
}

That's all.

R.

On 1/18/07, Roman Protsiuk [EMAIL PROTECTED] wrote:
 Yeah, and this bug appeared just recently. Is it related with Flash
 Player 9.0.28 changes or with FlexBuilder 2.0.1 hard to tell.
 Everything worked as it is without crashes before.

 R.

 On 1/18/07, Roman Protsiuk [EMAIL PROTECTED] wrote:
  Hi, everyone.
 
  As I understand in order to properly handle focusOut event for my
  component it should implement IFocusManagerComponent. The component I
  develop is a pop-up window. Then strange and very unpleasant bug
  appear. After I set focus to one of my components child and after I
  click a button on it to close it browser crashes (firefox, ie).
  I don't know what to say more. Here's example. Simply clicking close
  me crashes browser. Totally confused.
 
  PopUpWindow.mxml:
 
  ?xml version=1.0 encoding=utf-8?
  mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute
  width=400
  height=300
  implements=mx.managers.IFocusManagerComponent
  defaultButton={mainButton}
 
  mx:Button id=mainButton
  horizontalCenter=0
  verticalCenter=0
  label=close me
  click=onMainButtonClick() /
 
  mx:Button label=fake /
 
  mx:Script
  ![CDATA[
  import mx.core.UIComponent;
  import mx.managers.PopUpManager;
 
  public function showPopUp(parent : UIComponent) : 
  void {
  PopUpManager.addPopUp(this, parent);
  PopUpManager.centerPopUp(this);
  setFocus();
  }
 
  public function hidePopUp() : void {
  PopUpManager.removePopUp(this);
  }
 
  public override function setFocus() : void {
  super.setFocus();
  mainButton.setFocus();
  }
 
  protected override function focusOutHandler(event : 
  FocusEvent) : void {
  if (event.relatedObject == null || 
  !contains(event.relatedObject)) {
  hidePopUp();
  }
  super.focusOutHandler(event);
  }
 
  private function onMainButtonClick() : void {
  hidePopUp();
  dispatchEvent(new Event(Event.CLOSE));
  }
  ]]
  /mx:Script
 
  /mx:TitleWindow
 
 
  popUpSample.mxml:
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute
  creationComplete=onCreationComplete()
 
  mx:Button id=clickButton
  horizontalCenter=0
  verticalCenter=0
  label=click me
  click=onButtonClick() /
 
  mx:Button label=fake /
 
  mx:Script
  ![CDATA[
  public override function setFocus() : void {
  super.setFocus();
  clickButton.setFocus();
  }
 
  private function onCreationComplete() : void {
  _popUp = new PopUpWindow();
  _popUp.addEventListener(Event.CLOSE, 
  onPopUpClose);
  }
 
  private function onButtonClick() : void {
  _popUp.showPopUp(this);
  }
 
  private function onPopUpClose(event : Event) : void 
  {
  //clickButton.setFocus();
  }
 
  private var _popUp : PopUpWindow;
  ]]
  /mx:Script
 
  /mx:Application
 
  The only thought i have: it's because focus is lost (it stays in
  pop-up) when pop-up is removed and the lost focus is unacceptable for
  flash player. So I added clickButton.setFocus() on close. But if i do
  it before removePopUp then PopUpWindws focusOutHandler removes it. Why
  do i need to call it manually anyway? :/ And if 

[flexcoders] Flex 2 Compiler / Metadata Question

2007-02-01 Thread gtuhl
I had asked the original question here:

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

And received several helpful responses involving the ArrayElementType
metadata tag.  This works for the case of dealing with types of
objects in arrays, but doesn't resolve the more general question of
why does Flex2 throw out metadata information, and only allow
prevention of it being thrown out in debug mode?

Basically, we would like to use metadata much as Java 1.5 uses
annotations for a handful of scenarios.  This is entirely possible,
and works really well, but only if you use an obscure compiler flag,
and then only in debug mode.

Anyone have any ideas?



[flexcoders] Re: Possible to update an XML List collection while keeping a Tree Control open ?

2007-02-01 Thread Oscar

  I would create a handler for your HttpService result and then do the 
following:
 public function onResultHttpService(event:Event):void{ 


myTree.dataProvider= event.lastResult; 
myTree.validateNow(); 
myTree.selectedIndex=0; 
myTree.expandChildrenOf(myTree.selectedItem, true); 
} 





[flexcoders] Re: Host Name? How do I get my current host name?

2007-02-01 Thread Oscar

Try this:

mx.utils.URLUtil.getServerName
(mx.core.Application.application.url); 





Re: [flexcoders] Re: How to make FormItem labels left aligned?

2007-02-01 Thread EECOLOR

If you would use the following class it is ;)


Greetz Erik


package fly.flex.containers
{
import mx.containers.FormItem;
import mx.core.EdgeMetrics;
import mx.core.UIComponent;
import mx.core.mx_internal;
import mx.styles.CSSStyleDeclaration;
import mx.styles.StyleManager;

[Style(name=labelAlign,type=String,enumeration=left,right,inherit=no)]

public class ExtendedFormItem extends FormItem
{
 private static var _CLASS_CONTRUCTED_BOOL:Boolean = _CLASS_CONTRUCT();

 private static function _CLASS_CONTRUCT():Boolean
 {
  if (!StyleManager.getStyleDeclaration(ExtendedFormItem))
  {
   var newStyleDeclaration:CSSStyleDeclaration = new CSSStyleDeclaration();
   newStyleDeclaration.setStyle(labelAlign, left);
   StyleManager.setStyleDeclaration(ExtendedFormItem,
newStyleDeclaration, true);

  };
  return true;
 };

 override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void
 {
  super.updateDisplayList(unscaledWidth, unscaledHeight);

  var labelAlign_str:String = getStyle(labelAlign);

  if (labelAlign_str == left)
  {
   var vm:EdgeMetrics = viewMetricsAndPadding;
   var labelObject:UIComponent = mx_internal::labelObject as UIComponent;
   labelObject.move(vm.left, labelObject.y);
  };

 };
};
};


[flexcoders] Adobe.com Servers?

2007-02-01 Thread purcept
Why have the Adobe.com servers been so Slow and Erratic over the last 
couple months?  Any time I go there for Flex info, I always have to 
Refresh at least once.  I've asked around, but no one seems to know.



[flexcoders] Flex Builder 2.0.1 Eclipse Plugin Issues

2007-02-01 Thread Rich Tretola

I upgraded my Flex Builder 2 plugin on Eclipse today (Eclipse 3.1 on Win XP)
to 2.0.1 and I am now getting an error when trying to open any of my
projects which were defined as java projects.  Here is the error:

A problem occurred while opening this project.  Try quitting and restarting
the application.  If the problem persists, you may be using an unsupported
project version, or your project files may be corrupted.

If I accept the dialog, I can edit the MXML and AS files within the MXML and
ActionScript editors however I do not get any code hints.

Has anyone else seen this issue?

Rich


[flexcoders] DataGrid sort direction arrow

2007-02-01 Thread Robert Chyko
Is there any way to force the sort direction arrows on a DataGridColumn
to be displayed?  What I need to do is save the direction a column has
been sorted and then when the user reloads the app I have to set the
grid up just like they last left it.  
 
I can easily enough sort the data correctly on the column that I need
to, but I would like to also show the visual indicator so that the user
knows the data is in fact sorted on the column they last sorted on.
 
I had accomplished this previously in Flash (it was kinda nasty - a had
a small bug), but I was wondering if anyone had attempted this in Flex.
 
Any pointers would be appreciated.
 
 
Bob Chyko
Software Application Developer 
 


[flexcoders] HTTPService example sending XML

2007-02-01 Thread Grant Davies
I have a rest service where I send it the request as xml and the
response comes back as xml, does someone have a simple example I could
look at as I'm having issues.
 
cheers,
Grant
 
 
 
...
 b l u e t u b e i n t e r a c t i v e.
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
 [EMAIL PROTECTED]
 http://www.bluetube.com/bti http://www.bluetube.com/bti 
 A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ 

 
attachment: small.jpg


[flexcoders] Re: Passing Value Object to CFC as an argument?

2007-02-01 Thread boy_trike
--- In flexcoders@yahoogroups.com, Douglas Knudsen [EMAIL PROTECTED] wrote:

 you need a EmployeeVO CFC with matching properties and the full array of
 mutators and accessors.  

Actually, you don't.  If you want to save a lot of typing and do it the KISS 
(keep it simple, 
stupid) way, you can pass your VO with NO reference to a cfc and coldfusion 
will be happy 
to accept it as a STRUCT.  Of course, you do have to know (and spell correctly) 
the field 
names.  Following is a code snippet.

 VO 
notice that there is NO remote line, just a simple object
package vo
{
[Bindable]
public class WebOrder
{   
public var recID: int;
public var nameNumber   : int;
public var contact  : String;
public var userID   : int;
public var dateEntered  : Date;
public var deliveryFrom : Date;
public var deliveryThru : Date;
public var item : int;
public var customerQty  : int;
public var customerUM   : String;
public var tallyQty : int;
public var price: Number;
public var per  : int;
public var comments : String;
public var cancelReason : String;
public var cancelOption : String;
public var PONumber : String;
public var wholeUnits   : int;
public var customTallyFlag  : int;
public var pickUp   : int;
public var status   : String;

public function WebOrder()  {
}
}
}

--- FLEX CODE ---

cfcOrderInquiry.webOrderInsert( {obj: model.webOrder} );


--- CF CODE -
 cffunction access=remote name=webOrderInsert output=false 
returnType=numeric
cfargument name=obj type=struct required=true

cfquery name=myQuery datasource=american
  Insert Into WebOrder  (NameNumber, UserID, Contact, 
DeliveryFrom, 
DeliveryThru,
Item, CustomerQty, CustomerUM, Price, per) 
values ( #obj.nameNumber#, #obj.userID#,  '#obj.contact#', 
#obj.deliveryFrom#, 
#obj.deliveryThru#, 
#obj.item#, #obj.customerQty#,'#obj.customerUM#', #obj.price#, 
#obj.per#)

select @@IDENTITY as webOrderRecID

/cfquery
cfreturn myQuery.webOrderRecID
/cffunction
 

It is this simple.

Bruce




RE: [flexcoders] Adobe.com Servers?

2007-02-01 Thread Matt Chotin
Where are you located?  We've made some changes to get adobe.com faster
actually, but have noticed some slowdowns on certain things.  I was
recently told we're serving close to 600 Mbs right now, especially since
Lightroom just launched, so we push out a fair amount of data :-)

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of purcept
Sent: Thursday, February 01, 2007 11:10 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Adobe.com Servers?

 

Why have the Adobe.com servers been so Slow and Erratic over the last 
couple months? Any time I go there for Flex info, I always have to 
Refresh at least once. I've asked around, but no one seems to know.

 



[flexcoders] Re: parent-child hierarchy of data using Flex, FDS and Hibernate

2007-02-01 Thread parkerwhirlow
Hi guys,

I have made a post in similar vein to this one, and had a couple
comments.  I agree that when possible, using managed associations and
individual destinations for each side of the association is a best
approach. However I'm running into issues with the hierarchical
values approach you mention below. Maybe it's just my hibernate
mappings, or maybe there's an issue. Note, I end up having to use this
approach in some cases (destination references a base-class, and
collection associations reside in sub-class instances).

In the example used here, whenever I modify a value of a child (User
Scenario) or grandchild (Scenario), because the save is going through
the parent (PlanPoint), the Hibernate Assembler assigns the collection
as though it were a property of the parent. At this point when the
commit occurs, I get a org.hibernate.NonUniqueObjectException: a
different object with the same identifier value was already associated
with the session

Check out my post.
(http://tech.groups.yahoo.com/group/flexcoders/message/63308) 

I'd be interested to know if you get this working (hierarchical
values), could you post up an example of the hibernate mappings?

thanks,
PW


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

 This relates to your other question about the association tags in the
 metadata section.  There are two ways you can work with non-primitive
 object properties using FDMS.  You can either have them be managed
 associations or you can treat them as hierarchical values.  If you
 choose the former, you define a destination for each data type and
 explicitly define the relationships using the metadata tags:
 one-to-many, one-to-one, etc (FDMS only pays attention to the ...-to-one
 or -to-many suffix as it only cares about whether the association is
 single or multi-valued).   In this approach, each destination deals with
 the changes made to objects of that type.  If you create a new child
 object and add it to a property on the parent for example, it will send
 the create event to the child destination and then send an update event
 to the parent destination.  These are both executed in the same
 transaction so they will both get committed at the same time.  
 
  
 
 When you use the hierarchical values approach, the entire object graph
 underneath that property is treated as a single value.  Any changes made
 to any state under that property is treated as a change to the
 property's value.  FDMS reports the change to the parent object's
 destination and only tells you that the property of the parent changed.
 We do give you the complete old and new values though of the parent
 object so you can walk down and compare them to figure out the details
 of what changed.   Whenever you use this approach, the entire object
 graph gets shipped back and forth for each change so it gets inefficient
 as the object graph gets bigger.  
 
  
 
 In this particular case, it sounds like the managed association feature
 would be the best approach.   You can create new objects on either the
 client or the server - whichever makes the most sense for your
 application.  Simply adding a new object to the property of another
 managed object is enough to create it for the system.  We'll detect
 that it is a new object and log both the create and update operations as
 part of the batch.  When you issue the commit call, both are sent to
 the server as part of the same batch.
 
  
 
 Jeff
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of simonjpalmer
 Sent: Sunday, January 28, 2007 12:56 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] parent-child hierarchy of data using Flex, FDS and
 Hibernate
 
  
 
 Hi,
 
 I have a 4 level hierarchy of data in my application with a
 bi-directional one-to-many relationship between each level as follows:
 
 PlanPoint (parent)
 -- UserScenario (child)
  Scenario (grandchild)
 -- Competitor (great grandchild)
 
 I have a hibernate back end running under JBoss and I am using FDS to
 synchronise the changes from my Flex UI. My DB will be Oracle, but
 for the time being I am just testing with a HSQLDB for convenience.
 
 I have managed to create a destination in FDS which will retrieve the
 parent objects. The hibernate mapping docs specify the further
 retrieval of the graph of objects attached to them. This all works
 fine and performs reasonably well, although I have been unable to get
 any meaningful lazy loading to work (a problem for another time).
 
 My problem comes in that the user will interact deeply with the graph
 of objects during the client session. This includes adding, removing
 and updating objects at all levels.
 
 What I can't seem to get right is the interaction in the Flex layer
 which copes with this level of interaction.
 
 For instance if I want to add a new Competitor to a Scenario do I 
 (i) create all new objects on the client and then synchronise the
 

[flexcoders] Resizing a List component?

2007-02-01 Thread jason.proulx
Hey All,

 

I don't remember encountering this issue before.  I have a List
component with a custom item renderer, which includes an image loaded
dynamically at runtime.  I want my List component to display all items
all the time, and I need to resize it depending on the number of items
that get loaded in.

 

I'm going through weird iterations of having the custom renderer
resizing and invalidating itself, but then the List doesn't scroll
properly, then I tried simply changing the List height after a data
change by iterating through it's children, but that's not working right
either.

 

I know there must be a simple way of doing this; I just can't seem to
find the right documentation.

 

Any ideas?

 

Jay Proulx

Application Developer

Internet Delivery Services - eVision Team

[EMAIL PROTECTED]

(613) 783-6711

 



Re: [flexcoders] Custom component not sizing correctly (w/ example link)

2007-02-01 Thread Doug McCune
Just stick a call to graphics.clear() before you call 
graphics.beginGradientFill(). I tested that and it should get it to 
work. Got to make sure you're drawing from a clean slate.


Doug

ben.clinkinbeard wrote:


Hello, I have created a simple subclass of Canvas that allows rounded
corners and a gradient background, but its position is not being
updated correctly. When binding its width to the width of a child
textfield, it only sizes correctly when the width increases. When the
child textfield's width decreases, my custom canvas stays the same
size (but its position is updated as if the size were adjusted
correctly). A simple demo with source can be seen here:

http://returnundefined.com/files/RecessedCanvasDemo/RecessedCanvasDemo.html 
http://returnundefined.com/files/RecessedCanvasDemo/RecessedCanvasDemo.html


I am assuming I am missing a call to invalidateSize() or something but
nothing I've tried has helped.

TIA,
Ben

 




[flexcoders] pop ups again

2007-02-01 Thread Roman Protsiuk
Hi, everyone.

I've modified my previous example (if anyone saw it). Now I'm using
following approach to handle pop ups:

The pop up itself PopUpWindow.mxml:

?xml version=1.0 encoding=utf-8?
mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical
horizontalAlign=center
width=400
height=300
implements=mx.managers.IFocusManagerComponent
title=TESTING
defaultButton={mainButton}
creationComplete=onCreationComplete()
show=onShow()

mx:Box height=100% minHeight=0 width=100%
mx:Text id=traceText text=show captured (not 
creationComplete): /
/mx:Box

mx:Canvas width=100%
mx:Label id=total text=total: none left=10 /
mx:Button id=mainButton
horizontalCenter=0
bottom=10
label=close me
click=onMainButtonClick() /
/mx:Canvas

mx:Script
![CDATA[
import mx.core.Application;
import mx.managers.PopUpManager;
import mx.managers.PopUpManagerChildList;

private static var _popUp : PopUpWindow;

private static var _totalCounter : Number = 0;

private static var _showCounter : Number = 0;

public var modal : Boolean;

public static function showPopUp(parent : DisplayObject 
= null,
modal : Boolean = true) : PopUpWindow {
var popUpParent : DisplayObject = (parent != 
null ? parent :
DisplayObject(Application.application));

if (_popUp == null) {
_popUp = 
PopUpWindow(PopUpManager.createPopUp(popUpParent,
PopUpWindow, modal, PopUpManagerChildList.APPLICATION));
} else {
if (!_popUp.isPopUp) {
_popUp.modal = modal;
_popUp.traceText.htmlText += 
(++_totalCounter).toString() + ) 
+  modality:  + modal.toString() + . ;

PopUpManager.addPopUp(_popUp, 
popUpParent, modal,
PopUpManagerChildList.APPLICATION);
}
}

PopUpManager.centerPopUp(_popUp);

return _popUp;
}

protected function hidePopUp() : void {
if (isPopUp) {
PopUpManager.removePopUp(this);
}
}

protected function onCreationComplete() : void {
mainButton.setFocus();
}

protected function onShow() : void {
mainButton.setFocus();

traceText.htmlText += 
(++_showCounter).toString() +  time +
(_showCounter == 1 ?  : s);
total.text = total:  + 
_showCounter.toString();
}

protected override function focusOutHandler(event : 
FocusEvent) : void {
if (event.relatedObject == null || 
!contains(event.relatedObject)) {
hidePopUp();
}
super.focusOutHandler(event);
}

private function onMainButtonClick() : void {
hidePopUp();
dispatchEvent(new Event(Event.CLOSE));
}

]]
/mx:Script

/mx:TitleWindow


Application popUpSample.mxml:

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

mx:CheckBox id=modal label=modal? horizontalCenter=0
verticalCenter=-30 /

mx:Button id=clickButton
horizontalCenter=0
verticalCenter=0
label=click me
click=onButtonClick() /

mx:Script
![CDATA[

RE: [flexcoders] Resizing a List component?

2007-02-01 Thread jason.proulx
Figured it out :P  variableRowHeight=true, it's working fine now :-)

 

Jay Proulx

[EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Proulx, Jason (EX22748)
Sent: February 1, 2007 11:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Resizing a List component?

 

Hey All,

 

I don't remember encountering this issue before.  I have a List
component with a custom item renderer, which includes an image loaded
dynamically at runtime.  I want my List component to display all items
all the time, and I need to resize it depending on the number of items
that get loaded in.

 

I'm going through weird iterations of having the custom renderer
resizing and invalidating itself, but then the List doesn't scroll
properly, then I tried simply changing the List height after a data
change by iterating through it's children, but that's not working right
either.

 

I know there must be a simple way of doing this; I just can't seem to
find the right documentation.

 

Any ideas?

 

Jay Proulx

Application Developer

Internet Delivery Services - eVision Team

[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 

(613) 783-6711

 

 



[flexcoders] Re: Loading module from module

2007-02-01 Thread tvikatos
Anybody has a clue?

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

 Loading a module from a module does not work for me.
 A-B-C
 When B tries to load C (using ModuleManager) the factory returns null,
 although all types seem setup correctly.
 However if I do
 A-C
 and then:
 A-B-C
 then C is succesfully loaded and instantiated within A and B.
 
 Any suggestions of what might be wrong here?





[flexcoders] Re: Custom component not sizing correctly (w/ example link)

2007-02-01 Thread ben.clinkinbeard
Dude- you freaking rock. I have been stumped on that one for a
while... figures its something that blindingly simple. Thanks a million.

Ben

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

 Just stick a call to graphics.clear() before you call 
 graphics.beginGradientFill(). I tested that and it should get it to 
 work. Got to make sure you're drawing from a clean slate.
 
 Doug
 
 ben.clinkinbeard wrote:
 
  Hello, I have created a simple subclass of Canvas that allows rounded
  corners and a gradient background, but its position is not being
  updated correctly. When binding its width to the width of a child
  textfield, it only sizes correctly when the width increases. When the
  child textfield's width decreases, my custom canvas stays the same
  size (but its position is updated as if the size were adjusted
  correctly). A simple demo with source can be seen here:
 
 
http://returnundefined.com/files/RecessedCanvasDemo/RecessedCanvasDemo.html

 
http://returnundefined.com/files/RecessedCanvasDemo/RecessedCanvasDemo.html
 
  I am assuming I am missing a call to invalidateSize() or something but
  nothing I've tried has helped.
 
  TIA,
  Ben
 
 





[flexcoders] create empty folder in a tree

2007-02-01 Thread xvirus001
My question si simple. Can I create an empty folder in a tree.

Imagine I get a data like this. 
Can I associate the bracket Folder to a folder and the bracket Item to 
an Item. ?

infos default=
info title=
folder title=
folder title= /
item title= /
folder title= /
/folder 
item title= /
/info 
/infos 



Re: [flexcoders] Re: PNG transparency failing in @Embed?

2007-02-01 Thread dorkie dork from dorktown

heres the psd
http://judahfrangipane.com/blog/wp-content/themes/default/bin/images/kubrickheader_mask.psd

On 2/1/07, dorkie dork from dorktown [EMAIL PROTECTED]
wrote:


heres my image:

http://judahfrangipane.com/blog/wp-content/themes/default/bin/images/kubrickheader_mask.png

i'm loading it in externally though. it works at the first url but does
not work in the second url:
http://judahfrangipane.com/blog/wp-content/themes/default/bin/header.html
http://judahfrangipane.com/blog/

code:
mx:String 
id=mImagehttp://judahfrangipane.com/blog/wp-content/themes/default/bin/images/kubrickheader_mask.png
/mx:String

!-- Create the mask. --
mx:Image id=headerImage2 source={mImage}
width=100% height=100%
scaleContent=false autoLoad=true x=0 y=0/

and if you need to know this, here are the application creation complete
events:
!-- Effects --
!-- These effects run one after another --
mx:Sequence id=headerEffects
!-- Add all the elements that need to be hidden when the app
starts --
!-- Add them manually so that we can set the visibility to false
in the frame before it is shown --
!-- Still flickers visible for one second ??? --
mx:AddChildAction target={headerLabel} effectStart=
headerLabel.visible = false/
mx:AddChildAction target={searchBox} effectStart=
searchBox.visible = false/
mx:AddChildAction target={headerImage} effectStart=
headerImage.visible = false/

mx:SetPropertyAction
targets={[headerLabel,searchBox,headerImage]}
name=visible value=false/

!-- Pause for 200ms --
mx:Pause duration=400/

!-- Move fake mask up to reveal headerImage --
mx:Move id=moveUp yTo=-400 duration=6500
target={headerImage2} yFrom=0
easingFunction=Linear.easeNone /

On 2/1/07, ben.clinkinbeard [EMAIL PROTECTED] wrote:

 http://three.fsphost.com/flex2/png/assets/user.png



 --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:
 
  Open it in Fireworks, he's the master of PNG's.  If yall don't have
  it, fire it my way.
 
  [EMAIL PROTECTED]
 
  On Feb 1, 2007, at 12:28 AM, ben.clinkinbeard wrote:
 
  It seems to me like there is something funky going on with the PNG
  itself. Like I said, Photoshop doesn't even recognize the
  transparency, and that makes me uber-suspicious. Is the mime type or
  something along those lines jacked up?
 
  Ben
 
  --- In flexcoders@yahoogroups.com, Matt Chotin mchotin@ wrote:
   
Please file a bug too if you haven't already.
   
   
   
Matt
   
   
   

   
From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
Behalf Of Doug McCune
Sent: Wednesday, January 31, 2007 9:29 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: PNG transparency failing in @Embed?
   
   
   
Just to follow up, here's my post that explains the issue and my
workaround:
http://dougmccune.com/blog/2007/01/31/problem-with-transparent-
  pngs-in-f
lex-using-embed/
http://dougmccune.com/blog/2007/01/31/problem-with-transparent-
  pngs-in-
flex-using-embed/
   
Doug
   
Pan Troglodytes wrote:
   
Doug,
   
Very cool that you tracked it down in SWFLoader. Right now I
can get by with using GIF, but it's great to know if I absolutely
  have
to have more than 256 colors I can use your code. Hopefully Adobe
 is
following this thread. Either that, or they already tracked it
  down and
have it fixed internally but just never read my posts. ;)
   
   
   
On 1/31/07, Doug McCune dmccune@
mailto: dmccune@  wrote:
   
You're definitely right, that's a clear bug in how SWFLoader
works. I have a solution that involves duplicating the code for
SWFLoader and modifying it a little bit. What's interesting is
  that in
the Design view of FB, the PNG has perfect transparency in both
  cases.
But in the published SWF, the transparency is not preserved when
  using
@Embed.
   
I will be writing up a blog post and my solution later today.
   
For now, here's a sample of the problem with a working solution.
I'll be writing up the description of what I had to do (obviously
  it's
not much since it didn't take very long). So if you want to check
 out
the code before I write up the post, the important part has to do
  with
setting the mimeType of the embedded asset, and then in the
 modified
SWFLoader code, check out around line 1217 in the loadContent
  method. It
uses loadBytes of the Loader class to load the bytes of the
 embedded
asset.
   
http://dougmccune.com/flex/png_test/
http://dougmccune.com/flex/png_test/
(right click to View Source)
   
Doug
   
   
   
   
Pan Troglodytes wrote:
   
Could you clarify what you mean by works for me? Do you mean
you are getting transparency on the PNG?
   
I uploaded my full code for an example:
   

Re: [flexcoders] AS3 shell

2007-02-01 Thread Jim Cheng
Mikhail Shevchuk wrote:
 Is there any shell to play with Action Script 3 like ipython for python or
 smth. like that ?
 That would be extremely useful for rapid development.

See:

   http://www.mozilla.org/projects/tamarin/

Adobe's released the ActionScript 3 virtual machine to the Mozilla 
project under the standard triple license (GPL/LGPL/MPL).  There's a 
partial implementation of a self-hosted AVM compiler and interpreter in 
the esc directory.

If you don't mind a bit of hacking, you can probably roll together an 
interpreter shell for playing with ActionScript 3 with a little bit of 
work, although such an implementation would obviously not include the 
Flash Player intrinsic classes.

Jim Cheng
effectiveUI



[flexcoders] Re: pop ups again

2007-02-01 Thread Andriy Panas
Hi everyone,

I cannot help you Roman to solve your problem, but I am able to
CONFIRM your bug( feature) with FlexEvent.SHOW event not dispatched
from popUp window instance in modal mode if it is being shown for the
second and for the next time and so on.

In the attached sample application try to open both kinds of popup
windows (NORMAL, MODAL) by clicking buttons and then close open popup
windows several times with a mouse click on popup's window surface. 

 onShow event handler for FlexEvent.SHOW is being executed only for
when NORMAL popup window becomes visible at the screen. 

Full working code sample follows: 
---
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;  
mx:Script
![CDATA[
import mx.containers.Tile;
import mx.controls.Alert;
import mx.events.FlexEvent;
import mx.core.IFlexDisplayObject;
import mx.containers.TitleWindow;
import mx.managers.PopUpManager;

public var myModalPopUp : TitleWindow;

public var myNormalPopUp : TitleWindow;

function openPopUpWindow(isModal : Boolean, windowTitle : 
String) :
void {

if (isModal) {
if (myModalPopUp == null) {
myModalPopUp = new TitleWindow();   

assignWindowProperties(myModalPopUp, 
windowTitle);  
}   

PopUpManager.addPopUp(myModalPopUp, this, 
isModal); 
PopUpManager.centerPopUp(myModalPopUp);

} else {
if (myNormalPopUp == null) {
myNormalPopUp = new TitleWindow();  

assignWindowProperties(myNormalPopUp, 
windowTitle);
} 

PopUpManager.addPopUp(myNormalPopUp, this, 
isModal);
PopUpManager.centerPopUp(myNormalPopUp);
}   
}

private function assignWindowProperties(myPopUp : TitleWindow,
windowTitle : String) : void {
myPopUp.height= 150;
myPopUp.title = windowTitle;
myPopUp.addEventListener(MouseEvent.CLICK, closeWindow);
myPopUp.addEventListener(MouseEvent.CLICK, closeWindow);
myPopUp.addEventListener(FlexEvent.SHOW, onShow);   
}

public function closeWindow(event:MouseEvent) : void {
   
PopUpManager.removePopUp(IFlexDisplayObject(event.currentTarget));
}

private function onShow(evt : FlexEvent) : void {
Alert.show(hello!);
}


]]
/mx:Script
mx:Button id=btn click=openPopUpWindow(true, 'I am modal window')
label=open Modal Window

/mx:Button
mx:Button id=btn2 click=openPopUpWindow(false, 'I am normal
window') label=open Normal Window

/mx:Button

/mx:Application
---



[flexcoders] ASDoc ignoring [Bindable] properties in mxml files

2007-02-01 Thread jer_ela
I am finding that ASDoc (2.01) is ignoring bindable properties in mxml
files

public var myProperty:String

gets documented

[Bindable]
public var myBindableProperty:String

does not

set/get pairs are also affected




Re: [flexcoders] Flex Builder 2.0.1 Eclipse Plugin Issues

2007-02-01 Thread Daniel Wabyick

Not positive, but I don't think Eclipse 2.0.1 is officially supported in 
3.1 You may need 3.2.

-D


Rich Tretola wrote:

 I upgraded my Flex Builder 2 plugin on Eclipse today (Eclipse 3.1 on 
 Win XP) to 2.0.1 and I am now getting an error when trying to open any 
 of my projects which were defined as java projects.  Here is the error:

 A problem occurred while opening this project.  Try quitting and 
 restarting the application.  If the problem persists, you may be using 
 an unsupported project version, or your project files may be corrupted.

 If I accept the dialog, I can edit the MXML and AS files within the 
 MXML and ActionScript editors however I do not get any code hints.

 Has anyone else seen this issue?

 Rich

  



[flexcoders] Re: Adobe.com Servers?

2007-02-01 Thread purcept
Matt

I'm located in Dayto Ohio. See my tracert below.  This has been 
going on consistently for at least 2 months, if not more.

-
---
  1 7 ms 7 ms 7 ms  *
  2 9 ms 9 ms 8 ms  dist1-vlan50.dytnoh.ameritech.net 
[65.43.25.226]
  3 9 ms 7 ms 7 ms  bb2-g1-0.dytnoh.ameritech.net 
[65.43.25.100]
  416 ms16 ms16 ms  bb2-g5-1.sfldmi.sbcglobal.net 
[151.164.93.93]
  522 ms22 ms22 ms  core2-p7-0.crchil.sbcglobal.net 
[151.164.43.195]
  622 ms22 ms22 ms  bb1-p3-1.emhril.sbcglobal.net 
[151.164.43.254]
  722 ms23 ms22 ms  bb2-p0-0.emhril.sbcglobal.net 
[151.164.43.253]
  825 ms23 ms23 ms  ex2-p5-0.eqchil.sbcglobal.net 
[151.164.42.139]
  924 ms23 ms23 ms  gar8-p390.cgcil.ip.att.net 
[12.122.79.89]
 1068 ms68 ms68 ms  tbr1033101.cgcil.ip.att.net 
[12.122.85.98]
 1166 ms66 ms66 ms  tbr1-cl1.sffca.ip.att.net 
[12.122.10.6]
 1268 ms68 ms68 ms  12.123.12.57
 13   249 ms   260 ms   228 ms  ge4-2.3.cr02.sjo01.pccwbtn.net 
[12.119.139.18]
 1467 ms66 ms66 ms  192.150.18.11
 1566 ms66 ms66 ms  192.150.18.60
-
---

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

 Where are you located?  We've made some changes to get adobe.com 
faster
 actually, but have noticed some slowdowns on certain things.  I was
 recently told we're serving close to 600 Mbs right now, especially 
since
 Lightroom just launched, so we push out a fair amount of data :-)
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of purcept
 Sent: Thursday, February 01, 2007 11:10 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Adobe.com Servers?
 
  
 
 Why have the Adobe.com servers been so Slow and Erratic over the 
last 
 couple months? Any time I go there for Flex info, I always have to 
 Refresh at least once. I've asked around, but no one seems to know.





[flexcoders] DVD-based interactive application possible?

2007-02-01 Thread sooby77
Hi all,

I am interested in building an interactive application (a catalog) for
my dissertation using Flex 2.  The application would be completely
self-contained within a DVD.  Can I do this with Flex 2?  If not, can
someone suggest an alternative?  Thanks for all your help.


sooby77



Re: [flexcoders] pop ups again

2007-02-01 Thread Roman Protsiuk
I guess the reason is in following line of PopUpManagerImpl.as:

line 574: IUIComponent(o.owner).setVisible(true, true);

Second parameter says do not dispatch show event... I wonder why is
it this way...

Maybe someone who understands this behavior will read these lines someday.

R.

On 2/1/07, Roman Protsiuk [EMAIL PROTECTED] wrote:
 Hi, everyone.

 I've modified my previous example (if anyone saw it). Now I'm using
 following approach to handle pop ups:

 The pop up itself PopUpWindow.mxml:

 ?xml version=1.0 encoding=utf-8?
 mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=vertical
 horizontalAlign=center
 width=400
 height=300
 implements=mx.managers.IFocusManagerComponent
 title=TESTING
 defaultButton={mainButton}
 creationComplete=onCreationComplete()
 show=onShow()

 mx:Box height=100% minHeight=0 width=100%
 mx:Text id=traceText text=show captured (not 
 creationComplete): /
 /mx:Box

 mx:Canvas width=100%
 mx:Label id=total text=total: none left=10 /
 mx:Button id=mainButton
 horizontalCenter=0
 bottom=10
 label=close me
 click=onMainButtonClick() /
 /mx:Canvas

 mx:Script
 ![CDATA[
 import mx.core.Application;
 import mx.managers.PopUpManager;
 import mx.managers.PopUpManagerChildList;

 private static var _popUp : PopUpWindow;

 private static var _totalCounter : Number = 0;

 private static var _showCounter : Number = 0;

 public var modal : Boolean;

 public static function showPopUp(parent : 
 DisplayObject = null,
 modal : Boolean = true) : PopUpWindow {
 var popUpParent : DisplayObject = (parent != 
 null ? parent :
 
 DisplayObject(Application.application));

 if (_popUp == null) {
 _popUp = 
 PopUpWindow(PopUpManager.createPopUp(popUpParent,
 PopUpWindow, modal, PopUpManagerChildList.APPLICATION));
 } else {
 if (!_popUp.isPopUp) {
 _popUp.modal = modal;
 _popUp.traceText.htmlText += 
 (++_totalCounter).toString() + ) 
 +  modality:  + modal.toString() + . ;

 PopUpManager.addPopUp(_popUp, 
 popUpParent, modal,
 PopUpManagerChildList.APPLICATION);
 }
 }

 PopUpManager.centerPopUp(_popUp);

 return _popUp;
 }

 protected function hidePopUp() : void {
 if (isPopUp) {
 PopUpManager.removePopUp(this);
 }
 }

 protected function onCreationComplete() : void {
 mainButton.setFocus();
 }

 protected function onShow() : void {
 mainButton.setFocus();

 traceText.htmlText += 
 (++_showCounter).toString() +  time +
 (_showCounter == 1 ?  : s);
 total.text = total:  + 
 _showCounter.toString();
 }

 protected override function focusOutHandler(event : 
 FocusEvent) : void {
 if (event.relatedObject == null || 
 !contains(event.relatedObject)) {
 hidePopUp();
 }
 super.focusOutHandler(event);
 }

 private function onMainButtonClick() : void {
 hidePopUp();
 dispatchEvent(new Event(Event.CLOSE));
 }

 ]]
 /mx:Script

 /mx:TitleWindow


 Application popUpSample.mxml:

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

 mx:CheckBox id=modal label=modal? horizontalCenter=0
 verticalCenter=-30 /

 mx:Button id=clickButton
 horizontalCenter=0
 verticalCenter=0
 label=click me
 click=onButtonClick() /

 mx:Script
 ![CDATA[
 private function 

Re: [flexcoders] Flex Builder 2.0.1 Eclipse Plugin Issues

2007-02-01 Thread Jeffry Houser

  Flex Builder 2.01 has been working fine for me on Eclipse 3.1.
  ( I assumed it was supported, but I could be wrong )


At 01:20 PM 2/1/2007, you wrote:


Not positive, but I don't think Eclipse 2.0.1 is officially supported in
3.1 You may need 3.2.

-D

Rich Tretola wrote:
 
  I upgraded my Flex Builder 2 plugin on Eclipse today (Eclipse 3.1 on
  Win XP) to 2.0.1 and I am now getting an error when trying to open any
  of my projects which were defined as java projects. Here is the error:
 
  A problem occurred while opening this project. Try quitting and
  restarting the application. If the problem persists, you may be using
  an unsupported project version, or your project files may be corrupted.
 
  If I accept the dialog, I can edit the MXML and AS files within the
  MXML and ActionScript editors however I do not get any code hints.
 
  Has anyone else seen this issue?
 
  Rich


--
Jeffry Houser, Software Developer, Writer, Songwriter, 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
Connecticut Macromedia User Group: http://www.ctmug.com




[flexcoders] Wrapper file when using Web Tier compiler

2007-02-01 Thread Allen Riddle
Is it possible to modify the wrapper html file itself when compiling on
the server using FDS (web tier compiler)? We were able to modify the
wrapper file when just using flex builder to create our swf's, but once
we switched to DataServices we can't get it to pick up our changes. Has
anybody done this? Thanks.

 

Allen Riddle

Sofware Development

x3217

 



Re: [flexcoders] Flex Builder 2.0.1 Eclipse Plugin Issues

2007-02-01 Thread Rich Tretola

New Flex projects work fine.  the error only occurs on Java projects.



On 2/1/07, Daniel Wabyick [EMAIL PROTECTED] wrote:



Not positive, but I don't think Eclipse 2.0.1 is officially supported in
3.1 You may need 3.2.

-D


Rich Tretola wrote:

 I upgraded my Flex Builder 2 plugin on Eclipse today (Eclipse 3.1 on
 Win XP) to 2.0.1 and I am now getting an error when trying to open any
 of my projects which were defined as java projects. Here is the error:

 A problem occurred while opening this project. Try quitting and
 restarting the application. If the problem persists, you may be using
 an unsupported project version, or your project files may be corrupted.

 If I accept the dialog, I can edit the MXML and AS files within the
 MXML and ActionScript editors however I do not get any code hints.

 Has anyone else seen this issue?

 Rich



 





--
Rich Tretola
mx:EverythingFlex/
http://www.EverythingFlex.com


Re: [flexcoders] Flex Builder 2.0.1 Eclipse Plugin Issues

2007-02-01 Thread Rich Tretola

Are you only doing Flex projects or have you tried to create a Java project
with Flex files included within?

On 2/1/07, Jeffry Houser [EMAIL PROTECTED] wrote:



Flex Builder 2.01 has been working fine for me on Eclipse 3.1.
( I assumed it was supported, but I could be wrong )

At 01:20 PM 2/1/2007, you wrote:

Not positive, but I don't think Eclipse 2.0.1 is officially supported in
3.1 You may need 3.2.

-D

Rich Tretola wrote:
 
  I upgraded my Flex Builder 2 plugin on Eclipse today (Eclipse 3.1 on
  Win XP) to 2.0.1 and I am now getting an error when trying to open any
  of my projects which were defined as java projects. Here is the error:
 
  A problem occurred while opening this project. Try quitting and
  restarting the application. If the problem persists, you may be using
  an unsupported project version, or your project files may be
corrupted.
 
  If I accept the dialog, I can edit the MXML and AS files within the
  MXML and ActionScript editors however I do not get any code hints.
 
  Has anyone else seen this issue?
 
  Rich

--
Jeffry Houser, Software Developer, Writer, Songwriter, 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
Connecticut Macromedia User Group: http://www.ctmug.com

 





--
Rich Tretola
mx:EverythingFlex/
http://www.EverythingFlex.com


RE: [flexcoders] Possible to update an XML List collection while keeping a Tree Control open ?

2007-02-01 Thread Tracy Spratt
Are you updating the whole DataProvider?  If so, then you will need to
store the selectedItems array and re-set it after the dataProvider is
changed.

 

If you are updating the individual nodes using the api, then the tree
will not close/initialize.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of helihobby
Sent: Thursday, February 01, 2007 1:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Possible to update an XML List collection while
keeping a Tree Control open ?

 

Hello,
I have an XMLListCollection which is used as a data source for a Tree 
control. The problem is that when I get a new update from an HTTP 
Service, the Binding updates the complete Tree thus closing all current 
Leafs.

Is it possible to keep the folders / leafs keep their state while after 
receiving an update on the under line XMLListCollection data source ?

Thanks,

Sean.

 



RE: [flexcoders] Re: Index of an itemRenderer

2007-02-01 Thread Tracy Spratt
If you can get the renderer to emit a custom event that contained the
data that might work.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of evert_dennis
Sent: Thursday, February 01, 2007 9:57 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Index of an itemRenderer

 

I've got a repeater which is creating objects based on how many items
are in the HorizontalList. For the sake of this example lets say
there are 6 items. When I roll over an itemRenderer in the list I am
passing data to that object based on which itemRenderer you are rolled
over using event.itemRenderer.data. That works fine if I am only
passing it to repeated object number 1 from every single item in the
list. But I would like to pass the appropriate data to each
appropriate object based on which itemRenderer you are over. So if
you are rolled over itemRenderer 4, pass data to object 4. Does this
make sense? Any ideas?

 



Re: [flexcoders] Re: Max OS X Flex Builder 2.01 License Issue - still waiting

2007-02-01 Thread Brendan Meutzner

Hi,

Transferring licenses doesn't seem to be the only issue.  We've been using a
trial Mac version which just expired and I put through the order for a Mac
license online last night thinking we'd have a valid key within a few
minutes (like we did for the PC version last summer)...  Not quite... it
immediately showed as pending last night, and remained that way this
morning.  So after 30 minutes on hold with customer support this morning,
I'm told that the more expensive transactions are processed manually and
that somebody would be reviewing the details within the next 2-3 days.
WTF?  Since when is a $499 FlexBuilder license expensive, and even so, why
do they need to process manually?  Really really not happy this morning...
especially because it's pretty much impossible to find a temporary key for
the Mac version (I didn't just say that though)...

It's too bad that the fantastic relationship we have with the Adobe
engineers can't spread over to the CS department a bit...


Brendan


On 1/25/07, Tom Chiverton [EMAIL PROTECTED] wrote:


On Wednesday 24 January 2007 19:53, John Dowdell wrote:
 What you and Ethan describe doesn't seem acceptable to me either, but
 let me get some more information on this, and get back to the list when
 I do, good?

Sounds great.
Could you also try and find out if there are plans to just automate the
whole
process ?
It strikes me that converting license betwen platforms shouldn't really
require a human in the loop, if it's only done once.

--
Tom Chiverton
Helping to advantageously aggregate prospective experiences



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







--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca


Re: [flexcoders] pop ups again

2007-02-01 Thread Doug McCune
So the reason for this is because PopUpManager listens for the SHOW and 
HIDE events (see PopUpManagerImpl.as line 471). If your popped up 
component dispatches SHOW or HIDE then the PopUpManager takes this to 
mean that it should show or hide the popup.


So when your popped up window dispatches SHOW, PopUpManager calls 
showModalWindow(), which then also sets the window's visible property. 
If this setting of the visible property in turn triggered the SHOW 
event, then we'd get caught in an endless loop of PopUpManager calling 
showModalWindow() over and over again.


So this isn't a solution, but hopefully it helps to understand what's 
going on.


Doug


Roman Protsiuk wrote:


I guess the reason is in following line of PopUpManagerImpl.as:

line 574: IUIComponent(o.owner).setVisible(true, true);

Second parameter says do not dispatch show event... I wonder why is
it this way...

Maybe someone who understands this behavior will read these lines someday.

R.

On 2/1/07, Roman Protsiuk [EMAIL PROTECTED] 
mailto:roman.protsiuk%40gmail.com wrote:

 Hi, everyone.

 I've modified my previous example (if anyone saw it). Now I'm using
 following approach to handle pop ups:

 The pop up itself PopUpWindow.mxml:

 ?xml version=1.0 encoding=utf-8?
 mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml 
http://www.adobe.com/2006/mxml

 layout=vertical
 horizontalAlign=center
 width=400
 height=300
 implements=mx.managers.IFocusManagerComponent
 title=TESTING
 defaultButton={mainButton}
 creationComplete=onCreationComplete()
 show=onShow()

 mx:Box height=100% minHeight=0 width=100%
 mx:Text id=traceText text=show captured (not creationComplete): /
 /mx:Box

 mx:Canvas width=100%
 mx:Label id=total text=total: none left=10 /
 mx:Button id=mainButton
 horizontalCenter=0
 bottom=10
 label=close me
 click=onMainButtonClick() /
 /mx:Canvas

 mx:Script
 ![CDATA[
 import mx.core.Application;
 import mx.managers.PopUpManager;
 import mx.managers.PopUpManagerChildList;

 private static var _popUp : PopUpWindow;

 private static var _totalCounter : Number = 0;

 private static var _showCounter : Number = 0;

 public var modal : Boolean;

 public static function showPopUp(parent : DisplayObject = null,
 modal : Boolean = true) : PopUpWindow {
 var popUpParent : DisplayObject = (parent != null ? parent :
 DisplayObject(Application.application));

 if (_popUp == null) {
 _popUp = PopUpWindow(PopUpManager.createPopUp(popUpParent,
 PopUpWindow, modal, PopUpManagerChildList.APPLICATION));
 } else {
 if (!_popUp.isPopUp) {
 _popUp.modal = modal;
 _popUp.traceText.htmlText += (++_totalCounter).toString() + ) 
 +  modality:  + modal.toString() + . ;

 PopUpManager.addPopUp(_popUp, popUpParent, modal,
 PopUpManagerChildList.APPLICATION);
 }
 }

 PopUpManager.centerPopUp(_popUp);

 return _popUp;
 }

 protected function hidePopUp() : void {
 if (isPopUp) {
 PopUpManager.removePopUp(this);
 }
 }

 protected function onCreationComplete() : void {
 mainButton.setFocus();
 }

 protected function onShow() : void {
 mainButton.setFocus();

 traceText.htmlText += (++_showCounter).toString() +  time +
 (_showCounter == 1 ?  : s);
 total.text = total:  + _showCounter.toString();
 }

 protected override function focusOutHandler(event : FocusEvent) : void {
 if (event.relatedObject == null || !contains(event.relatedObject)) {
 hidePopUp();
 }
 super.focusOutHandler(event);
 }

 private function onMainButtonClick() : void {
 hidePopUp();
 dispatchEvent(new Event(Event.CLOSE));
 }

 ]]
 /mx:Script

 /mx:TitleWindow


 Application popUpSample.mxml:

 ?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:CheckBox id=modal label=modal? horizontalCenter=0
 verticalCenter=-30 /

 mx:Button id=clickButton
 horizontalCenter=0
 verticalCenter=0
 label=click me
 click=onButtonClick() /

 mx:Script
 ![CDATA[
 private function onButtonClick() : void {
 PopUpWindow.showPopUp(null, modal.selected);
 }
 ]]
 /mx:Script

 /mx:Application


 The problem here consist in show event which should be dispatched when
 component visibility is changed to true as I understand.
 The bad thing is this pop up dispatches show event ONLY while it is
 NOT MODAL. If I say 'let's make it modal', show event isn't
 dispatched. Confusing. At least as for me.

 Can anybody explain this behavior? Or say it's not right?

 Thanks,
 R.


 




[flexcoders] redundant binding??

2007-02-01 Thread mthielman11
Hey guys.  I am just wondering if this is really the proper way to
bind and set up a field.

He is an example of a field on a popup window we have.  When the
screen is loaded, it needs to retrieve the data stored in the db and
display it on the screen.  Obviously later on we need to then save it
back.  

This is now done via three different lines, in our init function we
have the following:


// Assign principal values to fields prior to binding  
fname.data = _provider.firstname;

// Now bind fields to data record object 
BindingUtils.bindProperty(_provider, firstname, fname, text); 

does it really take both these steps to do this??  Seems like extra work.





[flexcoders] Is it possible to write or to modify registrations of a xml with Flex?

2007-02-01 Thread alphaclass525
Is it possible to write or to modify registrations of a xml in real 
time with Flex?



[flexcoders] Custom components and handling variables

2007-02-01 Thread Cashorali, Tanya M.
I'm still learning how I should be designing custom components and encapsulating
methods/variables appropriately.

 

I have a custom component that pops up and just adds/removes items from two
arraycollections.  After this is done, I'd like to close it and reflect the
changes on the main application page.

I'm just wondering how to access variables from custom components.  Is this good
practice or should these variables be initialized in the main application first?





THE INFORMATION TRANSMITTED IN THIS ELECTRONIC COMMUNICATION IS INTENDED ONLY 
FOR THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN CONFIDENTIAL 
AND/OR PRIVILEGED MATERIAL.  ANY REVIEW, RETRANSMISSION, DISSEMINATION OR OTHER 
USE OF OR TAKING OF ANY ACTION IN RELIANCE UPON, THIS INFORMATION BY PERSONS OR 
ENTITIES OTHER THAN THE INTENDED RECIPIENT IS PROHIBITED.  IF YOU RECEIVED THIS 
INFORMATION IN ERROR, PLEASE CONTACT THE SENDER AND THE PRIVACY OFFICER, AND 
PROPERLY DISPOSE OF THIS INFORMATION.




[flexcoders] SWFLoader Questions - need help from the gurus!

2007-02-01 Thread Mike Anderson
Hello All,

I am getting confused, as to when I should be referencing the SWFLoader
Component ITSELF, versus the SWFLoader.content - as it relates to
modifying it's properties, etc.

For example, the SWFLoader has the scaleX and scaleY properties
available to the developer.  BUT, so does the Content -

So, if I wanted to Zoom in/out my SWFLoader Content, what would be the
more appropriate command?

1) SWFLoader.scaleX = value;

-or-

2) SWFLoader.content.scaleX = value;

This is something, that has always confused me.

Also, as many Properties and Methods that the SWFLoader 
SWFLoader.content have in common, there are some that are unique only to
themselves.

For example, if I want to make the content draggable, the only portion
that makes startDrag() and stopDrag() available to the developer, is the
SWFLoader - NOT the SWFLoader.content -

I guess, what I am asking here, is what's the general rule of thumb -
when attempting to Scale, Move, ... the contents of the SWFLoader?  The
SWFLoader itself?  Or the SWFLoader.content?

Thanks SO much in advance, for anything you can offer regarding this.

Mike


Re: [flexcoders] pop ups again

2007-02-01 Thread Doug McCune
By the way, here's my modification to your example that works. Basically 
I extended TitleWindow to dispatch a custom event whenever the visiblity 
is changed, regardless of the flag that normally controls whether to 
dispatch the event.


See it here: http://dougmccune.com/flex/popup_test/

right click to view source

-Doug

Doug McCune wrote:


So the reason for this is because PopUpManager listens for the SHOW 
and HIDE events (see PopUpManagerImpl.as line 471). If your popped up 
component dispatches SHOW or HIDE then the PopUpManager takes this to 
mean that it should show or hide the popup.


So when your popped up window dispatches SHOW, PopUpManager calls 
showModalWindow(), which then also sets the window's visible property. 
If this setting of the visible property in turn triggered the SHOW 
event, then we'd get caught in an endless loop of PopUpManager calling 
showModalWindow() over and over again.


So this isn't a solution, but hopefully it helps to understand what's 
going on.


Doug


Roman Protsiuk wrote:


I guess the reason is in following line of PopUpManagerImpl.as:

line 574: IUIComponent(o.owner).setVisible(true, true);

Second parameter says do not dispatch show event... I wonder why is
it this way...

Maybe someone who understands this behavior will read these lines 
someday.


R.

On 2/1/07, Roman Protsiuk [EMAIL PROTECTED] 
mailto:roman.protsiuk%40gmail.com wrote:

 Hi, everyone.

 I've modified my previous example (if anyone saw it). Now I'm using
 following approach to handle pop ups:

 The pop up itself PopUpWindow.mxml:

 ?xml version=1.0 encoding=utf-8?
 mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml 
http://www.adobe.com/2006/mxml

 layout=vertical
 horizontalAlign=center
 width=400
 height=300
 implements=mx.managers.IFocusManagerComponent
 title=TESTING
 defaultButton={mainButton}
 creationComplete=onCreationComplete()
 show=onShow()

 mx:Box height=100% minHeight=0 width=100%
 mx:Text id=traceText text=show captured (not creationComplete): /
 /mx:Box

 mx:Canvas width=100%
 mx:Label id=total text=total: none left=10 /
 mx:Button id=mainButton
 horizontalCenter=0
 bottom=10
 label=close me
 click=onMainButtonClick() /
 /mx:Canvas

 mx:Script
 ![CDATA[
 import mx.core.Application;
 import mx.managers.PopUpManager;
 import mx.managers.PopUpManagerChildList;

 private static var _popUp : PopUpWindow;

 private static var _totalCounter : Number = 0;

 private static var _showCounter : Number = 0;

 public var modal : Boolean;

 public static function showPopUp(parent : DisplayObject = null,
 modal : Boolean = true) : PopUpWindow {
 var popUpParent : DisplayObject = (parent != null ? parent :
 DisplayObject(Application.application));

 if (_popUp == null) {
 _popUp = PopUpWindow(PopUpManager.createPopUp(popUpParent,
 PopUpWindow, modal, PopUpManagerChildList.APPLICATION));
 } else {
 if (!_popUp.isPopUp) {
 _popUp.modal = modal;
 _popUp.traceText.htmlText += (++_totalCounter).toString() + ) 
 +  modality:  + modal.toString() + . ;

 PopUpManager.addPopUp(_popUp, popUpParent, modal,
 PopUpManagerChildList.APPLICATION);
 }
 }

 PopUpManager.centerPopUp(_popUp);

 return _popUp;
 }

 protected function hidePopUp() : void {
 if (isPopUp) {
 PopUpManager.removePopUp(this);
 }
 }

 protected function onCreationComplete() : void {
 mainButton.setFocus();
 }

 protected function onShow() : void {
 mainButton.setFocus();

 traceText.htmlText += (++_showCounter).toString() +  time +
 (_showCounter == 1 ?  : s);
 total.text = total:  + _showCounter.toString();
 }

 protected override function focusOutHandler(event : FocusEvent) : 
void {

 if (event.relatedObject == null || !contains(event.relatedObject)) {
 hidePopUp();
 }
 super.focusOutHandler(event);
 }

 private function onMainButtonClick() : void {
 hidePopUp();
 dispatchEvent(new Event(Event.CLOSE));
 }

 ]]
 /mx:Script

 /mx:TitleWindow


 Application popUpSample.mxml:

 ?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:CheckBox id=modal label=modal? horizontalCenter=0
 verticalCenter=-30 /

 mx:Button id=clickButton
 horizontalCenter=0
 verticalCenter=0
 label=click me
 click=onButtonClick() /

 mx:Script
 ![CDATA[
 private function onButtonClick() : void {
 PopUpWindow.showPopUp(null, modal.selected);
 }
 ]]
 /mx:Script

 /mx:Application


 The problem here consist in show event which should be dispatched when
 component visibility is changed to true as I understand.
 The bad thing is this pop up dispatches show event ONLY while it is
 NOT MODAL. If I say 'let's make it modal', show event isn't
 dispatched. Confusing. At least as for me.

 Can anybody explain this behavior? Or say it's not right?

 Thanks,
 R.




 




[flexcoders] Re: Index of an itemRenderer

2007-02-01 Thread Jason Fincanon
Try placing this on your itemRenderer:

click=trace(event.currentTarget.parent.getChildIndex(event.currentTarget))

I'm using that for something that sounds similar to what you are
saying and it's working in my case.

-FlashCanon

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

 If you can get the renderer to emit a custom event that contained the
 data that might work.
 
  
 
 Tracy
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of evert_dennis
 Sent: Thursday, February 01, 2007 9:57 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Index of an itemRenderer
 
  
 
 I've got a repeater which is creating objects based on how many items
 are in the HorizontalList. For the sake of this example lets say
 there are 6 items. When I roll over an itemRenderer in the list I am
 passing data to that object based on which itemRenderer you are rolled
 over using event.itemRenderer.data. That works fine if I am only
 passing it to repeated object number 1 from every single item in the
 list. But I would like to pass the appropriate data to each
 appropriate object based on which itemRenderer you are over. So if
 you are rolled over itemRenderer 4, pass data to object 4. Does this
 make sense? Any ideas?




[flexcoders] Passing id to a function

2007-02-01 Thread Sandy Saline
When I click on a canvas that was created dynamically and given an id, I
am trying to pass the id on to a function that changes the alpha value
of the canvas. 

 

I am using an EventListener and var myID:String =
event.currentTarget.id;  When I use a trace statement, I know the id
value is being passed correctly.

 

This is the point I get stuck at. How do I use this var to change the
alpha value dynamically? 

 

TIA for your assistance.

Sandy

 



Re: [flexcoders] Passing id to a function

2007-02-01 Thread Brendan Meutzner

Looks like you've already answered your own question :-)

The currentTarget property of the even IS the canvas... just set the alpha
directly on that...


Brendan


On 2/1/07, Sandy Saline [EMAIL PROTECTED] wrote:


   When I click on a canvas that was created dynamically and given an id,
I am trying to pass the id on to a function that changes the alpha value of
the canvas.



I am using an EventListener and var myID:String = event.currentTarget.id;
When I use a trace statement, I know the id value is being passed correctly.



This is the point I get stuck at. How do I use this var to change the
alpha value dynamically?



TIA for your assistance.

Sandy



 





--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca


[flexcoders] Re: Determining if there has been any user input on a page

2007-02-01 Thread jari.huuskonen
I've done this like below.

1. In each Input field, check box, combo etc. I listen to the change 
event like this 

change=editData(event.target)

2. I've got a global variable to hold info of all changed items 

public var editedObjects:Array = new Array();

3. editData function

public function editData(obj:Object):void{
//check if event.target was already changed
var addData:Boolean = true;

//verify if editedObjects contains items

if (editedObjects.length0)
{
for(var i:int = 0; i editedObjects.length; 
i++) {
//If object is found do not 
add it again
if(editedObjects[i]==obj){
addData = false;
}
}
}

//If object is not found add it to array
if (addData){
editedObjects[editedObjects.length]=obj;
}

//change parameters of selected object to show to 
user which fields has been changed 
obj.setStyle('backgroundColor', 0xFF);
obj.setStyle('borderColor', 0xFF99CC);
obj.setStyle('borderThickness',2);
obj.setStyle('color',0x993300);
obj.setStyle('fontWeight','bold');
}

4. If editedObjects.length0 then there are changes.

editedObjects contains an array with references to all changed items. 
You may loop the array and do what ever you wish with the changed 
items.

Hope this helps.

-jari


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

 In Flex is there a way to determine if a user has made any input to 
any 
 control on a page without having to check each individual control?  
My 
 app. makes use of several TabNavigators with several tabs in each 
and I 
 would like a way to tell which tabs have changes, if any, when the 
user 
 clicks Submit instead of reading the state of every control on 
every 
 page.
 
 What I'm hoping for is something like an uber-event handler that I 
 could register every control on a page with, in addition to the 
 control's individual event handler.  In the uber-event handler I 
could 
 simply record that something had changed on that page and maybe 
keep 
 track of which controls need to be read on Submit.
 
 Thanks.





Re: [flexcoders] Panel and Scrollbars (basic question)

2007-02-01 Thread Rachel Maxim

This may or may not be the answer you are looking for... but is the content
of your panel laid out using constraints or absolute values? If you do it
with constraints, then your content should get resized when the scrollbar
appears. Then again, this may be the inverse of what you are trying to do,
and it may cause labels or text to get truncated.

Is there a reason that you cannot make the panel wide enough to accomodate
your content and scroll bar both, then if the scroll bar doesn't show up
then it will just be a little more padding to the right.
It seems like if you were to resize the panel dynamically with a scroll
event then it might jump around which may not be the desired effect.

If you can post code I'd be happy to take a look, I've done a lot of
tweaking layouts with lots of scrollbars lately!

HTH
Rachel

On 2/1/07, nwebb [EMAIL PROTECTED] wrote:


Hi,

I'm sure this is excruciatingly simple but i couldn't find an answer (I
must be searching with the wrong keywords).

I have a Panel.
Inside it is a Text component, and a Repeater underneath that
(...repeating a CheckBox) .
All works fine.

I want to set the maxHeight of the Panel to 200px, so that if I get too
many Checkboxes appearing, my content will scroll vertically.

When I set maxHeight, I get *both* horizontal and vertical scrollbars
appearing - the horizontal scrollbar only appears because the width of the
vertical scrollbar eats in to the Panel width - therefore I get horizontal
scrolling of about 16 pixels.

If I set horizontalScrollbarPolicy to false then my content is still
clipped.
I'm sure I can muster a workaround easily enough (e.g. manually resize
Panel based on ScrollEvent etc), but I thought there surely must be
something in-built and neater, already in place to deal with this kind of
scenario?

Any help much appreciated.




[flexcoders] Re: Adobe.com Servers?

2007-02-01 Thread purcept
... also,  I get a Cannot find server or DNS Error
Internet Explorer about half the time.  Could there be some kind of 
DNS congestion or problem?

Don

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

 Where are you located?  We've made some changes to get adobe.com 
faster
 actually, but have noticed some slowdowns on certain things.  I was
 recently told we're serving close to 600 Mbs right now, especially 
since
 Lightroom just launched, so we push out a fair amount of data :-)
 
  
 
 Matt
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of purcept
 Sent: Thursday, February 01, 2007 11:10 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Adobe.com Servers?
 
  
 
 Why have the Adobe.com servers been so Slow and Erratic over the 
last 
 couple months? Any time I go there for Flex info, I always have to 
 Refresh at least once. I've asked around, but no one seems to know.





[flexcoders] Newbie: Adding New Rows

2007-02-01 Thread Greg Hesla
Hello, all - got a newbie question. We have been evaluating Flex as a  
replacement to Flash / Remoting. We are using Flex (obviously) as the  
front-end, ColdFusion in the middle, and MS SQL2K as the DB server.

The goal is to create a simple table-maintenance app which does the  
following:
- Displays a list of existing items (tasks, in this case) from a table
- Allows these items to be edited, automatically saving any changes  
made
- Allows items to be deleted - again, autosaving to the database.
- Allows items to be added - you guessed it, auto-save here as well.

I have created the .as and .cfc files using the ColdFusion Wizard.

The items in the table are being presented in an editable datagrid.

The dataProvider for the dataGrid is an arrayCollection.

I've got everything working - created an eventListener on the  
arrayCollection that automatically saves deletes, inserts, and  
updates. However, when I insert new rows, I'm having a hard time  
figuring out how to set the newly generated identity value back in  
the correct row of the arrayCollection.

First off, am I doing this right? Second, how do I find the row that  
just inserted so that I can update it with the DB-generated identity  
value?

Thanks in advance,

Greg



RE: [flexcoders] tracking a user session

2007-02-01 Thread Dimitrios Gianninas
When your user is authenticated in Flex, then retrieve his info and roles and 
store it in a global variable that u can use from anywhere in your app. For 
people using Cairngorm (and you might not) this will look like so:
 
ModelLocator.getInstance().user = someUserInstance;
 
Since the ModelLocator is a singleton you can access from anywhere in the app 
to display user info or check his/her roles to see if he/she has access to 
something or not.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
mthielman11
Sent: Wednesday, January 31, 2007 1:54 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] tracking a user session



I am having a surprisingly very difficult time finding a concrete
answer as to how to handle sessions in flex. We need to be able to
track a user once they are logged into the system. Security in our
app is critical and every post needs to be validated. IN our current
web app we simply had a string added to the end of each url that
tracked the users session. What is the best way to handle this in
flex?? We need to know and track session validity, timeout, logout
and prvilages to modules and features. thanks. Our back end is
java/postgres.



 

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

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



Re: [flexcoders] Whats up with MXNA

2007-02-01 Thread Dave Carabetta

Actually, we did some pretty extensive checks on our end to make sure it
wasn't us causing the problem, and it's not us.

Regards,
Dave.
Cynergy Systems, Inc.

On 2/1/07, Igor Costa [EMAIL PROTECTED] wrote:


  Jason

Everything is going fine with my MXNA here.

Kind of problem (if could be a problem) it's in fact of the guys at Cy.
Sys. had pinged again some old post. This happens.


Best.

On 2/1/07, Jason Hawryluk [EMAIL PROTECTED] wrote:

   4 pages of Cynergy Systems Blog posts (old ones mind you), after page
 4
 nothing ??

 Anyone else getting this..

 jason




--

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



RE: [flexcoders] Whats up with MXNA

2007-02-01 Thread Carson Hager
Yeah the last thing we want out there is year old blog posts making us
look like dinosaurs. Believe me...it's not our doing. :)  We checked our
RSS feed and it was accurate. We're not sure how it happened.
 

Carson
 

 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com http://www.cynergysystems.com/ 
 
Email:  [EMAIL PROTECTED]
Office:  866-CYNERGY
Mobile: 1.703.489.6466
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Carabetta
Sent: Thursday, February 01, 2007 12:29 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Whats up with MXNA



Actually, we did some pretty extensive checks on our end to make sure it
wasn't us causing the problem, and it's not us.

Regards,
Dave.
Cynergy Systems, Inc.


On 2/1/07, Igor Costa [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote: 

Jason

Everything is going fine with my MXNA here. 

Kind of problem (if could be a problem) it's in fact of the guys
at Cy. Sys. had pinged again some old post. This happens.


Best. 


On 2/1/07, Jason Hawryluk [EMAIL PROTECTED] wrote: 

4 pages of Cynergy Systems Blog posts (old ones mind
you), after page 4
nothing ??

Anyone else getting this..

jason








-- 

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






 


[flexcoders] Re: FABridge

2007-02-01 Thread john_69_11
Just downloaded the new release, works great in safari, thanks a lot!

-John

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

 Hi,
  
 There is a release of the Flex AJAX bridge scheduled in the next week.
 Check labs.adobe.com later this week.
  
 Regards,
 David
 Adobe
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of john_69_11
 Sent: Friday, January 26, 2007 11:54 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: FABridge
 
 
 
 I was just wondering what the status for this next release was. If
 there wont be anything soon and I could get a little bit of direction
 of how to fix this problem I could do it myself, I've taken a look at
 the javascript but I get lost very quickly.
 
 Thanks,
 
 -John
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , David Mendels dmendels@ wrote:
 
  Hi,
  
  expect a new build on labs very soon (within a week it is expected,
 but
  not guaranteed.)
  
  -David
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 ] On
  Behalf Of john_69_11
  Sent: Tuesday, January 09, 2007 11:38 AM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  Subject: [flexcoders] FABridge
  
  
  
  Is anyone else out there using FABridge? I'm testing it out on Safari
  and getting js errors, has anyone else ran into this and possible
  solutions? The exception I get is:
  
  Value undefined (result of expression this.target.getRoot) is not
  object.
  FABridge.js, line 191
  
  If I could get any help at all with this I would really apprechiate
 it.
  
  -John
 





RE: [flexcoders] Whats up with MXNA

2007-02-01 Thread Matt Chotin
I think MXNA has some issues when it picks up a post for the first time
in a while and will republish old posts (like it re-reads the RSS feed
and doesn't realize it broadcast some of those already).  Probably some
sort of internal cache/marking problem, but given that it's in some
respects a skunkworks project, not one that will be investigated heavily
since the consequence is minor frustration and nothing more.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Carson Hager
Sent: Thursday, February 01, 2007 3:42 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Whats up with MXNA

 

Yeah the last thing we want out there is year old blog posts making us
look like dinosaurs. Believe me...it's not our doing. :)  We checked our
RSS feed and it was accurate. We're not sure how it happened.

 


Carson

 


 
Carson Hager
Cynergy Systems, Inc.
http://www.cynergysystems.com http://www.cynergysystems.com/ 
 
Email:  [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
Office:  866-CYNERGY
Mobile: 1.703.489.6466 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dave Carabetta
Sent: Thursday, February 01, 2007 12:29 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Whats up with MXNA

Actually, we did some pretty extensive checks on our end to make sure it
wasn't us causing the problem, and it's not us.

Regards,
Dave.
Cynergy Systems, Inc.

On 2/1/07, Igor Costa [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 wrote: 

Jason

Everything is going fine with my MXNA here. 

Kind of problem (if could be a problem) it's in fact of the guys at Cy.
Sys. had pinged again some old post. This happens.


Best. 

On 2/1/07, Jason Hawryluk [EMAIL PROTECTED] wrote: 

4 pages of Cynergy Systems Blog posts (old ones mind you), after page 4
nothing ??

Anyone else getting this..

jason




-- 

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

 

 



Re: [flexcoders] Adobe.com Servers?

2007-02-01 Thread John Dowdell
purcept wrote:
 Why have the Adobe.com servers been so Slow and Erratic over the last 
 couple months?  Any time I go there for Flex info, I always have to 
 Refresh at least once.  I've asked around, but no one seems to know.

David Hatch of the web team posted a status update a few weeks ago. If 
you're seeing performance which is not satisfactory, could you forward 
it either there or at the feedback widget on each adobe.com webpage, so 
that the info gets directly to those who do the work? Thanks.
http://weblogs.macromedia.com/dhatch/archives/2007/01/hi_all_since_th.cfm

tx,
jd




-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.


RE: [flexcoders] How to create a Windows taskbar notification?

2007-02-01 Thread Dimitrios Gianninas
Wait for Apollo :)
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rachel 
Maxim
Sent: Wednesday, January 31, 2007 5:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to create a Windows taskbar notification?



I need to create a Windows Taskbar notification (like the Outlook new message 
balloon) from Flex. I'm wondering if anyone can recommend a tool for doing 
this, I'd expect it to be some type of ActiveX or COM object. I'm using 
ColdFusion on the back end. I know almost nothing about Windows programming, 
but I've found a few tools online that seem to be the right direction, still if 
anyone has already built anything like this with Flex and/or CF I'd love to 
hear your advice. 

Thanks
Rachel Maxim



 

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

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



[flexcoders] Re: Determining if there has been any user input on a page

2007-02-01 Thread ben.clinkinbeard
I do this in my app. All of my forms are data-driven, so when the data
is initially loaded from the server I create two copies of it:
formData and formDataOnFile. I then broadcast an event any time
something changes, and in the event handler I use
ObjectUtil.compare(formData, formDataOnFile) to determine whether or
not they're identical. If they're not then I enable my save button.

HTH,
Ben


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

 In Flex is there a way to determine if a user has made any input to any 
 control on a page without having to check each individual control?  My 
 app. makes use of several TabNavigators with several tabs in each and I 
 would like a way to tell which tabs have changes, if any, when the user 
 clicks Submit instead of reading the state of every control on every 
 page.
 
 What I'm hoping for is something like an uber-event handler that I 
 could register every control on a page with, in addition to the 
 control's individual event handler.  In the uber-event handler I could 
 simply record that something had changed on that page and maybe keep 
 track of which controls need to be read on Submit.
 
 Thanks.





[flexcoders] More knowledge of future component development?

2007-02-01 Thread Doug McCune
I know this is a very tricky line that Adobe has to walk between what 
they can say about future components released in the framework. But 
here's my issue: I'd love to build more components for Flex, my only 
worry is that I'll be duplicating energy spent by the Flex team (or 
Adobe consulting). For example, say I wanted to take the Scheduling 
Framework and enhance it. I know the labs page says it's in 0.01 alpha 
or whatever, and they mention that a 1.0 release will happen eventually. 
So if I knew that in one month a more robust and amazing scheduling 
framework was going to be released I wouldn't even bother. But if that 
1.0 release isn't going to happen for 12 months, then it's worth my time 
doing it on my own.

This is the same with other components in the framework. I'm not going 
to concentrate on enhancements to the DataGrid, for example, because I 
know Adobe plans on focusing on that with the Flex 3 framework, and any 
enhancements that I make will probably pale in comparison. But I have 
been working on the TabNavigator because I haven't seen any mention of 
that from an official Adobe source.

I've been amazingly impressed with Adobe's openness with developers 
overall, the release of the framework source, the info regarding the 
release schedule, etc. If it was possible to give us a little bit more 
on which components in the framework have planned upgrades, then it 
might be easier for us to focus our efforts. I know Adobe has said they 
want us to build more components, I just don't want to build the same 
ones that the Flex team's building.

Doug


[flexcoders] form item and text input control alignment

2007-02-01 Thread Roger Ross
Hello,

When you use a text input control it adds the form item as well for
the field label, this is good. 

When you place the form item and text input control in a VBox how come
the text input controls do not line up to the left and the form items
line up to the right.

They seem to set their alignment on the length of text in the label of
the form item.

Any Idea's???

Thanks,

Roger



Re: [flexcoders] More knowledge of future component development?

2007-02-01 Thread Jeffry Houser
At 04:12 PM 2/1/2007, you wrote:

I know this is a very tricky line that Adobe has to walk between what
they can say about future components released in the framework. But
here's my issue: I'd love to build more components for Flex, my only
worry is that I'll be duplicating energy spent by the Flex team (or
Adobe consulting).

  I have the same fear.  Build that into your business model.
  The custom components you build may only have a 6-18 month life 
span depending on how soon after the version release.



--
Jeffry Houser, Software Developer, Writer, Songwriter, 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
Connecticut Macromedia User Group: http://www.ctmug.com




Re: [flexcoders] Re: Loading module from module

2007-02-01 Thread Bjorn Schultheiss

I've got A-B-C working fine using the high-level ModuleLoader.
Probably the best way to solved it is post a simple test case.

regards,

Bjorn

On 02/02/2007, at 4:10 AM, tvikatos wrote:


Anybody has a clue?

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

 Loading a module from a module does not work for me.
 A-B-C
 When B tries to load C (using ModuleManager) the factory returns  
null,

 although all types seem setup correctly.
 However if I do
 A-C
 and then:
 A-B-C
 then C is succesfully loaded and instantiated within A and B.

 Any suggestions of what might be wrong here?








[flexcoders] Flex UG in Denver?

2007-02-01 Thread John Kirby

Anyone know of a Flex Users Group in Denver... or would like to start one?

.j
--
/Whether you think that you can, or that you can't, you are usually right./
- Henry Ford


Re: [flexcoders] Possible to edit and recompile Flex framework?

2007-02-01 Thread Michael Schmalle

Hi,

How are your loading the moudle with the navigator? Deferred?

Are you using the chnage event?

Do you have a simple test case.

Peace, Mike

On 2/1/07, zzwi89 [EMAIL PROTECTED] wrote:


  I am running into an issue where the HistoryManager is referencing a
null object and throwing an error (see:
http://tech.groups.yahoo.com/group/flexcoders/message/63423). It
appears to be on line 127, in the unregister function:

public static function unregister(obj:IHistoryManagerClient):void
{
impl.unregister(obj);
}

I cannot simply override a manager, but as this is a null object, I
wonder if a simple fix could be to do a null check against impl and
obj in this function. Although I can figure out how to do this, I
can't figure out how to recompile the entire framework.

I know this could be dangerous, but there doesn't seem to be any other
fix.

 





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


Re: [flexcoders] Possible to edit and recompile Flex framework?

2007-02-01 Thread Bjorn Schultheiss

forget about recompiling the framework.

Give us some context in your application on where this error occurs

On 02/02/2007, at 8:49 AM, zzwi89 wrote:


obj);
}

I cannot simply override a manager, but as this is a null object, I
wonder if a simple fix could be to do a null check against impl and
obj in this function. Although I can figure out how to do this, I
can't figure out how to recompile the entire framework.

I know this could be dangerous, but there doesn't seem to be any other
fix.





RE: [flexcoders] Flex UG in Denver?

2007-02-01 Thread Brian Holmes
I'm up in the Fort and would be interested.
 
Brian.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Kirby
Sent: Thursday, February 01, 2007 2:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex UG in Denver?


Anyone know of a Flex Users Group in Denver... or would like to start
one?

.j

-- 
Whether you think that you can, or that you can't, you are usually
right.
 - Henry Ford 

 


***
The information in this e-mail is confidential and intended solely for the 
individual or entity to whom it is addressed.  If you have received this e-mail 
in error please notify the sender by return e-mail delete this e-mail and 
refrain from any disclosure or action based on the information.
***


[flexcoders] Re: Index of an itemRenderer

2007-02-01 Thread evert_dennis
Thank you FlashCanon.  I added the
rollOver=trace(event.currentTarget.parent.getChildIndex(event.currentTarget))
to my custom itemRenderer and that is tracing out an index value.  Now
the only problems lies in what Tracy had said in her first response
about how only 5 items exist at once in a 10 item list.   My list
displays four items at a time but has 6 total.  Therefore if I scroll
over to item 6 and rollOver it, the index shows up as four, because it
is now the 4th item in the list. Not sure what I am going to do about
that one.



[flexcoders] Re: Possible to edit and recompile Flex framework?

2007-02-01 Thread zzwi89
Hi,

I have a sample online. Very scaled down, but replicates the error and
where it would occur in my application.

http://seanrea.net/ModuleTest/ModuleTest.html

Clicking on the two buttons will switch between children of a
viewstack. If you click on '2', you should get the HistoryManager error.

A RAR of the project is here:

http://seanrea.net/ModuleTest.rar

(sorry, couldn't put the source in one file since there are several
modules involved.)

Although I load the modules using mx:ModuleLoader
url=/path/to/module/, I did try loading them manually in AS and
still got the error.

I have tried setting historyManagerEnabled = false on the TabNavigator
to no avail.

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

 forget about recompiling the framework.
 
 Give us some context in your application on where this error occurs
 
 On 02/02/2007, at 8:49 AM, zzwi89 wrote:
 
  obj);
  }
 
  I cannot simply override a manager, but as this is a null object, I
  wonder if a simple fix could be to do a null check against impl and
  obj in this function. Although I can figure out how to do this, I
  can't figure out how to recompile the entire framework.
 
  I know this could be dangerous, but there doesn't seem to be any other
  fix.
 





[flexcoders] Re: Could it really take so much code to color a row in a DataGrid..?

2007-02-01 Thread paulwelling
Hello Sanjay,

Thanks for the response...  I should have been much more explicit in
my question.  Sorry.

I'm trying to set the background color for any given row in a datagrid
based on some criteria in the row itself.

I'm sure this has been done hundreds of times before but can't seem to
find a concise and elegant way of doing this.

Thanks again,
Paul


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

 Hi Paul,
 
 You can color DataGrid Rows by using the following:
 
 DataGrid {
alternatingItemColors: #00, #cc66cc;
 }
 
 Thanks,
 Sanjay
 
 --- In flexcoders@yahoogroups.com, paulwelling pwelling@ wrote:
 
  Hello,
  
  I'm sure I've missed it, but is there a straight forward way to color
  the background of a DataGrid row..?
  
  Thanks for the info,
  Paul
 





Re: [flexcoders] Re: Possible to edit and recompile Flex framework?

2007-02-01 Thread Bjorn Schultheiss

Here's a message from Alex Harai.
I think the same applies for your history manager issue

This error occurs for two reasons:  One is that somehow, the  
DragManager or DragManagerImpl is not linked into the movie.


The other, and more common reason is that more than one module is  
using the DragManager, but the main application does not..  Modules  
operate in their own application domain, and thus cannot share  
singletons unless that singleton is loaded by the parent application  
domain.  The simple solution is to link the DragManager into the main  
application by putting something like this in a script block



import mx.managers.DragManager;

var dm:DragManager;


This fattens your application a little.  More complex solutions  
involve loading the DragManager into the main application’s  
application domain.


The above is true for all managers handled by Singleton and lots of  
other shared classes in Flex as well.



-Alex





On 02/02/2007, at 9:21 AM, zzwi89 wrote:


Hi,

I have a sample online. Very scaled down, but replicates the error and
where it would occur in my application.

http://seanrea.net/ModuleTest/ModuleTest.html





[flexcoders] Flex/Java job in Tacoma,Wa

2007-02-01 Thread hosey hosey

Hello,
We are located in Tacoma Wa.   We are migrating and application from Flash
to Flex.  It is delivered as a standalone application or as a RIA where it
utilizes a java/jsp backend.   The shell is currently VB6 but moving to SWHX
or Apollo.  Full time or part timeAny interest?

Thanks
Hosey


Re: [flexcoders] Re: Possible to edit and recompile Flex framework?

2007-02-01 Thread Michael Schmalle

Hi

This is way out in left field.

But it looks like you are loading the modules into the same
ApplicationDomain and since the HistoryManager is a singleton based in each
domain.

Try including a tabnavigator in your shell application just for the hell of
it.

Left me know.

Make sure to addChild() it then remove it after creationComplete of the
application.

Peace, Mike

On 2/1/07, zzwi89 [EMAIL PROTECTED] wrote:


  Hi,

I have a sample online. Very scaled down, but replicates the error and
where it would occur in my application.

http://seanrea.net/ModuleTest/ModuleTest.html

Clicking on the two buttons will switch between children of a
viewstack. If you click on '2', you should get the HistoryManager error.

A RAR of the project is here:

http://seanrea.net/ModuleTest.rar

(sorry, couldn't put the source in one file since there are several
modules involved.)

Although I load the modules using mx:ModuleLoader
url=/path/to/module/, I did try loading them manually in AS and
still got the error.

I have tried setting historyManagerEnabled = false on the TabNavigator
to no avail.

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

 forget about recompiling the framework.

 Give us some context in your application on where this error occurs

 On 02/02/2007, at 8:49 AM, zzwi89 wrote:

  obj);
  }
 
  I cannot simply override a manager, but as this is a null object, I
  wonder if a simple fix could be to do a null check against impl and
  obj in this function. Although I can figure out how to do this, I
  can't figure out how to recompile the entire framework.
 
  I know this could be dangerous, but there doesn't seem to be any other
  fix.
 


 





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

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

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


[flexcoders] Re: SWFLoader Questions - need help from the gurus!

2007-02-01 Thread Oscar Cortes



Hi Mike,

  The SWFLoader can help to load images or SWF into your Flex
apps. SWFLoader.content is a reference to whatever you have loaded in
the SWFLoader, so the methods and properties that you can use depend of
what it is avaible in the SWF or image that you are loading. On the
other hand, the SWFLoader as Flex control has fixed propierties and
methods. I agree with you, some of the properties are the same, and you
can get the same effect.

 I guess sometimes it is a matter of preference how you want to
handle it. For consistency, I would use the SWFLoader properties.










Re: [flexcoders] Re: Possible to edit and recompile Flex framework?

2007-02-01 Thread Michael Schmalle

Bjorn,

I forgot about that but that is basically what I said without the addChild()
part.

so the static intializer will do the trick alone.

Peace, Mike

On 2/1/07, Bjorn Schultheiss [EMAIL PROTECTED] wrote:


  Here's a message from Alex Harai.
I think the same applies for your history manager issue

This error occurs for two reasons:  One is that somehow, the DragManager
or DragManagerImpl is not linked into the movie.

The other, and more common reason is that more than one module is using
the DragManager, but the main application does not..  Modules operate in
their own application domain, and thus cannot share singletons unless that
singleton is loaded by the parent application domain.  The simple solution
is to link the DragManager into the main application by putting something
like this in a script block



import mx.managers.DragManager;

var dm:DragManager;



This fattens your application a little.  More complex solutions involve
loading the DragManager into the main application's application domain.

The above is true for all managers handled by Singleton and lots of other
shared classes in Flex as well.



-Alex




On 02/02/2007, at 9:21 AM, zzwi89 wrote:

Hi,

I have a sample online. Very scaled down, but replicates the error and
where it would occur in my application.

*http://seanrea.*net/ModuleTest/ModuleTest.htmlhttp://seanrea.net/ModuleTest/ModuleTest.html


 





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

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

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


[flexcoders] Using Effects with TitleWindow show/hide?

2007-02-01 Thread Danko Kozar
Is it possible to use mx:Effects with TitleWindow popped up by 
PopUpManager? 
I'd like to use some Move and Resize effects on window show and hide - 
just to make it slide in and out.
I've try it using showEffect and hideEffect property of TitleWindow, 
but it doesn't work.



  1   2   >