[flexcoders] Caingorm model1...amfphp remoting

2006-12-01 Thread {reduxdj}
I hear that model 1 is a great solution for simple data structures where 
all components can register with a dataprovider class...  Does anyone 
have the link handy on this specific model & info over on the labs?

 Is caingorm named after a mountain by the way?

Thanks,
Patrick



Re: [flexcoders] Matt: Event Propogation - how to bubble up through components??

2006-12-01 Thread {reduxdj}
Matt:

Am I doing something wrong because my event listeners aren't triggering 
anything... the code is all
the way at the bottom.

If you have a moment.  Thanks

Patrick


Matt Chotin wrote:
>
> If you're using UIComponents then it should work, the events should
> bubble.
>
> -Original Message-
> From: flexcoders@yahoogroups.com  
> [mailto:flexcoders@yahoogroups.com 
> ] On
> Behalf Of {reduxdj}
> Sent: Monday, November 27, 2006 8:36 PM
> To: flexcoders@yahoogroups.com 
> Subject: Re: [flexcoders] Event Propogation - how to bubble up through
> components??
>
> Matt:
>
> I'm adding UIComponents to the display list - I guess that wouldn't work
>
> this way.
> What's the best way to propagate a method to UIComponents?
>
> Can I just create new UIObjects and add them as children to my display
> list or do I have to create class files
> and extend my classes that way?
>
> As you see I'm relatively new to flex and I thank you for your time.
>
> patrick
>
> Matt Chotin wrote:
> >
> > Is the whole parent hierarchy DisplayObjects? Bubbling will only go
> > through UI objects, if you had something that didn't extend
> > DisplayObject in there it won't bubble up (all of the Flex visual
> > components are DisplayObjects)
> >
> >
> --
> >
> > *From:* flexcoders@yahoogroups.com 
>  
> [mailto:flexcoders@yahoogroups.com ]
>
> > *On Behalf Of [EMAIL PROTECTED] 
> > *Sent:* Monday, November 27, 2006 5:39 PM
> > *To:* flexcoders@yahoogroups.com 
> > *Subject:* [flexcoders] Event Propogation - how to bubble up through
> > components??
> >
> > I'm using bubbling, or at least i think i am to capture an event...
> > I've extended the event class to make my own event mechanism. the
> > events are being dispatched, however the problem is, that
> > I'm adding an event listener to my custom mxml component to receive
> > the events and nothing happens. I've probably got something
> > backwards...
> >
> > Isn't there a way to listen to events from the parent document?
> >
> > Doesn't bubbling set to true allow the event
> > to be captured by any component in the order that they are created?
> >
> > my code is as follows:
> >
> > var evt:MeEvent = new MeEvent(MeEvent.REMOTE,true);
> > dispatchEvent(evt);
> >
> > ---
> >
> > package com.me
> > {
> > import flash.events.Event;
> >
> > public class MeEvent extends Event
> > {
> >
> >
> > public static const REMOTE:String = "remote";
> >
> > public var realTarget:*;
> >
> > public function MeEvent(type:String, bubbles:Boolean=true,
> > cancelable:Boolean=false)
> > {
> > super(type, bubbles, cancelable);
> > }
> > }
> > }
> >
> > --
> > And inside my custom component this is the event listener.
> >
> > private function init():void{
> > this.addEventListener(MeEvent.REMOTE, handleEvent);
> > }
> >
> > Thanks for your time,
> > Patrick
> >
> >
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt 
> 
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> Yahoo! Groups Links
>
>  




Re: [flexcoders] Igor: override a resize event or lock a VBox container... no idea how

2006-12-01 Thread {reduxdj}

>
>
>
> how do i override a resize event or lock a VBox container not to
> get smaller as children are removed
>
> just uses the override method, please take a look at the help.
>







   Igor:

I searched through help, there's nothing specific mentioning overriding 
a method to stop a resize event. 
You have to figure that I'm learning so I need examples to see these work.

Thanks,
Patrick











>
>
>
> Regards.
>
> On 11/30/06, * [EMAIL PROTECTED] * <[EMAIL 
> PROTECTED] 
> > wrote:
>
> These little things take me forever to find and i simply can't find
> these solutions easily, if you have a moment. Answer one or two of
> them.
>
> I appreciate it, i'd gladly paypal you a few bucks for a peet's
> coffee, i'm going to get one myself and maybe i'll have my answer
> when i return, yum.
>
> Thanks,
> Patrick
>
> 1. How do I get the length of my UITextField, not 100% - that's just
> plain silly
>
> 2. What if i don't want a broken image skin, no image i want nothing
>
> 3. how do i override a resize event or lock a VBox container not to
> get smaller as children are removed
>
> 4. How do I set the font of UITextField with stylesheet, or embedded
> font
>
> 5. How do I make the UITextfield's font not to be so pixelated.
>
>
>
>
> -- 
> 
> Igor Costa
> www.igorcosta.com 
>  




Re: [flexcoders] ...UITextField - Setting styleName property doesn't work, or i don't know how use it.

2006-12-01 Thread {reduxdj}
I tried this approach, but using styleName does not give me the expected 
results...
You can use styleName on Text's they work fine but not on UITextField, 
although it
says it's a property of the UITextfield... who knows I'm relatively new 
at flex and swimming up stream
all the time?

This is the only way I know how to style the UITextField, with the 
TextFormatter class...
However the edges look pixelated...   (I'm sure there's a solution for 
this too)


var formatter:TextFormat = new TextFormat();
formatter.bold = true;
formatter.color = "0xff";
formatter.font = "arial";
formatter.size = "20";
percent.setTextFormat(formatter);
   


I have had no other issues with Text or TextArea, with using styleName 
property with a stytlesheet declaration before. 

Patrick

camlinaeizerous wrote:
>
> I haven't tested this but for 4 I would assume something similar to
> the following should work.
>
> var sometext:UITextField;
> sometext.styleName = UITextField
>
> in your style sheet you should be able to now set styles and the font,
>
> UITextField{
> fontFamily: ...;
> }
>
> if you call it UITextField you may not have to assign the styleName. I
> probably don't have all of this right but it should at least help you
> get in the right direction.
>
> > 4. How do I set the font of UITextField with stylesheet, or embedded
> > font
>
>  




[flexcoders] Re: Flash Player 9 issues on Windows 2005 Tablet PC Edition

2006-12-01 Thread Steven Toth
I apologise.   The literal name of it is "Microsoft Windows XP 
Tablet PC Edition 2005".  Here is the url to the product page on 
Microsoft's site.  Thanks.

-Steven

http://www.microsoft.com/windowsxp/tabletpc/evaluation/overviews/defa
ult.mspx

--- In flexcoders@yahoogroups.com, Chris Hill <[EMAIL PROTECTED]> wrote:
>
> AFAIK there is no Windows 2005 Tablet PC edition. I am running 
Windows 
> XP Tablet PC edition on this computer, is that what you're talking 
> about? Or are you perhaps running Vista on a Tablet PC?
> 
> 
> John Dowdell wrote:
> 
> > Steven Toth wrote:
> > > Has any testing been done of the Flash Player 9 on Windows 
2005 Tablet
> > > PC edition? When running our application under Flash Player 7 
it
> > > responded as expected. However, Flash Player 9 is responding 
poorly to
> > > pen gestures such as textInput focus and double click. We 
filed a bug
> > > report and the Adobe rep. that contacted us didn't know what 
Windows
> > > 2005 Tablet PC edition was and wasn't sure how to help us. Any 
help
> > > would be greatly appreciated. Thanks.
> >
> > I'm pulling up 18 Google references to search phrase "Windows 
2005
> > Tablet PC"... variant phrases don't return good results either. 
Is there
> > another label I should be searching on to find others' 
experience with
> > similar machines...?
> >
> > 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] Re: Styling in Flex is officially ridiculous

2006-12-01 Thread Lance Linder
I know everyone doesn't have the same needs but we have used HTML text
in flash ever since it was supported. The framework in Flex as well as
the new VM really made this difficult and in the end we had to override
several of the Flex framework classes as well as extend some of the
components to handling this in a global way.

 

I guess what really made this easier for us in the past was the ability
to use the 'prototype' chain to override properties and functions at a
global level for all TextField instances. I know overriding the
prototype chain is a thing of the past and for good reasons but it sure
would be nice if ALL textFields in every component could get a
StyleSheet instance from the StyleManager.

 

My current solution is to over ride the StyleManager with a modified
version that creates a StyleSheet instance from the styles that it
contains. Then I have to go in and extend Text, Label, TextArea etc so
they automatically use the StyleSheet instance from my custom
StyleManager. In this way we don't have to 1. Maintain multiple style
sheets and 2. go around assigning the StyleSheet to every component I
want to use it on which is a huge pain! J

 

It would be nice to see some kind of support for this in the future even
if it was just Text, Label and TextArea that supported it.

 

Thanks!

Lance

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Friday, December 01, 2006 1:35 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Styling in Flex is officially ridiculous

 

We haven't devoted a lot of attention to HTML text in Flex because the
Flash Player's support for HTML is so limited and many Flex developers
find it doesn't meet their needs, Apollo will change that, but it isn't
clear when the Player's HTML support for Flex apps in the browser will
get better.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ethan Miller
Sent: Thursday, November 30, 2006 1:33 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Styling in Flex is officially ridiculous

 

While in general I've been fairly happy with my ability to style 
flex, one area in which really lacking (and unfortunately for me in a 
key place for my application) is in styling text, especially text 
contained in an htmlText element.

Despite reading the docs 5 times now, I remain unable to style a 
simple anchor tag (. "A" as a type selector doesn't work, 
but neither do a:link, a:hover, or a:active which the docs say should 
work. Why the A tag doesn't simply support styleName as an attribute 
(or class="" or style="") is a complete mind bender to me. Why 
htmlText doesn't support  is equally puzzling.

Also, is it just me or are many of the css property names different, 
eg font-family vs fontFamily, etc. And what about shorthand syntax, 
eg "border: 1x dotted black."

I realize and accept as necessary and good the need to support a 
limited set of HTML tags but don't understand why standard and 
rigorous text styling is so out of reach. This in fact would be one 
of my top wish list items for future releases.

Meantime, if anyone has any tips on styling text now, I'm all ears =)

cheers, ethan

 



[flexcoders] Pan/Scroll chart effect

2006-12-01 Thread Dana Gutride

Hi,

I've been trying some panning effects with a chart and I've had some success
following the example here:
http://www.quietlyscheming.com/blog/charts/interactive-bubble-chart.  I'm
having trouble doing a couple of things and hopefully I can get a few ideas.

My data covers 24 hours, I've added a linkbar up top and I'd like to show 3,
6, 12 or 24 hours at once but allow the user to pan left or right through
the rest of the data for that day.  Any ideas on how to set the min/max for
the data displayed and also how should I change the chart to reflect those
time constraints while still allowing for panning left and right?

Thanks for any help,
Dana


[flexcoders] 10 Signs you need to join FlexComponents

2006-12-01 Thread Ted Patrick
1. Extended mx.core.UIComponent lately?

2. Dispatching DOM Events before 10AM?

3. You want a new  Class.

4. You are dying to know what these do?
 
[Style(name="horizontalGap", type="Number", format="Length", inherit="no")]
[Bindable("valueCommit")]
[Inspectable(category="General")]

5. You have checked Quietly Scheming for new components.

6. How do I use mx_internal?

7. Writing protocols in flash.net.Socket?

8. You skinned something today.

9. Cairngorm is no longer a challenge.

10. I want to write commercial quality components.

http://tech.groups.yahoo.com/group/flexcomponents/

Post message: flexcomponents@yahoogroups.com
Subscribe:[EMAIL PROTECTED]
Unsubscribe:  [EMAIL PROTECTED]

Seriously, if you have thought about writing components and extending the
Flex Framework, come join in. We need more great components, join the list
and learn a ton.

Cheers,

Ted Patrick
Flex Evangelist
Adobe Systems




RE: [flexcoders] FDS Stress Testing Framework (Beta) Now Available

2006-12-01 Thread Matt Chotin
I think it will give you some sense but I'll be honest that I haven't
used the framework myself.  If you end up having questions please use
the discussion section on the Wiki, the folks who worked on the tool
should be monitoring that.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ralph Hauwert
Sent: Friday, December 01, 2006 3:47 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] FDS Stress Testing Framework (Beta) Now
Available

 

Hi Matt,

That's great. We are just about to deploy a possibly high traffic
load-balanced FDS application, in which we are employing AMF and RTMP
communications. How far would this enable us to test and asses
performance using multiple FDS servers ? 
Regards,
Ralph.

On 12/1/06, Matt Chotin <[EMAIL PROTECTED]  >
wrote:

Available on Labs:
http://labs.adobe.com/wiki/index.php/Flex_Stress_Testing_Framework
 

Info cribbed from the Labs page:

The Flex Data Services Stress Testing Framework helps Flex developers
using Flex Data Services load test their Flex 2 applications. Flex Data
Services offers a number of data transport channels for communicating
between a Flex client and the Flex Data Services server. These channels
include RTMP(s), AMF(s) and HTTP(s). Most commercial load testing tools
rely on data being sent over HTTP and less performing implementations of
the AMF protocol (usually AMF0). Flex Data Services enables developers
to leverage HTTP in addition to the latest and highest performing
version of AMF (AMF3) and data push with RTMP. As most load testing tool
vendors have not yet released support for RTMP(s) or the latest version
of AMF(s), the Flex Data Services Stress Testing Framework allows Flex
developers to load test their applications that use RTMP and AMF3
without needing to use a commercial testing tool.

Adobe is currently working with a number of testing tool vendors to
implement all of the data transport protocols available in Flash. In
addition to partnering with testing tool vendors, we are providing the
following load testing framework to enable Flex Data Services developers
to load test their applications. The Flex Data Services Stress Testing
Framework is currently in beta form, but available for testing and
evaluation. Please download and test the framework and provide us your
feedback.




-- 
Ralph Hauwert
FlashCoder

 



[flexcoders] itemRenderer event question

2006-12-01 Thread jeff noyes
if I have a checkbox as an ItemRenderer in a datagrid, how do I 
determine if it's enabled?
> 
>
>  



