[flexcoders] Itemrenderer combo's dataprovider from ModelLocator???

2008-06-05 Thread slash_n_rose
Hi
I'm using a Combobox control in my itemrenderer and its dataprovider
is a Cairngorm ModelLocator variable. So my itemrenderer has a
reference to ModelLocator. Is it a bad method by referencing model in
Item Renderer,?  If yes is there any other methods? Thanks in advance.

Regards
Jerry



Re: [flexcoders] Measurement and scrolling

2008-06-05 Thread Josh McDonald
Measure can always be bigger than the actual width/height, that's what it's
for.

On Fri, Jun 6, 2008 at 11:32 AM, Richard Rodseth <[EMAIL PROTECTED]> wrote:

>   No, I mean like zooming a window. I think the problem lies in how I
> tell the TiledCanvas that one of its children is the zoomed one
> (setting "visible" of all the others to false in updateDisplayList).
> Stay tuned.
>
> However, setting that aside, it also seems as though I might be
> commiting a hack if I allow the measured size of the TiledCanvas to
> remain larger than its bounds, even though it allows the scrolling to
> work (at least in the all-tiles-shown case).
>
>
> On Thu, Jun 5, 2008 at 5:46 PM, Josh McDonald <[EMAIL 
> PROTECTED]>
> wrote:
> > I'm not sure exactly what you're doing, or what you're trying to achieve
> > yet. By "expanding a tile" do you mean you're setting the minimum to be
> > bigger, or you're manually overriding the decisions the base Container
> > implementation makes in updateDisplayList()?
> >
> > On Fri, Jun 6, 2008 at 10:41 AM, Richard Rodseth <[EMAIL 
> > PROTECTED]>
> wrote:
> >>
> >> The docs say:
> >>
> >> If the horizontalScrollPolicy is ScrollPolicy.AUTO, the horizontal
> >> scroll bar appears when all of the following are true:
> >>
> >> * One of the container's children extends beyond the left edge or
> >> right edge of the container.
> >> * The clipContent property is true.
> >> * The width and height of the container are large enough to
> >> reasonably accommodate a scroll bar.
> >>
> >> And sure enough, if I set a static minimum on tiledView, I get the
> >> desired effect.
> >>
> >> If I expand a tile and change the minimum to something else, any idea
> >> which invalidate method(s) I should call?
> >>
> >> On Thu, Jun 5, 2008 at 4:57 PM, Josh McDonald <[EMAIL 
> >> PROTECTED]>
> wrote:
> >> > If you want to be able to measure your subcomponents, always use
> >> > setActualSize. I learned that the hard way recently :)
> >> >
> >> > I've recently been doing a whole bunch of measure and
> updatedisplaylist
> >> > voodoo for a custom container, so I'll be slightly helpful!
> >> >
> >> > -Josh
> >> >
> >> > On Fri, Jun 6, 2008 at 9:36 AM, Richard Rodseth <[EMAIL 
> >> > PROTECTED]
> >
> >> > wrote:
> >> >>
> >> >> Clearly I haven't mastered layout and measurement.
> >> >>
> >> >> I've implemented a custom component which tiles its children in
> >> >> equal-sized tiles, but also has a state (not a flex state) where one
> >> >> tile fills the component.
> >> >>
> >> >> I subclassed Canvas and set the sizes and positions of children in
> >> >> updateDisplayList. I didn't override measure(), but it works very
> >> >> nicely, resizing children smoothly as it is resized.
> >> >>
> >> >> Now, however, I would like to set a minimum width and height for the
> >> >> tiled view, after which scroll bars appear. The minimum will be
> >> >> different if the component is in the one-tile-expanded case.
> >> >>
> >> >> Can I do this without further mods to my component?
> >> >> Should my updateDisplayList be calling setActualSize rather than
> >> >> setting x,y,width, height?
> >> >> Should I have a measure() implementation?
> >> >> How would it differ from the inherited one?
> >> >> In a scenario like the following, would I set the minWidth and
> >> >> minHeight on the parent or child?
> >> >> Or, to ask another way, do the the scrollpolicy and minimum
> properties
> >> >> always belong on the same component?
> >> >>
> >> >>  >> >> verticalScrollPolicy="auto"
> >> >> horizontalScrollPolicy="auto">
> >> >>
> >> >>  >> >> width="100%" height="100%"
> >> >> >
> >> >> 
> >> >> 
> >> >>
> >> >> Thanks.
> >> >
> >> >
> >> >
> >> > --
> >> > "Therefore, send not to know For whom the bell tolls. It tolls for
> >> > thee."
> >> >
> >> > :: Josh 'G-Funk' McDonald
> >> > :: 0437 221 380 :: [EMAIL PROTECTED] 
> >> >
> >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED] 
> >
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

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


Re: [flexcoders] Re: date in dataGrid wrong GMT? Dates sometimes one day off?

2008-06-05 Thread Josh McDonald
Change it from a date to a string on the server.

-Josh

On Fri, Jun 6, 2008 at 12:49 PM, Don Kerr <[EMAIL PROTECTED]> wrote:

>   Let me pose the question differently...I simply want to insert the
> selectedDate from a DateField into the database and display the
> correct date in a dataGrid column.
>
> Currently I insert myDateField.selectedDate into the database. It
> enters into the database in mm/dd/ format. It enters the correct
> date into the database.
>
> I want the dataGrid to display the mm/dd/ that is in the database
> exactly. Not mess with it based on which client is viewing it. How?
>
>
> --- In flexcoders@yahoogroups.com ,
> "flash.media" <[EMAIL PROTECTED]> wrote:
> >
> > Don, Have you accounted for the difference in day formats between AS
> and CF?
> > AS 0-6 CF 1-7? Just a thought.
> > Cheers,
> > Craig
> >
> > --- In flexcoders@yahoogroups.com , "Don
> Kerr"  wrote:
> > >
> > > User selects date from date field. Saves. Date reflected in dataGrid
> > > displays GMT-05. Server time zone is GMT-06. Why?
> > >
> > > PROBLEM
> > > The user is scheduling lessons on one day in the future, only to
> > > return later to see the date slipped back one day automatically.
> > > Trying to diagnose the problem. Thought it might have something to do
> > > with how Flex handles the date in the dataGrid?
> > >
> > > Any ideas as to why dates would change by one day without user
> > > intervention?
> > >
> > > Thanks,
> > > Don Kerr
> > >
> >
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

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


Re: [flexcoders] Re: Sandbox violation running from Builder. How did I get this and how do I fix it?

2008-06-05 Thread Josh McDonald
It was *something* funky caused by svn checkout.

First I check out via builder to my workspace (file location as well as
"create project") and I got the problem.

I checked out to a directory completely separate from my workspace via
another SVN client, and then copied the tree to the builder workspace
directory and created a new project in Builder, still didn't work.

Finally I created yet another project, quit flex, copied the /src directory
from my checkout, deleted all dotfiles (svn and whatever else) with a find |
grep | xargs rm and re-started flex, and now it works (but it's not checked
out, just effectively exported).

The workspace isn't listed in Flash Player's "trusted locations" through the
advanced settings UI, so it'd be really nice to know how the player
determines what is and isn't a builder swf, so I can take whatever's causing
the damned problem out of SVN (or put it back in if it's missing something)
- and also let other devs on the list and in my office know what to look out
for :)

-Josh

On Fri, Jun 6, 2008 at 12:51 PM, Bjorn Schultheiss <
[EMAIL PROTECTED]> wrote:

>   Are you sure its not a security settings related issue..
>
> www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html
>
> --- In flexcoders@yahoogroups.com , "Rick
> Winscot" <[EMAIL PROTECTED]>
> wrote:
>
> >
> > Also. where is the project 'physically' located? I would strongly
> recommend
> > making sure that the project is inside your workspace. Are there any
> > compiler options like -use-network=false present?
> >
> >
> >
> > Rick Winscot
> >
> >
> >
> >
> >
> > From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On
> > Behalf Of Tracy Spratt
> > Sent: Thursday, June 05, 2008 9:03 PM
> > To: flexcoders@yahoogroups.com 
> > Subject: RE: [flexcoders] Sandbox violation running from Builder.
> How did I
> > get this and how do I fix it?
> >
> >
> >
> > Very strange. There was a similar thread a couple days ago and we
> did not
> > find a solution, as far as I know.
> >
> >
> >
> > Did you create the new project by don't New Project and then copying
> in the
> > files, or did you import the other project? (the first, I know, but
> maybe
> > try the second?)
> >
> >
> >
> > Maybe try removing the application from the project's application
> list and
> > then re-adding it?
> >
> >
> >
> > Tracy
> >
> >
> >
> > _
> >
> > From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On
> > Behalf Of Josh McDonald
> > Sent: Thursday, June 05, 2008 8:42 PM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] Sandbox violation running from Builder. How
> did I get
> > this and how do I fix it?
> >
> >
> >
> > I've checked out a project into the same directory as all my other
> projects,
> > and now I'm getting a security sandbox violation trying to load a
> local file
> > even when running from Flex. What could cause this? And how do I get
> it back
> > to behaving the way it should for all builder projects?
> >
> > -J
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> >
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

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


Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Joseph Balderson
 Joseph Balderson | http://joeflash.ca | 705-466-6345
> 
> b_alen wrote:
>  > Interesting. Me and my colleagues are also
> thinking of switching to
>  > Mac due to Vista crappiness. In fact we're 80%
> sure that next laptops
>  > will be Macs. My only concern is how to do .Net
> development and
>  > integration with Flex then. Anyone has a solution
> to that?
>  >
>  >
>  >
>  >
>  >
>  > --- In flexcoders@yahoogroups.com
> <mailto:flexcoders%40yahoogroups.com>,
> "scottyale2008" <[EMAIL PROTECTED]>
>  > wrote:
>  >> How many Flex developers here are using a Mac
> for development? I've
>  >> been a die hard Microsoft guy since ... well,
> since Microsoft first
>  >> started. I went from CPM on a Morrow Meadows to
> Microsoft DOS (on
>  >> computers with a Turbo button!), then Windows,
> now Vista. I do have an
>  >> iPhone and it is an incredible device and the
> GUI is extremely well
>  >> done. I've never used a Mac, but many of my
> friends have taken the
>  >> plunge. Is it time to make the switch? I'm
> thinking about a Mac Book
>  >> Pro. Is a Mac Book even worth considering for a
> Flex dev machine or is
>  >> a Mac Book Pro the way to go? Anybody else make
> the switch recently
>  >> from Windows to Mac?
>  >>
>  >
>  >
>  >
>  > 
>  >
>  > --
>  > Flexcoders Mailing List
>  > FAQ:
> 
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>  > Search Archives:
> 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> Groups Links
>  >
>  >
>  >
>  >
> 
> 
> 
> __ Information from ESET NOD32 Antivirus,
> version of virus signature database 3162 (20080605)
> __
> 
> The message was checked by ESET NOD32 Antivirus.
> 
> http://www.eset.com
> 
> 
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It
> tolls for thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> 
> -- 
> -- 
> Regards,
> Rob Rusher
> 
> Adobe Certified AIR, Connect, ColdFusion MX and Flex Instructor
> m: 303-885-7044
> im: robrusher
> 
> 
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> 
> 
> 


Re: [flexcoders] Re: BitmapData source for mx:Image

2008-06-05 Thread Josh McDonald
Is the bitmap data something that changes as time goes on, or is it set for
each row? I assume there are rows as you're using data.foo, let me know if
I'm wrong. Is this a renderer in a DataGrid, or a List, or? Sounds like
you'll probably have to quit relying on binding and set the fields required
from an event handler, but without more context there's not much more help I
can give.

-Josh

On Fri, Jun 6, 2008 at 12:00 PM, limhy0306 <[EMAIL PROTECTED]> wrote:

>   Hi,
>
> I've tried your suggestion; but unfortunately it still didn't work.
> I've got a warning saying:
> Unable to bind to property width...; class is not an
> IEventDispatcher...
>
> Thanks.
>
> Regards,
> hy
>
>
> --- In flexcoders@yahoogroups.com , "Josh
> McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > Try this:
> >
> >  > scaleContent="true"
> > maintainAspectRatio="true"
> > maxWidth="176"
> > maxHeight="144">
> > 
> >  > height="{data.thumbBmpData.height}"
> > bitmapData="{data.thumbBmpData}"/>
> >
> > 
> > 
> > Might fix it. But like I said, I'm just guessing :) Also try it
> without the
> > width and height on the display:bitmap altogether.
> >
> > -Josh
> >
> > On Tue, Jun 3, 2008 at 5:03 PM, limhy0306 <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > >
> > > I would say the 2nd option -> The Bitmap is "growing out" of the
> > > Image component.
> > >
> > >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>, "Josh
> > > McDonald"  wrote:
> > > >
> > > > Are you getting a layout change, or does the bitmap sort of
> > > just "grow out"
> > > > of where the image component was like it's colouring outside the
> > > lines?
> > > >
> > > > On Mon, Jun 2, 2008 at 1:28 PM, Josh McDonald  wrote:
> > > >
> > > > > This is a guess, but:
> > > > >
> > > > > When the binding updates the bitmapData on your mx:bitmap,
> it's
> > > not
> > > > > updating the width and height of that mx:bitmap component. The
> > > Image see the
> > > > > mx:bitmap is the same size, so paints it directly in rather
> than
> > > scaling it
> > > > > to fit.
> > > > >
> > > > > -J
> > > > >
> > > > >
> > > > > On Mon, Jun 2, 2008 at 1:17 PM, limhy0306  wrote:
> > > > >
> > > > >> Hi,
> > > > >>
> > > > >> I've tried it; but it still doesn't work!
> > > > >>
> > > > >> Thank you.
> > > > >>
> > > > >> Regards,
> > > > >> hy
> > > > >>
> > > > >>
> > > > >> --- In flexcoders@yahoogroups.com 
> > > > >>  40yahoogroups.com> > > 40yahoogroups.com>, "Alex
> > > > >> Harui"  wrote:
> > > > >> >
> > > > >> > Try setting columnWidth rowHeight to 176 and 144
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > 
> > > > >> >
> > > > >> > From: flexcoders@yahoogroups.com 
> > > > >> >  40yahoogroups.com> > > 40yahoogroups.com>
> > > > >> [mailto:flexcoders@yahoogroups.com 
> > > > >>  40yahoogroups.com> > > 40yahoogroups.com>] On
> > > > >> > Behalf Of limhy0306
> > > > >> > Sent: Thursday, May 29, 2008 1:41 AM
> > > > >> > To: flexcoders@yahoogroups.com 
> > > > >> >  40yahoogroups.com>
> > > 40yahoogroups.com>
> > >
> > > > >> > Subject: [flexcoders] BitmapData source for mx:Image
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > Hi,
> > > > >> >
> > > > >> > I've encountered the following problem when using
> BitmapData as
> > > > >> > source for mx:Image:
> > > > >> >
> > > > >> >  > > > >> > scaleContent="true"
> > > > >> > maintainAspectRatio="true"
> > > > >> > maxWidth="176"
> > > > >> > maxHeight="144">
> > > > >> > 
> > > > >> >  > > > >> > bitmapData="{data.thumbBmpData}"/>
> > > > >> > 
> > > > >> > 
> > > > >> >
> > > > >> > This Image component is a Renderer for a TileList which is
> > > used to
> > > > >> > show a list of images. The DataProvider to the TileList is
> a
> > > class
> > > > >> > ThumbnailData -> which stores thumbBmpData: BitmapData.
> > > > >> >
> > > > >> > I have no problem displaying the images when the
> BitmapData is
> > > > >> > 176x144.
> > > > >> >
> > > > >> > However, when any one of the image changes its BitmapData
> to a
> > > > >> bigger
> > > > >> > size (e.g. 352x288)
> > > > >> > -> that image suddenly expands to 352x288; instead of
> getting
> > > > >> scaled
> > > > >> > to fit into 176x144.
> > > > >> >
> > > > >> > Anyone encountered this problem before?
> > > > >> >
> > > > >> > Thank you very much.
> > > > >> >
> > > > >> > Regards,
> > > > >> > HY
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > "Therefore, send not to know For whom the bell tolls. It tolls
> > > for thee."
> > > > >
> > > > > :: Josh 'G-Funk' McDonald
> > > > > :: 0437 221 380 :: josh@
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > "Therefore, send not to know For whom the bell tolls. It tolls
> for
> > > thee."
> > > >
> > > > :: Josh 'G-Funk' McDonald
> > > > :: 0437 221 380 :: josh@
> > > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [

[flexcoders] +Re: Possible to add some data to load to the default preloader?

2008-06-05 Thread Alen Balja
 

Can't
do that, data is coming from aspx. In fact the only way this could work is
to add info* to swf which data has to be loaded with the swf itself. Then
the Flash Player would read that, calculate the size of data and add it to
the preloader of the main swf. Once the whole bunsh is downloaded, data
would be there in the native format on the "root" of the app. Am I dreaming?


* How to add this info is the question. It can't be through AS that's for
sure, because AS is not running until the app is loaded. Write in the header
of the swf? Write in the HTML embed directives?


-
Put the data in an RSL?



From: flexcoders@yahoogroups.com  [mailto:
flexcoders@yahoogroups.com ] On
Behalf Of b_alen
Sent: Thursday, June 05, 2008 3:23 AM
To: flexcoders@yahoogroups.com 
Subject: [flexcoders] Possible to add some data to load to the default
preloader?

I always have some stuff to load before the app can be used. Is it
possible to stick that loading into the default preloader? So the swf
would know that it has to load other files also before it dispatches
the event that it's fully loaded. Maybe some compiler directives, I
don't know.

Thanks


[flexcoders] Re: hiding a cell within a datagrid dynamically

2008-06-05 Thread anthony_morsey
Here is my code:


  





  
 wrote:
>
> Anthony,
> 
> If you are passing the data from the columns of each row to the 
> itemRenderer, you should be able to set visibility conditions from the 
> itemRenderer.
> 
> If you post your code, I or someone else here might be able to provide 
> a more specific suggestion.
> 
> JF
> --- In flexcoders@yahoogroups.com, "anthony_morsey"  wrote:
> >
> > I have a datagrid with multiple columns and rows.  One of the columns
> > contains a checkbox which is rendered with an itemRenderer.  I'd like
> > to conditionally hide some of these checkboxes based on values from
> > other columns with the same row.
> > 
> > Any ideas?
> > 
> > Thanks
> >
>




[flexcoders] Re: data visualization...creative idea?

2008-06-05 Thread Don Kerr
Thanks Gregor and Christophe! These are very nice options. I'll look
into them further.

Don


--- In flexcoders@yahoogroups.com, "Don Kerr" <[EMAIL PROTECTED]> wrote:
>
> Any creative ideas on this?
> 
> I have an change impact triad: Cost, Schedule, Technical
> 
> Cost is (<1M,1M-25M, >25M)
> Schedule is (<1mo,1mo-1yr,>1yr)
> Technical is (Minor,Moderate,Significant)
> 
> When a change request (changeID) is proposed it is evaluated on these
> three scales for the purpose of comparison (prioritization,design
> trade decisions, etc.).
> 
> I'm trying to imagine ways to visualize this data to compare changes.
> Goal would be to see all changes that have the highest impact relative
> to these three dimensions. 
> 
> As I ponder it, I thought I'd bounce it off you. Maybe you can help me
> think of creative ways do visualize it in Flex to help management
> evaluate proposed changes.:)
> 
> Thanks,
> Don
>




[flexcoders] Re: Sandbox violation running from Builder. How did I get this and how do I fix it?

2008-06-05 Thread Bjorn Schultheiss
Are you sure its not a security settings related issue..
www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html



--- In flexcoders@yahoogroups.com, "Rick Winscot" <[EMAIL PROTECTED]>
wrote:
>
> Also. where is the project 'physically' located? I would strongly
recommend
> making sure that the project is inside your workspace. Are there any
> compiler options like -use-network=false present?
> 
>  
> 
> Rick Winscot
> 
>  
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Tracy Spratt
> Sent: Thursday, June 05, 2008 9:03 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Sandbox violation running from Builder.
How did I
> get this and how do I fix it?
> 
>  
> 
> Very strange.  There was a similar thread a couple days ago and we
did not
> find a solution, as far as I know.
> 
>  
> 
> Did you create the new project by don't New Project and then copying
in the
> files, or did you import the other project? (the first, I know, but
maybe
> try the second?)
> 
>  
> 
> Maybe try removing the application from the project's application
list and
> then re-adding it?
> 
>  
> 
> Tracy
> 
>  
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Josh McDonald
> Sent: Thursday, June 05, 2008 8:42 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Sandbox violation running from Builder. How
did I get
> this and how do I fix it?
> 
>  
> 
> I've checked out a project into the same directory as all my other
projects,
> and now I'm getting a security sandbox violation trying to load a
local file
> even when running from Flex. What could cause this? And how do I get
it back
> to behaving the way it should for all builder projects?
> 
> -J
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




[flexcoders] Re: date in dataGrid wrong GMT? Dates sometimes one day off?

2008-06-05 Thread Don Kerr
Let me pose the question differently...I simply want to insert the
selectedDate from a DateField into the database and display the
correct date in a dataGrid column.

Currently I insert myDateField.selectedDate into the database. It
enters into the database in mm/dd/ format. It enters the correct
date into the database.

I want the dataGrid to display the mm/dd/ that is in the database
exactly. Not mess with it based on which client is viewing it. How?



--- In flexcoders@yahoogroups.com, "flash.media" <[EMAIL PROTECTED]> wrote:
>
> Don, Have you accounted for the difference in day formats between AS
and CF?
> AS 0-6 CF 1-7? Just a thought.
> Cheers,
> Craig
> 
> --- In flexcoders@yahoogroups.com, "Don Kerr"  wrote:
> >
> > User selects date from date field. Saves. Date reflected in dataGrid
> > displays GMT-05.  Server time zone is GMT-06. Why?
> > 
> > PROBLEM
> > The user is scheduling lessons on one day in the future, only to
> > return later to see the date slipped back one day automatically.
> > Trying to diagnose the problem. Thought it might have something to do
> > with how Flex handles the date in the dataGrid?
> > 
> > Any ideas as to why dates would change by one day without user
> > intervention?
> > 
> > Thanks,
> > Don Kerr
> >
>




RE: [flexcoders] Flex and WSDL

2008-06-05 Thread Rick Winscot
First of all. you'll want to check to see if any of the headers you are
trying to use are on the official 'blocked' list. Next, you'll need to
implement your solution so that headers don't get dropped. Eh. well. what
are you trying to do? That's probably the best question.

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of radwhite81
Sent: Thursday, June 05, 2008 2:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex and WSDL

 