Re: [flexcoders] uploading an object

2006-12-01 Thread Daryn Nakhuda
Thanks Mike!

I was trying to avoid using remoting, since I'm not using it anywhere 
else in my application (yet).

Basically, I have a file upload to upload your picture, and I wanted to 
have a webcam snapshot option, that posted to the same existing backend 
piece. Doesn't sound like that is currently easy/possible.

I'll look at the FMS solution though, as I am already using that elsewhere.


Daryn



Mike Weiland wrote:
>
> Daryn,
>
> It's possible, but probably not the way you are going about doing it. 
> I've taken 2 different paths to achieve this in the past, the first 
> was on www.CertificateCreator.com when a user saves a certificate the 
> object that describes the certificate is sent to ColdFusion and I 
> convert the object to WDDX and store that in the database. Then when a 
> certificate is opened it is retrieved from the database converted from 
> WDDX back to a ColdFusion object that Remoting converts back to a 
> Flash object. I've done this similar thing with .NET and PHP remoting, 
> the trick is to find what format your middleware can store in your 
> database.
>
> The second approach I've used was to use Flash Media Server to store a 
> remote shared object of the object. My app would make the remote 
> connection get the object and start up. This approach worked great 
> because there weren't a lot of objects that needed to be saved and 
> retrieve and the application doesn't have many concurrent hits that 
> would limit our license, plus after the retrieveal of the object the 
> remote connection is closed.
>
> I believe FDS has the same remote object capabilites as FMS has so you 
> might already have that end.
>
> Good luck,
>
> Mike Weiland
>
> Original Message ---
> I have data in my flex app that I want to send to my server as if it
> were a upload from a filereference (aka, as a multipart form).
>
> Is there a easy way to do that?
>
> Basically, I already have a backend servlet that accepts file uploads
> from my flex app, and from an html browse form, and i'd like to use
> that same backend with arbitrary serialized objects in my swf.
>
> Thanks,
>
> Daryn
>
>  



RE: [flexcoders] services-config with multiple endpoints

2006-12-01 Thread Shahlavi, Farid \(NIH/NLM\) [C]
You can create channels dynamically via actionscript like below:

 











 

This example is using the canned "Coldfusion" destination that comes
with services-config file. You can use FlashVars to pass whatever uri
you want based on your environment. This way you don't have to use the
services argument in the compiler either.

 

Cheers,

 

Farid

 



From: Jeremy Rottman [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 30, 2006 12:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] services-config with multiple endpoints

 

We are nearing the end of our flex application development cycle, and
about to head into beta testing. Something I have been thinking about
for a while now is how we are going to instance the application.

One of the things I am looking into is multiple remote object end
points. So that if we an end point for each of the sub-domains that
are created when we add a new instance. Does anyone know if this is
possible?

IE having something like this.

http://instanceID.admin.mydomain.com/flex2gateway/
 "
class="flex.messaging.endpoints.AMFEndpoint"/>

http://instanceID.user.mydomain.com/flex2gateway/
 "
class="flex.messaging.endpoints.AMFEndpoint"/>

 



RE: [flexcoders] Re: Announcing FlexSearch.org !

2006-12-01 Thread Vishwajit Girdhari
Hey Clint

This is a cool idea !
Tried url and it worked great for my searches.

do add my flex blog for indexing :  its  http://flexiness.blogspot.com

n one suggestion the default search is on forum ... can we have a genric
default search and then
specialise into forum , blog  , doc etc ?

thanks a lot for implementing flexsearch.org

-vishwa



  -Original Message-
  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
Behalf Of Jamie O
  Sent: Thursday, November 30, 2006 7:31 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Announcing FlexSearch.org !


  I had built one myself when CSE first came out. The issue I had then
  was the number of blogs out there which regular google would turn up
  that mine would not because I had not added them seemed significant
  enough to ditch it.

  I think having one person clean / control the list is invaluable to
  prevent duplication of efforts, etc. If there were an 'Request URL XYZ
  to be added' button / page, it would probably help the content
  collection process.

  Speaking of which - www.oastler.ca has my blog, RSS for Flex-related
  items at http://www.oastler.ca/index.php/development/flex/feed/

  Cheers,
  Jamie

  --- In flexcoders@yahoogroups.com, "Andrew Trice" <[EMAIL PROTECTED]>
  wrote:
  >
  > Good work. I think it could benefit from a search option that is a
  combination of "forums", "blogs" and "LiveDocs", which could be the
  default view. I did a search, and the first thing I thought was "why
  does this only show forum answers?".
  >
  > -Andy
  > www.cynergysystems.com
  >
  >
  >
  > 
  >
  > From: flexcoders@yahoogroups.com on behalf of Clint Modien
  > Sent: Thu 11/30/2006 7:55 AM
  > To: flexcoders@yahoogroups.com
  > Cc: Ben Lucyk
  > Subject: [flexcoders] Announcing FlexSearch.org !
  >
  >
  >
  > I created an aggregation of developer content searchable via a few
  Google custom search engines (CSE) to help the development community
  find the answers to questions quicker. It's located at:
  >
  >
  >
  > http://flexsearch.org  Feedback appreciated.
  >
  >
  >
  > I want to be clear that this is a community based project. I'll be
  posting the site list in xml format so that you can see what sites are
  in and what sites aren't in. That way I can get feedback on what
  other sites the CSE should be aggregating.
  >
  >
  >
  > Basically... If you hate it tell me why. I'll fix it. If you love
  it tell me why we'll keep it that way. You can tell me why via the blog.
  >
  >
  >
  > If you have ideas post comments on the blog I setup @
  http://blogs.flexsearch.com 
  >
  >
  >
  > Thanks!
  >
  >
  >
  >
  >
  > Clint Modien
  >
  > http://esria.com 
  >
  > p. 1.877.TRY.ESRIA ext 706
  >
  > c. 1.408.489.0750
  >
  > f. 1.877.828.4436
  >
  > [EMAIL PROTECTED] 
  >



  


[flexcoders] Re: Set combobox selection to data

2006-12-01 Thread JWOpitz
I just extended the ComboBox and created a property that can bind to
an object, then internally it will updated the selectedItem:

ComboBox
http://jwopitz.pastebin.ca/263763
Needed Utility
http://jwopitz.pastebin.ca/263764

Let me know if you have any questions on its usage.  It still needs
some work but the functionality you are looking for is there.

--- In flexcoders@yahoogroups.com, "Wally Randall" <[EMAIL PROTECTED]>
wrote:
>
> How do I set the selected value of a combobox to that of the data 
> returned from the database record?
>




Re: [flexcoders] FDS number NaN

2006-12-01 Thread Douglas McCarroll
Jeff,

Let me get this clear. If I understand correctly you're passing an AS 
number hoping that it will convert to a Java Long. But your number is 
set to null, and you'd like it to convert to null on the Java type.

Is this correct?

Douglas