i'm working on trying to get soap headers declared in the wsdl, then
i'll I want to see if flex can automatically generate the code to set
them in the service requests. does anyone have any suggestions, links
blogs or any other info. thanks for your time and consideration.

 



RE: [flexcoders] Sandbox violation running from Builder. How did I get this and how do I fix it?

2008-06-05 Thread Rick Winscot
Also. where is the project 'physically' located? I would strongly recommend
making sure that the project is inside your workspace. Are there any
compiler options like -use-network=false present?

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Thursday, June 05, 2008 9:03 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Sandbox violation running from Builder. How did I
get this and how do I fix it?

 

Very strange.  There was a similar thread a couple days ago and we did not
find a solution, as far as I know.

 

Did you create the new project by don't New Project and then copying in the
files, or did you import the other project? (the first, I know, but maybe
try the second?)

 

Maybe try removing the application from the project's application list and
then re-adding it?

 

Tracy

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Thursday, June 05, 2008 8:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Sandbox violation running from Builder. How did I get
this and how do I fix it?

 

I've checked out a project into the same directory as all my other projects,
and now I'm getting a security sandbox violation trying to load a local file
even when running from Flex. What could cause this? And how do I get it back
to behaving the way it should for all builder projects?

-J

-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

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

 



[flexcoders] Re: Unable to Display Hindi

2008-06-05 Thread benjidudu
I never had success in editing properties files in Flex Builder. It
always screw up the Chinese characters. So now I always edit them in
Notepad, saving as UTF8, and it works.
What you can try is, copy and paste your text in Notepad. Delete your
"appStrings.properties" file. In Notepad, save your file as
"appStrings.properties" using UTF8 encoding. See if that works.


Benjamin Durin.


--- In flexcoders@yahoogroups.com, "tanarijay" <[EMAIL PROTECTED]> wrote:
>
> I am creating an application that displays in a few character sets:
> English, French, & Hindi.
> 
> I am using resource bundles (name/value pairs in UTF-8 encoded text
> files named "appStrings.properties") and Flex 3 to create my
> application.  I am using the resource manager to retrieve the strings:
> 
> e.g.
> 
>  
> 
> 
> Additionally, I use the following code to set the locale of choice in
> my app:
> 
> 
>  
> 
> 
> 
>  
>  initialize="localeComboBox_initializeHandler(event)"   
> change="localeComboBox_changeHandler(event)"/>
> 
> 
> The problem is that English & French characters display correctly, but
> Hindi characters do not. They show up as a a series of squares.
> 
> Has anyone encountered this before?  Does anyone have an idea what the
> problem is?
>




[flexcoders] Re: BitmapData source for mx:Image

2008-06-05 Thread limhy0306
Hi, 

I've tried your suggestion; but unfortunately it still didn't work.
I've got a warning saying:
Unable to bind to property width...; class is not an 
IEventDispatcher...

Thanks.

Regards,
hy


--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Try this:
> 
>  scaleContent="true"
> maintainAspectRatio="true"
> maxWidth="176"
> maxHeight="144">
> 
>  height="{data.thumbBmpData.height}"
> bitmapData="{data.thumbBmpData}"/>
> 
> 
> 
> Might fix it. But like I said, I'm just guessing :) Also try it 
without the
> width and height on the display:bitmap altogether.
> 
> -Josh
> 
> On Tue, Jun 3, 2008 at 5:03 PM, limhy0306 <[EMAIL PROTECTED]> wrote:
> 
> >   Hi,
> >
> > I would say the 2nd option -> The Bitmap is "growing out" of the
> > Image component.
> >
> >
> > --- In flexcoders@yahoogroups.com , "Josh
> > McDonald"  wrote:
> > >
> > > Are you getting a layout change, or does the bitmap sort of
> > just "grow out"
> > > of where the image component was like it's colouring outside the
> > lines?
> > >
> > > On Mon, Jun 2, 2008 at 1:28 PM, Josh McDonald  wrote:
> > >
> > > > This is a guess, but:
> > > >
> > > > When the binding updates the bitmapData on your mx:bitmap, 
it's
> > not
> > > > updating the width and height of that mx:bitmap component. The
> > Image see the
> > > > mx:bitmap is the same size, so paints it directly in rather 
than
> > scaling it
> > > > to fit.
> > > >
> > > > -J
> > > >
> > > >
> > > > On Mon, Jun 2, 2008 at 1:17 PM, limhy0306  wrote:
> > > >
> > > >> Hi,
> > > >>
> > > >> I've tried it; but it still doesn't work!
> > > >>
> > > >> Thank you.
> > > >>
> > > >> Regards,
> > > >> hy
> > > >>
> > > >>
> > > >> --- In flexcoders@yahoogroups.com  > 40yahoogroups.com>, "Alex
> > > >> Harui"  wrote:
> > > >> >
> > > >> > Try setting columnWidth rowHeight to 176 and 144
> > > >> >
> > > >> >
> > > >> >
> > > >> > 
> > > >> >
> > > >> > From: flexcoders@yahoogroups.com  > 40yahoogroups.com>
> > > >> [mailto:flexcoders@yahoogroups.com  > 40yahoogroups.com>] On
> > > >> > Behalf Of limhy0306
> > > >> > Sent: Thursday, May 29, 2008 1:41 AM
> > > >> > To: flexcoders@yahoogroups.com  > 40yahoogroups.com>
> >
> > > >> > Subject: [flexcoders] BitmapData source for mx:Image
> > > >> >
> > > >> >
> > > >> >
> > > >> > Hi,
> > > >> >
> > > >> > I've encountered the following problem when using 
BitmapData as
> > > >> > source for mx:Image:
> > > >> >
> > > >> >  > > >> > scaleContent="true"
> > > >> > maintainAspectRatio="true"
> > > >> > maxWidth="176"
> > > >> > maxHeight="144">
> > > >> > 
> > > >> >  > > >> > bitmapData="{data.thumbBmpData}"/>
> > > >> > 
> > > >> > 
> > > >> >
> > > >> > This Image component is a Renderer for a TileList which is
> > used to
> > > >> > show a list of images. The DataProvider to the TileList is 
a
> > class
> > > >> > ThumbnailData -> which stores thumbBmpData: BitmapData.
> > > >> >
> > > >> > I have no problem displaying the images when the 
BitmapData is
> > > >> > 176x144.
> > > >> >
> > > >> > However, when any one of the image changes its BitmapData 
to a
> > > >> bigger
> > > >> > size (e.g. 352x288)
> > > >> > -> that image suddenly expands to 352x288; instead of 
getting
> > > >> scaled
> > > >> > to fit into 176x144.
> > > >> >
> > > >> > Anyone encountered this problem before?
> > > >> >
> > > >> > Thank you very much.
> > > >> >
> > > >> > Regards,
> > > >> > HY
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >
> > > >
> > > >
> > > > --
> > > > "Therefore, send not to know For whom the bell tolls. It tolls
> > for thee."
> > > >
> > > > :: Josh 'G-Funk' McDonald
> > > > :: 0437 221 380 :: josh@
> > >
> > >
> > >
> > >
> > > --
> > > "Therefore, send not to know For whom the bell tolls. It tolls 
for
> > thee."
> > >
> > > :: Josh 'G-Funk' McDonald
> > > :: 0437 221 380 :: josh@
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for 
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




Re: [flexcoders] Measurement and scrolling

2008-06-05 Thread Richard Rodseth
No, I mean like zooming a window. I think the problem lies in how I
tell the TiledCanvas that one of its children is the zoomed one
(setting "visible" of all the others to false in updateDisplayList).
Stay tuned.

However,  setting that aside, it also seems as though I might be
commiting a hack if I allow the measured size of the TiledCanvas to
remain larger than its bounds, even though it allows the scrolling to
work (at least in the all-tiles-shown case).

On Thu, Jun 5, 2008 at 5:46 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> I'm not sure exactly what you're doing, or what you're trying to achieve
> yet. By "expanding a tile" do you mean you're setting the minimum to be
> bigger, or you're manually overriding the decisions the base Container
> implementation makes in updateDisplayList()?
>
> On Fri, Jun 6, 2008 at 10:41 AM, Richard Rodseth <[EMAIL PROTECTED]> wrote:
>>
>> The docs say:
>>
>> If the horizontalScrollPolicy is ScrollPolicy.AUTO, the horizontal
>> scroll bar appears when all of the following are true:
>>
>> * One of the container's children extends beyond the left edge or
>> right edge of the container.
>> * The clipContent property is true.
>> * The width and height of the container are large enough to
>> reasonably accommodate a scroll bar.
>>
>> And sure enough, if I set a static minimum on tiledView, I get the
>> desired effect.
>>
>> If I expand a tile and change the minimum to something else, any idea
>> which invalidate method(s) I should call?
>>
>> On Thu, Jun 5, 2008 at 4:57 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
>> > If you want to be able to measure your subcomponents, always use
>> > setActualSize. I learned that the hard way recently :)
>> >
>> > I've recently been doing a whole bunch of measure and updatedisplaylist
>> > voodoo for a custom container, so I'll be slightly helpful!
>> >
>> > -Josh
>> >
>> > On Fri, Jun 6, 2008 at 9:36 AM, Richard Rodseth <[EMAIL PROTECTED]>
>> > wrote:
>> >>
>> >> Clearly I haven't mastered layout and measurement.
>> >>
>> >> I've implemented a custom component which tiles its children in
>> >> equal-sized tiles, but also has a state (not a flex state) where one
>> >> tile fills the component.
>> >>
>> >> I subclassed Canvas and set the sizes and positions of children in
>> >> updateDisplayList. I didn't override measure(), but it works very
>> >> nicely, resizing children smoothly as it is resized.
>> >>
>> >> Now, however, I would like to set a minimum width and height for the
>> >> tiled view, after which scroll bars appear. The minimum will be
>> >> different if the component is in the one-tile-expanded case.
>> >>
>> >> Can I do this without further mods to my component?
>> >> Should my updateDisplayList be calling setActualSize rather than
>> >> setting x,y,width, height?
>> >> Should I have a measure() implementation?
>> >> How would it differ from the inherited one?
>> >> In a scenario like the following, would I set the minWidth and
>> >> minHeight on the parent or child?
>> >> Or, to ask another way, do the the scrollpolicy and minimum properties
>> >> always belong on the same component?
>> >>
>> >> > >> verticalScrollPolicy="auto"
>> >> horizontalScrollPolicy="auto">
>> >>
>> >> > >> width="100%" height="100%"
>> >> >
>> >> 
>> >> 
>> >>
>> >> Thanks.
>> >
>> >
>> >
>> > --
>> > "Therefore, send not to know For whom the bell tolls. It tolls for
>> > thee."
>> >
>> > :: Josh 'G-Funk' McDonald
>> > :: 0437 221 380 :: [EMAIL PROTECTED]
>> >
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> 


Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread dnk
We just bought 7 of these last year at our company, and we only have 2  
left in service as all the others died... Ever since Lenovo took over  
the Thinkpad brand.. well they appear to have been going downhill.


But I mean this could have been a one off, a bad batch and so on.  
my experience was just not so good.


d



On 5-Jun-08, at 5:53 PM, Anatole Tartakovsky wrote:

mind to MBP is Thinkpad T61 - good LCDs and hard drives, power  
supply that does work on airplane, cheap memory and comparable  
performance - but the quality has been declining steadily for years,  
so it becomes chancy




[flexcoders] Re: Please help graphics.beginFill and css issue

2008-06-05 Thread Body Works Studio
Gordon, 

thanks for writing back. I have been digging through this code, and it
looks lie my original theory is wrong. the css is being defined. The
issue I have is this is a custom TabBar and the first tab is suppose
to have a different style than the others and that style definition is
breaking somewhere.

Again thanks for responding.

Jeff

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> > Flex 3 however it does not.
> 
>  
> 
> How does it fail? When you put
> 
>  
> 
> backgroundColor: #FF
> 
>  
> 
> in CSS and execute
> 
>  
> 
> var backgroundColor:Number = getStyle("backgroundColor")
> 
>  
> 
> what value does this var get set to? It should be 16777215.
> 
>  
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Body Works Studio
> Sent: Thursday, June 05, 2008 3:47 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Please help graphics.beginFill and css issue
> 
>  
> 
> Hi all,
> 
> came across an issue with our custom tab skin. while drawing the
> shapes we pull the colors from our css. the colors are stored like
> 
> backgroundColor: #FF
> 
> we then call the style via 
> 
> var backgroundColor:Number = getStyle( "backgroundColor" );
> 
> then we fill our shape 
> graphics.beginFill( backgroundColor, backgroundAlpha );
> 
> now in flex 2 this worked fine. In Flex 3 however it does not. I did
> some testing and if I hardcode backgroundColor:
> 
> var backgroundColor:Number = #FF;
> 
> the fill still doesnt work. Now if I change the var to a uint and
> modify the value to comply
> 
> var backgroundColor:Number = 0xFF;
> 
> the skin renders. Now here is my issue. css does not recognize
> 0xFF. Any ideas what I am doing wrong, or what I can do to get
> this to work with Flex 3?
> 
> thanks your your time
> 
> Jeff
>




Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Anatole Tartakovsky
I would stay away from Vaio for developers machine - a lot of components
with proprietary Sony drivers, XP models are not compatible with Vista ones,
no driver upgrades - they are OK for occasional/office user, but hard to
work with if you need to re-image or add/replace hardware. The only one
laptop comparable in my mind to MBP is Thinkpad T61 - good LCDs and hard
drives, power supply that does work on airplane, cheap memory and comparable
performance - but the quality has been declining steadily for years, so it
becomes chancy. However, the parts and design are still OK for machine with
lifespan of 2 years. We still buy them for our staff that goes to Windows
only shops - the difference in the price for identical hardware spec is
about 30%.
HTH,
Anatole

On Thu, Jun 5, 2008 at 6:50 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:

>   They're not really pricey if you care about build and component quality
> and style though - Sure I could buy a cheap fugly dell for 2/3 the price,
> but if I were stuck in Windows I wouldn't be caught dead using "consumer"
> laptops. Lousy components, ugly and too much cheap plastic. I'd have to go
> for a Vaio, which is priced like a Mackbook Pro anyway.
>
>
> On Fri, Jun 6, 2008 at 8:32 AM, Rob Rusher <[EMAIL PROTECTED]> wrote:
>
>>   For years I said that I couldn't/wouldn't switch to a Mac because I
>> always need to do Windows specific tasks. But, with the Intel-based MacBook
>> Pro and Parallels, I have install Windows XP SP3 on a separate partition and
>> can run the two OS in tandem.
>>
>> So I've been on a Mac for a little over a year now. I love the form factor
>> of the machine; light and small. It is very powerful. I can test alpha/beta
>> software on Windows and Mac. I can do .NET development on Windows. I do
>> Flex/AIR development on both platforms.
>>
>> I'd say that I'm fat and happy, but I only weigh a buck forty. But I'm am
>> happy!
>>
>> The down side, Macs are a little pricey.
>>
>> Regards,
>> Rob
>>
>> On Thu, Jun 5, 2008 at 4:20 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
>>
>>>   Anecdote of the minute: I'm fine on my bigass iMac, but there's 2 or 3
>>> vista laptops in the office, and soapUI seems to have some Vista
>>> incompatibilities. Could be the fact we're using 2.0.3 which AFAIK is still
>>> unreleased, but it could be Vista too :)
>>>
>>> On Fri, Jun 6, 2008 at 4:54 AM, Nancy Gill <[EMAIL PROTECTED]> wrote:
>>>
>>>>Microsoft is already on record as pushing Windows 7 out the door as
>>>> soon as possible (probably late 2009) due to the Vista debacle .. remember
>>>> Windows ME?   :)
>>>>
>>>> Nancy
>>>>
>>>>
>>>> - Original Message -
>>>>  *From:* Joseph Balderson <[EMAIL PROTECTED]>
>>>> *To:* flexcoders@yahoogroups.com
>>>> *Sent:* Thursday, June 05, 2008 11:20 AM
>>>> *Subject:* Re: [flexcoders] Re: Thinking about going to the dark
>>>> sideApple Mac Book
>>>>
>>>>  I'm not trying to be glib, but don't use Vista. Use XP SP3.
>>>>
>>>> 
>>>>
>>>> Joseph Balderson | http://joeflash.ca | 705-466-6345
>>>>
>>>> b_alen wrote:
>>>> > Interesting. Me and my colleagues are also thinking of switching to
>>>> > Mac due to Vista crappiness. In fact we're 80% sure that next laptops
>>>> > will be Macs. My only concern is how to do .Net development and
>>>> > integration with Flex then. Anyone has a solution to that?
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > --- In flexcoders@yahoogroups.com ,
>>>> "scottyale2008" <[EMAIL PROTECTED]>
>>>> > wrote:
>>>> >> How many Flex developers here are using a Mac for development? I've
>>>> >> been a die hard Microsoft guy since ... well, since Microsoft first
>>>> >> started. I went from CPM on a Morrow Meadows to Microsoft DOS (on
>>>> >> computers with a Turbo button!), then Windows, now Vista. I do have
>>>> an
>>>> >> iPhone and it is an incredible device and the GUI is extremely well
>>>> >> done. I've never used a Mac, but many of my friends have taken the
>>>> >> plunge. Is it time to make the switch? I'm thinking about a Mac Book

RE: [flexcoders] Sandbox violation running from Builder. How did I get this and how do I fix it?

2008-06-05 Thread Tracy Spratt
Very strange.  There was a similar thread a couple days ago and we did
not find a solution, as far as I know.

 

Did you create the new project by don't New Project and then copying in
the files, or did you import the other project? (the first, I know, but
maybe try the second?)

 

Maybe try removing the application from the project's application list
and then re-adding it?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Thursday, June 05, 2008 8:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Sandbox violation running from Builder. How did I
get this and how do I fix it?

 

I've checked out a project into the same directory as all my other
projects, and now I'm getting a security sandbox violation trying to
load a local file even when running from Flex. What could cause this?
And how do I get it back to behaving the way it should for all builder
projects?

-J

-- 
"Therefore, send not to know For whom the bell tolls. It tolls for
thee."

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

 



Re: [flexcoders] Measurement and scrolling

2008-06-05 Thread Josh McDonald
I'm not sure exactly what you're doing, or what you're trying to achieve
yet. By "expanding a tile" do you mean you're setting the minimum to be
bigger, or you're manually overriding the decisions the base Container
implementation makes in updateDisplayList()?

On Fri, Jun 6, 2008 at 10:41 AM, Richard Rodseth <[EMAIL PROTECTED]> wrote:

>   The docs say:
>
> If the horizontalScrollPolicy is ScrollPolicy.AUTO, the horizontal
> scroll bar appears when all of the following are true:
>
> * One of the container's children extends beyond the left edge or
> right edge of the container.
> * The clipContent property is true.
> * The width and height of the container are large enough to
> reasonably accommodate a scroll bar.
>
> And sure enough, if I set a static minimum on tiledView, I get the
> desired effect.
>
> If I expand a tile and change the minimum to something else, any idea
> which invalidate method(s) I should call?
>
>
> On Thu, Jun 5, 2008 at 4:57 PM, Josh McDonald <[EMAIL 
> PROTECTED]>
> wrote:
> > If you want to be able to measure your subcomponents, always use
> > setActualSize. I learned that the hard way recently :)
> >
> > I've recently been doing a whole bunch of measure and updatedisplaylist
> > voodoo for a custom container, so I'll be slightly helpful!
> >
> > -Josh
> >
> > On Fri, Jun 6, 2008 at 9:36 AM, Richard Rodseth <[EMAIL 
> > PROTECTED]>
> wrote:
> >>
> >> Clearly I haven't mastered layout and measurement.
> >>
> >> I've implemented a custom component which tiles its children in
> >> equal-sized tiles, but also has a state (not a flex state) where one
> >> tile fills the component.
> >>
> >> I subclassed Canvas and set the sizes and positions of children in
> >> updateDisplayList. I didn't override measure(), but it works very
> >> nicely, resizing children smoothly as it is resized.
> >>
> >> Now, however, I would like to set a minimum width and height for the
> >> tiled view, after which scroll bars appear. The minimum will be
> >> different if the component is in the one-tile-expanded case.
> >>
> >> Can I do this without further mods to my component?
> >> Should my updateDisplayList be calling setActualSize rather than
> >> setting x,y,width, height?
> >> Should I have a measure() implementation?
> >> How would it differ from the inherited one?
> >> In a scenario like the following, would I set the minWidth and
> >> minHeight on the parent or child?
> >> Or, to ask another way, do the the scrollpolicy and minimum properties
> >> always belong on the same component?
> >>
> >>  >> verticalScrollPolicy="auto"
> >> horizontalScrollPolicy="auto">
> >>
> >>  >> width="100%" height="100%"
> >> >
> >> 
> >> 
> >>
> >> Thanks.
> >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED] 
> >
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

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


[flexcoders] Sandbox violation running from Builder. How did I get this and how do I fix it?

2008-06-05 Thread Josh McDonald
I've checked out a project into the same directory as all my other projects,
and now I'm getting a security sandbox violation trying to load a local file
even when running from Flex. What could cause this? And how do I get it back
to behaving the way it should for all builder projects?

-J

-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

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


Re: [flexcoders] Measurement and scrolling

2008-06-05 Thread Richard Rodseth
The docs say:

If the horizontalScrollPolicy is ScrollPolicy.AUTO, the horizontal
scroll bar appears when all of the following are true:

* One of the container's children extends beyond the left edge or
right edge of the container.
* The clipContent property is true.
* The width and height of the container are large enough to
reasonably accommodate a scroll bar.

And sure enough, if I set a static minimum on tiledView, I get the
desired effect.

If I expand a tile and change the minimum to something else, any idea
which invalidate method(s) I should call?