Jeff Krueger wrote:
> Thanks.  I am not using a primitive, I am using Long.  I wonder what 
> it does for those.
>  
> Jeff
>
>
> */Douglas McCarroll <[EMAIL PROTECTED]>/* wrote:
>
> Jeff,
>
> I'm not sure that this will help you find a solution, but it confirms
> that this is a known issue:
>
> 
> http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part1_GetStarted.html
> 
> 
>
> "Primitive values cannot be set to null in Java. When passing Boolean
> and Number values from the client to a Java object, Flex
> interprets null
> values as the default for primitive types; for example, 0 for double,
> float, long, int, short, byte, \u for char, and false for
> Boolean.
> Only primitive Java types get default values."
>
> Douglas
>
> -
>
> Douglas McCarroll
>
> CairngormDocs.org Webmaster
> http://www.CairngormDocs.org 
>
> Flex Developer
> http://www.brightworks.com 
> 617.459.3840
>
> -
>
> Jeff Krueger wrote:
> > All,
> >
> > I am finding that when I pass a actionscript class to a remote
> > java object and a number variable type in the actionscript class is
> > set to NaN (Null), that the java class gets set to a 0, instead
> of a
> > null. Is there something I am missing or something I need to set
> the
> > number to so it will be null in my java class?
> >
> > Thanks
> >
> > Jeff
> >
> >
> > --
> > Access over 1 million songs - Yahoo! Music Unlimited.
> >
> 
>  
> >
>
> >
> >
>
>
> 
> Want to start your own business? Learn how on Yahoo! Small Business. 
>  
>
>  



[flexcoders] Need suggestions to efficiently initialize a set of tightly coupled faceless components.

2006-12-01 Thread Tracy Spratt
I have a set of faceless, data manipulation components, all of which
need a direct reference to one or more of the others.  They are
instanitated using mxml. All are top level, with a unique id.

Maintainability, readability, extensibility, reusability, etc are not
issues in this situation, but simplicity and efficiency is paramount.

I've found the simply binding them together is not successful because of
timing issues. For example, in the following, the "Parameter" object's
value property is just a pass through to the LEValue component.  But
when this initializes, the LEValue object is not yet instantiated when
the Parameter "set value" attempts to reference it.

  
  

I can make this work several ways, but since I am starting almost from
scratch (migrating a 1.5 framework), I'd like to do it "cleanly".

Any suggestions, at any level of generality, will be welcome.

Tracy



Re: [flexcoders] Synchronised TextArea selection

2006-12-01 Thread Daniel Freiman

Option 1: if you add the event listener to the
textArea.systemManagerinstead of the textArea it will register the
mouseevents outside of the
textArea.

Option 2 (maybe):  can use textArea.selectionBeginIndex/selectionEndIndex as
a source in a binding to a function that sets the selection of the other
textarea?

- Dan

On 12/1/06, Jon Rowland <[EMAIL PROTECTED]> wrote:


   Hi,

I'm trying to write a hex viewer, where one TextArea shows the hex values,
and another the ASCII values, e.g.

41 42 43 44 ABCD
45 46 47 48 EFGH

I need the TextAreas to show a synchronised selection, so if you select 42
-> 45 in the first box, area 1, B-E is selected in the second box. I've
overcome my first problem (that of the TextArea control hiding selection on
lost focus), but I can't seem to find a nice way to synchronise the
selections. There doesn't see to be a selectionChanged event, and trying to
use mouse click, down, up or move fails in odd cases ( e.g. when you move
the mouse off the control with the mouse still held down, the selection
changes but the events no longer fire).

Anyone have any bright ideas?

Thanks in advance,
Jon Rowland


 This e-mail is bound by the terms and conditions described at 
http://www.subexazure.com/mail-disclaimer.html

 



Re: [flexcoders] Flash Player 9 issues on Windows 2005 Tablet PC Edition

2006-12-01 Thread Chris Hill
AFAIK there is no Windows 2005 Tablet PC edition. I am running Windows 
XP Tablet PC edition on this computer, is that what you're talking 
about? Or are you perhaps running Vista on a Tablet PC?


John Dowdell wrote:

> Steven Toth wrote:
> > Has any testing been done of the Flash Player 9 on Windows 2005 Tablet
> > PC edition? When running our application under Flash Player 7 it
> > responded as expected. However, Flash Player 9 is responding poorly to
> > pen gestures such as textInput focus and double click. We filed a bug
> > report and the Adobe rep. that contacted us didn't know what Windows
> > 2005 Tablet PC edition was and wasn't sure how to help us. Any help
> > would be greatly appreciated. Thanks.
>
> I'm pulling up 18 Google references to search phrase "Windows 2005
> Tablet PC"... variant phrases don't return good results either. Is there
> another label I should be searching on to find others' experience with
> similar machines...?
>
> 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] Embed or Load PDF File

2006-12-01 Thread Darron J. Schall
If you would decide to take this approach, consider the recent articles 
I've published on my weblog about FlashPaper and Flex 2 integration:

How to load FlashPaper Documents in Flex 2 - 
http://www.darronschall.com/weblog/archives/000249.cfm
Batch Convert PDF files to FlashPaper 2 - 
http://www.darronschall.com/weblog/archives/000250.cfm

By converting the PDF to FlashPaper, you can load the FlashPaper 
equivalent of the PDF report inside of a container in Flex 2.  It's not 
exactly a trivial process, but it works well enough for my use cases so far.

-d

John Dowdell wrote:
>
> Options for similar effects:
>
> o Convert PDF to FlashPaper, which can be displayed in Adobe Flash
> Player, although I'm not sure offhand of invocation via Flex's MXML.
>



[flexcoders] Re: Set combobox selection to data

2006-12-01 Thread JWOpitz
I just extended mx:ComboBox with similar functionality:
http://jwopitz.pastebin.ca/263641

You will also need the ArrayCollectionUtil:
http://jwopitz.pastebin.ca/263645

There is still work to be done in both of these but feel free to copy
them.


--- In flexcoders@yahoogroups.com, Yi�it Boyar <[EMAIL PROTECTED]> wrote:
>
> i dont know whether there is a better way or not but i've used the
fallowing way.
> assume needed_val is the variable which is equal to the  data of the
one which should be selected (number in the example)
> 
> 
> 
> and in the findMyVal function:
> private function findMyVal(obj:ComboBox , wanted:Number):Number{
> for (var i:Number=0 ; i < obj.dataProvider.length;i++){
> if(wanted = = obj.dataProvider[i].id ) //i assumed that the
data label is id of the dataProvider
> return i;
> }
> return 0;
> }
> 
> whenever the dataProvider is refreshed, the function will
"automatically" be called and set the right selected index...
> by the way, i did not copy and paste a code so it may include some
typing errors, but the logic is this...
> 
> i wish it helps, if this does not work, send a reply and  i can send
a copy paste code that surely works.
> 
> Yigit Boyar
> Middle East Technical University Dept of Computer Science / sophomore
> - Original Message 
> From: Wally Randall <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Friday, December 1, 2006 2:51:13 PM
> Subject: [flexcoders] Set combobox selection to data
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> How do I set the selected value of a combobox to that of
the data 
> 
> returned from the database record?
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
>

> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail beta.
> http://new.mail.yahoo.com
>




[flexcoders] VideoDisplay Help

2006-12-01 Thread John Duff
Hoping  someone out there will be able to help me with this.

The VideoDisplay component uses a VideoPlayer object, which doesn't
seem to exist in Actionscript 3. How can it be used in the
VideoDisplay component, and how can I use it? I am writing an app and
want to have the ability to play a flv frame by fram, or jsut to a
frame and know the current frame. All of this funtionality is provided
by the VideoPlayer object, but can't be used in Actionscript 3.

When I finally figured out that the calss didn't actually exist
anymore, I started looking for something else and came across the
MovieClip object which provides all the same functionality. Problem is
I can't find anyway to load an flv, I tried using Netstream and such,
adding to a Video object and trying to add that to the MovieClip but
can't seem to make it work. Any Suggestions?


[flexcoders] Flex Builder 2.0 extension point documentation?

2006-12-01 Thread jruud68
Are the Eclipse extension points defined by Flex Builder described 
anywhere? com.adobe.flexbuilder.editors.mxml.quickFixProvider and 
com.adobe.flexbuilder.editors.mxml.contentAssistFactories are among the 
more interesting sounding ones that I'm not sure how to use.



[flexcoders] Synchronised TextArea selection

2006-12-01 Thread Jon Rowland
Hi,
 
I'm trying to write a hex viewer, where one TextArea shows the hex
values, and another the ASCII values, e.g.
 
41 42 43 44 ABCD
45 46 47 48 EFGH
 
I need the TextAreas to show a synchronised selection, so if you select
42 -> 45 in the first box, area 1, B-E is selected in the second box.
I've overcome my first problem (that of the TextArea control hiding
selection on lost focus), but I can't seem to find a nice way to
synchronise the selections. There doesn't see to be a selectionChanged
event, and trying to use mouse click, down, up or move fails in odd
cases ( e.g. when you move the mouse off the control with the mouse
still held down, the selection changes but the events no longer fire).
 
Anyone have any bright ideas?
 
Thanks in advance,
Jon Rowland 
 

 This e-mail is bound by the terms and conditions described at 
http://www.subexazure.com/mail-disclaimer.html



[flexcoders] Re: Set combobox selection to data

2006-12-01 Thread camlinaeizerous
??? I guess I'll stay away from the rich text editor my post came
through blank. My drop downs are populated form the database as well
as the database query that is decided what drop down index is
selected. The following is the approach I took.

var :IViewCursor = .createCursor();
while(!.afterLast && .current.!= 

.getItemAt(this.selectedRecordIndex).)
{.moveNext();}
if(.current)
{.selectedItem = .current;}
else
{.selectedIndex = -1;}

The else statement combined with a required field validation will
highlight the drop down with the error if for any reason there is a
mismatch. While in most cases this shouldn't happen it is a nice
notification if you need it.



RE: [flexcoders] What is wrong with this component?

2006-12-01 Thread Tracy Spratt
Wrap the ArrayCollection in  tags.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Wally Randall
Sent: Friday, December 01, 2006 2:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] What is wrong with this component?

 

The following custom component displays the "--select--" value but not 
the contents of the array collection. What is my problem?


http://www.adobe.com/2006/mxml
 "
prompt="--select--">








 



[flexcoders] Idle Timeout

2006-12-01 Thread app.developer
Anyone dealt with a need to watch for an idle timeout for a user in a 
flex/flash application?  I need something that will watch for key 
stroke and mouse click inactivity for some amount of time and then 
timeout, alert them and log out. 

TIA 

PC



RE: [flexcoders] Re: Can't get value after labelfunction

2006-12-01 Thread Tracy Spratt
That example is posted:

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

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Friday, December 01, 2006 1:27 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Can't get value after labelfunction

 

Absolutely.  Use a custom item object as I proposed earlier.  I'll have
an example on CFLEX.NET in an hour or so.  

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bsdensmore
Sent: Friday, December 01, 2006 8:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Can't get value after labelfunction

 

Thanks for trying Tracy. Any ideas of what route I should go?

Thanks,
Ben

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> While this method works, I do not think it is a good solution.
> 
> 
> 
> I decided to add a "simple" functionality of displaying the total
weight
> value of the items in the calculated column. But the fact that the
> column's values are calculated by the itemRenderer presents many
> problems.
> 
> 
> 
> Because the renderers only calculate the visible rows, we can never
get
> a total using those calculations. Instead, we have to do the full
> caclulation of net_price for each item and then add it to the sum. 
> 
> 
> 
> So if we want to update the total weight when a user updates the
> quantity value, we have a problem deciding when to invoke the
> calculation. On the itemEditEnd event, the quantity property has been
> updated but the item renderer has not yet run so the net_weight
property
> is not yet calculated.
> 
> 
> 
> I attempted to determine the last item rendered, but this became a
> problem itself.
> 
> 
> 
> In all, I would do it differntly.
> 
> 
> 
> Tracy
> 
> 
> 
> 
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Tracy Spratt
> Sent: Thursday, November 30, 2006 5:23 PM
> To: flexcoders@yahoogroups.com  
> Subject: RE: [flexcoders] Re: Can't get value after labelfunction
> 
> 
> 
> Ok, I have it working
> 
> 
> 
> First your dataProvider item objects do NOT have properties for all
> three columns, only the item weight column.
> 
> 
> 
> So this condition:
> 
> if (value.claimed != null ...
> 
> will always be false and the calculation will not happen.
> 
> 
> 
> Add the other two columns to the dataprovider item object, defaulted
to
> 0, and everything works, even when you update the quantity.
> 
> theData = new ArrayCollection(
> 
> [{each_wt:30,quantity:1,net_wt:0},
> 
> {each_wt:95,quantity:0,net_wt:0},
> 
> {each_wt:105,quantity:9,net_wt:0}]);
> 
> 
> 
> I am going to modify your example some and post it on CFLEX.
> 
> 
> 
> Tracy
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of bsdensmore
> Sent: Thursday, November 30, 2006 4:07 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Can't get value after labelfunction
> 
> 
> 
> yes, they do. 
> 
> I'm just doing a very small example to get my head around this. I
> actually took the ClassFactory stuff out and went to using the
> itemrenderer as is. It works but now I'm running into the issue of my
> datagrid losing it's state when you scroll.
> 
> This is what my main Application looks like, 
> 
> 
> http://www.adobe.com/2006/mxml
 
>  > "
> layout="absolute" creationComplete="populate();">
> 
> 
> 
> 
>  editable="true">
> 
> 
>  editable="false"/>
>  editable="true" />
>  editable="false" itemRenderer="calculatedItemRenderer"/>
> 
> 
> 
> 
> 
> 
> 
> My ItemRenderer looks like:
> 
> http://www.adobe.com/2006/mxml
 
>  > "
width="72"
> height="20" horizontalAlign="center">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Ben
> 
> --- In flexcoders@yahoogroups.com


> , "Tracy Spratt"  wrote:
> >
> > First: Does your dataProvider (the item objects specifically) have a
> > property for each of the three columns?
> > 
> > Tracy
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com


> [mailto:flexcoders@yahoogroups.com


> ] On
> > Behalf Of bsdensmore
> > Sent: Thursday, 

Re: [flexcoders] Embed or Load PDF File

2006-12-01 Thread John Dowdell
mvbaffa wrote:
> How can I load, on the fly, and/or embed a PDF in one of the Flex 2 
> containers or loaders. I have a database of PDF's that should be 
> displayed in my Flex 2 application.
> I am now working with URL's pointing to these documents that are 
> visualized directly in the browser, but I would like to show the them 
> embeded in my flex container.

The Adobe Flash Player does not display the range of PDF files handled 
by the free Adobe Reader and other PDF viewers.

Options for similar effects:

  o  Convert PDF to FlashPaper, which can be displayed in Adobe Flash 
Player, although I'm not sure offhand of invocation via Flex's MXML.

  o  Call up the PDF via Adobe Reader in HTML pages in the usual way.

  o  Possibly surround a PDF viewing area by SWF viewing areas, although 
anything with multiple browsers and iframes and such gets too 
dependency-ridden too quickly.

Your Flex 2 creation can invoke other web resources like PDF files, even 
though it may not display it itself.

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.


[flexcoders] What is wrong with this component?

2006-12-01 Thread Wally Randall
The following custom component displays the "--select--" value but not 
the contents of the array collection.  What is my problem?



http://www.adobe.com/2006/mxml";
 prompt="--select--">
   
  
  
  
  
   






RE: [flexcoders] Re: Styling in Flex is officially ridiculous

2006-12-01 Thread Gordon Smith
It's possible, but not trivial, to style hyperlinks in HTML text in
Flex. Here is an example:

 



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











 

You must do it through the Flash Player's StyleSheet class; you can't
use . Flex's CSS styles apply to the Flex DOM, while
StyleSheet applies to the HTML DOM.

 

We haven't devoted a lot of attention to HTML text in Flex because the
Flash Player's support for HTML is so limited and many Flex developers
find it doesn't meet their needs, Apollo will change that, but it isn't
clear when the Player's HTML support for Flex apps in the browser will
get better.

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ethan Miller
Sent: Thursday, November 30, 2006 1:33 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Styling in Flex is officially ridiculous

 

While in general I've been fairly happy with my ability to style 
flex, one area in which really lacking (and unfortunately for me in a 
key place for my application) is in styling text, especially text 
contained in an htmlText element.

Despite reading the docs 5 times now, I remain unable to style a 
simple anchor tag (. "A" as a type selector doesn't work, 
but neither do a:link, a:hover, or a:active which the docs say should 
work. Why the A tag doesn't simply support styleName as an attribute 
(or class="" or style="") is a complete mind bender to me. Why 
htmlText doesn't support  is equally puzzling.

Also, is it just me or are many of the css property names different, 
eg font-family vs fontFamily, etc. And what about shorthand syntax, 
eg "border: 1x dotted black."

I realize and accept as necessary and good the need to support a 
limited set of HTML tags but don't understand why standard and 
rigorous text styling is so out of reach. This in fact would be one 
of my top wish list items for future releases.

Meantime, if anyone has any tips on styling text now, I'm all ears =)

cheers, ethan

 



Re: [flexcoders] uploading an object

2006-12-01 Thread hank williams
I believe the only way to do that would be to write a little
javascript and then use external interface to actually send the data
to the javascript. Shouldnt be too hard, though I have never tried it.

Regards,
Hank

On 12/1/06, Daryn Nakhuda <[EMAIL PROTECTED]> wrote:
> Hi Dimitrios,
>
> FileReference works for uploading a local file to the server, but I want
> a way to upload serialized data that is already within my application,
> AS IF it were a local file.
>
> If there is a way to seed the data in FileReference, instead of using
> browse(), that would be perfect, but I didn't see a way to do that in
> the api docs.
>
> Thanks,
>
> Daryn
>
>
>
> Dimitrios Gianninas wrote:
> >
> > Yes, use the FileReference class, it does this. There is an example in
> > the documentation.
> >
> > *Dimitrios Gianninas*
> > *RIA Developer*
> > *Optimal Payments Inc.*
> >
> >
> > 
> > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> > *On Behalf Of *Daryn Nakhuda
> > *Sent:* Friday, December 01, 2006 5:04 AM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] uploading an object
> >
> > I have data in my flex app that I want to send to my server as if it
> > were a upload from a filereference (aka, as a multipart form).
> >
> > Is there a easy way to do that?
> >
> > Basically, I already have a backend servlet that accepts file uploads
> > from my flex app, and from an html browse form, and i'd like to use
> > that same backend with arbitrary serialized objects in my swf.
> >
> > Thanks,
> >
> > Daryn
> >
> > *AVIS IMPORTANT*
> >
> >
> >
> > *WARNING*
> >
> > 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.
> >
> >
> >
> > 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.
> >
> >
>
>
>
> --
> 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] ways to support multipart/form uploading

2006-12-01 Thread Daryn Nakhuda
In thinking about the problem people are having with, say, taking a 
camera snapshot and uploading it to a server (without remoting or fms), 
there are two solutions I thought of that would be really helpful, 
although perhaps not trivial to implement. 

I was wondering if anyone has tried the following:

1. extend FileReference so that you can create a pseudo-file that can be 
uploaded using the existing upload mechanism.

example:
 var file:FileReference = new FileReference(mybytearray);
 file.upload();

2. extend URLRequest to do something similar. In this scenario, the 
right way would probably be to create a Multipart class similar to 
URLVariables, but that accepts binary data. Then, extend URLRequest so 
that if  data object is set to a Multipart, it knows to create and send 
the request as a multipart form.
 
This is similar to how URLRequest is already smart enough to deal with 
ByteArrays versus URLVariables in the data object.


What do people think of either of these solutions? Has anyone done it?




RE: [flexcoders] Disclosure triangles

2006-12-01 Thread Gordon Smith
The framework doesn't provide a disclosure component, although it
probably should.

 

But there's no reason your Button can't use the same skins that the Tree
uses. If you look at the Tree selector in defaults.css, you'll see that
they're embedded from Assets.swf:

 

disclosureClosedIcon:
Embed(source="Assets.swf",symbol="TreeDisclosureClosed");

disclosureOpenIcon:
Embed(source="Assets.swf",symbol="TreeDisclosureOpen");

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lachlan Cotter
Sent: Thursday, November 30, 2006 8:43 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Disclosure triangles

 

I might end up having to go that way, but it would be preferable to use
an existing framework component, if it exists, so the skin used on the
button is that same as the skin used on the tree. Thanks for the
suggestion. 

 

 

On 01/12/2006, at 3:09 PM, Gordon Smith wrote:





Couldn't you use a Button that has 'toggle' set to true and skinned with
triangle graphics?

 

- Gordon

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lachlan Cotter
Sent: Thursday, November 30, 2006 5:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Disclosure triangles

 

Hi List,

Is it possible to use the disclosure triangle from the Tree view 
control outside of a tree view? I want to use it to switch between 
states on an item renderer (a collapsed, summary state, and a full, 
detail state). There doesn't seem to be a disclosure triangle component.

Cheers,
Lach

 

 



Re: [flexcoders] FDS number NaN

2006-12-01 Thread Jeff Krueger
Thanks.  I am not using a primitive, I am using Long.  I wonder what it does 
for those.
   
  Jeff
  

Douglas McCarroll <[EMAIL PROTECTED]> wrote:
  Jeff,

I'm not sure that this will help you find a solution, but it confirms 
that this is a known issue:

http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part1_GetStarted.html

"Primitive values cannot be set to null in Java. When passing Boolean 
and Number values from the client to a Java object, Flex interprets null 
values as the default for primitive types; for example, 0 for double, 
float, long, int, short, byte, \u for char, and false for Boolean. 
Only primitive Java types get default values."

Douglas

-

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-

Jeff Krueger wrote:
> All,
> 
> I am finding that when I pass a actionscript class to a remote 
> java object and a number variable type in the actionscript class is 
> set to NaN (Null), that the java class gets set to a 0, instead of a 
> null. Is there something I am missing or something I need to set the 
> number to so it will be null in my java class?
> 
> Thanks
> 
> Jeff
> 
>
> --
> Access over 1 million songs - Yahoo! Music Unlimited. 
> 
>  
>
> 



 

 
-
Want to start your own business? Learn how on Yahoo! Small Business.

[flexcoders] Re: Set combobox selection to data

2006-12-01 Thread camlinaeizerous

--- In flexcoders@yahoogroups.com, Yiðit Boyar <[EMAIL PROTECTED]>
wrote:
>
> i dont know whether there is a better way or not but i've used the
fallowing way.
> assume needed_val is the variable which is equal to the  data of the
one which should be selected (number in the example)
> 
> 
>
> and in the findMyVal function:
> private function findMyVal(obj:ComboBox , wanted:Number):Number{
> for (var i:Number=0 ; i < obj.dataProvider.length;i++){
> if(wanted = = obj.dataProvider[i].id ) //i assumed that the
data label is id of the dataProvider
> return i;
> }
> return 0;
> }
>
> whenever the dataProvider is refreshed, the function will
"automatically" be called and set the right selected index...
> by the way, i did not copy and paste a code so it may include some
typing errors, but the logic is this...
>
> i wish it helps, if this does not work, send a reply and  i can send a
copy paste code that surely works.
>
> Yigit Boyar
> Middle East Technical University Dept of Computer Science / sophomore
> - Original Message 
> From: Wally Randall [EMAIL PROTECTED]
> To: flexcoders@yahoogroups.com
> Sent: Friday, December 1, 2006 2:51:13 PM
> Subject: [flexcoders] Set combobox selection to data
>
>
>
>
>
>
>
>
>
>
>
>
>
> How do I set the selected value of a combobox to that of
the data
>
> returned from the database record?
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 
>
>
>
>
>
>
>
>
>
>
\

> Do you Yahoo!?
> Everyone is raving about the all-new Yahoo! Mail beta.
> http://new.mail.yahoo.com
>




[flexcoders] Embed or Load PDF File

2006-12-01 Thread mvbaffa
Hi,

How can I load, on the fly, and/or embed a PDF in one of the Flex 2 
containers or loaders. I have a database of PDF's that should be 
displayed in my Flex 2 application.

I am now working with URL's pointing to these documents that are 
visualized directly in the browser, but I would like to show the them 
embeded in my flex container.

Can this be done 

Thansk in advance



[flexcoders] Unable to load wsdl using Proxy Service

2006-12-01 Thread Allen Riddle
I am trying to set up my Flex app to use wsdl endpoints in the proxy
services configuration. My web services are protected by Acegi, and only
allow clients to invoke the services when the authorization cookie is
dropped on their machine. When going through the proxy services
endpoint, I get an error back because my server is trying to redirect
because it's saying I'm not authorized. So, basically, I'm asking how or
if when going through the proxy service endpoint, can does it forward
client cookies and session data to the proxy. Thanks.

 

Allen Riddle

Sofware Development

x3217

 



Re: [flexcoders] uploading an object

2006-12-01 Thread Daryn Nakhuda
Hi Dimitrios,

FileReference works for uploading a local file to the server, but I want 
a way to upload serialized data that is already within my application, 
AS IF it were a local file. 

If there is a way to seed the data in FileReference, instead of using 
browse(), that would be perfect, but I didn't see a way to do that in 
the api docs.

Thanks,

Daryn



Dimitrios Gianninas wrote:
>
> Yes, use the FileReference class, it does this. There is an example in 
> the documentation.
>  
> *Dimitrios Gianninas*
> *RIA Developer*
> *Optimal Payments Inc.*
>  
>
> 
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Daryn Nakhuda
> *Sent:* Friday, December 01, 2006 5:04 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] uploading an object
>
> I have data in my flex app that I want to send to my server as if it
> were a upload from a filereference (aka, as a multipart form).
>
> Is there a easy way to do that?
>
> Basically, I already have a backend servlet that accepts file uploads
> from my flex app, and from an html browse form, and i'd like to use
> that same backend with arbitrary serialized objects in my swf.
>
> Thanks,
>
> Daryn
>
> *AVIS IMPORTANT*
>
>   
>
> *WARNING*
>
> 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.
>
>   
>
> 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.
>
>  



[flexcoders] How do you post a large form variable?

2006-12-01 Thread buhlly88
Does anyone know if it is possible to post a long form variable with 
HTTPService without passing as url variables.  I get a Stream Error 
because my querystring is too long.  I've tried method="POST", but it 
still passes it via the url string.
John



Re: [flexcoders] FDS number NaN

2006-12-01 Thread Douglas McCarroll
Jeff,

I'm not sure that this will help you find a solution, but it confirms 
that this is a known issue:

http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part1_GetStarted.html

"Primitive values cannot be set to null in Java. When passing Boolean 
and Number values from the client to a Java object, Flex interprets null 
values as the default for primitive types; for example, 0 for double, 
float, long, int, short, byte, \u for char, and false for Boolean. 
Only primitive Java types get default values."


Douglas


-

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-


Jeff Krueger wrote:
> All,
>  
> I am finding that when I pass a actionscript class to a remote 
> java object and a number variable type in the actionscript class is 
> set to NaN (Null), that the java class gets set to a 0, instead of a 
> null.  Is there something I am missing or something I need to set the 
> number to so it will be null in my java class?
>  
> Thanks
>  
> Jeff
>  
>
> 
> Access over 1 million songs - Yahoo! Music Unlimited. 
> 
>  
>
>  



RE: [flexcoders] Re: Can't get value after labelfunction

2006-12-01 Thread Tracy Spratt
Absolutely.  Use a custom item object as I proposed earlier.  I'll have
an example on CFLEX.NET in an hour or so.  

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bsdensmore
Sent: Friday, December 01, 2006 8:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Can't get value after labelfunction

 

Thanks for trying Tracy. Any ideas of what route I should go?

Thanks,
Ben

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> While this method works, I do not think it is a good solution.
> 
> 
> 
> I decided to add a "simple" functionality of displaying the total
weight
> value of the items in the calculated column. But the fact that the
> column's values are calculated by the itemRenderer presents many
> problems.
> 
> 
> 
> Because the renderers only calculate the visible rows, we can never
get
> a total using those calculations. Instead, we have to do the full
> caclulation of net_price for each item and then add it to the sum. 
> 
> 
> 
> So if we want to update the total weight when a user updates the
> quantity value, we have a problem deciding when to invoke the
> calculation. On the itemEditEnd event, the quantity property has been
> updated but the item renderer has not yet run so the net_weight
property
> is not yet calculated.
> 
> 
> 
> I attempted to determine the last item rendered, but this became a
> problem itself.
> 
> 
> 
> In all, I would do it differntly.
> 
> 
> 
> Tracy
> 
> 
> 
> 
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Tracy Spratt
> Sent: Thursday, November 30, 2006 5:23 PM
> To: flexcoders@yahoogroups.com  
> Subject: RE: [flexcoders] Re: Can't get value after labelfunction
> 
> 
> 
> Ok, I have it working
> 
> 
> 
> First your dataProvider item objects do NOT have properties for all
> three columns, only the item weight column.
> 
> 
> 
> So this condition:
> 
> if (value.claimed != null ...
> 
> will always be false and the calculation will not happen.
> 
> 
> 
> Add the other two columns to the dataprovider item object, defaulted
to
> 0, and everything works, even when you update the quantity.
> 
> theData = new ArrayCollection(
> 
> [{each_wt:30,quantity:1,net_wt:0},
> 
> {each_wt:95,quantity:0,net_wt:0},
> 
> {each_wt:105,quantity:9,net_wt:0}]);
> 
> 
> 
> I am going to modify your example some and post it on CFLEX.
> 
> 
> 
> Tracy
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of bsdensmore
> Sent: Thursday, November 30, 2006 4:07 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Can't get value after labelfunction
> 
> 
> 
> yes, they do. 
> 
> I'm just doing a very small example to get my head around this. I
> actually took the ClassFactory stuff out and went to using the
> itemrenderer as is. It works but now I'm running into the issue of my
> datagrid losing it's state when you scroll.
> 
> This is what my main Application looks like, 
> 
> 
> http://www.adobe.com/2006/mxml
 
>  > "
> layout="absolute" creationComplete="populate();">
> 
> 
> 
> 
>  editable="true">
> 
> 
>  editable="false"/>
>  editable="true" />
>  editable="false" itemRenderer="calculatedItemRenderer"/>
> 
> 
> 
> 
> 
> 
> 
> My ItemRenderer looks like:
> 
> http://www.adobe.com/2006/mxml
 
>  > "
width="72"
> height="20" horizontalAlign="center">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Ben
> 
> --- In flexcoders@yahoogroups.com


> , "Tracy Spratt"  wrote:
> >
> > First: Does your dataProvider (the item objects specifically) have a
> > property for each of the three columns?
> > 
> > Tracy
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com


> [mailto:flexcoders@yahoogroups.com


> ] On
> > Behalf Of bsdensmore
> > Sent: Thursday, November 30, 2006 1:58 PM
> > To: flexcoders@yahoogroups.com 
 
> > Subject: [flexcoders] Re: Can't get value after labelfunction
> > 
> > 
> > 
> > I keep going in circles with this. If I don't use the ClassFactory I
> > can get the calculations to work but I can't figure out how to send
> > the value 

Re: [flexcoders] Component behavior when child of navigation container

2006-12-01 Thread Steve Hindle

This sort of thing drove me batty with Flex...
I finally ended up doing all init. in createComplete methods for each child
container (ie, when a child builds itself, it initializes itself)

This means I have to sprinkle "if (child != null)..." around the parent
container
though

Another problem I ran into related to using properties (getters/setters)
in the mxml () :
1.) 'getters' are called before the setter
  I guess this is for optimization - don't set the value if its already
set?
 Anyway, it meant my 'getters' had to work with un-initialzed data
2.) 'setters' called from the mxml could fire before initialization
completes
   it appears from 'trace' data that the call ordering is less then
intuative -
   if I recall correctly, the exact problem was that 'set' function could
   be called before the object and its children are fully initialized.
   Ended up having to handle null pointers in the setters too
3.) !!!  bad trace() calls are silently swallowed!
  This one really bugged me - if I stuck:
  trace("fooby.name: " + fooby.name)
  in a function, and fooby was null - then the Trace statement failed
  silently AND THE REST OF THE FUNCTION DIDN'T EXECUTE!!
  It was like the exception caused the function to return...
  Not exactly intuative behavior for a debugging function

Steve

On 12/1/06, Sergey Kovalyov <[EMAIL PROTECTED]> wrote:


  Hi All!

I create the component using code behind technique (MXML inherited
from ActionScript class inherited from framework class, Box in my
case). The component contains children defined in MXML and has some
properties that have influence on children behavior. I call
invalidateProperties() in setters and then assign some cached values
to particular children properties in commitProperties(). Everything
works ok, until you place this component instance as a child of
navigation container, ViewStack in my case - createChildren() and
commitProperties() are called when ViewStack is created, though its
grandchildren are not created, so null pointer exception is thrown.
How to fix it?

Sergey.
 



[flexcoders] FDS number NaN

2006-12-01 Thread Jeff Krueger
All,
   
  I am finding that when I pass a actionscript class to a remote java 
object and a number variable type in the actionscript class is set to NaN 
(Null), that the java class gets set to a 0, instead of a null.  Is there 
something I am missing or something I need to set the number to so it will be 
null in my java class?
   
  Thanks
   
  Jeff


 
-
Access over 1 million songs - Yahoo! Music Unlimited.

[flexcoders] from Flash & AMFPHP to Flex & FDS...need advice

2006-12-01 Thread Kevin Merritt
This question may be a little naive, but I am interested in why one  
would choose to use Hibernate with FDMS?  Would it be possible to do  
Cairngorm/FDMS/MySQL or would Hibernate be required?  I am not  
familiar with Hibernate so I don't completely understand the assets  
it brings to the application design.


This brings up a broader, yet more specific, question:

How hard it it to bring in these elements (such as FMDS & hibernate)  
later on in the development process?


Specifically, I am trying to migrate/redesign a large, rather  
unorganized Flash MX 2004 RIA to Flex and in the process would like  
to adhere to a more strict MVC (Cairngorm) approach.  My goal is to  
eventually provide the type of data management (sync conflicts,   
messaging, etc...) that FDS/FMDS provide however, I am a little  
concerned about biting off more than I can chew at this point.   
Currently my application uses AMFPHP & MySQL which obviously is a far  
cry from FDS and thus not only would I be migrating from Flash to  
Flex, but also from PHP to Java ( am I crazy?!)


Is there a middle ground?  Is it possible for me to focus on the Flex  
side of things and keep my server code in PHP using webORB (or  
AMFPHP) and then, down the road migrate the server code from PHP to  
Java and implement FDS & FDMS?  OR am I making a mistake to not  
implement these services now when I am completely rewriting the code  
anyway?  Will it be a HUGE amount of work to try to incorporate FDMS  
after the fact...?


I realize that this may be a very specific question, however, I would  
guess there are probably others out there who come from a AMFPHP  
Flash Remoting background and would now like to take advantage of FDS  
but are a little wary of tackling the learning curve of Flex, AS3,  
FDS & Java!


Thanks for all your input.  I am just beginning the redesign of this  
application and the postings on this list have really helped me.  I  
am planning on blogging my redesign process for those who are  
interested in my trials.  I will post the URL when I set up the blog.


- Kevin







On Nov 25, 2006, at 6:31 PM, Douglas McCarroll wrote:


Hi All,

I'm attempting to create a Cairngorm/FDMS/Hibernate/MySQL example
program which I'll publish to the community once completed. I used the
MySQL Sakila sample DB (pared down to 3 tables - Film, Actor &  
FilmActor
- at present) and used HibernateTools to reverse engineer the  
requisite

Java and Hibernate files. So far, so good. I've even managed to
successfully write corresponding .as files and implement the  
beginnings

of a Cairngorm front end.

And it works. Kind of.

The problem is that the persistence layer takes forever to load, even
though the 3 tables only have hundreds or thousands of records each.
I've temporarily pared them down considerably (to 100, 100 & 500
records) and the program now loads quickly enough that I can continue
development work, but the performance issue needs to be addressed.

It's fairly easy to see what the problem is. Here's a picture of the
variable window that depicts the situation in all its glory:

http://www.brightworks.com/technology/tech_questions/ 
hibernate_lazy_associations/deeply_nested_actors_and_films.jpg


Beautiful, isn't it?? :-)

In other words, every actor references all films that the actor is  
in...


And each of these films references all actors in the film...

And each of these actors references all films that the actor is in...

And each of these films references all actors in the film...

Etc, etc, etc, etc, etc.

I wonder how many levels deep this goes? The program doesn't hang so I
assume that Flex puts a stop to it at some point...

Anyway, I'm assuming that the solution is to implement lazy
associations. My understanding is that Hibernate does lazy  
associations
by default, so once I set up my destinations properly all will be  
well.

But despite several attempts, I keep getting error messages.

Could one of the Hibernate gurus that inhabits this list point me  
in the

correct direction?

The DB's schema is outlined here:

http://www.brightworks.com/technology/tech_questions/ 
hibernate_lazy_associations/index.html


And all relevant code, plus my latest error message, is here:

http://www.brightworks.com/technology/tech_questions/ 
hibernate_lazy_associations/code.txt


I assume that my problem is in data-management-config.xml, but I'm new
to all of this and could be doing other things wrong as well.

TIA!

Douglas

-

Douglas McCarroll

CairngormDocs.org Webmaster
http://www.CairngormDocs.org

Flex Developer
http://www.brightworks.com
617.459.3840

-







[flexcoders] Set selected text in editable cell in DataGrid

2006-12-01 Thread Brian Dunphy
Does anybody know how to set the selected text in an editable cell in
a DataGrid?

I can't figure out if the editable cells are TextInputs, but I know
that setSelection() function does not work.

Any help would be appreciated.

Thanks,

Brian Dunphy


[flexcoders] Component behavior when child of navigation container

2006-12-01 Thread Sergey Kovalyov
Hi All!

I create the component using code behind technique (MXML inherited
from ActionScript class inherited from framework class, Box in my
case). The component contains children defined in MXML and has some
properties that have influence on children behavior. I call
invalidateProperties() in setters and then assign some cached values
to particular children properties in commitProperties(). Everything
works ok, until you place this component instance as a child of
navigation container, ViewStack in my case - createChildren() and
commitProperties() are called when ViewStack is created, though its
grandchildren are not created, so null pointer exception is thrown.
How to fix it?

Sergey.


Re: [flexcoders] Flash Player 9 issues on Windows 2005 Tablet PC Edition

2006-12-01 Thread John Dowdell
Steven Toth wrote:
> Has any testing been done of the Flash Player 9 on Windows 2005 Tablet 
> PC edition? When running our application under Flash Player 7 it 
> responded as expected.  However, Flash Player 9 is responding poorly to 
> pen gestures such as textInput focus and double click.  We filed a bug 
> report and the Adobe rep. that contacted us didn't know what Windows 
> 2005 Tablet PC edition was and wasn't sure how to help us.  Any help 
> would be greatly appreciated.  Thanks.

I'm pulling up 18 Google references to search phrase "Windows 2005 
Tablet PC"... variant phrases don't return good results either. Is there 
another label I should be searching on to find others' experience with 
similar machines...?

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.


[flexcoders] Re: Flex 2.0 And .net webservices Dataset retrieving problem

2006-12-01 Thread Tim Hoff

Hi Sajid,

Datasets returned from .Net aren't natively recognized by Flex.  To
solve this, you can either use a stored procedure with FOR XML AUTO, or
cast your dataset to a class.  Here is a casting example:

http://www.cflex.net/showFileDetails.cfm?ObjectID=418&Object=File&Channe\
lID=1


-TH

P.S. Yes, WebOrb allows you to return datasets.

--- In flexcoders@yahoogroups.com, Sajid Hussain <[EMAIL PROTECTED]>
wrote:
>
> Hi to all .
> I am new to flex Development ,I am stuck with following concepts
>
> I have one webservice method who is returning DataSet ,What will be
the best way to retrive Datafrom it I m getting player parsing error
>
> Is necceasry to get Data as Custom Objects from .net to flex
> I saw one example whos is getting data ftom .net but giving customs to
Objects ..
> How we will bind Custom Objects attributes with Flex ??
> Is there any way to get .net DataTable to Flex
>
> plz suggest me help withour weborb...
> Please do reply ..
> Thanks
>
> __
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>




Re: [flexcoders] building reusable, 'stacking' components

2006-12-01 Thread Steve Hindle

Hi Igor,

  Sizes are fine - I'm already using percentage widths.  The problem is
sometimes I want the component to use a tabNavigator and sometimes I want it
to use a linkBar, etc.  The basic criteria is the 'outermost' component on
the page should use a TabNavigator, and components inside that should use a
linkbar.   Having mulitple tabNavigator components 'inside' each other is
just looking nasty - and is rather confusing.  So if I'm using the component
'stand-alone' - it should have a tabNav, but if I stack it inside another
component, it should use a more discreet nav.

 The problem boils down to:  How can I make the components container
'selectable' at run-time?  So I can
something like:  or 
I've thought about using addChild to build the components dynamically - but
that seems like over killl


On 12/1/06, Igor Costa <[EMAIL PROTECTED]> wrote:


  Steve

Nope you don't have to create 2 or 3 types of version, you just be more
reusable as possible just setting the width and height size for percentage.
Due to you can uses in other containers that you specifies the sizes and
positions.


Best.


On 11/30/06, Steve Hindle <[EMAIL PROTECTED]> wrote:
>
>   Hi All,
>
> Anyone got any good design patterns for building components that can
> be stacked inside other components and still look good visually? I'm
> ending up in nested tabNavigator hell...
>
> When you build components that can be used both stand-alone (top
> level) or included _inside_ another component - how do you organize
> the component, and what nav containers do you use ?
>
> Do I really have to create 2 or 3 versions of the component (with
> tabs,with linkbar, with...)
> or is there a way of switching the container at runtime? ( I thought
> about building dynamically with addChild, getting the navcontainer to
> use from a property...)
>
> Thanks!
>



--

Igor Costa
www.igorcosta.com

 



[flexcoders] About File Uploading !!

2006-12-01 Thread jammilk01
Hi all

Now I`m trying to make file upload process.

This is my code (down below)

-- Flex Code -

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











- upload.php (I just copy from Adobe example)---
 $MAXIMUM_FILE_COUNT) {
  $files_to_delete = array_splice($files, 0, count($files) - 
$MAXIMUM_FILE_COUNT);
  for ($i = 0; $i < count($files_to_delete); $i++) {
unlink($files_to_delete[$i][0]);
  }
}
print_r($files);
closedir($directory);

function sorter($a, $b) {
  if ($a[1] == $b[1]) {
return 0;
  } else {
return ($a[1] < $b[1]) ? -1 : 1;
  }
}
?>

Apache Log---

PHP Notice:  Undefined index:  Filedata in /usr/local/apache-tomcat-
5.5.17/webapps/ROOT/upload.php on line 4
PHP Notice:  Undefined index:  Filedata in /usr/local/apache-tomcat-
5.5.17/webapps/ROOT/upload.php on line 5
PHP Notice:  Undefined index:  Filedata in /usr/local/apache-tomcat-
5.5.17/webapps/ROOT/upload.php on line 6
PHP Notice:  Undefined index:  Filedata in /usr/local/apache-tomcat-
5.5.17/webapps/ROOT/upload.php on line 6
PHP Notice:  Undefined index:  Filedata in /usr/local/apache-tomcat-
5.5.17/webapps/ROOT/upload.php on line 7
PHP Warning:  exif_imagetype(): Read error! in /usr/local/apache-
tomcat-5.5.17/webapps/ROOT/upload.php on line 7
PHP Notice:  Undefined index:  Filedata in /usr/local/apache-tomcat-
5.5.17/webapps/ROOT/upload.php on line 11
PHP Warning:  unlink(./temporary/): Is a directory 
in /usr/local/apache-tomcat-5.5.17/webapps/ROOT/upload.php on line 11
PHP Notice:  Use of undefined constant sorter - assumed 'sorter' 
in /usr/local/apache-tomcat-5.5.17/webapps/ROOT/upload.php on line 19



upload brower is look`s like working aright. 
what did I miss? 

Thanks,
Jay




[flexcoders] explorer local file

2006-12-01 Thread Willy Ci

hi,

is there a way to browse/explorer local file file system within flex 2.0?

I need write a file/folder upload program,
I want user to able explorer, then drag and drop local files/folds to create
a upload list,
so far only thing I found is using fileRef.browse, which is not a user
friendly interface.

thanks for your help.

Willy


Re: [flexcoders] Set combobox selection to data

2006-12-01 Thread Yiðit Boyar
i dont know whether there is a better way or not but i've used the fallowing 
way.
assume needed_val is the variable which is equal to the  data of the one which 
should be selected (number in the example)



and in the findMyVal function:
private function findMyVal(obj:ComboBox , wanted:Number):Number{
for (var i:Number=0 ; i < obj.dataProvider.length;i++){
if(wanted = = obj.dataProvider[i].id ) //i assumed that the data label 
is id of the dataProvider
return i;
}
return 0;
}

whenever the dataProvider is refreshed, the function will "automatically" be 
called and set the right selected index...
by the way, i did not copy and paste a code so it may include some typing 
errors, but the logic is this...

i wish it helps, if this does not work, send a reply and  i can send a copy 
paste code that surely works.

Yigit Boyar
Middle East Technical University Dept of Computer Science / sophomore
- Original Message 
From: Wally Randall <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, December 1, 2006 2:51:13 PM
Subject: [flexcoders] Set combobox selection to data









  



How do I set the selected value of a combobox to that of the data 

returned from the database record?






  
















 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

[flexcoders] Re: What was second nature has me researching through pages of docs

2006-12-01 Thread camlinaeizerous
I haven't tested this but for 4 I would assume something similar to
the following should work.

var sometext:UITextField;
sometext.styleName = UITextField 

in your style sheet you should be able to now set styles and the font,

UITextField{
fontFamily: ...;
}

if you call it UITextField you may not have to assign the styleName. I
probably don't have all of this right but it should at least help you
get in the right direction.


> 4.  How do I set the font of UITextField with stylesheet, or embedded
> font



[flexcoders] Re: Chart: Filter point after transformation from global to local

2006-12-01 Thread Claude Hussenet

I have implemented the following and I still have an issue with the
windows resizing.

It seems that I have to flush something which is related to the segment
list which is computed between 2 updates.I am getting an nice fireworks
during the window resizing that I don't get during panning or zooming.I
wish I could share a screenshoot.;-)

Here the code.Sorry,I can send any attach file today.

\


   public class Graph extends LineSeries
 {

 override protected function get renderDataType():Class
 {
 return MyLineSeriesRenderData;
 }

 override protected function updateFilter():void
 {
 super.updateFilter();
 var
myLineSeriesRenderData:MyLineSeriesRenderData=this.renderData as
MyLineSeriesRenderData;
 myLineSeriesRenderData.prePxielFilteredCache=null;

 }
 override protected function updateTransform():void
 {
 super.updateTransform();
 var t0:int = new Date().milliseconds;

 var
myLineSeriesRenderData:MyLineSeriesRenderData=this.renderData as
MyLineSeriesRenderData;
 if
(myLineSeriesRenderData.prePxielFilteredCache==null)myLineSeriesRenderDa\
ta.prePxielFilteredCache=this.renderData.filteredCache;

 var x0:int=myLineSeriesRenderData.prePxielFilteredCache[0].x;
 var y0:int=myLineSeriesRenderData.prePxielFilteredCache[0].y;
 var npnts:Array = new Array();
 npnts.push(myLineSeriesRenderData.prePxielFilteredCache[0]);
 for (var
i:int=1;i
wrote:
>
> What is the way to filter points in a line serie after the point is
> transformed from the "data space" to the "screen/mouse space" ?
>
> Is is by adding a filter function in a lineserie through the method
> filters from a serie ?
>
> Is there an example available ?
>
> I am interested in filtering a point in the screen space based on the
> previous value computed .
>
>
> Thank you for your help.
> Regards-CLaude
>





Re: [flexcoders] File I/O Error - Error #2038

2006-12-01 Thread slangeberg

Check the coldfusion server's admin page. There probably is a setting on
production server limiting file upload size.

-Scott

On 11/6/06, kristian_wright2002 <[EMAIL PROTECTED]> wrote:


  I've seen a few posts on this error but none of them seem to solve my
issue.

I'm trying to upload some files via a FileReference object, with a CF
backend. The CFC works fine with smaller files (eg under 300k), but
with files over this size, sometimes it works, sometimes it doesn't.

When it doesn't work, I get the following I/O Error:

IOErrorEvent
type="ioError"
bubbles=false
cancelable=false
eventPhase=2
text="Error #2038: File I/O Error.
URL: my URL

The server side script is working, as I can try and upload a smaller
file, and it works. But when I'm getting the I/O error, the app stops
before it even reaches the CFC. I've set a Progress listener to the
FileUpload object, and it seems to just slow down and eventually stop,
throwing the I/O error before file upload has reacherd the total bytes
of the file.

Does anyone know what might be going on here?

Thanks,
K.

 





--

: : ) Scott


[flexcoders] stretch HBox height=100%

2006-12-01 Thread app.developer
The HBox is not stretching vertically 100% when the panel container 
stretches vertically.  Other containers do stretch 100% in the panel 
container (if the HBox is not involved).  

Is there a way to get the HBox to stretch vertically when the panel is 
enlarged vertically?

TIA

PC



[flexcoders] Re: Charting Questions

2006-12-01 Thread polonycjunk
Ely and Tim, 

Thanks for all the help!



--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> To simulate a border around the rectangular region inside a chart, you
> can use axisRenderers.  This example draws a dark green border inside
> the axis labels.
> 
> 
> http://www.adobe.com/2006/mxml
>  "
>   layout="vertical" horizontalAlign="center" verticalAlign="middle"
>   backgroundColor="#FF">
> 
>   
>
>   
> 
>   
> 
>
> 
>
> 
>
> 
>
> 
>
>   
>
> 
>
>   
>
> 
>
> 
>
> 
>
>   
>
> 
>
> 
>
> 
>
>   
>
> 
>
>  minorTickPlacement="none">
>
> 
>
>   
>
> 
>
>
>
> 
>   
> 
> 
> 
> -TH
> __
> 
> Tim Hoff
> Cynergy Systems, Inc.
> http://www.cynergysystems.com
> Office  : 866-CYNERGY
> 
> 
> --- In flexcoders@yahoogroups.com, "Ely Greenfield" 
> wrote:
> >
> >
> >
> >
> > To draw into the data area of the chart, you'll need to wite a custom
> > chart element. See my numerous posts on the subject to this list, or
> > some of the examples at http://www.quietlyscheming.com/
> >
> >
> > For the region of the chart...By default, a chart takes the space
> given
> > to it by its parent, subtracts out the space needed for the optimal
> > layout and size for the axis labels, and uses the remaining space for
> > the data area. If you're seeing fluctuations in the space used by the
> > data, it's most likely due to fluctuations in the range of your
> > data...i.e., if it starts at 0-80, then goes to 0-120, it's going to
> > take a little more space for the extra digit on the labels.
> >
> > The area used by the axes is called the 'gutter' in chart terminology.
> > While the chart calculates these on its own by default, you can assign
> > explicit values for some or all of the chart gutters. When you do
> that,
> > the chart will do its best to fit the labels in the gutter sizes
> > specified. Specify all four gutter size, and you've effectively locked
> > in a size for the data area (given a fixed size for the whole chart).
> >
> >
> > So checkout the gutterLeft, gutterTop, etc. styles.
> >
> >
> > Ely.
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On
> > Behalf Of polonycjunk
> > Sent: Thursday, November 30, 2006 7:13 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Charting Questions
> >
> >
> >
> > Hi,
> >
> > I would like to add borders to the inside rectangular region of the
> > charts. Would anyone know how to accomplish this task? I am able to
> > modify the gridLines inside the chart, modify the thickness of the
> > horizontal and vertical axis, but can't seem to find a way to put
> > borders along the 4 axes.
> >
> > Also, how can you specify a fixed length of the rectangular region in
> > the chart? It looks the size of this area fluctuates a tiny bit when
> > working with real-time charts.
> >
> > Thanks for any input provided.
> >
>




[flexcoders] Re: Comparing two Dates

2006-12-01 Thread bsdensmore
Nevermind,
 My brain is fried from trying to figure out my itemrenderer issue. I
was looking at the code wrong. All set.

Thanks,
Ben

--- In flexcoders@yahoogroups.com, "bsdensmore" <[EMAIL PROTECTED]> wrote:
>
> Dimitrios,
>  How do you use this? I'm trying to pass in 2 dates from a textInput
> but when I try to use the displayDate() method to format the dates and
> pass them into the compareDates() method it complains about the data
> types.
> 
> This is what I'm trying to do:
> 
> private function compareDates():void
> {
>   
> var Date1:String = DateUtils.displayDate(firstDate.text);
> var Date2:String = DateUtils.displayDate(secondDate.text);
>   
> var message:int = DateUtils.compareDates(Date1,Date2);
>   
> Alert.show(message.toString());
>   
> }
> 
> Thanks,
> Ben
> 
> --- In flexcoders@yahoogroups.com, "Dimitrios Gianninas"
>  wrote:
> >
> > Use the attached... enjoy
> >  
> > Dimitrios Gianninas
> > RIA Developer
> > Optimal Payments Inc.
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
> On Behalf Of Gaurav Jain
> > Sent: Friday, December 01, 2006 5:38 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Comparing two Dates
> > 
> > 
> > 
> > Hi All,
> > 
> > I would appreciate if some one can suggest me a quick solution for
> comparing two dates and finding out which date is greater.
> > 
> > Thanks
> > 
> > Gaurav
> > 
> >  
> > 
> > -- 
> > 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] correct way to create rectangles ?

2006-12-01 Thread Daniel Freiman

The answer to your question is really a question: Can you think of any
reason you should be using Sprites.  If you are going to want to click on
the rectangles, move them, or swap depths, Sprites might make that easier.
If they're just going to be drawn and then never change, then using Sprites
adds memory and processing overhead for no reason.  Without knowing more on
how the rectangles are going to be used, I can't say more than that.

- Dan

On 12/1/06, arpan srivastava <[EMAIL PROTECTED]> wrote:


  Hi,
I have to draw 5 rectangle inside a class extending UIComponent. I
have done this :

// Draw first base rectangle
g.beginFill(baseRectColor1);
g.drawRect(0,baseY,bRW1,baseRectHeight);
g.endFill();

// Draw second base rectangle
g.beginFill(baseRectColor2);
g.drawRect(bRW1,baseY,bRW2,baseRectHeight);
g.endFill();

// Draw third base rectangle
g.beginFill(baseRectColor3);
g.drawRect(bRW2 + bRW1,baseY,bRW3,baseRectHeight);

g.endFill();


   is this approach ok or should I create new sprite object for each
rectangle and add it to the class. ?

--
Everyone is raving about the all-new Yahoo! Mail 
beta.

 



[flexcoders] Resize children of a Tile container

2006-12-01 Thread Jim Robson
How do you dynamically resize the children in a Tile container? I
don't have any problem setting the size when the children are
initially added to the Tile. After that, however, they won't resize. 

I've posted a simple app that illustrates this issue (right-click to
view source): 
http://robsondesign.com/flexcoders/TileRendererSample/TileRendererSample.html

To use demo: Click on a dot to bring up a slider. As you can see in
the source code, and verified in the trace statements, changing the
slider changes the width and height of the dots in the selected item
renderer. However, the display does not change, even though the width
and height properties do change. 

If there's something in the docs about this, or if there's been a
previous thread on this topic, please forgive me and point me to it. I
wasn't able to find anything, but maybe I was using the wrong search
terms. 

Thanks

-Jim



[flexcoders] Re: Comparing two Dates

2006-12-01 Thread bsdensmore
Dimitrios,
 How do you use this? I'm trying to pass in 2 dates from a textInput
but when I try to use the displayDate() method to format the dates and
pass them into the compareDates() method it complains about the data
types.

This is what I'm trying to do:

private function compareDates():void
{

var Date1:String = DateUtils.displayDate(firstDate.text);
var Date2:String = DateUtils.displayDate(secondDate.text);

var message:int = DateUtils.compareDates(Date1,Date2);

Alert.show(message.toString());

}

Thanks,
Ben

--- In flexcoders@yahoogroups.com, "Dimitrios Gianninas"
<[EMAIL PROTECTED]> wrote:
>
> Use the attached... enjoy
>  
> Dimitrios Gianninas
> RIA Developer
> Optimal Payments Inc.
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Gaurav Jain
> Sent: Friday, December 01, 2006 5:38 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Comparing two Dates
> 
> 
> 
> Hi All,
> 
> I would appreciate if some one can suggest me a quick solution for
comparing two dates and finding out which date is greater.
> 
> Thanks
> 
> Gaurav
> 
>  
> 
> -- 
> 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] uploading an object

2006-12-01 Thread Mike Weiland
Daryn,

It's possible, but probably not the way you are going about doing it. I've 
taken 2 different paths to achieve this in the past, the first was on 
www.CertificateCreator.com when a user saves a certificate the object that 
describes the certificate is sent to ColdFusion and I convert the object to 
WDDX and store that in the database. Then when a certificate is opened it is 
retrieved from the database converted from WDDX back to a ColdFusion object 
that Remoting converts back to a Flash object. I've done this similar thing 
with .NET and PHP remoting, the trick is to find what format your middleware 
can store in your database.

The second approach I've used was to use Flash Media Server to store a remote 
shared object of the object. My app would make the remote connection get the 
object and start up. This approach worked great because there weren't a lot of 
objects that needed to be saved and retrieve and the application doesn't have 
many concurrent hits that would limit our license, plus after the retrieveal of 
the object the remote connection is closed.

I believe FDS has the same remote object capabilites as FMS has so you might 
already have that end. 

Good luck,

Mike Weiland
 
Original Message ---
I have data in my flex app that I want to send to my server as if it
were a upload from a filereference (aka, as a multipart form).

Is there a easy way to do that?

Basically, I already have a backend servlet that accepts file uploads
from my flex app,  and from an html browse form, and i'd like to use
that same backend with arbitrary serialized objects in my swf. 


Thanks,

Daryn



RE: [flexcoders] uploading an object

2006-12-01 Thread Dimitrios Gianninas
Yes, use the FileReference class, it does this. There is an example in the 
documentation.
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daryn 
Nakhuda
Sent: Friday, December 01, 2006 5:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] uploading an object



I have data in my flex app that I want to send to my server as if it
were a upload from a filereference (aka, as a multipart form).

Is there a easy way to do that?

Basically, I already have a backend servlet that accepts file uploads
from my flex app, and from an html browse form, and i'd like to use
that same backend with arbitrary serialized objects in my swf. 

Thanks,

Daryn



 

-- 
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] Comparing two Dates

2006-12-01 Thread Dimitrios Gianninas
Use the attached... enjoy
 
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gaurav 
Jain
Sent: Friday, December 01, 2006 5:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Comparing two Dates



Hi All,

I would appreciate if some one can suggest me a quick solution for comparing 
two dates and finding out which date is greater.

Thanks

Gaurav

 

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



DateUtils.as
Description: DateUtils.as


[flexcoders] Re: Can't get value after labelfunction

2006-12-01 Thread bsdensmore
Thanks for trying Tracy. Any ideas of what route I should go?

Thanks,
Ben

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> While this method works, I do not think it is a good solution.
> 
>  
> 
> I decided to add a "simple" functionality of displaying the total weight
> value of the items in the calculated column.  But the fact that the
> column's values are calculated by the itemRenderer presents many
> problems.
> 
>  
> 
> Because the renderers only calculate the visible rows, we can never get
> a total using those calculations.  Instead, we have to do the full
> caclulation of net_price for each item and then add it to the sum. 
> 
>  
> 
> So if we want to update the total weight when a user updates the
> quantity value, we have a problem deciding when to invoke the
> calculation.  On the itemEditEnd event, the quantity property has been
> updated but the item renderer has not yet run so the net_weight property
> is not yet calculated.
> 
>  
> 
> I attempted to determine the last item rendered, but this became a
> problem itself.
> 
>  
> 
> In all, I would do it differntly.
> 
>  
> 
> Tracy
> 
>  
> 
>  
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Tracy Spratt
> Sent: Thursday, November 30, 2006 5:23 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Re: Can't get value after labelfunction
> 
>  
> 
> Ok, I have it working
> 
>  
> 
> First your dataProvider item objects do NOT have properties for all
> three columns, only the item weight column.
> 
>  
> 
> So this condition:
> 
> if (value.claimed != null ...
> 
> will always be false and the calculation will not happen.
> 
>  
> 
> Add the other two columns to the dataprovider item object, defaulted to
> 0, and everything works, even when you update the quantity.
> 
> theData = new ArrayCollection(
> 
>   [{each_wt:30,quantity:1,net_wt:0},
> 
>   {each_wt:95,quantity:0,net_wt:0},
> 
>   {each_wt:105,quantity:9,net_wt:0}]);
> 
>  
> 
> I am going to modify your example some and post it on CFLEX.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of bsdensmore
> Sent: Thursday, November 30, 2006 4:07 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Can't get value after labelfunction
> 
>  
> 
> yes, they do. 
> 
> I'm just doing a very small example to get my head around this. I
> actually took the ClassFactory stuff out and went to using the
> itemrenderer as is. It works but now I'm running into the issue of my
> datagrid losing it's state when you scroll.
> 
> This is what my main Application looks like, 
> 
> 
> http://www.adobe.com/2006/mxml
>  "
> layout="absolute" creationComplete="populate();">
> 
> 
> 
> 
>  editable="true">
> 
> 
>  editable="false"/>
>  editable="true" />
>  editable="false" itemRenderer="calculatedItemRenderer"/>
> 
> 
> 
> 
> 
> 
> 
> My ItemRenderer looks like:
> 
> http://www.adobe.com/2006/mxml
>  " width="72"
> height="20" horizontalAlign="center">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Ben
> 
> --- In flexcoders@yahoogroups.com 
> , "Tracy Spratt"  wrote:
> >
> > First: Does your dataProvider (the item objects specifically) have a
> > property for each of the three columns?
> > 
> > Tracy
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of bsdensmore
> > Sent: Thursday, November 30, 2006 1:58 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Re: Can't get value after labelfunction
> > 
> > 
> > 
> > I keep going in circles with this. If I don't use the ClassFactory I
> > can get the calculations to work but I can't figure out how to send
> > the value back to the dataProvider. If I try to use the ClassFactory
> > and set my properties through the ClassFactory properties nothing is
> > being passed into the itemRenderer. 
> > 
> > This is driving me nuts.
> > 
> > My DataGrid has 3 Fields Case_Weight, Cases_Claimed and Net_Lbs. 
> > Net_Lbs uses the item renderer which is a "Text" Custom Component.
> > 
> > When the dataProvider is populated only Case Weight has a value. The
> > other 2 fields are blank. Cases_Claimed is editable and based on what
> > is entered in there it multiplies Case_Weight and Cases_Claimed and
> > sets Net_Lbs to the total amount. Should I be using something other
> > than a "Text" component?
> > 
> > Thanks,
> > Ben
> > 
> > --- In flexcoders@yahoogroups.com
> 
> 
> > , "Tracy Spratt"  wrote:
> > >
> > > An item renderer will certianly work and there are a lot o

[flexcoders] Re: Comparing two Dates

2006-12-01 Thread bsdensmore
Hi Gaurav,
 Ed Eustace wrote a Validator to handle this. He sent me a copy but I
haven't had a chance to use it yet. I'll be putting it into my app in
the next day or so. If you want I can send it to you. Just email me at
bsdensmore[at]yahoo[dot]com.



Ben

--- In flexcoders@yahoogroups.com, "Gaurav Jain" <[EMAIL PROTECTED]> wrote:
>
> Hi All,
> 
>  
> 
> I would appreciate if some one can suggest me a quick solution for
comparing
> two dates and finding out which date is greater.
> 
>  
> 
> Thanks
> 
> Gaurav
>




[flexcoders] uploading an object

2006-12-01 Thread Daryn Nakhuda
I have data in my flex app that I want to send to my server as if it
were a upload from a filereference (aka, as a multipart form).

Is there a easy way to do that?

Basically, I already have a backend servlet that accepts file uploads
from my flex app,  and from an html browse form, and i'd like to use
that same backend with arbitrary serialized objects in my swf. 


Thanks,

Daryn




Re: [flexcoders] Disclosure triangles

2006-12-01 Thread Darron J. Schall
Yes, it's possible.  You have to embed the symbol from the Assets.swf 
that comes with the Flex framework.  I'm using CSS to do this in a 
similar scenario, and my code looks like this:

ClassName
{
disclosure-open-icon: Embed( souce="Assets.swf", 
symbol="TreeDisclosureOpen" );
disclosure-closed-icon: Embed( souce="Assets.swf", 
symbol="TreeDisclosureClosed" );
}

Then, I have an  that gets its source property modified based 
on disclosure state:

disclosureIcon.source = getStyle( "disclosureOpenIcon" );   // or 
"disclosureClosedIcon"

-d

Lachlan Cotter wrote:
>
> Hi List,
>
> Is it possible to use the disclosure triangle from the Tree view
> control outside of a tree view? I want to use it to switch between
> states on an item renderer (a collapsed, summary state, and a full,
> detail state). There doesn't seem to be a disclosure triangle component.
>
> Cheers,
> Lach
>
>  



Re: [flexcoders] Flash 9, Binary sockets and Bonjour

2006-12-01 Thread Tom Chiverton
On Thursday 30 November 2006 16:47, Alex MacCaw wrote:
> I was wondering if it is possible to implement Apple's Bonjour (multicast
> DNS Service Discovery API) in flash, regarding its new capabilities.

Probably not, because you need a local raw socket. Apollo, of course, will 
have this, and yes, it could be funky.

-- 
Tom Chiverton
Helping to administratively reintermediate ubiquitous partnerships



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

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

CONFIDENTIALITY

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

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



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] faultCode = "Client.Error.RequestTimeout"

2006-12-01 Thread Sergey Kovalyov
Hi All!

Is there any constant that contains "Client.Error.RequestTimeout"
string value in framework classes? Actually it's the value of
fault.faultCode in FaultEvent instance when request timeout happens.

Sergey.


[flexcoders] Set combobox selection to data

2006-12-01 Thread Wally Randall
How do I set the selected value of a combobox to that of the data 
returned from the database record?



[flexcoders] Problem with Loader

2006-12-01 Thread pdflibpilot
I am trying to load images into my display object and began with this
simple example taken directly from the Help system. Why is it giving
me the error "undefined property on pictLdr" on the lines indicated
(>>) ??

import flash.display.*;
import flash.net.URLRequest;
import flash.events.Event;

var container:Sprite = new Sprite();
addChild(container);
var pictLdr:Loader = new Loader();
var pictURL:String = "banana.jpg"
var pictURLReq:URLRequest = new URLRequest(pictURL);
>>pictLdr.load(pictURLReq);
>>pictLdr.contentLoaderInfo.addEventListener(Event.COMPLETE, imgLoaded); 
function imgLoaded(e:Event):void {
container.addChild(pictLdr.content); 
}





[flexcoders] Bitmapdata draw with BlendMode....result: Player Crash

2006-12-01 Thread maikelsibbald
Does any body know why the use of a blendmode can result into a Player
Crash??

/***/
img.draw(p_clip2,mat, new ColorTransform(0, 0, 0, 1, 0, 255, 255,
255),BlendMode.DIFFERENCE);
/***/