On Thu, Jun 5, 2008 at 4:57 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> If you want to be able to measure your subcomponents, always use
> setActualSize. I learned that the hard way recently :)
>
> I've recently been doing a whole bunch of measure and updatedisplaylist
> voodoo for a custom container, so I'll be slightly helpful!
>
> -Josh
>
> On Fri, Jun 6, 2008 at 9:36 AM, Richard Rodseth <[EMAIL PROTECTED]> wrote:
>>
>> Clearly I haven't mastered layout and measurement.
>>
>> I've implemented a custom component which tiles its children in
>> equal-sized tiles, but also has a state (not a flex state) where one
>> tile fills the component.
>>
>> I subclassed Canvas and set the sizes and positions of children in
>> updateDisplayList. I didn't override measure(), but it works very
>> nicely, resizing children smoothly as it is resized.
>>
>> Now, however, I would like to set a minimum width and height for the
>> tiled view, after which scroll bars appear. The minimum will be
>> different if the component is in the one-tile-expanded case.
>>
>> Can I do this without further mods to my component?
>> Should my updateDisplayList be calling setActualSize rather than
>> setting x,y,width, height?
>> Should I have a measure() implementation?
>> How would it differ from the inherited one?
>> In a scenario like the following, would I set the minWidth and
>> minHeight on the parent or child?
>> Or, to ask another way, do the the scrollpolicy and minimum properties
>> always belong on the same component?
>>
>> > verticalScrollPolicy="auto"
>> horizontalScrollPolicy="auto">
>>
>> > width="100%" height="100%"
>> >
>> 
>> 
>>
>> Thanks.
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> 


[flexcoders] Re: Flex Builder accessibility problem

2008-06-05 Thread Barry
Thanks Matt, that helps a lot.
I'll check it out.
Much appreciated,
Barry

--- In flexcoders@yahoogroups.com, Matt Morgan-May <[EMAIL PROTECTED]> wrote:
>
> Hi Barry,
> 
> What you¹re describing is something we inherit from the Eclipse
environment
> that Flex Builder is based on, and there was a bug filed on Eclipse that
> matches your problem.
> 
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=194312
> 
> It appears there¹s a (somewhat complicated) fix in there, if you
want to try
> that. Otherwise, the next version of the Eclipse C/C++ Development
Toolkit
> (CDT 5.0) has fixed it, but to go that route, you¹ll have to wait
for that
> release, install Eclipse, and then install FB as an Eclipse plugin.
> 
> Hope this helps,
> m
> 
> Matt May
> Accessibility Engineer, Adobe Systems
> http://adobe.com/accessibility
> 
> 
> On 6/5/08 3:24 AM, "Barry" <[EMAIL PROTECTED]> wrote:
> 
> >  
> >  
> > 
> > Hi, don't know where to ask this question but I thought I'd give it a
> > try here.
> > Due to my bad eyesight I run my computer in High Contrast mode.
> > Flex Builder is great mostly however I can not find where to set the
> > background color for popups - ie Code Assist and the Outliner pop
> > (Ctrl+O).
> > As it stands I can't see any text. Any help muchly appreciated.
> > Barry 
> >
>




Re: [flexcoders] Re: Streaming BlazeDS connection reverting to polling

2008-06-05 Thread Anatole Tartakovsky
Crude pushing with no selectors is relatively simple. You take open source
of BlazeDS, find the piece that manages connection for streaming and migrate
registration/"notifier.wait" part into custom endpoint/custom streaming
servlet. From that point on everything is very much the same as Tomcat uses
blocking IO for writing responses, so no extra coding is required compared
to regular BlazeDS in Tomcat. The custom endpoint is a singleton class that
implements synchronized map in place of named threads in the current blazeds
implementation. Any java class in the same context can call endpoint class
to push messages to the client - it prepares the package and calls the
streaming servlet with the data and connection info. I do not believe that I
can share actual code as it was written for a client and requires changes in
basic BlazeDS code so it is not likely to make into OS version.

That unfortunately seems like temporary solution as J2EE Servlet 3.0
specification (JSR-315
http://jcp.org/aboutJava/communityprocess/edr/jsr315/index.html)  did not
favor Tomcat implementation and went with suspend/resume/compete API similar
to Jetty. The Jetty version was a bit simpler as it allowed in place
patching of BlazeDS and did not require so much code in streaming servlet.
However it was left at prototype stage as client was more familiar with
Tomcat.

With Servlet 3 API, if you follow through BlazeDS code and again replace
Threads registration with singleton with synchronized map for session
management, it comes down to adding suspend, resume and complete calls to
streaming servlet from BaseStreamingHTTPEndpoint. Instead of notify.wait
loop you would need to add another header for "resume" and move the loop
content into separate method called when the servlet resumes. Your Java code
in the same context has access to endpoints static method like
sendMessage(msg, user) and endpoint keeps and delivers our message when
resumed.

HTH,
Anatole

On Thu, Jun 5, 2008 at 6:22 PM, jfujita1 <[EMAIL PROTECTED]> wrote:

>   Converting BlazeDS to an NIO implementation is terribly interesting
> for me. I'm building a GIS tracking app that will need to handle more
> than a couple hundred connections. I knew that blocking IO code was
> BlazeDS' bottleneck but a $20,000 LCDS license isn't in my company's
> budget. I've heard that BlazeDS' messaging can scale via server
> clustering and hardware multiplexing but I'm wondering if you have any
> experience converting BlazeDS to NIO and if so if you were willing to
> share how you did it.
>
> --- In flexcoders@yahoogroups.com , "Anatole
> Tartakovsky"
>
> <[EMAIL PROTECTED]> wrote:
> >
> > It is 10 - please check the source of the BlazeDS source - can be
> increased
> > to few hundreds in your configuration but you might want to consider
> setting
> > process affinity and set up LCDS 2.6 express NIO HTTP adapter to really
> > scale it up. Other option is to modify BlazeDS code to not keep the
> > connection and enable NIO adapter on WebContainer/ move connection
> > management into the custom endpoint - then you can scale blazeDS up
> to few
> > thousand connections.Regards,
> > Anatole Tartakovsky
> >
> > On Thu, Jun 5, 2008 at 5:03 PM, Geoffrey <[EMAIL PROTECTED]> wrote:
> >
> > > I know there is a hardware imposed limitation to the number of
> BlazeDS
> > > real-time streaming connections that you can establish. I've heard
> > > it's in the hundreds, so I'm trying to see how many I can connect to
> > > my server(WinXP Pro 64-bit with two 3GHz Xeon CPUs and 8GB of RAM).
> > >
> > > Oddly enough after the 10th client logs in, all subsequent logins
> > > revert to a polling connection. Is there some limit on the number of
> > > streaming connections you can have before they fall back to polling?
> > > Something else I'm missing?
> > >
> > > BTW, even with polling I can establish 200 connections and the server
> > > barely blinks except for an increase in CPU usage due to all of that
> > > polling.
> > >
> > > Thanks,
> > > Geoff
> > >
> > >
> > >
> >
>
>  
>


Re: [flexcoders] Measurement and scrolling

2008-06-05 Thread Josh McDonald
If you want to be able to measure your subcomponents, always use
setActualSize. I learned that the hard way recently :)

I've recently been doing a whole bunch of measure and updatedisplaylist
voodoo for a custom container, so I'll be slightly helpful!

-Josh

On Fri, Jun 6, 2008 at 9:36 AM, Richard Rodseth <[EMAIL PROTECTED]> wrote:

>   Clearly I haven't mastered layout and measurement.
>
> I've implemented a custom component which tiles its children in
> equal-sized tiles, but also has a state (not a flex state) where one
> tile fills the component.
>
> I subclassed Canvas and set the sizes and positions of children in
> updateDisplayList. I didn't override measure(), but it works very
> nicely, resizing children smoothly as it is resized.
>
> Now, however, I would like to set a minimum width and height for the
> tiled view, after which scroll bars appear. The minimum will be
> different if the component is in the one-tile-expanded case.
>
> Can I do this without further mods to my component?
> Should my updateDisplayList be calling setActualSize rather than
> setting x,y,width, height?
> Should I have a measure() implementation?
> How would it differ from the inherited one?
> In a scenario like the following, would I set the minWidth and
> minHeight on the parent or child?
> Or, to ask another way, do the the scrollpolicy and minimum properties
> always belong on the same component?
>
>  verticalScrollPolicy="auto"
> horizontalScrollPolicy="auto">
>
>  width="100%" height="100%"
> >
> 
> 
>
> Thanks.
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

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


[flexcoders] Measurement and scrolling

2008-06-05 Thread Richard Rodseth
Clearly I haven't mastered layout and measurement.

I've implemented a custom component which tiles its children in
equal-sized tiles, but also has a state (not a flex state) where one
tile fills the component.

I subclassed Canvas and set the sizes and positions of children in
updateDisplayList. I didn't override measure(), but it works very
nicely, resizing children smoothly as it is resized.

Now, however, I would like to set a minimum width and height for the
tiled view, after which scroll bars appear. The minimum will be
different if the component is in the one-tile-expanded case.


Can I do this without further mods to my component?
Should my updateDisplayList be calling setActualSize rather than
setting x,y,width, height?
Should I have a measure() implementation?
How would it differ from the inherited one?
In a scenario like the following, would I set the minWidth and
minHeight on the parent or child?
Or, to ask another way, do the the scrollpolicy and minimum properties
always belong on the same component?







Thanks.


RE: [flexcoders] Please help graphics.beginFill and css issue

2008-06-05 Thread Gordon Smith
> Flex 3 however it does not.

 

How does it fail? When you put

 

backgroundColor: #FF

 

in CSS and execute

 

var backgroundColor:Number = getStyle("backgroundColor")

 

what value does this var get set to? It should be 16777215.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Body Works Studio
Sent: Thursday, June 05, 2008 3:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Please help graphics.beginFill and css issue

 

Hi all,

came across an issue with our custom tab skin. while drawing the
shapes we pull the colors from our css. the colors are stored like

backgroundColor: #FF

we then call the style via 

var backgroundColor:Number = getStyle( "backgroundColor" );

then we fill our shape 
graphics.beginFill( backgroundColor, backgroundAlpha );

now in flex 2 this worked fine. In Flex 3 however it does not. I did
some testing and if I hardcode backgroundColor:

var backgroundColor:Number = #FF;

the fill still doesnt work. Now if I change the var to a uint and
modify the value to comply

var backgroundColor:Number = 0xFF;

the skin renders. Now here is my issue. css does not recognize
0xFF. Any ideas what I am doing wrong, or what I can do to get
this to work with Flex 3?

thanks your your time

Jeff

 



Re: [flexcoders] Re: Flex and CFC issues

2008-06-05 Thread Sherif Abdou
try this, ya i wrote about it today, the way i made it work is to

http://localhost:8500/flex2gateway"/>

try that.




- Original Message 
From: Don Kerr <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, June 5, 2008 4:39:28 PM
Subject: [flexcoders] Re: Flex and CFC issues



Looks like you're not even getting a connection to the flex2gateway. 

Few things to check:
1) do you get a blank screen when you go to ../flex2gateway/ ?
2) In CF8 Administrator, do you have Flex enabled under Flex Integration?
3) When you compile your flex app do you have -services 
"C:\ColdFusion8\ wwwroot\web- inf\flex\ services- config.xml" in your
arguments (project properties>> compiler . If so, try going to
Project>>Clean.
4) If using IIS, use CF's Web Server Config tool to re-install your
connectors. This can help with connecting to the gateway.

This shouldn't have anything to do with your CFC, since it never gets
to the point of hitting it. You'll get different errors if it is a CFC
issue.

Hope this helps.
Don Kerr

--- In [EMAIL PROTECTED] ups.com, "Just give a guess..."
 wrote:
>
> All,
> 
> I am extremely new to Flex but I have been doing ColdFusion for a 
> while now. I am having an issue with data from a CFC getting back to 
> my Flex app. I have put code into my CFC to write to the log file if 
> it gets hit. I can run a .cfm file against it and it works. However, 
> the moment I try to hit it with Flex, I get nothing back. 
> 
> I have searched all over the web (over 30 hours) and it seems that I 
> am not the only one getting this issue. It's quite common and I've 
> tried everything they suggested and more.
> 
> This is the error that I am getting:
> 
> [RPC Fault faultString= "Send failed" 
> faultCode="Client. Error.MessageSen d" 
> faultDetail= "Channel. Connect.Failed error NetConnection. Call.Failed: 
> HTTP: Failed: url: 'http://localhost/ flex2gateway/'"]
>   at 
> mx.rpc::AbstractInv oker/http://www.adobe. com/2006/ flex/mx/internal ::fa
> ultHandler()
>   at mx.rpc::Responder/ fault()
>   at mx.rpc::AsyncReques t/fault()
>   at mx.messaging: :ChannelSet/ ::faultPendingSe nds()
>   at mx.messaging: :ChannelSet/ channelFaultHand ler()
>   at 
> flash.events: :EventDispatcher /flash.events: EventDispatcher: :dispatchEv
> entFunction( )
>   at flash.events: :EventDispatcher /dispatchEvent( )
>   at mx.messaging: :Channel/ mx.messaging: Channel:: connectFailed( )
>   at 
> mx.messaging. channels: :PollingChannel/ mx.messaging. channels: PollingCha
> nnel::connectFailed ()
>   at 
> mx.messaging. channels: :AMFChannel/ mx.messaging. channels: AMFChannel: :st
> atusHandler( )
> 
> Also, someone suggested I use ServiceCapture and this is what I got 
> as an error:
> 
> rootCause (null): null
> destination (String): ColdFusion
> headers (Object): 
> 
> correlationId (String):
> A5DFBE78-9536- 1CF0-23E5- 59EBBA214D71
> faultString (String):
> coldfusion.runtime. AbortException
> messageId (String):
> 5588792D-3119- 89F1-9677- EED9F71D7018
> faultCode (String): Server.Processing
> timeToLive (Number): 0
> extendedData (Object): 
>   stacktrace (Array): 
> 0 (String):
> coldfusion.tagext. net.LocationTag. doEndTag( LocationTag. java:161)
> 1 (String):
> coldfusion.runtime. CfJspPage. _emptyTag( CfJspPage. java:1916)
> 2 (String):
> cfApplication2ecfm9 41020151. runPage
> (E:\Inetpub\ wwwroot_tmo\ Application. cfm:92)
> 3 (String):
> coldfusion.runtime. CfJspPage. invoke(CfJspPage .java:152)
> 4 (String):
> coldfusion.tagext. lang.IncludeTag. doStartTag( IncludeTag. java:349)
> 5 (String):
> coldfusion.filter. CfincludeFilter. invoke(Cfinclude Filter.java: 65)
> 6 (String):
> coldfusion.filter. CfincludeFilter. include(Cfinclud eFilter.java: 33)
> 7 (String):
> coldfusion.filter. ApplicationFilte r.invoke( ApplicationFilte r.java:172)
> 8 (String):
> coldfusion.flash. filter.CFCInvoke DebugFilter. invoke
> (CFCInvokeDebugFilt er.java:54)
> 9 (String):
> coldfusion.flash. filter.CFCInvoke PathFilter. invoke
> (CFCInvokePathFilte r.java:53)
> 10 (String):
> coldfusion.filter. ClientScopePersi stenceFilter. invoke
> (ClientScopePersist enceFilter. java:28)
> 11 (String):
> coldfusion.filter. GlobalsFilter. invoke(GlobalsFi lter.java: 38)
> 12 (String):
> coldfusion.filter. DatasourceFilter .invoke(Datasour ceFilter. java:22)
> 13 (String):
> coldfusion.flash. messaging. ColdFusionAdapte r.invoke
> (ColdFusionAdapter. java:197)
> 14 (String):
> flex.messaging. services. RemotingService. serviceMessage
> (RemotingService. java:115)
> 15 (String):
> flex.messaging. MessageBroker. routeMessageToSe rvice
> (MessageBroker. java:548)
> 16 (String):
> flex.messaging. endpoints. AbstractEndpoint .serviceMessage
> (AbstractEndpoint. java:301)
> 17 (String):
> flex.messaging. endpoints. amf.MessageBroke rFilter.invoke
> (MessageBrokerFilte r.java:93)
> 18 (String):
> flex.messaging. endpoints

[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Tim Hoff

I use Vaio.  Nothing wrong with Macbook Pro though.

But, we really should get back to a Flex thread, don't you think? 
Plenty other places to debate Mac, Windows, and Silverlight.  :-)

-TH

--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> They're not really pricey if you care about build and component
quality and
> style though - Sure I could buy a cheap fugly dell for 2/3 the price,
but if
> I were stuck in Windows I wouldn't be caught dead using "consumer"
laptops.
> Lousy components, ugly and too much cheap plastic. I'd have to go for
a
> Vaio, which is priced like a Mackbook Pro anyway.
>
> On Fri, Jun 6, 2008 at 8:32 AM, Rob Rusher [EMAIL PROTECTED] wrote:
>
> > For years I said that I couldn't/wouldn't switch to a Mac because I
> > always need to do Windows specific tasks. But, with the Intel-based
MacBook
> > Pro and Parallels, I have install Windows XP SP3 on a separate
partition and
> > can run the two OS in tandem.
> >
> > So I've been on a Mac for a little over a year now. I love the form
factor
> > of the machine; light and small. It is very powerful. I can test
alpha/beta
> > software on Windows and Mac. I can do .NET development on Windows. I
do
> > Flex/AIR development on both platforms.
> >
> > I'd say that I'm fat and happy, but I only weigh a buck forty. But
I'm am
> > happy!
> >
> > The down side, Macs are a little pricey.
> >
> > Regards,
> > Rob
> >
> > On Thu, Jun 5, 2008 at 4:20 PM, Josh McDonald [EMAIL PROTECTED] wrote:
> >
> >> Anecdote of the minute: I'm fine on my bigass iMac, but there's 2
or 3
> >> vista laptops in the office, and soapUI seems to have some Vista
> >> incompatibilities. Could be the fact we're using 2.0.3 which AFAIK
is still
> >> unreleased, but it could be Vista too :)
> >>
> >> On Fri, Jun 6, 2008 at 4:54 AM, Nancy Gill [EMAIL PROTECTED] wrote:
> >>
> >>> Microsoft is already on record as pushing Windows 7 out the door
as
> >>> soon as possible (probably late 2009) due to the Vista debacle ..
remember
> >>> Windows ME? :)
> >>>
> >>> Nancy
> >>>
> >>>
> >>> - Original Message -
> >>> *From:* Joseph Balderson [EMAIL PROTECTED]
> >>> *To:* flexcoders@yahoogroups.com
> >>> *Sent:* Thursday, June 05, 2008 11:20 AM
> >>> *Subject:* Re: [flexcoders] Re: Thinking about going to the dark
> >>> sideApple Mac Book
> >>>
> >>> I'm not trying to be glib, but don't use Vista. Use XP SP3.
> >>>
> >>> 
> >>>
> >>> Joseph Balderson | http://joeflash.ca | 705-466-6345
> >>>
> >>> b_alen wrote:
> >>> > Interesting. Me and my colleagues are also thinking of switching
to
> >>> > Mac due to Vista crappiness. In fact we're 80% sure that next
laptops
> >>> > will be Macs. My only concern is how to do .Net development and
> >>> > integration with Flex then. Anyone has a solution to that?
> >>> >
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > --- In flexcoders@yahoogroups.com
,
> >>> "scottyale2008" scottyale2008@
> >>> > wrote:
> >>> >> How many Flex developers here are using a Mac for development?
I've
> >>> >> been a die hard Microsoft guy since ... well, since Microsoft
first
> >>> >> started. I went from CPM on a Morrow Meadows to Microsoft DOS
(on
> >>> >> computers with a Turbo button!), then Windows, now Vista. I do
have an
> >>>
> >>> >> iPhone and it is an incredible device and the GUI is extremely
well
> >>> >> done. I've never used a Mac, but many of my friends have taken
the
> >>> >> plunge. Is it time to make the switch? I'm thinking about a Mac
Book
> >>> >> Pro. Is a Mac Book even worth considering for a Flex dev
machine or is
> >>>
> >>> >> a Mac Book Pro the way to go? Anybody else make the switch
recently
> >>> >> from Windows to Mac?
> >>> >>
> >>> >
> >>> >
> >>> >
> >>> > 
> >>> >
> >>> > --
> >>> > Flexcoders Mailing List
> >>> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >>> > Search Archives:
> >>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups
> >>> Links
> >>> >
> >>> >
> >>> >
> >>> >
> >>>
> >>>
> >>> __ Information from ESET NOD32 Antivirus, version of virus
> >>> signature database 3162 (20080605) __
> >>>
> >>> The message was checked by ESET NOD32 Antivirus.
> >>>
> >>> http://www.eset.com
> >>>
> >>>
> >>
> >>
> >> --
> >> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> >>
> >> :: Josh 'G-Funk' McDonald
> >> :: 0437 221 380 :: [EMAIL PROTECTED]
> >>
> >
> >
> >
> > --
> > --
> > Regards,
> > Rob Rusher
> >
> > Adobe Certified AIR, Connect, ColdFusion MX and Flex Instructor
> > m: 303-885-7044
> > im: robrusher
> >
> >
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>





Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Josh McDonald
They're not really pricey if you care about build and component quality and
style though - Sure I could buy a cheap fugly dell for 2/3 the price, but if
I were stuck in Windows I wouldn't be caught dead using "consumer" laptops.
Lousy components, ugly and too much cheap plastic. I'd have to go for a
Vaio, which is priced like a Mackbook Pro anyway.

On Fri, Jun 6, 2008 at 8:32 AM, Rob Rusher <[EMAIL PROTECTED]> wrote:

>   For years I said that I couldn't/wouldn't switch to a Mac because I
> always need to do Windows specific tasks. But, with the Intel-based MacBook
> Pro and Parallels, I have install Windows XP SP3 on a separate partition and
> can run the two OS in tandem.
>
> So I've been on a Mac for a little over a year now. I love the form factor
> of the machine; light and small. It is very powerful. I can test alpha/beta
> software on Windows and Mac. I can do .NET development on Windows. I do
> Flex/AIR development on both platforms.
>
> I'd say that I'm fat and happy, but I only weigh a buck forty. But I'm am
> happy!
>
> The down side, Macs are a little pricey.
>
> Regards,
> Rob
>
> On Thu, Jun 5, 2008 at 4:20 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
>
>>   Anecdote of the minute: I'm fine on my bigass iMac, but there's 2 or 3
>> vista laptops in the office, and soapUI seems to have some Vista
>> incompatibilities. Could be the fact we're using 2.0.3 which AFAIK is still
>> unreleased, but it could be Vista too :)
>>
>> On Fri, Jun 6, 2008 at 4:54 AM, Nancy Gill <[EMAIL PROTECTED]> wrote:
>>
>>>Microsoft is already on record as pushing Windows 7 out the door as
>>> soon as possible (probably late 2009) due to the Vista debacle .. remember
>>> Windows ME?   :)
>>>
>>> Nancy
>>>
>>>
>>> - Original Message -
>>>  *From:* Joseph Balderson <[EMAIL PROTECTED]>
>>> *To:* flexcoders@yahoogroups.com
>>> *Sent:* Thursday, June 05, 2008 11:20 AM
>>> *Subject:* Re: [flexcoders] Re: Thinking about going to the dark
>>> sideApple Mac Book
>>>
>>>  I'm not trying to be glib, but don't use Vista. Use XP SP3.
>>>
>>> 
>>>
>>> Joseph Balderson | http://joeflash.ca | 705-466-6345
>>>
>>> b_alen wrote:
>>> > Interesting. Me and my colleagues are also thinking of switching to
>>> > Mac due to Vista crappiness. In fact we're 80% sure that next laptops
>>> > will be Macs. My only concern is how to do .Net development and
>>> > integration with Flex then. Anyone has a solution to that?
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > --- In flexcoders@yahoogroups.com ,
>>> "scottyale2008" <[EMAIL PROTECTED]>
>>> > wrote:
>>> >> How many Flex developers here are using a Mac for development? I've
>>> >> been a die hard Microsoft guy since ... well, since Microsoft first
>>> >> started. I went from CPM on a Morrow Meadows to Microsoft DOS (on
>>> >> computers with a Turbo button!), then Windows, now Vista. I do have an
>>>
>>> >> iPhone and it is an incredible device and the GUI is extremely well
>>> >> done. I've never used a Mac, but many of my friends have taken the
>>> >> plunge. Is it time to make the switch? I'm thinking about a Mac Book
>>> >> Pro. Is a Mac Book even worth considering for a Flex dev machine or is
>>>
>>> >> a Mac Book Pro the way to go? Anybody else make the switch recently
>>> >> from Windows to Mac?
>>> >>
>>> >
>>> >
>>> >
>>> > 
>>> >
>>> > --
>>> > Flexcoders Mailing List
>>> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>>> > Search Archives:
>>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>>> Links
>>> >
>>> >
>>> >
>>> >
>>>
>>>
>>> __ Information from ESET NOD32 Antivirus, version of virus
>>> signature database 3162 (20080605) __
>>>
>>> The message was checked by ESET NOD32 Antivirus.
>>>
>>> http://www.eset.com
>>>
>>>
>>
>>
>> --
>> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>>
>> :: Josh 'G-Funk' McDonald
>> :: 0437 221 380 :: [EMAIL PROTECTED]
>>
>
>
>
> --
> --
> Regards,
> Rob Rusher
>
> Adobe Certified AIR, Connect, ColdFusion MX and Flex Instructor
> m: 303-885-7044
> im: robrusher
> 
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

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


[flexcoders] Please help graphics.beginFill and css issue

2008-06-05 Thread Body Works Studio
Hi all,

came across an issue with our custom tab skin. while drawing the
shapes we pull the colors from our css. the colors are stored like

backgroundColor: #FF

we then call the style via 

var backgroundColor:Number = getStyle( "backgroundColor" );

then we fill our shape 
graphics.beginFill( backgroundColor, backgroundAlpha );

now in flex 2 this worked fine. In Flex 3 however it does not. I did
some testing and if I hardcode backgroundColor:

var backgroundColor:Number = #FF;

the fill still doesnt work. Now if I change the var to a uint and
modify the value to comply

var backgroundColor:Number = 0xFF;

the skin renders. Now here is my issue. css does not recognize
0xFF. Any ideas what I am doing wrong, or what I can do to get
this to work with Flex 3?

thanks your your time

Jeff









[flexcoders] can it be done, or a feature idea - export to css

2008-06-05 Thread dnk

Is it possible to do an "export" of sorts for settings that are  
specified in a tag directly to a css equivalent?

IE, say I have a component:



And wanted the finished product to have all of the possible settings  
in an external CSS file...

And wanted to end up with:




And have the appropriate styles in an external sheet?


My preference is to have it all in an external style sheet, but it is  
faster to test layouts (for me) to place them in tags (IE taking  
advantage of design view).

I hope this question makes sense.


Just curious.

dnk




[flexcoders] Re: Resizing component , browser freezes - how to overcome it

2008-06-05 Thread alex
Thanks , but it looks like it goes through that function
quite fast .


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I would set breakpoints in LayoutManager doPhasedInstantiation.  If the
> layoutmanager never finishes validating, then you know that resizing the
> component has caused an invalidation loop where the component or
> something else is constantly being invalidated and re-validated.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Tim Hoff
> Sent: Thursday, June 05, 2008 12:19 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Resizing component , browser freezes - how to
> overcome it
> 
>  
> 
> 
> Reinforces the value of getting the source. No way to know for sure
> man, sorry.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com 
> , "alex"  wrote:
> >
> > Thanks Tim !
> >
> > The problem is that it is a custom component (a map ) that I can only
> > use and not modify it.
> >
> > --- In flexcoders@yahoogroups.com
>  , "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Hi Alex,
> > >
> > > You might try making the code less intensive first; else you'll
> always
> > > have to find a work-around. If you're doing anything, especially
> > > calculations, on the render or resize events, you're probably
> spiking
> > > the CPU on a manual browser resize. I'm not hearing that
> cacheAsBitmap
> > > will work for you here, but you can give that a try as well. If
> those
> > > don't help, you can listen for the browser's RESIZE event and
> disable
> > > the offending code. Probably better to find a more direct solution
> > > though.
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com
>  , "alex"  wrote:
> > > >
> > > > I have Flex project which contains several different components
> > > > when I resize the browser windows, one of the components which is
> > > > calculations intensive causes the browser to freeze foraround 2
> > > seconds.
> > > > Is there away to display the rest of components and delay the slow
> > > > component ( and may just display it's scaled Bitmap image), and
> then
> > > > run the component so it won't stuck the whole application ?
> > > >
> > >
> >
>




Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Rob Rusher
For years I said that I couldn't/wouldn't switch to a Mac because I always
need to do Windows specific tasks. But, with the Intel-based MacBook Pro and
Parallels, I have install Windows XP SP3 on a separate partition and can run
the two OS in tandem.

So I've been on a Mac for a little over a year now. I love the form factor
of the machine; light and small. It is very powerful. I can test alpha/beta
software on Windows and Mac. I can do .NET development on Windows. I do
Flex/AIR development on both platforms.

I'd say that I'm fat and happy, but I only weigh a buck forty. But I'm am
happy!

The down side, Macs are a little pricey.

Regards,
Rob

On Thu, Jun 5, 2008 at 4:20 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:

>   Anecdote of the minute: I'm fine on my bigass iMac, but there's 2 or 3
> vista laptops in the office, and soapUI seems to have some Vista
> incompatibilities. Could be the fact we're using 2.0.3 which AFAIK is still
> unreleased, but it could be Vista too :)
>
> On Fri, Jun 6, 2008 at 4:54 AM, Nancy Gill <[EMAIL PROTECTED]> wrote:
>
>>Microsoft is already on record as pushing Windows 7 out the door as
>> soon as possible (probably late 2009) due to the Vista debacle .. remember
>> Windows ME?   :)
>>
>> Nancy
>>
>>
>> - Original Message -
>>  *From:* Joseph Balderson <[EMAIL PROTECTED]>
>> *To:* flexcoders@yahoogroups.com
>> *Sent:* Thursday, June 05, 2008 11:20 AM
>> *Subject:* Re: [flexcoders] Re: Thinking about going to the dark
>> sideApple Mac Book
>>
>>  I'm not trying to be glib, but don't use Vista. Use XP SP3.
>>
>> 
>>
>> Joseph Balderson | http://joeflash.ca | 705-466-6345
>>
>> b_alen wrote:
>> > Interesting. Me and my colleagues are also thinking of switching to
>> > Mac due to Vista crappiness. In fact we're 80% sure that next laptops
>> > will be Macs. My only concern is how to do .Net development and
>> > integration with Flex then. Anyone has a solution to that?
>> >
>> >
>> >
>> >
>> >
>> > --- In flexcoders@yahoogroups.com ,
>> "scottyale2008" <[EMAIL PROTECTED]>
>> > wrote:
>> >> How many Flex developers here are using a Mac for development? I've
>> >> been a die hard Microsoft guy since ... well, since Microsoft first
>> >> started. I went from CPM on a Morrow Meadows to Microsoft DOS (on
>> >> computers with a Turbo button!), then Windows, now Vista. I do have an
>> >> iPhone and it is an incredible device and the GUI is extremely well
>> >> done. I've never used a Mac, but many of my friends have taken the
>> >> plunge. Is it time to make the switch? I'm thinking about a Mac Book
>> >> Pro. Is a Mac Book even worth considering for a Flex dev machine or is
>> >> a Mac Book Pro the way to go? Anybody else make the switch recently
>> >> from Windows to Mac?
>> >>
>> >
>> >
>> >
>> > 
>> >
>> > --
>> > Flexcoders Mailing List
>> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> > Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> Links
>> >
>> >
>> >
>> >
>>
>>
>> __ Information from ESET NOD32 Antivirus, version of virus
>> signature database 3162 (20080605) __
>>
>> The message was checked by ESET NOD32 Antivirus.
>>
>> http://www.eset.com
>>
>>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> 
>



-- 
-- 
Regards,
Rob Rusher

Adobe Certified AIR, Connect, ColdFusion MX and Flex Instructor
m: 303-885-7044
im: robrusher


Re: [flexcoders] Re: #2038: File I/O Error only in firefox

2008-06-05 Thread Dennis Falling
Thanks for the reply...  That information was exactly what I needed.  I'm
actually really surprised that I hadn't run across any of it- I've spent
several hours googling trying to find a solution.  Thanks a lot!

-dennis

On Thu, Jun 5, 2008 at 12:12 PM, Jon Bradley <[EMAIL PROTECTED]>
wrote:

>   I'm guessing it's because the session is not retained when performing a
> file upload to the server - a new session id is created for each
> FileReference upload attempt.
>
> This is a known issue with various workarounds.
> Modify your server code to ignore any session or login details to be sure
> this is the problem you are seeing. If it works when you remove any
> requirement for authentication or any check of the session info, then you're
> one step closer to fixing the issue.
>
> You will then need to:
>
> 1. Store the session number in Flex and send it back. On the server you
> validate against the sent session (a new one will still be created), then
> send back the new session details.
>
> or...
>
> 2. Ignore a requirement on the session when doing the actual upload. Find
> another way of verifying the user is logged in.
>
> http://bugs.adobe.com/jira/browse/SDK-12851
> http://bugs.adobe.com/jira/browse/FP-78
> http://thanksmister.com/?p=59
> http://www.mail-archive.com/flexcoders@yahoogroups.com/msg58372.html
>
>
> good luck,
>
> jon
>
>
> On Jun 5, 2008, at 12:58 PM, Dennis Falling wrote:
>
> I have this problem for standard uploads too, not just SSL...  Again, it
> works fine in IE, so I know that the address and file are valid.  Any ideas?
>
> On Wed, Jun 4, 2008 at 1:48 PM, Dennis Falling <[EMAIL PROTECTED]> wrote:
>
>> I searched the web and the group and found a thread going about this
>> without a resolution (started with msg. 88102).  Does anyone know a way
>> around this?  I need to allow the user to upload files over SSL, which works
>> fine from IE but explodes in Firefox.
>>
>> Code:
>> var url:String =
>> Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND);
>> var request:URLRequest = new URLRequest(url);
>> request.method = URLRequestMethod.POST;
>> _file.upload(request,"fileData",false);
>>
>> When run in Firefox, I get a flash exception:
>> Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
>>
>> Watching it in Wireshark I see the initial post, then a number of
>> subsequent lines "Continuation or non-HTTP traffic".
>>
>> Thanks!
>
>
>  
>


[flexcoders] Re: Streaming BlazeDS connection reverting to polling

2008-06-05 Thread jfujita1
Converting BlazeDS to an NIO implementation is terribly interesting
for me.  I'm building a GIS tracking app that will need to handle more
than a couple hundred connections.  I knew that blocking IO code was
BlazeDS' bottleneck but a $20,000 LCDS license isn't in my company's
budget.  I've heard that BlazeDS' messaging can scale via server
clustering and hardware multiplexing but I'm wondering if you have any
experience converting BlazeDS to NIO and if so if you were willing to
share how you did it.

--- In flexcoders@yahoogroups.com, "Anatole Tartakovsky"
<[EMAIL PROTECTED]> wrote:
>
> It is 10 - please check the source of the BlazeDS source - can be
increased
> to few hundreds in your configuration but you might want to consider
setting
> process affinity and set up LCDS 2.6 express NIO HTTP adapter to really
> scale it up. Other option is to modify BlazeDS code to not keep the
> connection and enable NIO adapter on WebContainer/ move connection
> management into the custom endpoint - then you can scale blazeDS up
to few
> thousand connections.Regards,
> Anatole Tartakovsky
> 
> On Thu, Jun 5, 2008 at 5:03 PM, Geoffrey <[EMAIL PROTECTED]> wrote:
> 
> >   I know there is a hardware imposed limitation to the number of
BlazeDS
> > real-time streaming connections that you can establish. I've heard
> > it's in the hundreds, so I'm trying to see how many I can connect to
> > my server(WinXP Pro 64-bit with two 3GHz Xeon CPUs and 8GB of RAM).
> >
> > Oddly enough after the 10th client logs in, all subsequent logins
> > revert to a polling connection. Is there some limit on the number of
> > streaming connections you can have before they fall back to polling?
> > Something else I'm missing?
> >
> > BTW, even with polling I can establish 200 connections and the server
> > barely blinks except for an increase in CPU usage due to all of that
> > polling.
> >
> > Thanks,
> > Geoff
> >
> >  
> >
>




Re: [flexcoders] Streaming BlazeDS connection reverting to polling

2008-06-05 Thread Rob Rusher
Another option would be to use WebORB. The more I look at what WebORB can
do, the easier it is to pick it over other servers.

We just had a WebORB presentation at our UG meeting on Tuesday. If you
haven't looked at, you should.

Regards,
Rob

On Thu, Jun 5, 2008 at 4:06 PM, Anatole Tartakovsky <
[EMAIL PROTECTED]> wrote:

>   It is 10 - please check the source of the BlazeDS source - can be
> increased to few hundreds in your configuration but you might want to
> consider setting process affinity and set up LCDS 2.6 express NIO HTTP
> adapter to really scale it up. Other option is to modify BlazeDS code to not
> keep the connection and enable NIO adapter on WebContainer/ move connection
> management into the custom endpoint - then you can scale blazeDS up to few
> thousand connections.
> Regards,
> Anatole Tartakovsky
>
> On Thu, Jun 5, 2008 at 5:03 PM, Geoffrey <[EMAIL PROTECTED]> wrote:
>
>>   I know there is a hardware imposed limitation to the number of BlazeDS
>> real-time streaming connections that you can establish. I've heard
>> it's in the hundreds, so I'm trying to see how many I can connect to
>> my server(WinXP Pro 64-bit with two 3GHz Xeon CPUs and 8GB of RAM).
>>
>> Oddly enough after the 10th client logs in, all subsequent logins
>> revert to a polling connection. Is there some limit on the number of
>> streaming connections you can have before they fall back to polling?
>> Something else I'm missing?
>>
>> BTW, even with polling I can establish 200 connections and the server
>> barely blinks except for an increase in CPU usage due to all of that
>> polling.
>>
>> Thanks,
>> Geoff
>>
>>
>  
>



-- 
-- 
Regards,
Rob Rusher

Adobe Certified AIR, Connect, ColdFusion MX and Flex Instructor
m: 303-885-7044
im: robrusher


Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Josh McDonald
Anecdote of the minute: I'm fine on my bigass iMac, but there's 2 or 3 vista
laptops in the office, and soapUI seems to have some Vista
incompatibilities. Could be the fact we're using 2.0.3 which AFAIK is still
unreleased, but it could be Vista too :)

On Fri, Jun 6, 2008 at 4:54 AM, Nancy Gill <[EMAIL PROTECTED]> wrote:

>Microsoft is already on record as pushing Windows 7 out the door as
> soon as possible (probably late 2009) due to the Vista debacle .. remember
> Windows ME?   :)
>
> Nancy
>
>
> - Original Message -
> *From:* Joseph Balderson <[EMAIL PROTECTED]>
> *To:* flexcoders@yahoogroups.com
> *Sent:* Thursday, June 05, 2008 11:20 AM
> *Subject:* Re: [flexcoders] Re: Thinking about going to the dark
> sideApple Mac Book
>
>  I'm not trying to be glib, but don't use Vista. Use XP SP3.
>
> 
>
> Joseph Balderson | http://joeflash.ca | 705-466-6345
>
> b_alen wrote:
> > Interesting. Me and my colleagues are also thinking of switching to
> > Mac due to Vista crappiness. In fact we're 80% sure that next laptops
> > will be Macs. My only concern is how to do .Net development and
> > integration with Flex then. Anyone has a solution to that?
> >
> >
> >
> >
> >
> > --- In flexcoders@yahoogroups.com ,
> "scottyale2008" <[EMAIL PROTECTED]>
> > wrote:
> >> How many Flex developers here are using a Mac for development? I've
> >> been a die hard Microsoft guy since ... well, since Microsoft first
> >> started. I went from CPM on a Morrow Meadows to Microsoft DOS (on
> >> computers with a Turbo button!), then Windows, now Vista. I do have an
> >> iPhone and it is an incredible device and the GUI is extremely well
> >> done. I've never used a Mac, but many of my friends have taken the
> >> plunge. Is it time to make the switch? I'm thinking about a Mac Book
> >> Pro. Is a Mac Book even worth considering for a Flex dev machine or is
> >> a Mac Book Pro the way to go? Anybody else make the switch recently
> >> from Windows to Mac?
> >>
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
> >
> >
> >
> >
>
>
> __ Information from ESET NOD32 Antivirus, version of virus
> signature database 3162 (20080605) __
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

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


[flexcoders] Re: Streaming BlazeDS connection reverting to polling

2008-06-05 Thread Geoffrey
Just what I was looking for.  Thanks!

 Geoff

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Hi Geoffrey,
> 
> Good info here: http://www.flexlive.net/?p=102
> 
> 
> For long polling, looks like you can change the value for
>  in WEB-INF/flex/services-config.xml.  For
> streaming it's .  After the limits are met, new
> connections fall back to simple polling.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "Geoffrey"  wrote:
> >
> > I know there is a hardware imposed limitation to the number of BlazeDS
> > real-time streaming connections that you can establish. I've heard
> > it's in the hundreds, so I'm trying to see how many I can connect to
> > my server(WinXP Pro 64-bit with two 3GHz Xeon CPUs and 8GB of RAM).
> >
> > Oddly enough after the 10th client logs in, all subsequent logins
> > revert to a polling connection. Is there some limit on the number of
> > streaming connections you can have before they fall back to polling?
> > Something else I'm missing?
> >
> > BTW, even with polling I can establish 200 connections and the server
> > barely blinks except for an increase in CPU usage due to all of that
> > polling.
> >
> > Thanks,
> > Geoff
> >
>




Re: [flexcoders] Re: Is there a flex based Tag Cloud component?

2008-06-05 Thread Josh McDonald
Ah, FlowContainer! I always forget about that! That's probably make an
excellent base for something I need to build early next week. Cheers :D

-J

On Fri, Jun 6, 2008 at 6:51 AM, Body Works Studio <[EMAIL PROTECTED]>
wrote:

>   Felipe,
>
> thanks this is exactly what I am looking for.
>
> --- In flexcoders@yahoogroups.com , "Felipe
> Fernandes"
>
> <[EMAIL PROTECTED]> wrote:
> >
> > Jeff,
> >
> > You can use the flowContainer component http://blog.3r1c.net/?p=89 to
> > easely create a tag cloud component, all you need to do is add the
> > methods to calculate de size based on your ratings. You can use a
> > repeater based on your array.
> >
> > Felipe
> > http://bobfernandes.wordpress.com
> >
> > On Thu, Jun 5, 2008 at 1:13 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> > > You could use a grid full of Labels a custom UIComponent full of
> > > UITextfFelds, or you could most likely get away with basing it on the
> > > RichTextEditor component with a little thought.
> > >
> > > -Josh
> > >
> > > On Fri, Jun 6, 2008 at 1:29 AM, Body Works Studio <[EMAIL PROTECTED]>
>
> > > wrote:
> > >>
> > >> Thanks for the link, but thats a little to much. I just need to
> > >> reproduce the typical tag cloud you see on a lot of blogs. I have the
> > >> array of tags and will be adding in scores on how relevant they
> are. I
> > >> think what I need to really know is what component will work. I am
> > >> thinking make a label text will equal the text value, and size and
> > >> style will be figured based on the score. The question is what
> > >> component can I lay it out in so it auto wraps.
> > >>
> > >> Any ideas?
> > >>
> > >> Thanks for your time
> > >> Jeff
> > >>
> > >> --- In flexcoders@yahoogroups.com ,
> "Andrew Wetmore" 
> wrote:
> > >> >
> > >> > Are you susceptible to coding the thing in SwishMax and then
> using the
> > >> > resulting Flash movie as a plugin? Here is part one of a two-part
> > >> tutorial
> > >> > about building a really cool linksphere:
> > >> >
> > >> > http://blog.swishzone.com/?p=73
> > >> >
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > Andrew Wetmore
> > >> > User Experience Director
> > >> > Open Learning Exchange - www.ole.org
> > >> > 978-319-7324
> > >> >
> > >>
> > >
> > >
> > >
> > > --
> > > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> > >
> > > :: Josh 'G-Funk' McDonald
> > > :: 0437 221 380 :: [EMAIL PROTECTED]
> > >
> >
> >
> >
> > --
> > Felipe - http://bobfernandes.wordpress.com
> >
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

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


Re: [flexcoders] Streaming BlazeDS connection reverting to polling

2008-06-05 Thread Anatole Tartakovsky
It is 10 - please check the source of the BlazeDS source - can be increased
to few hundreds in your configuration but you might want to consider setting
process affinity and set up LCDS 2.6 express NIO HTTP adapter to really
scale it up. Other option is to modify BlazeDS code to not keep the
connection and enable NIO adapter on WebContainer/ move connection
management into the custom endpoint - then you can scale blazeDS up to few
thousand connections.Regards,
Anatole Tartakovsky

On Thu, Jun 5, 2008 at 5:03 PM, Geoffrey <[EMAIL PROTECTED]> wrote:

>   I know there is a hardware imposed limitation to the number of BlazeDS
> real-time streaming connections that you can establish. I've heard
> it's in the hundreds, so I'm trying to see how many I can connect to
> my server(WinXP Pro 64-bit with two 3GHz Xeon CPUs and 8GB of RAM).
>
> Oddly enough after the 10th client logs in, all subsequent logins
> revert to a polling connection. Is there some limit on the number of
> streaming connections you can have before they fall back to polling?
> Something else I'm missing?
>
> BTW, even with polling I can establish 200 connections and the server
> barely blinks except for an increase in CPU usage due to all of that
> polling.
>
> Thanks,
> Geoff
>
>  
>


[flexcoders] Re: Flex and CFC issues

2008-06-05 Thread Don Kerr

Looks like you're not even getting a connection to the flex2gateway. 

Few things to check:
1) do you get a blank screen when you go to ../flex2gateway/ ?
2) In CF8 Administrator, do you have Flex enabled under Flex Integration?
3) When you compile your flex app do you have -services 
"C:\ColdFusion8\wwwroot\web-inf\flex\services-config.xml" in your
arguments (project properties>>compiler . If so, try going to
Project>>Clean.
4) If using IIS, use CF's Web Server Config tool to re-install your
connectors. This can help with connecting to the gateway.

This shouldn't have anything to do with your CFC, since it never gets
to the point of hitting it. You'll get different errors if it is a CFC
issue.

Hope this helps.
Don Kerr



--- In flexcoders@yahoogroups.com, "Just give a guess..."
<[EMAIL PROTECTED]> wrote:
>
> All,
> 
> I am extremely new to Flex but I have been doing ColdFusion for a 
> while now. I am having an issue with data from a CFC getting back to 
> my Flex app. I have put code into my CFC to write to the log file if 
> it gets hit. I can run a .cfm file against it and it works. However, 
> the moment I try to hit it with Flex, I get nothing back. 
> 
> I have searched all over the web (over 30 hours) and it seems that I 
> am not the only one getting this issue. It's quite common and I've 
> tried everything they suggested and more.
> 
> This is the error that I am getting:
> 
> [RPC Fault faultString="Send failed" 
> faultCode="Client.Error.MessageSend" 
> faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: 
> HTTP: Failed: url: 'http://localhost/flex2gateway/'"]
>   at 
> mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::fa
> ultHandler()
>   at mx.rpc::Responder/fault()
>   at mx.rpc::AsyncRequest/fault()
>   at mx.messaging::ChannelSet/::faultPendingSends()
>   at mx.messaging::ChannelSet/channelFaultHandler()
>   at 
> flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
> entFunction()
>   at flash.events::EventDispatcher/dispatchEvent()
>   at mx.messaging::Channel/mx.messaging:Channel::connectFailed()
>   at 
> mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingCha
> nnel::connectFailed()
>   at 
> mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::st
> atusHandler()
> 
> Also, someone suggested I use ServiceCapture and this is what I got 
> as an error:
> 
> rootCause (null): null
> destination (String): ColdFusion
> headers (Object): 
> 
> correlationId (String):
> A5DFBE78-9536-1CF0-23E5-59EBBA214D71
> faultString (String):
> coldfusion.runtime.AbortException
> messageId (String):
> 5588792D-3119-89F1-9677-EED9F71D7018
> faultCode (String): Server.Processing
> timeToLive (Number): 0
> extendedData (Object): 
>   stacktrace (Array): 
> 0 (String):
> coldfusion.tagext.net.LocationTag.doEndTag(LocationTag.java:161)
> 1 (String):
> coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1916)
> 2 (String):
> cfApplication2ecfm941020151.runPage
> (E:\Inetpub\wwwroot_tmo\Application.cfm:92)
> 3 (String):
> coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
> 4 (String):
> coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
> 5 (String):
> coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
> 6 (String):
> coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:33)
> 7 (String):
> coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:172)
> 8 (String):
> coldfusion.flash.filter.CFCInvokeDebugFilter.invoke
> (CFCInvokeDebugFilter.java:54)
> 9 (String):
> coldfusion.flash.filter.CFCInvokePathFilter.invoke
> (CFCInvokePathFilter.java:53)
> 10 (String):
> coldfusion.filter.ClientScopePersistenceFilter.invoke
> (ClientScopePersistenceFilter.java:28)
> 11 (String):
> coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
> 12 (String):
> coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
> 13 (String):
> coldfusion.flash.messaging.ColdFusionAdapter.invoke
> (ColdFusionAdapter.java:197)
> 14 (String):
> flex.messaging.services.RemotingService.serviceMessage
> (RemotingService.java:115)
> 15 (String):
> flex.messaging.MessageBroker.routeMessageToService
> (MessageBroker.java:548)
> 16 (String):
> flex.messaging.endpoints.AbstractEndpoint.serviceMessage
> (AbstractEndpoint.java:301)
> 17 (String):
> flex.messaging.endpoints.amf.MessageBrokerFilter.invoke
> (MessageBrokerFilter.java:93)
> 18 (String):
> flex.messaging.endpoints.amf.LegacyFilter.invoke
> (LegacyFilter.java:156)
> 19 (String):
> flex.messaging.endpoints.amf.SessionFilter.invoke
> (SessionFilter.java:46)
> 20 (String):
> flex.messaging.endpoints.amf.BatchProcessFilter.invoke
> (BatchProcessFilter.java:67)
> 21 (String):
> flex.messaging.endpoints.amf.SerializationFilter.invoke
> (SerializationFilter.java:130)
> 22 (String):
> flex.messaging.endpoint

[flexcoders] Re: Streaming BlazeDS connection reverting to polling

2008-06-05 Thread Tim Hoff

Hi Geoffrey,

Good info here: http://www.flexlive.net/?p=102


For long polling, looks like you can change the value for
 in WEB-INF/flex/services-config.xml.  For
streaming it's .  After the limits are met, new
connections fall back to simple polling.

-TH

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> I know there is a hardware imposed limitation to the number of BlazeDS
> real-time streaming connections that you can establish. I've heard
> it's in the hundreds, so I'm trying to see how many I can connect to
> my server(WinXP Pro 64-bit with two 3GHz Xeon CPUs and 8GB of RAM).
>
> Oddly enough after the 10th client logs in, all subsequent logins
> revert to a polling connection. Is there some limit on the number of
> streaming connections you can have before they fall back to polling?
> Something else I'm missing?
>
> BTW, even with polling I can establish 200 connections and the server
> barely blinks except for an increase in CPU usage due to all of that
> polling.
>
> Thanks,
> Geoff
>




RE: [flexcoders] Problem with BrowserManager and IE - titlebar always changes to a '#'

2008-06-05 Thread Alex Harui
Make sure you are running via http:.  If you just test your app from
FlexBuilder, then you are using file://, and IE doesn't work well.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of devworkit
Sent: Thursday, June 05, 2008 2:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with BrowserManager and IE - titlebar
always changes to a '#'

 

I am attempting to integrate my Flex app to use the new Flex3.0
BrowserManager. I have very simple code at this point - here is what
I do at application start time:

browserManager = BrowserManager.getInstance();
browserManager.init("", "MyAppName");

When the app loads in IE7...things look great. I see "MyAppName" in
IE7's title bar (e.g. MyAppName - Internet Explorer)

HOWEVER...once I click on a Flex component, such as switching to a new
Tab component, the IE7 titlebar changes to # - InternetExplorer I
suspect that maybe the tab component is interacting with the
BrowserManager (or HistoryManager...although I thought the
BrowserManager automatically disables the HistoryManager).

WHAT IS WEIRDis that this same app, when run inside FireFox,
behaves correctly - I can navigate through my application and the
FireFox titlebar always says MyAppName - Mozilla FireFox.

Is this a bug in IE7? Flex3.0 states that the BrowserManager supports
IE6+ 

Is there something I need to do differently? Other than setting the
title upfront in my app...I do no other BrowserManager or
HistoryManager specific code.

Thanks for any info!

 



[flexcoders] Problem with BrowserManager and IE - titlebar always changes to a '#'

2008-06-05 Thread devworkit
I am attempting to integrate my Flex app to use the new Flex3.0
BrowserManager.  I have very simple code at this point - here is what
I do at application start time:

  browserManager = BrowserManager.getInstance();
  browserManager.init("", "MyAppName");

When the app loads in IE7...things look great.  I see "MyAppName" in
IE7's title bar (e.g. MyAppName - Internet Explorer)

HOWEVER...once I click on a Flex component, such as switching to a new
Tab component, the IE7 titlebar changes to # - InternetExplorer   I
suspect that maybe the tab component is interacting with the
BrowserManager (or HistoryManager...although I thought the
BrowserManager automatically disables the HistoryManager).

WHAT IS WEIRDis that this same app, when run inside FireFox,
behaves correctly - I can navigate through my application and the
FireFox titlebar always says MyAppName - Mozilla FireFox.

Is this a bug in IE7?  Flex3.0 states that the BrowserManager supports
IE6+  

Is there something I need to do differently?  Other than setting the
title upfront in my app...I do no other BrowserManager or
HistoryManager specific code.

Thanks for any info!



RE: [flexcoders] Re: Resizing component , browser freezes - how to overcome it

2008-06-05 Thread Alex Harui
I would set breakpoints in LayoutManager doPhasedInstantiation.  If the
layoutmanager never finishes validating, then you know that resizing the
component has caused an invalidation loop where the component or
something else is constantly being invalidated and re-validated.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Hoff
Sent: Thursday, June 05, 2008 12:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Resizing component , browser freezes - how to
overcome it

 


Reinforces the value of getting the source. No way to know for sure
man, sorry.

-TH

--- In flexcoders@yahoogroups.com 
, "alex" <[EMAIL PROTECTED]> wrote:
>
> Thanks Tim !
>
> The problem is that it is a custom component (a map ) that I can only
> use and not modify it.
>
> --- In flexcoders@yahoogroups.com
 , "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Hi Alex,
> >
> > You might try making the code less intensive first; else you'll
always
> > have to find a work-around. If you're doing anything, especially
> > calculations, on the render or resize events, you're probably
spiking
> > the CPU on a manual browser resize. I'm not hearing that
cacheAsBitmap
> > will work for you here, but you can give that a try as well. If
those
> > don't help, you can listen for the browser's RESIZE event and
disable
> > the offending code. Probably better to find a more direct solution
> > though.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com
 , "alex"  wrote:
> > >
> > > I have Flex project which contains several different components
> > > when I resize the browser windows, one of the components which is
> > > calculations intensive causes the browser to freeze foraround 2
> > seconds.
> > > Is there away to display the rest of components and delay the slow
> > > component ( and may just display it's scaled Bitmap image), and
then
> > > run the component so it won't stuck the whole application ?
> > >
> >
>

 



[flexcoders] Streaming BlazeDS connection reverting to polling

2008-06-05 Thread Geoffrey
I know there is a hardware imposed limitation to the number of BlazeDS
real-time streaming connections that you can establish.  I've heard
it's in the hundreds, so I'm trying to see how many I can connect to
my server(WinXP Pro 64-bit with two 3GHz Xeon CPUs and 8GB of RAM).

Oddly enough after the 10th client logs in, all subsequent logins
revert to a polling connection.  Is there some limit on the number of
streaming connections you can have before they fall back to polling? 
Something else I'm missing?

BTW, even with polling I can establish 200 connections and the server
barely blinks except for an increase in CPU usage due to all of that
polling.

Thanks,
 Geoff



[flexcoders] Re: Is there a flex based Tag Cloud component?

2008-06-05 Thread Body Works Studio
Felipe,

thanks this is exactly what I am looking for.


--- In flexcoders@yahoogroups.com, "Felipe Fernandes"
<[EMAIL PROTECTED]> wrote:
>
> Jeff,
> 
> You can use the flowContainer component http://blog.3r1c.net/?p=89 to
> easely create a tag cloud component, all you need to do is add the
> methods to calculate de size based on your ratings. You can use a
> repeater based on your array.
> 
> Felipe
> http://bobfernandes.wordpress.com
> 
> On Thu, Jun 5, 2008 at 1:13 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> > You could use a grid full of Labels a custom UIComponent full of
> > UITextfFelds, or you could most likely get away with basing it on the
> > RichTextEditor component with a little thought.
> >
> > -Josh
> >
> > On Fri, Jun 6, 2008 at 1:29 AM, Body Works Studio <[EMAIL PROTECTED]>
> > wrote:
> >>
> >> Thanks for the link, but thats a little to much. I just need to
> >> reproduce the typical tag cloud you see on a lot of blogs. I have the
> >> array of tags and will be adding in scores on how relevant they
are. I
> >> think what I need to really know is what component will work. I am
> >> thinking make a label text will equal the text value, and size and
> >> style will be figured based on the score. The question is what
> >> component can I lay it out in so it auto wraps.
> >>
> >> Any ideas?
> >>
> >> Thanks for your time
> >> Jeff
> >>
> >> --- In flexcoders@yahoogroups.com, "Andrew Wetmore" 
wrote:
> >> >
> >> > Are you susceptible to coding the thing in SwishMax and then
using the
> >> > resulting Flash movie as a plugin? Here is part one of a two-part
> >> tutorial
> >> > about building a really cool linksphere:
> >> >
> >> > http://blog.swishzone.com/?p=73
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Andrew Wetmore
> >> > User Experience Director
> >> > Open Learning Exchange - www.ole.org
> >> > 978-319-7324
> >> >
> >>
> >
> >
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> > 
> 
> 
> 
> -- 
> Felipe - http://bobfernandes.wordpress.com
>




RE: [flexcoders] OT (slightly) Gold standard method to make a web Flex app truly skinnable.

2008-06-05 Thread Gordon Smith
Have you made a Hebrew app in Flash or Flex before? I don't think Player
9 properly supports right-to-left languages.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of David Kramer
Sent: Wednesday, June 04, 2008 10:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] OT (slightly) Gold standard method to make a web
Flex app truly skinnable.

 

Hello All, 

 

I'm beginning a project Flex, CF, IIS and SQL, and this time I'm finally
going to make sure we all do the proper requirements gathering and
research of best practices before writing code (or at least as little as
possible).

 

Therefore, I thought I'd ask the group to point me in the direction to
solid documentation on the best methods on making a Flex app truly
skinnable, from the fonts, (English to Hebrew) to colors, and images,
etc. based upon manual user selection or auto based upon best guess of
global location automatically, or both.

 

Seems monumental, but someone's done it and it's written somewhere I
assume.

 

Any help is appreciated.

 

Thanks.

 

David Kramer, CISSP

Secure.Patterns()

[EMAIL PROTECTED]  

206.792.6751

 

 

 

<>

RE: [flexcoders] VerifyError: Error #1063: Argument count mismatch on ... ResourceBundle().

2008-06-05 Thread Gordon Smith
The constructor for the ResourceBundle class had no arguments in Flex 2
but two optional arguments were added in Flex 3. So it sounds like you
are somehow mixing Flex 2 and Flex 3 code.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan
Sent: Thursday, June 05, 2008 8:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] VerifyError: Error #1063: Argument count mismatch
on ... ResourceBundle().

 

Hello,

I'm wondering if someone can please help me. I'm quite new to Flex
development. I am working on a Flex 3 project and am getting the
following error when trying to load modules using . 
I've been hitting my head against the wall on this issue for several
hours now.

Thanks,
Dan

VerifyError: Error #1063: Argument count mismatch on
mx.resources::ResourceBundle(). Expected 0, got 2.

at en_US$collections_properties()
at
mx.resources::ResourceManagerImpl/http://www.adobe.com/2006/flex/mx/inte
rnal::installCompiledResourceBundle

()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\resources\ResourceM
anagerImpl.as:310]
at
mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\de
v\3.0.x\frameworks\projects\framework\src\mx\resources\ResourceManagerIm
pl.as:234]
at
mx.core::FlexModuleFactory/installCompiledResourceBundles()[E:\dev\3.0.x
\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:441]
at
mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\3.0.x\frameworks\pro
jects\framework\src\mx\core\FlexModuleFactory.as:411]

 



RE: [flexcoders] Re: Retrieving instence name?

2008-06-05 Thread Gordon Smith
Did you import the LoaderInfo class?

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexawesome
Sent: Thursday, June 05, 2008 12:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Retrieving instence name?

 

this make scense, but I got this error msg when I tried to use 
LoaderInfo().loader

1180: Call to a possibly undefined method LoaderInfo.

Did I miss something else?

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Code hints will not help when dealing with event.target unless you 
know
> what it is. Technically you should code lit like
> 
> 
> 
> LoaderInfo(event.target).loader
> 
> 
> 
> And hopefully, you'll get code hints when you type the '.' before
> loader.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of flexawesome
> Sent: Wednesday, June 04, 2008 7:28 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Retrieving instence name?
> 
> 
> 
> Woowow Ales, you are the BEST :))
> 
> How do you know the property of event.target.loader? I was unable 
to 
> see the property by using "cdoe tip"
> 
> Cheers
> 
> --- In flexcoders@yahoogroups.com
  
> , "Alex Harui"  wrote:
> >
> > Sorry, I actually hadn't looked at your code before.
> > 
> > 
> > 
> > The target/currentTarget will be a LoaderInfo. Target.loader.name 
> is
> > probably what you want.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
  
> 
> [mailto:flexcoders@yahoogroups.com
  
> ] On
> > Behalf Of flexawesome
> > Sent: Wednesday, June 04, 2008 2:19 PM
> > To: flexcoders@yahoogroups.com 
 
> > Subject: [flexcoders] Re: Retrieving instence name?
> > 
> > 
> > 
> > 
> > Hey Alex, I was unable to retrieve the instance name..
> > 
> > I got trace info. => [object LoaderInfo]
> > 
> > Any hits?
> > 
> > --- In flexcoders@yahoogroups.com
 
>   40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > Try event.currentTarget.toString()
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
 
>   40yahoogroups.com>
> > 
> > [mailto:flexcoders@yahoogroups.com
 
>   40yahoogroups.com>
> > ] On
> > > Behalf Of flexawesome
> > > Sent: Wednesday, June 04, 2008 1:25 PM
> > > To: flexcoders@yahoogroups.com
  
>  40yahoogroups.com> 
> > > Subject: [flexcoders] Re: Retrieving instence name?
> > > 
> > > 
> > > 
> > > event.currentTarget.name seem doesn't work. :(
> > > 
> > > --- In flexcoders@yahoogroups.com
 
>  
> >   > 40yahoogroups.com>
> > > , "flexawesome"  
> > > wrote:
> > > >
> > > > Hey, is that possible to retrieve the instence name for 
> imgLoad ?
> > > > 
> > > > # in this example, it calls init2 from init1 and know the 
> > instence 
> > > name 
> > > > is "test" but I would like to retrieve it from event or other 
> > ways, 
> > > is 
> > > > that possible?
> > > > 
> > > > 
> > > > http://www.privatepaste.com/e4RWWrMIAW
 
>  > 
> >  
>  > > 
> > >  
>  > 
> >  
>  > > > 
> > > > 
> > > > Thank you
> > > >
> > >
> >
>

 



Re: [flexcoders] Smooth Animation with Resize or Move Effect

2008-06-05 Thread Rob Rusher
Have you tried setting the arguments that don't change on the Resize?



There tends to be some jumpiness if you don't.

Regards,
Rob

On Thu, Jun 5, 2008 at 2:12 PM, wwwpl <[EMAIL PROTECTED]> wrote:

>   I am developing a Flex application where I need to do some resize
> effects. I have 2 VBoxs side by side. They need to resize when a user
> clicks a button. I have been using states to do the resize effects,
> but I can not get it to look nice. I have tried a lot of effects and
> other things, but it doesn't look good.
>
> So I started to create a custom component that is based on the
> Accordion tween effects. Now it looks nice, but I am wondering why I
> could not get it to look nice with the resize or move effects. I
> applied a lot of the animation optimizations that I have found.
>
>  
>



-- 
-- 
Regards,
Rob Rusher

Adobe Certified AIR, Connect, ColdFusion MX and Flex Instructor
m: 303-885-7044
im: robrusher


[flexcoders] Smooth Animation with Resize or Move Effect

2008-06-05 Thread wwwpl
I am developing a Flex application where I need to do some resize 
effects.  I have 2 VBoxs side by side.  They need to resize when a user 
clicks a button.  I have been using states to do the resize effects, 
but I can not get it to look nice.  I have tried a lot of effects and 
other things, but it doesn't look good.  

So I started to create a custom component that is based on the 
Accordion tween effects.  Now it looks nice, but I am wondering why I 
could not get it to look nice with the resize or move effects.  I 
applied a lot of the animation optimizations that I have found.



RE: [flexcoders] Re: Retrieving instence name?

2008-06-05 Thread Alex Harui
My tests showed that the statement you quoted is true, but the
difference is so small it can generally be ignored.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Joseph Balderson
Sent: Thursday, June 05, 2008 11:16 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Retrieving instence name?

 

> ClassName(instance) is marginally faster than (instance as
> ClassName) in my tests.

So which one is faster? Is this still correct?

(us lurkers want to know! :)
__

Joseph Balderson | http://joeflash.ca  
Flex & Flash Platform Developer | Abobe Certified Developer & Trainer
Author, Professional Flex 3 (coming Winter 2008)
Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674
 

Josh McDonald wrote:
> Goddammit, I've been going about it ass backwards! *kicks self*
> 
> Thanks Alex.
> 
> -J
> 
> On Thu, Jun 5, 2008 at 4:15 PM, Alex Harui <[EMAIL PROTECTED]
  
>  >> wrote:
> 
> Var foo:MyClass = MyClass(wrongInstance); //throws exception
> 
> Var bar:MyClass = wrongInstance as MyClass; // returns null unless
> it can be coerced (usually with primitive types)
> 
> 
> 
> --
> 
> *From:* flexcoders@yahoogroups.com
 
>  >
> [mailto:flexcoders@yahoogroups.com
 
>  >] *On Behalf Of *Josh McDonald
> *Sent:* Wednesday, June 04, 2008 10:40 PM
> 
> *To:* flexcoders@yahoogroups.com 

>
> *Subject:* Re: [flexcoders] Re: Retrieving instence name?
> 
> 
> 
> I've read that ClassName(wrongInstance) just gives null? Hence you
> get a nullpointer exception even though that's not really your
> problem, and a newb in his debugger that sees a nullpointer
> exception when wrongInstance is clearly not null is gonna be awfully
> confused.
> 
> -Josh
> 
> On Thu, Jun 5, 2008 at 3:14 PM, Alex Harui <[EMAIL PROTECTED]
 