Very hard to debug by the way...



[flexcoders] Re: File I/O Error - Error #2038

2006-12-01 Thread Daryn Nakhuda
I have a similar problem. 

I can upload a particular file just fine on my local dev environment,
but same code running on the production server, with the same file,
and I get this I/O Error (not a security/domain error).




--- In flexcoders@yahoogroups.com, "kristian_wright2002"
<[EMAIL PROTECTED]> wrote:
>
> I've seen a few posts on this error but none of them seem to solve my
> issue.
> 
> I'm trying to upload some files via a FileReference object, with a CF
> backend.  The CFC works fine with smaller files (eg under 300k), but
> with files over this size, sometimes it works, sometimes it doesn't.
> 
> When it doesn't work, I get the following I/O Error:
> 
> IOErrorEvent 
> type="ioError" 
> bubbles=false 
> cancelable=false 
> eventPhase=2 
> text="Error #2038: File I/O Error. 
> URL: my URL
> 
> The server side script is working, as I can try and upload a smaller
> file, and it works.  But when I'm getting the I/O error, the app stops
> before it even reaches the CFC.  I've set a Progress listener to the
> FileUpload object, and it seems to just slow down and eventually stop,
> throwing the I/O error before file upload has reacherd the total bytes
> of the file.
> 
> Does anyone know what might be going on here?
> 
> Thanks,
> K.
>