>  >> wrote:
> 
> ClassName(instance) is marginally faster than (instance as
> ClassName) in my tests.
> 
> 
> 
> Something's gonna blow if it isn't that type. I don't have any hard
> rules on which to use though. I also think there are cases where
> you need to use "as" and vice versa due to coercion rules, but I
> could be wrong about that.
> 
> 
> 
> --
> 
> *From:* flexcoders@yahoogroups.com
 
>  >
> [mailto:flexcoders@yahoogroups.com
 
>  >] *On Behalf Of *Josh McDonald
> *Sent:* Wednesday, June 04, 2008 9:16 PM
> *To:* flexcoders@yahoogroups.com 

>
> *Subject:* Re: [flexcoders] Re: Retrieving instence name?
> 
> 
> 
> Isn't ClassName(instance).foo a bad idea now we have (instance as
> ClassName).foo? I'd much rather have a NPE when it's actually null,
> and a CCE when instance isn't a ClassName.
> 
> -Josh
> 
> On Thu, Jun 5, 2008 at 1:55 PM, Alex Harui <[EMAIL PROTECTED]
 
>  >> wrote:
> 
> Code hints will not help when dealing with event.target unless you
> know what it is. Technically you should code lit like
> 
> 
> 
> LoaderInfo(event.target).loader
> 
> 
> 
> And hopefully, you'll get code hints when you type the '.' before
> loader.
> 
> 
> 
> --
> 
> *From:* flexcoders@yahoogroups.com
 
>  >
> [mailto:flexcoders@yahoogroups.com
 
>  >] *On Behalf Of *flexawesome
> *Sent:* Wednesday, June 04, 2008 7:28 PM
> 
> 
> *To:* flexcoders@yahoogroups.com 

>
> *Subject:* [flexcoders] Re: Retrieving instence name?
> 
> 
> 
> Woowow Ales, you are the BEST :))
> 
> How do you know the property of event.target.loader? I was unable to
> see the property by using "cdoe tip"
> 
> Cheers
> 
> --- In flexcoders@yahoogroups.com


RE: [flexcoders] Re: Using TitleWindow

2008-06-05 Thread Alex Harui
You might want to just create and add the popup with visible=false, then
use callLater to set visible=true and have a showEffect on the popup.

 

I haven't done enough transitions work to know how to do it with states.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kenny14390
Sent: Thursday, June 05, 2008 11:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Using TitleWindow

 

Tried using a transition on the IFlexDisplayObject "popup", but I get
the following warning:

Data binding will not be able to detect assignments to "popup".

and the transition will not run. I tried casting popup to the class of
the TitleWindow (PrizePopup), but that gave the same errors.

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If you don't use PopUp, it could slide under other components in its
> parent container. You can always apply an effect to the popup so it
> slides in.
> 
> 
> 
> However, if you set isPopUp=true, it should allow the TW to be
dragged.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of kenny14390
> Sent: Thursday, June 05, 2008 10:21 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Using TitleWindow
> 
> 
> 
> If I just have a TitleWindow component in my application, is there a
> way to allow it to be draggable as if it was a popup? I'm not using
> PopupManager to display the TitleWindow because I want to apply a
> transition to it so that it slides in. Is there a way to apply this
> transition to a popup so that I won't have to worry about the dragging
> thing?
>

 



[flexcoders] AdvancedDatagrid, AdvancedDataGridRendererProvider and xml HierarchicalData

2008-06-05 Thread y.mauron
Hi all, 

I have a datagrid that displays HierarchicalDat from a xml file. My
xml looks like that : 


 
  
  
 
 
 


I would like to apply an item renderer to the subtags of tag1. I tried
the following but it fails to produce the desired effect...


   


Any idea ?



[flexcoders] Re: Some Characters on Dynamically Loaded Fonts Show Incorrectly

2008-06-05 Thread hawkfansixty
No, it happens in other scenarios as well.

Here are some of the documented scenarios I've tested and the result (If
further verbiage necessary, let me know)

Font   Location (Embed Type)   Control Location   Result  
Application   (ttf)   Application   Good   Application   (ttf)  
Application (SL)   Good   Application   (swf)   Application   BAD
Application   (swf)   Application (SL)   BAD   Application   (ttf)  
Module (SL)   BAD   Application   (swf)   Module (SL)   BAD  
Application   using SL (ttf)   Application   BAD   Application  
using SL (ttf)   Application (SL)   BAD   Module   (ttf)   Module
(SL)   Not Embeded
SL = shared library project
ttf = font embeded in mxml from ttf file
swf = font embeded with StyleManager.loadStyleDeclarations or from swf
file (generated by flex)

Embedding the swf in mxml and using a font swf from flash are other
variables I've played around with but haven't yet found the winning
combination.  This seems to work in some instances but not others (need
to specify a font family on the TextArea control or goes blank with
rotation)

The more I play around with it, the more confused i get.  [:(]

Thoughts?


--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Are you claiming that this only happens when you dynamically load a
SWF
> containing embedded fonts? I doubt it. I'll bet it's a problem with
> embedded fonts, even if they're embedded in the application SWF. It
> looks like the font embedding process at compilation time can produce
> glyphs that are less attractive that the original device font.
>
>
>
> Please file a bug at http://bugs.adobe.com/flex/.
>
>
>
> Gordon Smith
>
> Adobe Flex SDK Team
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of hawkfansixty
> Sent: Wednesday, June 04, 2008 11:16 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Some Characters on Dynamically Loaded Fonts Show
> Incorrectly
>
>
>
> I'm having an issue with dynamically loaded fonts not showing up
> correctly.  The fonts are loaded using
> StyleManager.loadStyleDeclarations("fonts.swf", true).  As you can see
> on the attached image, some characters do not render correctly.  In
the
> image, the top is Verdana and the bottom is Arial.  Both fonts have
> problems with some characters.
>
> The displayed text is from a TextArea with an htmlText of " LEADING='2'> COLOR='#00' LETTERSPACING='0' KERNING='0'>The quick brown fox
jumps
> over the lazy dog"
>
> Anyone have any thoughts as to what might be causing this or what
could
> be done to resolve the issue?
>
>  
>



[flexcoders] Re: Resizing component , browser freezes - how to overcome it

2008-06-05 Thread Tim Hoff

Reinforces the value of getting the source.  No way to know for sure
man, sorry.

-TH

--- In flexcoders@yahoogroups.com, "alex" <[EMAIL PROTECTED]> wrote:
>
> Thanks Tim !
>
> The problem is that it is a custom component (a map ) that I can only
> use and not modify it.
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Hi Alex,
> >
> > You might try making the code less intensive first; else you'll
always
> > have to find a work-around. If you're doing anything, especially
> > calculations, on the render or resize events, you're probably
spiking
> > the CPU on a manual browser resize. I'm not hearing that
cacheAsBitmap
> > will work for you here, but you can give that a try as well. If
those
> > don't help, you can listen for the browser's RESIZE event and
disable
> > the offending code. Probably better to find a more direct solution
> > though.
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "alex"  wrote:
> > >
> > > I have Flex project which contains several different components
> > > when I resize the browser windows, one of the components which is
> > > calculations intensive causes the browser to freeze foraround 2
> > seconds.
> > > Is there away to display the rest of components and delay the slow
> > > component ( and may just display it's scaled Bitmap image), and
then
> > > run the component so it won't stuck the whole application ?
> > >
> >
>





[flexcoders] Re: Retrieving instence name?

2008-06-05 Thread flexawesome
forgive me :) it works great!




--- In flexcoders@yahoogroups.com, "flexawesome" <[EMAIL PROTECTED]> 
wrote:
>
> this make scense, but I got this error msg when I tried to use 
> LoaderInfo().loader
> 
> 1180: Call to a possibly undefined method LoaderInfo.
> 
> Did I miss something else?
> 
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > Code hints will not help when dealing with event.target unless 
you 
> know
> > what it is.  Technically you should code lit like
> > 
> >  
> > 
> > LoaderInfo(event.target).loader
> > 
> >  
> > 
> > And hopefully, you'll get code hints when you type the '.' before
> > loader.
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of flexawesome
> > Sent: Wednesday, June 04, 2008 7:28 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Retrieving instence name?
> > 
> >  
> > 
> > Woowow Ales, you are the BEST :))
> > 
> > How do you know the property of event.target.loader? I was unable 
> to 
> > see the property by using "cdoe tip"
> > 
> > Cheers
> > 
> > --- In flexcoders@yahoogroups.com  40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > Sorry, I actually hadn't looked at your code before.
> > > 
> > > 
> > > 
> > > The target/currentTarget will be a LoaderInfo. 
Target.loader.name 
> > is
> > > probably what you want.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com  40yahoogroups.com>
> > 
> > [mailto:flexcoders@yahoogroups.com  40yahoogroups.com>
> > ] On
> > > Behalf Of flexawesome
> > > Sent: Wednesday, June 04, 2008 2:19 PM
> > > To: flexcoders@yahoogroups.com  40yahoogroups.com> 
> > > Subject: [flexcoders] Re: Retrieving instence name?
> > > 
> > > 
> > > 
> > > 
> > > Hey Alex, I was unable to retrieve the instance name..
> > > 
> > > I got trace info. => [object LoaderInfo]
> > > 
> > > Any hits?
> > > 
> > > --- In flexcoders@yahoogroups.com
> >    > 40yahoogroups.com>
> > > , "Alex Harui"  wrote:
> > > >
> > > > Try event.currentTarget.toString()
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > From: flexcoders@yahoogroups.com
> >    > 40yahoogroups.com>
> > > 
> > > [mailto:flexcoders@yahoogroups.com
> >    > 40yahoogroups.com>
> > > ] On
> > > > Behalf Of flexawesome
> > > > Sent: Wednesday, June 04, 2008 1:25 PM
> > > > To: flexcoders@yahoogroups.com  40yahoogroups.com>
> >  > 40yahoogroups.com> 
> > > > Subject: [flexcoders] Re: Retrieving instence name?
> > > > 
> > > > 
> > > > 
> > > > event.currentTarget.name seem doesn't work. :(
> > > > 
> > > > --- In flexcoders@yahoogroups.com
> >  
> > >   > > 40yahoogroups.com>
> > > > , "flexawesome"  
> > > > wrote:
> > > > >
> > > > > Hey, is that possible to retrieve the instence name for 
> > imgLoad ?
> > > > > 
> > > > > # in this example, it calls init2 from init1 and know the 
> > > instence 
> > > > name 
> > > > > is "test" but I would like to retrieve it from event or 
other 
> > > ways, 
> > > > is 
> > > > > that possible?
> > > > > 
> > > > > 
> > > > > http://www.privatepaste.com/e4RWWrMIAW
> >  
> > >  >  > 
> > > >  >  
> > >  >  > > 
> > > > > 
> > > > > Thank you
> > > > >
> > > >
> > >
> >
>




[flexcoders] Re: SWC Encrypt 2.0 - Does it work?

2008-06-05 Thread andrewwestberg
> Hello again, I have read more Flex documentation, and found a lot of 
> good information regarding the remote objects and the environment, 
> but I have a thought about making a change in the structure of the 
> Flex application, have someone tried to take a module and put it into 
> a sql database as a bytearray, and bring it to the application as 
> remote object and connect module loader to the DTO, is possible to 
> connect the module loader to the byteArray?

In order to make the ModuleLoader use a bytearray, you have to do some
extending of ModuleLoader.  For NitroLM.com, I've created a class
called  that does load ByteArrays
internally.  It uses a public/private key encryption on the module swf
file with the decryption key stored on the server.  Because of this,
an attacker can't get at the key.  Only AFTER a valid NitroLM
licensing transaction happens are you allowed access to the decryption
key.

Basically, all you do is develop a modular application (either put
everything in one module (if you're lazy or have a small app), or do
several modules.  In the NitroLM admin tool, create a new product
code, and generate a library key for each module you have.  You can
then assign those library keys to the product.

Then, when you're ready to deploy, you modify your code to use the
 instead of .  In my
own code, I just comment/uncomment repeatedly during development.  For
a Flex app, you run the module swfs through our AIR app called
AssetEncrypter using the product keys and library keys generated
during setup.  Then you just deploy.  For AIR, you have to unzip the
AIR package, encrypt the modules using AssetEncrypter and then
re-package using the ADT tool in the Flex SDK.  It's not totally
streamlined yet, but I'm always working to improve it.  Here is some
of my demo code with a couple of encrypted modules.









That's the very high level overview anyway (the stuff I'm allowed to
share).  NitroLM does a lot more than just encryption, and you should
look into it if you're doing any type of enterprise application. 
E-mail notifications, Demo licensing, offline or checked-out license
and other features are some of the main reasons people use it.  For an
open-source or public audience/website type of thing, it's probably
overkill.

If you want to schedule an online demo sometime, just schedule a
meeting with our LM sales guy lmsales [at] simplifiedlogic.com.  He
schedules my time for demos of the encryption stuff.  We'll also have
a presentation at 360 Flex San Jose and a booth there.  The
presentation is by David Bigelow - Making Money with Flex, or
something like that.

-Andrew Westberg



[flexcoders] Re: Resizing component , browser freezes - how to overcome it

2008-06-05 Thread alex
Thanks Tim !

The problem is that it is a custom component (a map ) that I can only
use and not modify it.

--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Hi Alex,
> 
> You might try making the code less intensive first; else you'll always
> have to find a work-around.  If you're doing anything, especially
> calculations, on the render or resize events, you're probably spiking
> the CPU on a manual browser resize.  I'm not hearing that cacheAsBitmap
> will work for you here, but you can give that a try as well.  If those
> don't help, you can listen for the browser's RESIZE event and disable
> the offending code.  Probably better to find a more direct solution
> though.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "alex"  wrote:
> >
> > I have Flex project which contains several different components
> > when I resize the browser windows, one of the components which is
> > calculations intensive causes the browser to freeze foraround 2
> seconds.
> > Is there away to display the rest of components and delay the slow
> > component ( and may just display it's scaled Bitmap image), and then
> > run the component so it won't stuck the whole application ?
> >
>




[flexcoders] Re: Retrieving instence name?

2008-06-05 Thread flexawesome
this make scense, but I got this error msg when I tried to use 
LoaderInfo().loader

1180: Call to a possibly undefined method LoaderInfo.

Did I miss something else?


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Code hints will not help when dealing with event.target unless you 
know
> what it is.  Technically you should code lit like
> 
>  
> 
> LoaderInfo(event.target).loader
> 
>  
> 
> And hopefully, you'll get code hints when you type the '.' before
> loader.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of flexawesome
> Sent: Wednesday, June 04, 2008 7:28 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Retrieving instence name?
> 
>  
> 
> Woowow Ales, you are the BEST :))
> 
> How do you know the property of event.target.loader? I was unable 
to 
> see the property by using "cdoe tip"
> 
> Cheers
> 
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > Sorry, I actually hadn't looked at your code before.
> > 
> > 
> > 
> > The target/currentTarget will be a LoaderInfo. Target.loader.name 
> is
> > probably what you want.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of flexawesome
> > Sent: Wednesday, June 04, 2008 2:19 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Re: Retrieving instence name?
> > 
> > 
> > 
> > 
> > Hey Alex, I was unable to retrieve the instance name..
> > 
> > I got trace info. => [object LoaderInfo]
> > 
> > Any hits?
> > 
> > --- In flexcoders@yahoogroups.com
>    40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > Try event.currentTarget.toString()
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
>    40yahoogroups.com>
> > 
> > [mailto:flexcoders@yahoogroups.com
>    40yahoogroups.com>
> > ] On
> > > Behalf Of flexawesome
> > > Sent: Wednesday, June 04, 2008 1:25 PM
> > > To: flexcoders@yahoogroups.com 
>  40yahoogroups.com> 
> > > Subject: [flexcoders] Re: Retrieving instence name?
> > > 
> > > 
> > > 
> > > event.currentTarget.name seem doesn't work. :(
> > > 
> > > --- In flexcoders@yahoogroups.com
>  
> >   > 40yahoogroups.com>
> > > , "flexawesome"  
> > > wrote:
> > > >
> > > > Hey, is that possible to retrieve the instence name for 
> imgLoad ?
> > > > 
> > > > # in this example, it calls init2 from init1 and know the 
> > instence 
> > > name 
> > > > is "test" but I would like to retrieve it from event or other 
> > ways, 
> > > is 
> > > > that possible?
> > > > 
> > > > 
> > > > http://www.privatepaste.com/e4RWWrMIAW
>  
> >   > 
> > >   
> >   > > 
> > > > 
> > > > Thank you
> > > >
> > >
> >
>




[flexcoders] Flex and WSDL

2008-06-05 Thread radwhite81
i'm working on trying to get soap headers declared in the wsdl, then
i'll I want to see if flex can automatically generate the code to set
them in the service requests. does anyone have any suggestions, links
blogs or any other info. thanks for your time and consideration.



Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Nancy Gill
Microsoft is already on record as pushing Windows 7 out the door as soon as 
possible (probably late 2009) due to the Vista debacle .. remember Windows ME?  
 :)

Nancy

  - Original Message - 
  From: Joseph Balderson 
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, June 05, 2008 11:20 AM
  Subject: Re: [flexcoders] Re: Thinking about going to the dark sideApple 
Mac Book


  I'm not trying to be glib, but don't use Vista. Use XP SP3.

  

  Joseph Balderson | http://joeflash.ca | 705-466-6345

  b_alen wrote:
  > Interesting. Me and my colleagues are also thinking of switching to
  > Mac due to Vista crappiness. In fact we're 80% sure that next laptops
  > will be Macs. My only concern is how to do .Net development and
  > integration with Flex then. Anyone has a solution to that?
  > 
  > 
  > 
  > 
  > 
  > --- In flexcoders@yahoogroups.com, "scottyale2008" <[EMAIL PROTECTED]>
  > wrote:
  >> How many Flex developers here are using a Mac for development? I've 
  >> been a die hard Microsoft guy since ... well, since Microsoft first 
  >> started. I went from CPM on a Morrow Meadows to Microsoft DOS (on 
  >> computers with a Turbo button!), then Windows, now Vista. I do have an 
  >> iPhone and it is an incredible device and the GUI is extremely well 
  >> done. I've never used a Mac, but many of my friends have taken the 
  >> plunge. Is it time to make the switch? I'm thinking about a Mac Book 
  >> Pro. Is a Mac Book even worth considering for a Flex dev machine or is 
  >> a Mac Book Pro the way to go? Anybody else make the switch recently 
  >> from Windows to Mac?
  >>
  > 
  > 
  > 
  > 
  > 
  > --
  > Flexcoders Mailing List
  > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  > Search Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
  > 
  > 
  > 
  > 


   

  __ Information from ESET NOD32 Antivirus, version of virus signature 
database 3162 (20080605) __

  The message was checked by ESET NOD32 Antivirus.

  http://www.eset.com


[flexcoders] Re: Resizing component , browser freezes - how to overcome it

2008-06-05 Thread Tim Hoff

Hi Alex,

You might try making the code less intensive first; else you'll always
have to find a work-around.  If you're doing anything, especially
calculations, on the render or resize events, you're probably spiking
the CPU on a manual browser resize.  I'm not hearing that cacheAsBitmap
will work for you here, but you can give that a try as well.  If those
don't help, you can listen for the browser's RESIZE event and disable
the offending code.  Probably better to find a more direct solution
though.

-TH