Re: [flexcoders] FDS Stress Testing Framework (Beta) Now Available

2006-12-01 Thread Ralph Hauwert

Hi Matt,

That's great. We are just about to deploy a possibly high traffic
load-balanced FDS application, in which we are employing AMF and RTMP
communications. How far would this enable us to test and asses performance
using multiple FDS servers ?
Regards,
Ralph.

On 12/1/06, Matt Chotin <[EMAIL PROTECTED]> wrote:


  Available on Labs:
http://labs.adobe.com/wiki/index.php/Flex_Stress_Testing_Framework

Info cribbed from the Labs page:

The Flex Data Services Stress Testing Framework helps Flex developers
using Flex Data Services load test their Flex 2 applications. Flex Data
Services offers a number of data transport channels for communicating
between a Flex client and the Flex Data Services server. These channels
include RTMP(s), AMF(s) and HTTP(s). Most commercial load testing tools
rely on data being sent over HTTP and less performing implementations of
the AMF protocol (usually AMF0). Flex Data Services enables developers
to leverage HTTP in addition to the latest and highest performing
version of AMF (AMF3) and data push with RTMP. As most load testing tool
vendors have not yet released support for RTMP(s) or the latest version
of AMF(s), the Flex Data Services Stress Testing Framework allows Flex
developers to load test their applications that use RTMP and AMF3
without needing to use a commercial testing tool.

Adobe is currently working with a number of testing tool vendors to
implement all of the data transport protocols available in Flash. In
addition to partnering with testing tool vendors, we are providing the
following load testing framework to enable Flex Data Services developers
to load test their applications. The Flex Data Services Stress Testing
Framework is currently in beta form, but available for testing and
evaluation. Please download and test the framework and provide us your
feedback.
 





--
Ralph Hauwert
FlashCoder


[flexcoders] Comparing two Dates

2006-12-01 Thread Gaurav Jain
Hi All,

 

I would appreciate if some one can suggest me a quick solution for comparing
two dates and finding out which date is greater.

 

Thanks

Gaurav



[flexcoders] Is it possible to show text in XML format in TextArea

2006-12-01 Thread Chen, Ming \(Troy\)
Hi all
I want to copy a xml file from clickboard to an TextArea.
Can the textArea autorender the text into XML format ? like specify a
particular color for each tag?
Is it possible? 
I saw the "styleSheet" property, does it work with it?

appreciate


Email:[EMAIL PROTECTED]
MSN:[EMAIL PROTECTED]



RE: [flexcoders] {data} current index

2006-12-01 Thread Steve Cox
rowIndex refers to the index of the item in the viewable area within the
datagrid; not as the docs say the index of the item in the dataprovider.
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dustin Mercer
Sent: 30 November 2006 22:39
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] {data} current index
 