--- In flexcoders@yahoogroups.com, "alex" <[EMAIL PROTECTED]> wrote:
>
> I have Flex project which contains several different components
> when I resize the browser windows, one of the components which is
> calculations intensive causes the browser to freeze foraround 2
seconds.
> Is there away to display the rest of components and delay the slow
> component ( and may just display it's scaled Bitmap image), and then
> run the component so it won't stuck the whole application ?
>





[flexcoders] Re: Webservice implementation switched to e4x after Flex 2.0.1 hotfix 2

2008-06-05 Thread mgrayfmr
--- In flexcoders@yahoogroups.com, "mgrayfmr" <[EMAIL PROTECTED]> wrote:
>
> Hi there:
> 
> We've run into some webservice issues here when switching from Flex 
> 2.0.1 (not the hotfix version) to Flex 3. We are retrieving data 
from 
> a .NET backend using a SOAP/wsdl format. When we switched to Flex 
> 3.0, the structures returned on the repsonse were sometimes a 
little 
> different. 
> 
> For example, we had a data structure returned that was like this: 
> data.result.UserProfileResponse.snapshots.Calendars
> Where Calendars was an ArrayCollection.
> 
> Now the struture comes back without the Calendars part, and the 
data 
> is in an ArrayCollection under the 
> data.result.UserProfileResponse.snapshots structure.
> 
> The wsdl loks like this:
> 
> 
> Is this a result of the changes to implement e4x on webservices?
> Has anyone else run into this issue?
> 
> Thanks in advance,
> Mike
>
It seems this is a knonw bug with Adobe in Flex 3.
If there are nested Arrays, Flex will not handle them properly.
Flex 3.0 also will drop data if the structure of the data is not 
ordered exactly as the WSDL dictates. This all wokred fine in Flex 
2.0.1. A seriously bad mistake by Adobe to let these bugs slip 
through.

So it turns out that switching our Webservice to handle SOAP 
responses from 'object' to 'e4x' seems to have solved the problem.
We then used this to set the data back to objects to match the 
structure that our Cairngorm responders were expecting:
protected function parseXMLData(xmlData:String) : 
Object
{
var xmlDoc:XMLDocument = new XMLDocument(xmlData);
var decoder:SimpleXMLDecoder = new 
SimpleXMLDecoder(true);
var obj:Object = decoder.decodeXML(xmlDoc);

var data:Object = new Object;

for(var i:int = 0; i < 2; i++)
{
for each(var tempObj:Object in obj)
{
obj = tempObj;
}
}
data.result = obj

return data;

}




[flexcoders] Re: Using TitleWindow

2008-06-05 Thread kenny14390
Tried using a transition on the IFlexDisplayObject "popup", but I get
the following warning:

Data binding will not be able to detect assignments to "popup".

and the transition will not run. I tried casting popup to the class of
the TitleWindow (PrizePopup), but that gave the same errors.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> If you don't use PopUp, it could slide under other components in its
> parent container.  You can always apply an effect to the popup so it
> slides in.
> 
>  
> 
> However, if you set isPopUp=true, it should allow the TW to be dragged.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of kenny14390
> Sent: Thursday, June 05, 2008 10:21 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Using TitleWindow
> 
>  
> 
> If I just have a TitleWindow component in my application, is there a
> way to allow it to be draggable as if it was a popup? I'm not using
> PopupManager to display the TitleWindow because I want to apply a
> transition to it so that it slides in. Is there a way to apply this
> transition to a popup so that I won't have to worry about the dragging
> thing?
>




[flexcoders] choosing line series

2008-06-05 Thread fb6668
I have a question about adding series to a LineChart.

My data looks like this (simplified pseudo-code):

selectedItems:ArrayCollection
{
   Item:myClass
   {
  id:int
  history:ArrayCollection
  {
 date:Date
 val:Number
  }
   }
}

so, a user adds objects of myClass to the selectedItem
ArrayCollection. There may be any number of these.

Now, I currently have a linechart which displays the history data for
any one myClass object:










So this plots val by date.
What I would like to do is amend this so that, rather than passing an
individual myClass object to the linechart, I pass an ArrayCollection
containing several, and then plot the val for *each* object's history
on a separate line.

The only examples of multiple series I have seen expects each object
to have a property relating to each series:

new ArrayCollection( [
{ Month: "Jan", Profit: 2000, Expenses: 1500, Amount: 450 },
{ Month: "Feb", Profit: 1000, Expenses: 200, Amount: 600 },
{ Month: "Mar", Profit: 1500, Expenses: 500, Amount: 300 } ])
and then plotting Profit, Expenses and Amount as the three series
against Month.

Mine's subtley different... any ideas?

Thanks!



[flexcoders] Flex and CFC issues

2008-06-05 Thread Just give a guess...
All,

I am extremely new to Flex but I have been doing ColdFusion for a 
while now. I am having an issue with data from a CFC getting back to 
my Flex app. I have put code into my CFC to write to the log file if 
it gets hit. I can run a .cfm file against it and it works. However, 
the moment I try to hit it with Flex, I get nothing back. 

I have searched all over the web (over 30 hours) and it seems that I 
am not the only one getting this issue. It's quite common and I've 
tried everything they suggested and more.

This is the error that I am getting:

[RPC Fault faultString="Send failed" 
faultCode="Client.Error.MessageSend" 
faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: 
HTTP: Failed: url: 'http://localhost/flex2gateway/'"]
at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::fa
ultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at mx.messaging::ChannelSet/::faultPendingSends()
at mx.messaging::ChannelSet/channelFaultHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
entFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.messaging::Channel/mx.messaging:Channel::connectFailed()
at 
mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingCha
nnel::connectFailed()
at 
mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::st
atusHandler()

Also, someone suggested I use ServiceCapture and this is what I got 
as an error:

rootCause (null): null
destination (String): ColdFusion
headers (Object): 

correlationId (String):
A5DFBE78-9536-1CF0-23E5-59EBBA214D71
faultString (String):
coldfusion.runtime.AbortException
messageId (String):
5588792D-3119-89F1-9677-EED9F71D7018
faultCode (String): Server.Processing
timeToLive (Number): 0
extendedData (Object): 
  stacktrace (Array): 
0 (String):
coldfusion.tagext.net.LocationTag.doEndTag(LocationTag.java:161)
1 (String):
coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1916)
2 (String):
cfApplication2ecfm941020151.runPage
(E:\Inetpub\wwwroot_tmo\Application.cfm:92)
3 (String):
coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
4 (String):
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
5 (String):
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
6 (String):
coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:33)
7 (String):
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:172)
8 (String):
coldfusion.flash.filter.CFCInvokeDebugFilter.invoke
(CFCInvokeDebugFilter.java:54)
9 (String):
coldfusion.flash.filter.CFCInvokePathFilter.invoke
(CFCInvokePathFilter.java:53)
10 (String):
coldfusion.filter.ClientScopePersistenceFilter.invoke
(ClientScopePersistenceFilter.java:28)
11 (String):
coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
12 (String):
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
13 (String):
coldfusion.flash.messaging.ColdFusionAdapter.invoke
(ColdFusionAdapter.java:197)
14 (String):
flex.messaging.services.RemotingService.serviceMessage
(RemotingService.java:115)
15 (String):
flex.messaging.MessageBroker.routeMessageToService
(MessageBroker.java:548)
16 (String):
flex.messaging.endpoints.AbstractEndpoint.serviceMessage
(AbstractEndpoint.java:301)
17 (String):
flex.messaging.endpoints.amf.MessageBrokerFilter.invoke
(MessageBrokerFilter.java:93)
18 (String):
flex.messaging.endpoints.amf.LegacyFilter.invoke
(LegacyFilter.java:156)
19 (String):
flex.messaging.endpoints.amf.SessionFilter.invoke
(SessionFilter.java:46)
20 (String):
flex.messaging.endpoints.amf.BatchProcessFilter.invoke
(BatchProcessFilter.java:67)
21 (String):
flex.messaging.endpoints.amf.SerializationFilter.invoke
(SerializationFilter.java:130)
22 (String):
flex.messaging.endpoints.AMFEndpoint.service(AMFEndpoint.java:164)
23 (String):
flex.messaging.MessageBrokerServlet.service
(MessageBrokerServlet.java:340)
24 (String):
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
25 (String):
coldfusion.bootstrap.BootstrapServlet.service
(BootstrapServlet.java:78)
26 (String):
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
27 (String):
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
28 (String):
jrun.servlet.JRunRequestDispatcher.invoke
(JRunRequestDispatcher.java:257)
29 (String):
jrun.servlet.ServletEngineService.dispatch
(ServletEngineService.java:541)
30 (String):
jrun.servlet.jrpp.JRunProxyService.invokeRunnable
(JRunProxyService.java:204)
31 (String):
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable
(ThreadPool.java:318)
32 (String):
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable
(ThreadPool.java:426)
33 (String):
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable
(ThreadPool.jav

[flexcoders] Re: Please, help: the release player displays a blank page in all browsers.

2008-06-05 Thread Tracy Spratt
If it is a security problem, It will work fine under Flex Builder on 
your dev machine, but not when served from a webserver, like when 
tested on a coworker's machine.

My suggestion is to be sure your have run it from a Web server, using 
a debug player, which is the only way to see the security error.

Tracy

--- In flexcoders@yahoogroups.com, "andrea bianchi" <[EMAIL PROTECTED]> 
wrote:
>
> Thank you for your answers.
> 
> Alex: I could try to write an application that loads my swf, but 
actually I
> think the swf should work fine since I can run it from debug 
players. What
> do you mean with "deploying a release swf"? I just omitted the
> "-compiler.debug" directive and put "false" as the value of 
the "debug" tag
> in flex-config.xml. Is it right?
> 
> Tracy: I don't think an error occurs, since I don't see anything 
while
> running my app in a debug player.
> 
> Andrea
> 
> On Wed, Jun 4, 2008 at 6:40 PM, Tracy Spratt <[EMAIL PROTECTED]> wrote:
> 
> >Does your app do a data service call on start-up?  Perhaps you 
have a
> > security problem that is causing an error on the non-development 
system, and
> > the release player is not displaying the error.
> >
> >
> >
> > Try to run the app on a non-dev system, but use the debug player.
> >
> >
> >
> > Tracy
> >
> >
> >  --
> >
> > *From:* flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] *On
> > Behalf Of *andrea bianchi
> > *Sent:* Wednesday, June 04, 2008 10:23 AM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] Please, help: the release player displays 
a blank
> > page in all browsers.
> >
> >
> >
> > I'm experiencing a strange issue: I'm not able to run my Flex app 
using the
> > release player (I tried Firefox2/player 9.0.124, IE5.5/player 
9.0.47 and
> > IE7/player 9.0.124). The page contains a blank swf (when I right 
click I can
> > see the Flash player menu). The same application works in all 
browsers using
> > a debug player. The swf doesn't work even if I try to access it 
directly,
> > while I'm able to run other Flex applications both standalone and 
using the
> > HTML wrapper.
> > I'm using the Flex 2 SDK hotfix 2 command line compiler.
> > I actually don't know what has caused this behaviour since I use 
a debug
> > player 99% of time... a colleague discovered this while testing 
the
> > application. A possibile hint: this morning, using the debug 
player,  I saw
> > a popup window prompting me for the location of "the debugger or 
the
> > profiler": this happens occasionally and, until now, I didn't pay 
much
> > attention to it (don't know exactly why it appears, I'm compiling 
using the
> > same options since many months). When I switched to the "runtime" 
player the
> > swf seemed to freeze at the same point, though in this case I 
didn't see the
> > popup window. Maybe this window and the blank page issue are 
related?
> > Obviously I cannot force my customers to install a debug player ;-
)
> >
> > Any help appreciated.
> >
> > Bye,
> >
> > Andrea
> >   
> >
>




[flexcoders] Re: Using TitleWindow

2008-06-05 Thread valdhor
Check out FlexMDI (http://code.google.com/p/flexmdi/)


--- In flexcoders@yahoogroups.com, "kenny14390" <[EMAIL PROTECTED]> wrote:
>
> If I just have a TitleWindow component in my application, is there a
> way to allow it to be draggable as if it was a popup? I'm not using
> PopupManager to display the TitleWindow because I want to apply a
> transition to it so that it slides in. Is there a way to apply this
> transition to a popup so that I won't have to worry about the dragging
> thing?
>




Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Joseph Balderson
I'm not trying to be glib, but don't use Vista. Use XP SP3.



Joseph Balderson | http://joeflash.ca | 705-466-6345


b_alen wrote:
> Interesting. Me and my colleagues are also thinking of switching to
> Mac due to Vista crappiness. In fact we're 80% sure that next laptops
> will be Macs. My only concern is how to do .Net development and
> integration with Flex then. Anyone has a solution to that?
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "scottyale2008" <[EMAIL PROTECTED]>
> wrote:
>> How many Flex developers here are using a Mac for development?  I've 
>> been a die hard Microsoft guy since ... well, since Microsoft first 
>> started.   I went from CPM on a Morrow Meadows to Microsoft DOS (on 
>> computers with a Turbo button!), then Windows, now Vista.  I do have an 
>> iPhone and it is an incredible device and the GUI is extremely well 
>> done.   I've never used a Mac, but many of my friends have taken the 
>> plunge.  Is it time to make the switch?   I'm thinking about a Mac Book 
>> Pro.  Is a Mac Book even worth considering for a Flex dev machine or is 
>> a Mac Book Pro the way to go?   Anybody else make the switch recently 
>> from Windows to Mac?
>>
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
> 
> 
> 
> 


Re: [flexcoders] Re: Retrieving instence name?

2008-06-05 Thread Joseph Balderson
 > ClassName(instance) is marginally faster than (instance as
 > ClassName) in my tests.

So which one is faster? Is this still correct?

(us lurkers want to know! :)
___

Joseph Balderson | http://joeflash.ca
Flex & Flash Platform Developer | Abobe Certified Developer & Trainer
Author, Professional Flex 3 (coming Winter 2008)
Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674



Josh McDonald wrote:
> Goddammit, I've been going about it ass backwards! *kicks self*
> 
> Thanks Alex.
> 
> -J
> 
> On Thu, Jun 5, 2008 at 4:15 PM, Alex Harui <[EMAIL PROTECTED] 
> > wrote:
> 
> Var foo:MyClass = MyClass(wrongInstance); //throws exception
> 
> Var bar:MyClass = wrongInstance as MyClass; // returns null unless
> it can be coerced (usually with primitive types)
> 
>  
> 
> 
> 
> *From:* flexcoders@yahoogroups.com
> 
> [mailto:flexcoders@yahoogroups.com
> ] *On Behalf Of *Josh McDonald
> *Sent:* Wednesday, June 04, 2008 10:40 PM
> 
> *To:* flexcoders@yahoogroups.com 
> *Subject:* Re: [flexcoders] Re: Retrieving instence name?
> 
>  
> 
> I've read that ClassName(wrongInstance) just gives null? Hence you
> get a nullpointer exception even though that's not really your
> problem, and a newb in his debugger that sees a nullpointer
> exception when wrongInstance is clearly not null is gonna be awfully
> confused.
> 
> -Josh
> 
> On Thu, Jun 5, 2008 at 3:14 PM, Alex Harui <[EMAIL PROTECTED]
> > wrote:
> 
> ClassName(instance) is marginally faster than (instance as
> ClassName) in my tests.
> 
>  
> 
> Something's gonna blow if it isn't that type.  I don't have any hard
> rules on which to use though.  I also think there are cases where
> you need to use "as"  and vice versa due to coercion rules, but I
> could be wrong about that.
> 
>  
> 
> 
> 
> *From:* flexcoders@yahoogroups.com
> 
> [mailto:flexcoders@yahoogroups.com
> ] *On Behalf Of *Josh McDonald
> *Sent:* Wednesday, June 04, 2008 9:16 PM
> *To:* flexcoders@yahoogroups.com 
> *Subject:* Re: [flexcoders] Re: Retrieving instence name?
> 
>  
> 
> Isn't ClassName(instance).foo a bad idea now we have (instance as
> ClassName).foo? I'd much rather have a NPE when it's actually null,
> and a CCE when instance isn't a ClassName.
> 
> -Josh
> 
> On Thu, Jun 5, 2008 at 1:55 PM, Alex Harui <[EMAIL PROTECTED]
> > wrote:
> 
> Code hints will not help when dealing with event.target unless you
> know what it is.  Technically you should code lit like
> 
>  
> 
> LoaderInfo(event.target).loader
> 
>  
> 
> And hopefully, you'll get code hints when you type the '.' before
> loader.
> 
>  
> 
> 
> 
> *From:* flexcoders@yahoogroups.com
> 
> [mailto:flexcoders@yahoogroups.com
> ] *On Behalf Of *flexawesome
> *Sent:* Wednesday, June 04, 2008 7:28 PM
> 
> 
> *To:* flexcoders@yahoogroups.com 
> *Subject:* [flexcoders] Re: Retrieving instence name?
> 
>  
> 
> Woowow Ales, you are the BEST :))
> 
> How do you know the property of event.target.loader? I was unable to
> see the property by using "cdoe tip"
> 
> Cheers
> 
> --- In flexcoders@yahoogroups.com
> , "Alex Harui" <[EMAIL PROTECTED]> 
> wrote:
> >
> >  Sorry, I actually hadn't looked at your code before.
> >
> >
> >
> >  The target/currentTarget will be a LoaderInfo. Target.loader.name
> 
> is
> >  probably what you want.
> >
> >
> >
> >  
> >
> >  From: flexcoders@yahoogroups.com
> 
> [mailto:flexcoders@yahoogroups.com
> ] On
> >  Behalf Of flexawesome
> >  Sent: Wednesday, June 04, 2008 2:19 PM
> >  To: flexcoders@yahoogroups.com 
> >  Subject: [flexcoders] Re: Retrieving instence name?
> >
> >
> >
> >
> >  Hey Alex, I was unable to retrieve the instance name..
> >
> >  I got trace info. => [object LoaderInfo]
> >
> >  Any hits?
> >
> 

Re: [flexcoders] Re: Is there a flex based Tag Cloud component?

2008-06-05 Thread Felipe Fernandes
Jeff,

You can use the flowContainer component http://blog.3r1c.net/?p=89 to
easely create a tag cloud component, all you need to do is add the
methods to calculate de size based on your ratings. You can use a
repeater based on your array.

Felipe
http://bobfernandes.wordpress.com

On Thu, Jun 5, 2008 at 1:13 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
> You could use a grid full of Labels a custom UIComponent full of
> UITextfFelds, or you could most likely get away with basing it on the
> RichTextEditor component with a little thought.
>
> -Josh
>
> On Fri, Jun 6, 2008 at 1:29 AM, Body Works Studio <[EMAIL PROTECTED]>
> wrote:
>>
>> Thanks for the link, but thats a little to much. I just need to
>> reproduce the typical tag cloud you see on a lot of blogs. I have the
>> array of tags and will be adding in scores on how relevant they are. I
>> think what I need to really know is what component will work. I am
>> thinking make a label text will equal the text value, and size and
>> style will be figured based on the score. The question is what
>> component can I lay it out in so it auto wraps.
>>
>> Any ideas?
>>
>> Thanks for your time
>> Jeff
>>
>> --- In flexcoders@yahoogroups.com, "Andrew Wetmore" <[EMAIL PROTECTED]> 
>> wrote:
>> >
>> > Are you susceptible to coding the thing in SwishMax and then using the
>> > resulting Flash movie as a plugin? Here is part one of a two-part
>> tutorial
>> > about building a really cool linksphere:
>> >
>> > http://blog.swishzone.com/?p=73
>> >
>> >
>> >
>> >
>> > --
>> > Andrew Wetmore
>> > User Experience Director
>> > Open Learning Exchange - www.ole.org
>> > 978-319-7324
>> >
>>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> 



-- 
Felipe - http://bobfernandes.wordpress.com


Re: [flexcoders] Re: Unable to Display Hindi

2008-06-05 Thread Andrew Wetmore
Dumb question, but are you using a font that does not display special
characters? Can you display, say, Mandarin or Japanese? If you cannot
display ANY non-Western characters, try switching to a sans-serif font.

If this relates to Hindi only, and languages such as Japanese display well,
then I am at a loss.

a





-- 
Andrew Wetmore
User Experience Director
Open Learning Exchange - www.ole.org
978-319-7324


[flexcoders] Resizing component , browser freezes - how to overcome it

2008-06-05 Thread alex
I have Flex project which contains several different components
when I resize the browser windows, one of the components which is
calculations intensive causes the browser to freeze foraround 2 seconds.
Is there away to display the rest of components and delay the slow
component ( and may just display it's scaled Bitmap image), and then
run the component so it won't stuck the whole application ?



Re: [flexcoders] OLAP

2008-06-05 Thread murali dharan
Hi,
  please try with pocolap or MonetDb

On Wed, Jun 4, 2008 at 11:58 PM, Dominic Pazula <[EMAIL PROTECTED]> wrote:

>   Has anyone seen or done an integration of with a MDX compliant OLAP
> server? If so, would you be willing to share your experience?
>
> Thanks
> Dom
>
>  
>


Re: [flexcoders] know if .browse() was executed or not

2008-06-05 Thread Jon Bradley


On Jun 5, 2008, at 1:40 PM, David Pariente wrote:

Im not using a fileReferenceList, but a FileReference. And it seems  
i can't access any property of FileReference unless i have choosen  
a file. So there is no way to know if a file was selected.



Ok.  Then all you need to do is use FileReference instead of  
FileReferenceList. There is not much to change in the code.


Any attempt to get the .name property before the select event is  
dispatched will result in an IllegalOperationError (because you can't  
even look at name until Event.SELECT is dispatched).


So, in the onSelectFile method that I posted, .name will then be  
available - it will be null if no file was selected. Additionally,  
check the documentation on browse(). You might be doing something  
else funky that is wrong - such as messing with typelist and not  
providing descriptions or extension strings. There are a few things  
that would cause the browse() not to return true.


The following should work (not tested).

private var isBrowsingFile:Boolean = false;
private function addFiles():void
{
myFileReference = new FileReference();
if (!isBrowsingFile) {
try
{
isBrowsingFile = myFileReference.browse();
myFileReference.addEventListener(Event.SELECT, 
onSelectFile);
}
catch (error:Error)
{
isBrowsingFile = false;
// Handle errors, or add listeners in the try block for 
errors
// This is where you would get the IllegalOperationError
}
}
else
{
trace("already browsing for a file");
}
}

// Called when file is selected
private function onSelectFile(event:Event):void
{
isBrowsingFile = false;
if (myFileReference.name)
{
// whatever you want to do with the selected file
}
else
{
//  no file selected
}
}

good luck with it,

jon



[flexcoders] Re: Unable to Display Hindi

2008-06-05 Thread tanarijay
No that does not seem to be the problem.  The "Text file encoding" for
my resource bundle still reads as "UTF-8".

--- In flexcoders@yahoogroups.com, "Andrew Wetmore" <[EMAIL PROTECTED]> wrote:
>
> What keeps happening to me is that the encoding of the properties
file keeps
> snapping back to whatever the default is. I use Nepali, Hindi, and
Chinese
> in our app, so I really notice when the little squares show up.
Resetting
> the encoding of the properties file will probably do the trick.
> 
> a
> 
> On Wed, Jun 4, 2008 at 5:42 PM, tanarijay <[EMAIL PROTECTED]> wrote:
> I am creating an application that displays in a few character sets:
> English, French, & Hindi.
> 
> I am using resource bundles (name/value pairs in UTF-8 encoded text
> files named "appStrings.properties") and Flex 3 to create my
> application. I am using the resource manager to retrieve the strings:...
> 
> 
> -- 
> Andrew Wetmore
> User Experience Director
> Open Learning Exchange - www.ole.org
> 978-319-7324
>




RE: [flexcoders] Possible to add some data to load to the default preloader?

2008-06-05 Thread Alex Harui
Put the data in an RSL?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of b_alen
Sent: Thursday, June 05, 2008 3:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Possible to add some data to load to the default
preloader?

 

I always have some stuff to load before the app can be used. Is it
possible to stick that loading into the default preloader? So the swf
would know that it has to load other files also before it dispatches
the event that it's fully loaded. Maybe some compiler directives, I
don't know.

Thanks

 



RE: [flexcoders] Please, help: the release player displays a blank page in all browsers.

2008-06-05 Thread Alex Harui
In FlexBuilder3, you use Export Release Build...  You can turn off your
debug flags too, but I'd just use the builtin feature that does that for
you.

 

The release player doesn't have trace log output so there's no way to
leave a trail of what is happening.  The debug player has trace output
and allocates and garbage collects memory differently since it has
defenders on every allocation.  The only way to leave a trail in the
release player is to use a loading SWF that has some UI that can show
that trail.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of andrea bianchi
Sent: Wednesday, June 04, 2008 11:22 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Please, help: the release player displays a
blank page in all browsers.

 

Thank you for your answers. 

Alex: I could try to write an application that loads my swf, but
actually I think the swf should work fine since I can run it from debug
players. What do you mean with "deploying a release swf"? I just omitted
the "-compiler.debug" directive and put "false" as the value of the
"debug" tag in flex-config.xml. Is it right?

Tracy: I don't think an error occurs, since I don't see anything while
running my app in a debug player.

Andrea

On Wed, Jun 4, 2008 at 6:40 PM, Tracy Spratt <[EMAIL PROTECTED]
 > wrote:

Does your app do a data service call on start-up?  Perhaps you have a
security problem that is causing an error on the non-development system,
and the release player is not displaying the error.

 

Try to run the app on a non-dev system, but use the debug player.

 

Tracy

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of andrea bianchi
Sent: Wednesday, June 04, 2008 10:23 AM


To: flexcoders@yahoogroups.com  
Subject: [flexcoders] Please, help: the release player displays a blank
page in all browsers.

 

I'm experiencing a strange issue: I'm not able to run my Flex app using
the release player (I tried Firefox2/player 9.0.124, IE5.5/player 9.0.47
and IE7/player 9.0.124). The page contains a blank swf (when I right
click I can see the Flash player menu). The same application works in
all browsers using a debug player. The swf doesn't work even if I try to
access it directly, while I'm able to run other Flex applications both
standalone and using the HTML wrapper. 
I'm using the Flex 2 SDK hotfix 2 command line compiler.
I actually don't know what has caused this behaviour since I use a debug
player 99% of time... a colleague discovered this while testing the
application. A possibile hint: this morning, using the debug player,  I
saw a popup window prompting me for the location of "the debugger or the
profiler": this happens occasionally and, until now, I didn't pay much
attention to it (don't know exactly why it appears, I'm compiling using
the same options since many months). When I switched to the "runtime"
player the swf seemed to freeze at the same point, though in this case I
didn't see the popup window. Maybe this window and the blank page issue
are related?
Obviously I cannot force my customers to install a debug player ;-)