You could also look at the listData property on the renderer (if it
implements IDropInListItemRenderer, which it should).  It has the
rowIndex and columnIndex properties on it.  For some reason listData is
not bindable, but if your renderer is built in AS, you won't need the
binding, if it's mxml, then you can use the creationComplete event to
compute the itemIndex.  For a TileList it might be a bit complex though,
since you need to do a little math to find out what the item's index is.
Here is some pseudo code for that.  
 
var itemIndex : int = (listData.owner.columnCount * listData.rowIndex) +
(listData.columnIndex + 1)
 
What Lach suggested below is the easiest way and fastest way to get this
going.  If you need the index to be dynamic, for instance if you need to
do any filtering or sorting and want the index to be re-evaluated,
listData is the way to go.
 
Dustin Mercer
 
  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lachlan Cotter
Sent: Thursday, November 30, 2006 12:54 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] {data} current index
 
Hi Alex,
 
Item renderers aren't really aware of the wider context in which they
are show (i.e. as one item in a collection). They are only concerned
with how to render the particular data object that is passed to them. If
you want to render some kind of index number on the view, your best bet
is probably to incorporate it in the model somehow. That is, each item
in your collection should have an index property which is set to equal
its position in the collection.
 
Then you can say
 

 
Cheers,
Lach
 
 
 
On 30/11/2006, at 2:22 AM, Alex wrote:




Hi,

I have an application that uses a custom component as a renderItem in 
a TileList, retrieving a list of data from XML as the dataProvider.

How can I retrieve the current index of the item within my custom 
component? I can retrieve the data using {data}, but how would I 
retrieve the index of the item as it is being added in the actual 
TileList?
 
 


Re: [flexcoders] MXML editing in Eclipse (not Flex Builder2)

2006-12-01 Thread Tom Chiverton
On Thursday 30 November 2006 18:16, David Harris wrote:
> I am using eclipse and was wondering if anyone had managed to get
> Eclipse to provide MXML insite to the standard MXML tags by providing
> a DTD or some type of definition doc?

http://thefalken.livejournal.com/31865.html

> I know there are AS editors, so I will look in to that soon too, but
> if anyone knows an AS3 Eclipse plug in, that would be great too.

The AS2 one from sourceforge works perfectly well

-- 
Tom Chiverton
Helping to adaptively industrialize proactive networks



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] Image Slide Show(Quick One)

2006-12-01 Thread KP
Thanks Lachlan.

 

Well I was also doing same but I got stuck in the images repeating logic
.thanks a lot for this one.

 

Kumar :-)  

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lachlan Cotter
Sent: Friday, December 01, 2006 3:03 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Image Slide Show(Quick One)

 

Hi Kumar,

 

Perhaps something like this?

 



http://www.adobe. 
com/2006/mxml" layout="absolute" xmlns:local="*"

creationComplete="init()">

 

 

   

 

 

 

   

   

 

 



 

Cheers,

Lach

 

On 30/11/2006, at 12:48 AM, KP wrote:





Hi All,

 

Well I want to know some simple approach for creating an image slide show.

 

I have an XML file containing all path and source of the images.  

I don't want to give any more functionality except that images should
changes every 5sec.

 

Can some one suggest a quick and easy approach on this one

 

Thanks,

Kumar

 

 



Re: [flexcoders] services-config with multiple endpoints

2006-12-01 Thread Igor Costa

Take a read here

http://aspalliance.com/736_Windows_Communication_Foundation_Steroids_for_your_Enterprise_ServiceOriented_Architecture_Part_I

Regards.

On 11/30/06, Jeremy Rottman <[EMAIL PROTECTED]> wrote:


  We are nearing the end of our flex application development cycle, and
about to head into beta testing. Something I have been thinking about
for a while now is how we are going to instance the application.

One of the things I am looking into is multiple remote object end
points. So that if we an end point for each of the sub-domains that
are created when we add a new instance. Does anyone know if this is
possible?

IE having something like this.

http://instanceID.admin.mydomain.com/flex2gateway/";
class="flex.messaging.endpoints.AMFEndpoint"/>

http://instanceID.user.mydomain.com/flex2gateway/";
class="flex.messaging.endpoints.AMFEndpoint"/>

 





--

Igor Costa
www.igorcosta.com


Re: [flexcoders] Spanish language charcaters on button labels

2006-12-01 Thread {reduxdj}
Igor,

the the values are already encoded for amfphp remoting, sending the 
strings directly back from
php makes them say [UTF String] with no value.  so I encode them in the 
html safe way and it works...

Is there a string function to change htmlText to normal text and vica 
versa, i guess i need to fish on this one.
At least I know that I can just type them temporarily.   By the way, do 
you do any work with remoting and spanish
text with amfphp?

We have our stuff that has translation tables for spanish, so all of the 
data, button labels are loaded at run time
for whichever language we are going to display.

thanks,

At least i can type them as strings in the mean time.

P

Igor Costa wrote:
>
> Patrick just type the text and it works, remember that in the MXML you 
> have the utf-8 in the definition of xml
>
> It's the same happens for us brazilians that has a lot of special 
> characters.
>
> regards
>
> On 11/30/06, [EMAIL PROTECTED] * <[EMAIL PROTECTED] 
> > wrote:
>
> I know how to render spanish language characters in htmlText but how
> do I put them into button labels? What's the best practice for
> this... these are the kind of utf-codes my Remoting methods are
> returning: ¿
>
> Thanks,
> Patrick
>
>
>
>
> -- 
> 
> Igor Costa
> www.igorcosta.com 
>  




Re: [flexcoders] Re: how many the classes of flex?

2006-12-01 Thread Igor Costa

Just go to the Flex_SDK folder

there has a subfolder called lib

Regards.

On 11/30/06, Jamie O <[EMAIL PROTECTED]> wrote:


  All your class are belong to flex? :P