Any help appreciated.

Bye,

Andrea 

 

 



RE: [flexcoders] Using TitleWindow

2008-06-05 Thread Alex Harui
If you don't use PopUp, it could slide under other components in its
parent container.  You can always apply an effect to the popup so it
slides in.

 

However, if you set isPopUp=true, it should allow the TW to be dragged.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kenny14390
Sent: Thursday, June 05, 2008 10:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using TitleWindow

 

If I just have a TitleWindow component in my application, is there a
way to allow it to be draggable as if it was a popup? I'm not using
PopupManager to display the TitleWindow because I want to apply a
transition to it so that it slides in. Is there a way to apply this
transition to a popup so that I won't have to worry about the dragging
thing?

 



Re: [flexcoders] Flex Builder accessibility problem

2008-06-05 Thread Matt Morgan-May
Hi Barry,

What you¹re describing is something we inherit from the Eclipse environment
that Flex Builder is based on, and there was a bug filed on Eclipse that
matches your problem.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=194312

It appears there¹s a (somewhat complicated) fix in there, if you want to try
that. Otherwise, the next version of the Eclipse C/C++ Development Toolkit
(CDT 5.0) has fixed it, but to go that route, you¹ll have to wait for that
release, install Eclipse, and then install FB as an Eclipse plugin.

Hope this helps,
m

Matt May
Accessibility Engineer, Adobe Systems
http://adobe.com/accessibility


On 6/5/08 3:24 AM, "Barry" <[EMAIL PROTECTED]> wrote:

>  
>  
> 
> Hi, don't know where to ask this question but I thought I'd give it a
> try here.
> Due to my bad eyesight I run my computer in High Contrast mode.
> Flex Builder is great mostly however I can not find where to set the
> background color for popups - ie Code Assist and the Outliner pop
> (Ctrl+O).
> As it stands I can't see any text. Any help muchly appreciated.
> Barry 
> 



Re: [flexcoders] know if .browse() was executed or not

2008-06-05 Thread David Pariente
I think this is a different thing...
Im not using a fileReferenceList, but a FileReference. And it seems i can't 
access any property of FileReference unless i have choosen a file. So there is 
no way to know if a file was selected.

Also, i first choose images with several calls to browseand later...long 
later...i send them. Im making a form, so i only send when the form is filled 
and validated :)

By the way, i can't use FileReferenceList, as i don't wanna allow users to send 
more than one file per form file object.

thnx for the answer anyway, and example of fileReferenceList is allways of good 
use ;)


- Mensaje original 
De: Jon Bradley <[EMAIL PROTECTED]>
Para: flexcoders@yahoogroups.com
Enviado: jueves, 5 de junio, 2008 19:26:41
Asunto: Re: [flexcoders] know if .browse() was executed or not




On Jun 5, 2008, at 12:23 PM, David Pariente wrote:

I was trying checking for some property from fileReference object, like for 
example .name, so if no name on the object, would mean they didn't select 
anything there. But accessing the name property when no file choosen throws an 
IllegalOperationErr or.

Anyone has idea how to know if file was selected or not???

Use events. EVENT.SELECT is dispatched when the browse() session closes and 
files are selected. The list of files is the "fileList" property on the 
FileReferenceList instance you created.

private function addFiles():void 
{
myFileReferenceList  = new FileReferenceList( );
try
{
var success:Boolean = myFileReferenceLis t.browse( );
myFileReferenceList .addEventListene r(Event.SELECT, onSelectFile) ;
}
catch (error:Error)
{
// Handle errors, or add listeners in the try block for errors
}
}

// Called when files are selected
private function onSelectFile( event:Event) :void
{
if (myFileReferenceLis t.fileList. length >= 1)
{
for (var i:Number = 0; i < myFileReferenceList .fileList. length; j++)
{
// whatever you want to do with the list of files

}
}
else
{
//no files selected

}
}


cheers,

jon


  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

RE: [flexcoders] Re: How to remeasure itemRenderer

2008-06-05 Thread Alex Harui
Probaly uninstall/reinstall.  Run some other tests first.  As you step
into code, you should never suddenly "jump" into the middle of a
function, breakpoints should be settable, etc.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Thursday, June 05, 2008 7:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to remeasure itemRenderer

 

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> It has nothing to do with rendererChanged, that would be if you 
changed
> the classFactory for the renderer.
> 
> 
> 
> List also has makeRowsAndColumns. If you can't set a breakpoint, that
> makes me think your source is not in sync with the swcs.

How do I fix that?

Thanks;

Amy

 



RE: [flexcoders] Flex access to Browser Properties

2008-06-05 Thread Alex Harui
If you can generate the data in Javascript in your HTML wrapper, you can
get to it from Flex via ExternalInterface

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of grizalum
Sent: Thursday, June 05, 2008 7:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex access to Browser Properties

 

I am needing to know some basic information about the browser in which 
my app is running...minimally I would like to know the dimensions 
(height, width) of the browser and if it is maximized. Although, if I 
can get the browsers height and width I believe that I should be able 
to determine maximization state by using the Capabilities class and 
making use of the screen's resolution.

I would also like to be able to determine the same information that the 
viewMetricsAndPadding provide. However, if I can get the height and 
width of the browser, I believe that the SystemManager height/width 
would be sufficent for me to determine the same information that the 
view (Edge) metrics would provide.

Is there a way, from within flex, to access these browser properties?

 



RE: [flexcoders] Re: hiding a cell within a datagrid dynamically

2008-06-05 Thread Alex Harui
You'll probably have to set visible from inside updateDisplayList.  A
renderer's visible property is changed as it goes on/off the
freeItemRenderers list.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jmfillman
Sent: Thursday, June 05, 2008 9:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: hiding a cell within a datagrid dynamically

 

Anthony,

If you are passing the data from the columns of each row to the 
itemRenderer, you should be able to set visibility conditions from the 
itemRenderer.

If you post your code, I or someone else here might be able to provide 
a more specific suggestion.

JF
--- In flexcoders@yahoogroups.com 
, "anthony_morsey" <[EMAIL PROTECTED]> wrote:
>
> I have a datagrid with multiple columns and rows. One of the columns
> contains a checkbox which is rendered with an itemRenderer. I'd like
> to conditionally hide some of these checkboxes based on values from
> other columns with the same row.
> 
> Any ideas?
> 
> Thanks
>

 



Re: [flexcoders] know if .browse() was executed or not

2008-06-05 Thread Jon Bradley


On Jun 5, 2008, at 12:23 PM, David Pariente wrote:

I was trying checking for some property from fileReference object,  
like for example .name, so if no name on the object, would mean  
they didn't select anything there. But accessing the name property  
when no file choosen throws an IllegalOperationError.


Anyone has idea how to know if file was selected or not???


Use events. EVENT.SELECT is dispatched when the browse() session  
closes and files are selected. The list of files is the "fileList"  
property on the FileReferenceList instance you created.


private function addFiles():void
{
myFileReferenceList = new FileReferenceList();
try
{
var success:Boolean = myFileReferenceList.browse();
myFileReferenceList.addEventListener(Event.SELECT, 
onSelectFile);
}
catch (error:Error)
{
// Handle errors, or add listeners in the try block for errors
}
}

// Called when files are selected
private function onSelectFile(event:Event):void
{
if (myFileReferenceList.fileList.length >= 1)
{
for (var i:Number = 0; i < myFileReferenceList.fileList.length; 
j++)
{
// whatever you want to do with the list of files
}
}
else
{
//  no files selected
}
}


cheers,

jon

[flexcoders] Using TitleWindow

2008-06-05 Thread kenny14390
If I just have a TitleWindow component in my application, is there a
way to allow it to be draggable as if it was a popup? I'm not using
PopupManager to display the TitleWindow because I want to apply a
transition to it so that it slides in. Is there a way to apply this
transition to a popup so that I won't have to worry about the dragging
thing?



Re: [flexcoders] Re: #2038: File I/O Error only in firefox

2008-06-05 Thread Jon Bradley
I'm guessing it's because the session is not retained when performing  
a file upload to the server - a new session id is created for each  
FileReference upload attempt.


This is a known issue with various workarounds.

Modify your server code to ignore any session or login details to be  
sure this is the problem you are seeing. If it works when you remove  
any requirement for authentication or any check of the session info,  
then you're one step closer to fixing the issue.


You will then need to:

1. Store the session number in Flex and send it back. On the server  
you validate against the sent session (a new one will still be  
created), then send back the new session details.


or...

2. Ignore a requirement on the session when doing the actual upload.  
Find another way of verifying the user is logged in.


http://bugs.adobe.com/jira/browse/SDK-12851
http://bugs.adobe.com/jira/browse/FP-78
http://thanksmister.com/?p=59
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg58372.html


good luck,

jon


On Jun 5, 2008, at 12:58 PM, Dennis Falling wrote:

I have this problem for standard uploads too, not just SSL...   
Again, it works fine in IE, so I know that the address and file are  
valid.  Any ideas?



On Wed, Jun 4, 2008 at 1:48 PM, Dennis Falling <[EMAIL PROTECTED]>  
wrote:
I searched the web and the group and found a thread going about  
this without a resolution (started with msg. 88102).  Does anyone  
know a way around this?  I need to allow the user to upload files  
over SSL, which works fine from IE but explodes in Firefox.


Code:
var url:String = Services.getCommandServiceURL 
(FileDelegate.UPLOAD_FILE_COMMAND);

var request:URLRequest = new URLRequest(url);
request.method = URLRequestMethod.POST;
_file.upload(request,"fileData",false);

When run in Firefox, I get a flash exception:
Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O  
Error.


Watching it in Wireshark I see the initial post, then a number of  
subsequent lines "Continuation or non-HTTP traffic".


Thanks!




[flexcoders] IFBIN status? Need some code, but can't get IFBIN to run

2008-06-05 Thread Tracy Spratt
I am trying to do a DES encryption encoding on some Webservice
parameters.  I have found a few examples, but have not successfully
encrypted a parameter so the target site can decrypt it.

The example function on Flex Exchanges is for "Triple DES" and written
for Flex 2.  The "As3 Crypto Library" is complicated, undocumented, and
I have been able to use it, but not fully successfully. (I can't figure
out how to use the "initial vector" on encryption ) .

I see that Darron Schall's FlashVNC on IFBIN contains a DES class, and
would like to look at it.  I installed IFBIN, but I can't get it to work
(It always says the server is not started, though I have attempted
that).

So three questions:
1) Anyone know of a simple DES encryption class, for non-cryptographers
2) Is Darron's DES class available anywhere but IFBIN
3) Any idea why IFBIN won't run? (support mail list, forum?)

TIA,
Tracy


[flexcoders] Re: #2038: File I/O Error only in firefox

2008-06-05 Thread Dennis Falling
I have this problem for standard uploads too, not just SSL...  Again, it
works fine in IE, so I know that the address and file are valid.  Any ideas?

On Wed, Jun 4, 2008 at 1:48 PM, Dennis Falling <[EMAIL PROTECTED]> wrote:

> I searched the web and the group and found a thread going about this
> without a resolution (started with msg. 88102).  Does anyone know a way
> around this?  I need to allow the user to upload files over SSL, which works
> fine from IE but explodes in Firefox.
>
> Code:
> var url:String =
> Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND);
> var request:URLRequest = new URLRequest(url);
> request.method = URLRequestMethod.POST;
> _file.upload(request,"fileData",false);
>
> When run in Firefox, I get a flash exception:
> Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
>
> Watching it in Wireshark I see the initial post, then a number of
> subsequent lines "Continuation or non-HTTP traffic".
>
> Thanks!
>


[flexcoders] Re: hslider and binding to values

2008-06-05 Thread kenny14390
Binding is curly braces {} not square brackets []


--- In flexcoders@yahoogroups.com, "arieljake" <[EMAIL PROTECTED]> wrote:
>
> I have an hslider with two tabs.
> 
> I am trying to create a label next to the hslider to display the
> values it has set.
> 
> We access the values of the hslider using the values array. But we
> can't bind when using square brackets.
> 
> what do we do?
>




Re: [flexcoders] Flex + WebORB for PHP, A very strage problem

2008-06-05 Thread Manu Dhanda

Hii,

I tried it the same way as suggested by Uber Nick. But the solution din't
worked until I made some changes in my database field types as well as on my
Flex VO class.
Now I set this field as integer in db and Number in my VO class and
receiving the values as Number.

like below:

vo.aircon = int(list[i].aircon);

Now, flex can easily interpret a number other than ZERO as TRUE and Numbers
ZERO as FALSE.

But I suppose, the culprit part remains with the WebORB implementation.

Thanks for helping.
Manu.



jmfillman wrote:
> 
> Manu,
> 
> First thing I'd do is trace (list[i].aircon) or bind the 
> ArrayCollection to a dataGrid to see what is actually being returned.
> 
> My suspicion is that you are getting the correct true and false data 
> in the result, but as Uber_Nick suggested, it's a string value, so 
> you'll need to add an if statement, like this:
> 
> if (list[i].aircon == 'true') {
> vo.aircon = true;
> }
> else if (list[i].aircon == 'false') {
> vo.aircon = false;
> }
> 
> JF
> --- In flexcoders@yahoogroups.com, Manu Dhanda <[EMAIL PROTECTED]> 
> wrote:
>>
>> 
>> Hii..
>> 
>> Anyone of you experts with a solution for my problem??
>> Am really worried for this little boolean problem.
>> 
>> Manu.
>> 
>> 
>> 
>> Uber_Nick wrote:
>> > 
>> > Manu,
>> > 
>> > Note the following.
>> > trace(Boolean('TRUE')); // returns true
>> > trace(Boolean('FALSE')); // also returns true
>> > 
>> > Flex is interpreting the result from your PHP call as a String.  
> Try
>> > returning lower-case 'true' and 'false'.  Also, try using:
>> > list[i].aircon as Boolean 
>> > instead of:
>> > Boolean(list[i].aircon)
>> > The former will not always convert to true (but will return null 
> if it
>> > can't convert).  Lastly, if you can't make it work, just try this
>> > workaround:
>> > vo.aircon = (''+list[i].aircon).toLowerCase()=='true';
>> > 
>> > -Nick Matelli
>> > Amentra, Inc
>> > 
>> > --- In flexcoders@yahoogroups.com, Manu Dhanda  
> wrote:
>> >>
>> >> 
>> >> Code for my Responder, where I am receiving the result:
>> >>   public function result(data:Object):void
>> >>   {
>> >>   //TODO: implement function
>> >>   var objList:ArrayCollection = new 
> ArrayCollection();
>> >>   var list:ArrayCollection = new ArrayCollection
> (data.result as Array);
>> >>   var vo:FlatVO;
>> >>   for(var i:int=0; i> >>   vo = new FlatVO();
>> >>   vo.userId = int(list[i].userId);
>> >>   vo.aircon = Boolean(list[i].aircon);
>> >>   objList.addItem(vo);
>> >>   }
>> >> 
>> >> In here, I supposed to get vo.aircon as boolean[values as 
> true/false for
>> >> different rows/objects in FlatVO]. But, the strange thing is 
> that I am
>> >> receiving all the values for my boolean type as TRUE only.
>> >> 
>> >> I had verified on my server side PHP code, and it is returning 
> the
>> >> corresponding values fine [as in TRUE and FALSE accordingly].
>> >> 
>> >> I am using WebORB for PHP with Flex. and in there, I had 
> verified in the
>> >> Services as well, that my service returning this object has the 
> right
>> >> values. Then how come I am receiving all the values as TRUE, I 
> can not
>> >> understand this.
>> >> 
>> >> Any help will be great.
>> >> Thanks.
>> >> 
>> >> Igor Costa-2 wrote:
>> >> > 
>> >> > If you paste a part of your code someone here in the list can
>> > answer you
>> >> > but
>> >> > it's hard to get what you really need.
>> >> > 
>> >> > 
>> >> > Regards
>> >> > Igor
>> >> > 
>> >> > On Tue, Jun 3, 2008 at 11:45 AM, Manu Dhanda 
>> >> > wrote:
>> >> > 
>> >> >>
>> >> >> Hii,
>> >> >>
>> >> >> In short, In Weborb Mgmt Services, I can see the object 
> having a
>> > value of
>> >> >> boolean type correctly.( that is it is returned correctly from
>> > the db).
>> >> >> But when I receive it on Flex side, all is returned as true.
>> >> >>
>> >> >> How should I resolve this?
>> >> >>
>> >> >> Appreciate your time.. to respond it.
>> >> >>
>> >> >> thanks.
>> >> >>
>> >> >> --
>> >> >> View this message in context:
>> >> >>
>> > http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strage-
> problem-tp17625304p17625304.html
>> >> >> Sent from the FlexCoders mailing list archive at Nabble.com.
>> >> >>
>> >> >> 
>> >> >>
>> >> > 
>> >> > 
>> >> > 
>> >> > -- 
>> >> > 
>> >> > Igor Costa
>> >> > www.igorcosta.com
>> >> > www.igorcosta.org
>> >> > 
>> >> > 
>> >> 
>> >> -- 
>> >> View this message in context:
>> > http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strange-
> problem-tp17625304p17631029.html
>> >> Sent from the FlexCoders mailing list archive at Nabble.com.
>> >>
>> > 
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context: http://www.nabble.com/Flex-%2B-WebORB-
> for-PHP%2C-A-very-strange-problem-tp17625304p17672147.html
>> Sent from the FlexCoders ma

[flexcoders] know if .browse() was executed or not

2008-06-05 Thread David Pariente
Hello everyone,

in my project i need to know wether a fileReference Object did or didn't made a 
.browse() function.

The point is that i have a form with several fields for choose files. Those 
files i must send them later. So then i need a way to know if user did actually 
choose a file to upload, or not yet.

I was trying checking for some property from fileReference object, like for 
example .name, so if no name on the object, would mean they didn't select 
anything there. But accessing the name property when no file choosen throws an 
IllegalOperationError.

Anyone has idea how to know if file was selected or not???

lots of thnx.



  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

Re: [flexcoders] Re: Amazing tool for Flex (Firebug for Flex)

2008-06-05 Thread Josh McDonald
Might have to give it a try again next time I'm having troubles like that.
Last time I added it to a project it simply mysteriously killed design mode
in the builder, and didn't really do much else ;-)

-Josh

On Fri, Jun 6, 2008 at 1:06 AM, x77686d <
[EMAIL PROTECTED]> wrote:

>   I gave this tool, FlexSpy, a spin just now. It's dead simple to use
> and works great.
>
> Here's a quote from the installation instructions that describes it
> well: "Flex-Spy allows you to inspect and dynamically change most
> properties and styles of the visual components in your Flex
> application. You can - for example - try out a specific width or a
> background color for your component before changing it in your code."
>
> Thanks to aranud for cooking this up and Andrew for pointing it out!
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

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


Re: [flexcoders] Re: Is there a flex based Tag Cloud component?

2008-06-05 Thread Josh McDonald
You could use a grid full of Labels a custom UIComponent full of
UITextfFelds, or you could most likely get away with basing it on the
RichTextEditor component with a little thought.

-Josh

On Fri, Jun 6, 2008 at 1:29 AM, Body Works Studio <[EMAIL PROTECTED]>
wrote:

>   Thanks for the link, but thats a little to much. I just need to
> reproduce the typical tag cloud you see on a lot of blogs. I have the
> array of tags and will be adding in scores on how relevant they are. I
> think what I need to really know is what component will work. I am
> thinking make a label text will equal the text value, and size and
> style will be figured based on the score. The question is what
> component can I lay it out in so it auto wraps.
>
> Any ideas?
>
> Thanks for your time
> Jeff
>
>
> --- In flexcoders@yahoogroups.com , "Andrew
> Wetmore" <[EMAIL PROTECTED]> wrote:
> >
> > Are you susceptible to coding the thing in SwishMax and then using the
> > resulting Flash movie as a plugin? Here is part one of a two-part
> tutorial
> > about building a really cool linksphere:
> >
> > http://blog.swishzone.com/?p=73
> >
> >
> >
> >
> > --
> > Andrew Wetmore
> > User Experience Director
> > Open Learning Exchange - www.ole.org
> > 978-319-7324
> >
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

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


Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Josh McDonald
That's good to know, cheers :)

On Fri, Jun 6, 2008 at 12:55 AM, dnk <[EMAIL PROTECTED]> wrote:

>   FYI,
>
> VMWare fusion 2 (now in beta) apparently has dual monitor support in VM's.
>
> dnk
>
>
> On 5-Jun-08, at 6:11 AM, Josh McDonald wrote:
>
> The only real problem was the lack of support for dual monitors.
>
> -Josh
>
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

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


[flexcoders] Re: hiding a cell within a datagrid dynamically

2008-06-05 Thread jmfillman
Anthony,

If you are passing the data from the columns of each row to the 
itemRenderer, you should be able to set visibility conditions from the 
itemRenderer.

If you post your code, I or someone else here might be able to provide 
a more specific suggestion.

JF
--- In flexcoders@yahoogroups.com, "anthony_morsey" <[EMAIL PROTECTED]> wrote:
>
> I have a datagrid with multiple columns and rows.  One of the columns
> contains a checkbox which is rendered with an itemRenderer.  I'd like
> to conditionally hide some of these checkboxes based on values from
> other columns with the same row.
> 
> Any ideas?
> 
> Thanks
>




  1   2   >