--- In flexcoders@yahoogroups.com ,
"songhuanren" <[EMAIL PROTECTED]> wrote:
>
> how many the classes of flex? ha.ha.
>

 





--

Igor Costa
www.igorcosta.com


Re: [flexcoders] Return the application name

2006-12-01 Thread Igor Costa

Just create a for loop for it.



On 11/30/06, michrx7 <[EMAIL PROTECTED]> wrote:


  If I build out a project called "InvestorStuff" every time the user
opens another instance it gives it a new number like:

InvestorStuff0
InvestorStuff1
InvestorStuff2
InvestorStuff3

How do I check this value to see how many they have open?

 





--

Igor Costa
www.igorcosta.com


Re: [flexcoders] MXML editing in Eclipse (not Flex Builder2)

2006-12-01 Thread Igor Costa

David

Just go to the FlashDevelop.org site at the forum you will see a DTD for
MXML definition.


regards.

On 11/30/06, David Harris <[EMAIL PROTECTED]> wrote:


  Hi Guys,

I am using eclipse and was wondering if anyone had managed to get
Eclipse to provide MXML insite to the standard MXML tags by providing
a DTD or some type of definition doc?

I am attempting to use XMLBuddy (free version) which you can provide a
DTD etc, but I can't find this for MXML
I did read the thread "DTD Schema for Flex 2" from the middle of the
year, but I don't have a Flex1.5 schema to start with :-(

Are there any other free alternatives to FB2 out there?
The main thing is the tag insite...

I know there are AS editors, so I will look in to that soon too, but
if anyone knows an AS3 Eclipse plug in, that would be great too.
 





--

Igor Costa
www.igorcosta.com


Re: [flexcoders] Re: How to control depth

2006-12-01 Thread Igor Costa

Using the for example

public function swap():void
{
yourComponent.addChildAt(this,numChildren+1);
}
So it will put in the top of level.


regards.

On 11/30/06, elevight <[EMAIL PROTECTED]> wrote:


  Does anyone know how to control the z-axis of objects?

Here's a very short code snippet to illustrate my question:


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





In the above, vboxBlue was instantiated after vboxRed, and hence,
appears on top of vboxRed. How can I, during runtime, make vboxRed be
on top of vboxBlue?

Thanks.

 





--

Igor Costa
www.igorcosta.com


Re: [flexcoders] What was second nature has me researching through pages of docs

2006-12-01 Thread Igor Costa

Dj

1. How do I get the length of my UITextField, not 100% - that's just
plain silly

AN: 
 
  import mx.controls.TextField;
  public var  sizeOf:int;

 public function returnSizeofTextField():void
 {
  sizeOf = test.length;
trace(sizeOf);
}


2. What if i don't want a broken image skin, no image i want nothing

So you want to create new components has a lot fo ways to do that, but if I
undrestood your question
just start using the DisplayObject class and start creating your own.


3. how do i override a resize event or lock a VBox container not to
get smaller as children are removed

just uses the override method, please take a look at the help.



Regards.

On 11/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


  These little things take me forever to find and i simply can't find
these solutions easily, if you have a moment. Answer one or two of
them.

I appreciate it, i'd gladly paypal you a few bucks for a peet's
coffee, i'm going to get one myself and maybe i'll have my answer
when i return, yum.

Thanks,
Patrick

1. How do I get the length of my UITextField, not 100% - that's just
plain silly

2. What if i don't want a broken image skin, no image i want nothing

3. how do i override a resize event or lock a VBox container not to
get smaller as children are removed

4. How do I set the font of UITextField with stylesheet, or embedded
font

5. How do I make the UITextfield's font not to be so pixelated.

 





--

Igor Costa
www.igorcosta.com


Re: [flexcoders] DataGrid horizontalScrollPosition and scrollbar out of sync

2006-12-01 Thread Igor Costa

Just uses 0 instead of 2.

regards.

On 11/30/06, coderjun <[EMAIL PROTECTED]> wrote:


  Hello,

I was wondering if anyone has run into this scenario and has an elegant
solution.

Symptom:

When a DataGrid comes into view that has the column set to an index other
than 0, the scrollbar is out of whack.  The only way to get it to sync up
again is via user interation. (For instance, interacting with the
scrollbar.)

Intended Functionality:

I would think that if I set the horizontalScrollPosition to something
other than 0, the scrollbar would reflect that when the DataGrid comes into
view without any user interation necessary.

Request from the group:

Does anyone know of a way to sync up the scrollbar position with the
horizontalScrollPosition?

Code is below...

Thanks,

Jun


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

 
  
   
   
   
   
  
 







 





--

Igor Costa
www.igorcosta.com


Re: [flexcoders] Can't get value after labelfunction

2006-12-01 Thread Igor Costa

Kenny in the target just enable the DropEnable=true


Regards.

On 11/29/06, bsdensmore <[EMAIL PROTECTED]> wrote:


  I have 2 DataGridColumns that use a labelfunction to multiply a couple
of fields and display the value in another column. For some reason
after the field is updated with the total I can't get at that value.

The dataProvider that the DataGrid is bound to is a query result that
is converted to an ArrayCollection. When the ArrayCollection is
initially populated this field is blank. So, I'm guessing that after
the labelfunction executes it doesn't update the ArrayCollection to
hold the newly calculated value?

How can I go about updating the ArrayCollection so I can save it to a
database table. I swear I had this working.

Thanks,
Ben

 





--

Igor Costa
www.igorcosta.com


Re: [flexcoders] building reusable, 'stacking' components

2006-12-01 Thread Igor Costa

Steve

Nope you don't have to create 2 or 3 types of version, you just be more
reusable as possible just setting the width and height size for percentage.
Due to you can uses in other containers that you specifies the sizes and
positions.


Best.

On 11/30/06, Steve Hindle <[EMAIL PROTECTED]> wrote:


  Hi All,

Anyone got any good design patterns for building components that can
be stacked inside other components and still look good visually? I'm
ending up in nested tabNavigator hell...

When you build components that can be used both stand-alone (top
level) or included _inside_ another component - how do you organize
the component, and what nav containers do you use ?

Do I really have to create 2 or 3 versions of the component (with
tabs,with linkbar, with...)
or is there a way of switching the container at runtime? ( I thought
about building dynamically with addChild, getting the navcontainer to
use from a property...)

Thanks!
 





--

Igor Costa
www.igorcosta.com


Re: [flexcoders] Second problem: how to delete a component out of the storage

2006-12-01 Thread Igor Costa

Matze you just do to set as  null. Than you can use the
removeChildAt(yoursComponent,numChildren -1);


Regards.

On 11/29/06, matze.kueby <[EMAIL PROTECTED]> wrote:


  Hello,

My second question is how to delete a component out of storage.

We have some own components (basically forms), which will be created
and shown by an construct e.g.
var myComponent : T_Component = new T_Component ;
this.addChild(myComponent)

Some of our forms will be created in an popup. On every call of the
popup, we lost 5 mb or more, all childs on the windows will be
removed by formname.removeAllChild();
What cann we do, that the garbage collector will dispose this
objects.
Is there a way to show all objects with references (NOT NULL)?

I have read in the Flex Help, that this.removeChild(myComponent) not
delete the form and/or object out of the storage.
Rather the object must be destroyed.

It is sufficient to call delete(myComponent) about remove this object
out of the storage as the case may be that the garbage-collector
remove this object at any time?
Or how can I destroy a component correctly. What happens with the
widgets on this component e.g. input fields or datagrids?
Are they also being deleted?

Thanks for your help, too.

Matze

 





--

Igor Costa
www.igorcosta.com


Re: [flexcoders] Can't get value after labelfunction

2006-12-01 Thread Igor Costa

It was to the previous thread

On 12/1/06, Igor Costa <[EMAIL PROTECTED]> wrote:


Sorry google new shortcut makes me crazy

On 12/1/06, Igor Costa <[EMAIL PROTECTED]> wrote:
>
> Kenny in the target just enable the DropEnable=true
>
>
> Regards.
>
> On 11/29/06, bsdensmore < [EMAIL PROTECTED] > wrote:
> >
> >   I have 2 DataGridColumns that use a labelfunction to multiply a
> > couple
> > of fields and display the value in another column. For some reason
> > after the field is updated with the total I can't get at that value.
> >
> > The dataProvider that the DataGrid is bound to is a query result that
> > is converted to an ArrayCollection. When the ArrayCollection is
> > initially populated this field is blank. So, I'm guessing that after
> > the labelfunction executes it doesn't update the ArrayCollection to
> > hold the newly calculated value?
> >
> > How can I go about updating the ArrayCollection so I can save it to a
> > database table. I swear I had this working.
> >
> > Thanks,
> > Ben
> >
> >  
> >

>
>
>
> --
> 
> Igor Costa
> www.igorcosta.com




--

Igor Costa
www.igorcosta.com





--

Igor Costa
www.igorcosta.com


Re: [flexcoders] Drag/Drop - Datagrid. Target is off?

2006-12-01 Thread Igor Costa

Kenny in the target just enable the DropEnable=true

On 11/30/06, lostinrecursion <[EMAIL PROTECTED]> wrote:


  Hi all,

I have a little app I built with some drag/drop functionality that I
coded in. I am not using the default and writing my own handlers.
Everything is working, meaning all the data gets added, etc.

But, this is just more of annoyance really, I cannot get the DataGrid
to accept the drop at the top row. Meaning the user has to go below the
first or second row before the drop indicators pop and they can.

Further investigation leads me to see that even the dragEnter event is
not firing.

I am using the default dragProxyImage. In fact, the only thing I really
changed was the dragDrop handler to accept a few additional values.

Any ideas?

Thanks
-Kenny

 





--

Igor Costa
www.igorcosta.com


Re: [flexcoders] Spanish language charcaters on button labels

2006-12-01 Thread Igor Costa

Patrick just type the text and it works, remember that in the MXML you have
the utf-8 in the definition of xml

It's the same happens for us brazilians that has a lot of special
characters.

regards

On 11/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


  I know how to render spanish language characters in htmlText but how
do I put them into button labels? What's the best practice for
this... these are the kind of utf-codes my Remoting methods are
returning: ¿

Thanks,
Patrick

 





--

Igor Costa
www.igorcosta.com


Re: [flexcoders] Can't get value after labelfunction

2006-12-01 Thread Igor Costa

Sorry google new shortcut makes me crazy

On 12/1/06, Igor Costa <[EMAIL PROTECTED]> wrote:


Kenny in the target just enable the DropEnable=true


Regards.

On 11/29/06, bsdensmore <[EMAIL PROTECTED] > wrote:
>
>   I have 2 DataGridColumns that use a labelfunction to multiply a couple
> of fields and display the value in another column. For some reason
> after the field is updated with the total I can't get at that value.
>
> The dataProvider that the DataGrid is bound to is a query result that
> is converted to an ArrayCollection. When the ArrayCollection is
> initially populated this field is blank. So, I'm guessing that after
> the labelfunction executes it doesn't update the ArrayCollection to
> hold the newly calculated value?
>
> How can I go about updating the ArrayCollection so I can save it to a
> database table. I swear I had this working.
>
> Thanks,
> Ben
>
>  
>




--

Igor Costa
www.igorcosta.com





--

Igor Costa
www.igorcosta.com


[flexcoders] Re: lockedColumnCount lockedRowCount

2006-12-01 Thread devisbalsemin
Hi, if you are intersted here my code for use GrandTotal into a lockedRow.
Devis


private function Elabora():void
{
   var
token:AsyncToken=dsBaan.fill(conto,"byConto",txConto.text,cbAnno.text);
token.addResponder(new ItemResponder(
function (data:Object, token:Object=null):void
 {
conto.removeItemAt(0);
var catObj:Object=new Object();
catObj.fornitore='Totali';
catObj.gennaio=createSubTotalObject(conto,'gennaio');
catObj.febbraio=createSubTotalObject(conto,'febbraio');
conto.addItemAt(catObj,0);

   }














[flexcoders] Re: Charting Questions

2006-12-01 Thread Tim Hoff

To simulate a border around the rectangular region inside a chart, you
can use axisRenderers.  This example draws a dark green border inside
the axis labels.


http://www.adobe.com/2006/mxml
 "
  layout="vertical" horizontalAlign="center" verticalAlign="middle"
  backgroundColor="#FF">

  
   
  

  

   

   

   

   

   
  
   

   
  
   

   

   

   
  
   

   

   

   
  
   

   

   

   
  
   

   
   
   

  



-TH
__

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office  : 866-CYNERGY


--- In flexcoders@yahoogroups.com, "Ely Greenfield" <[EMAIL PROTECTED]>
wrote:
>
>
>
>
> To draw into the data area of the chart, you'll need to wite a custom
> chart element. See my numerous posts on the subject to this list, or
> some of the examples at http://www.quietlyscheming.com/
>
>
> For the region of the chart...By default, a chart takes the space
given
> to it by its parent, subtracts out the space needed for the optimal
> layout and size for the axis labels, and uses the remaining space for
> the data area. If you're seeing fluctuations in the space used by the
> data, it's most likely due to fluctuations in the range of your
> data...i.e., if it starts at 0-80, then goes to 0-120, it's going to
> take a little more space for the extra digit on the labels.
>
> The area used by the axes is called the 'gutter' in chart terminology.
> While the chart calculates these on its own by default, you can assign
> explicit values for some or all of the chart gutters. When you do
that,
> the chart will do its best to fit the labels in the gutter sizes
> specified. Specify all four gutter size, and you've effectively locked
> in a size for the data area (given a fixed size for the whole chart).
>
>
> So checkout the gutterLeft, gutterTop, etc. styles.
>
>
> Ely.
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of polonycjunk
> Sent: Thursday, November 30, 2006 7:13 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Charting Questions
>
>
>
> Hi,
>
> I would like to add borders to the inside rectangular region of the
> charts. Would anyone know how to accomplish this task? I am able to
> modify the gridLines inside the chart, modify the thickness of the
> horizontal and vertical axis, but can't seem to find a way to put
> borders along the 4 axes.
>
> Also, how can you specify a fixed length of the rectangular region in
> the chart? It looks the size of this area fluctuates a tiny bit when
> working with real-time charts.
>
> Thanks for any input provided.
>