[flexcoders] Re: Anyone using Flex with LCDS & ColdFusion

2009-05-08 Thread Brendan Meutzner
LiveCycle DataServices ES... comes packaged w/ Coldfusion installation, or on 
it's own integrated with Tomcat or such...

What do you want to know re: the configuration?



--- In flexcoders@yahoogroups.com, Charles Parcell  wrote:
>
> I am going to go ahead and out myself.  What is LCDS?  Could you explain
> what this configuration is?
> 
> Charles P.
> 
> 
> On Fri, May 8, 2009 at 12:11 PM, Brendan Meutzner wrote:
> 
> >
> >
> > Hi All,
> > I've already got another post up with a conundrum I'm facing with LCDS and
> > ColdFusion, but it's not the first question I've posted over the last year
> > which has gone unanswered.
> >
> > So... my second question is... Is anyone out there using this particular
> > setup?  I never see any posts relating to this, and as I already mentioned,
> > there's not a lot of feedback when I bring up questions.  So if you're using
> > these technologies, throw in a reply to this thread... I wouldn't think I'm
> > the only person facing difficulties with this, so it'd be nice to hook up
> > with other folks who are doing the same thing.
> >
> >
> > Brendan
> >
> >
> > --
> > Brendan Meutzner
> > http://www.meutzner.com/blog/
> > http://www.riajobs.com
> >
> >
> > 
> >
>




[flexcoders] using "as" breaks data binding?

2009-05-08 Thread Pan Troglodytes
I've run across some peculiar behavior and I am trying to figure out if I
should report it and if so, how exactly to explain it.  Given these two bits
of code:

*TestObject.as:*
package
{
  public class TestObject
  {
[Bindable] public var a:uint = 2;
[Bindable] public var b:uint = 3;
[Bindable] public var x:uint = 1;
  }
}

*Main Application:*

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

  
  

  

  
  
  

  

  
  


If you run this application, you get the following warnings:
warning: unable to bind to property 'b' on class
'GenericTest_inlineComponent1'
warning: unable to bind to property 'b' on class
'GenericTest_inlineComponent1'
warning: unable to bind to property 'b' on class
'GenericTest_inlineComponent1'
warning: unable to bind to property 'b' on class
'GenericTest_inlineComponent1'
warning: unable to bind to property 'b' on class
'GenericTest_inlineComponent1'
warning: unable to bind to property 'b' on class
'GenericTest_inlineComponent1'

There's a couple of things that stand out here.  First, it doesn't complain
about properties "x" or "a".  The reason it doesn't complain about property
"a" is that I used "TestObject(data).a" instead of "(data as
TestObject).a".  If you change it to the other way around, you will get a
warning on "a" as well.  I find this rather bizarre, as I thought there was
no functional difference to the two, other than "as" returning null if the
object wasn't of the appropriate type rather than just erroring out like
straight type coercion does.  But type coercion/as are very (ahem) "lightly"
documented so I admit I don't know a lot.  But I don't think it's because of
the null problem, since you can replace it with "TestObject(null).b" and it
stops giving the warning.

The second weird thing is that it doesn't complain about "x" when using
"(data as TestObject).x" like it does with a.  As you can see, it's claiming
this error is on GenericTest_inlineComponent1.  This is significant because
it appears that it's instead doing some binding to the "x" property on the
item renderer, which is *very* odd.  You can try this yourself by changing
"x" to other strings.  Ones where there is a property of HBox named the same
thing won't give you a warning.  Others will.

Yet for all this griping, it seems the data binding IS working.  If you
click on the button, you'll see all the labels in the list change as the
data is being changed.

So, anyone want to shed some light on these two behaviors?

-- 
Jason


Re: [flexcoders] Setting currentState from a function located a child mxml file

2009-05-08 Thread Charles Parcell
Application.application.currentState = 'invoiceDetailsInfoPanel';

or

parentDocument.currentState = 'invoiceDetailsInfoPanel';

Either of these work for you?

Charles P.



On Fri, May 8, 2009 at 4:05 PM, rdell123  wrote:

> Is it possible to set the currentState from a function located in a child
> mxml file when the States are in the parent file?
>
> INVOICES.MXML
> ---
> 
> 
> 
>  doubleClickEnabled="true" itemDoubleClick="drillDown(event)">
>
> dataField="agency"/>
>
> 
> ---
>
> MAINFORM.MXML
> ---
> 
> 
>
> value="290"/>
>
> text="Yahoo"/>
>
>
> 
> 
>
>
>
> 
> 
> 
>


[flexcoders] change color text when doing toggle The button

2009-05-08 Thread ade_huh
hello there.
do u know how to change color text when doing 'toggle function'(it is similar 
'selected function') The button?

thank before



[flexcoders] Collaborative project: realtime ActionScript WMA converter

2009-05-08 Thread tottenkamen
Hi everyone. I'm working on an application that reads MP3 streams and it would 
be even better if it could read in WMA streams (or Real for that matter), 
decode them, and play them back to the user. My initial thoughts are that this 
is not impossible. It SHOULD be a matter of loading the WMA in as a URLStream 
or Socket and decoding the result into something the Sound object can play. Is 
anyone familiar with source that would do this decoding, perhaps in another 
language that could be ported to AS3? Would anyone be interested in joining me 
on coding an open-source version of this?



[flexcoders] Setting currentState from a function located a child mxml file

2009-05-08 Thread rdell123
Is it possible to set the currentState from a function located in a child mxml 
file when the States are in the parent file?

INVOICES.MXML
---








---

MAINFORM.MXML
---
















---



RE: [flexcoders] dynamic labels with public variable

2009-05-08 Thread Tracy Spratt
{Braces} are not legal in Actionscript except to create a new Object, or in
literal XML.

 

You probably want something like:

this["public_" + whichmeal + "_item1_label"]

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jason B
Sent: Friday, May 08, 2009 9:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dynamic labels with public variable

 






I'm trying to set a set of labels but its based on public variable
whichmeal.

Is there a special way to use these labels dynamically?

try{
this["public_{whichmeal}_item1_label"] = item1_label.text;
this["public_{whichmeal}_serving1_label"] = serving1_label.text;
}catch(err:Error){
Alert.show(err.toString());
}

Shows
Reference Error 1069
Reference Error 1056





[flexcoders] dynamic labels with public variable

2009-05-08 Thread Jason B
I'm trying to set a set of labels but its based on public variable whichmeal.

Is there a special way to use these labels dynamically?


try{
  
this["public_{whichmeal}_item1_label"] = item1_label.text;  
this["public_{whichmeal}_serving1_label"] = serving1_label.text;
  }catch(err:Error){
Alert.show(err.toString());
  }


Shows
Reference Error 1069
Reference Error 1056





[flexcoders] Re: Tracking a sprite's position

2009-05-08 Thread Tim Hoff

Cool Aaron.  Tricky stuff indeed.  This really reminds me of a iFrame.

-TH

--- In flexcoders@yahoogroups.com, Aaron Hardy  wrote:
>
> Tim, I would need to test it out, but off the top of my head I don't
think
> binding would do the job. Let's say Sprite A was scaled up. Even
though
> Sprite C's coordinates in relation to UIComponent B have changed, its
actual
> coordinates in relation to Sprite B (its parent) have not changed,
therefore
> I don't think any bindings would trigger.
>
> Alex, that would work. I won't be able to just watch the event coming
from
> Sprite C since it may actually be one of its parents that changes its
scale
> or position, but if I take a broader approach of where I watch for
bubbling
> events I think it would do the trick. Its unfortunate I can't do it
just
> with regular sprites but I guess that's why they're lightweight.
>
> Thanks guys. I don't want to use much more of your time. I really
> appreciate your input and you've given me some good fuel to work with.
>
> Aaron
>
> On Thu, May 7, 2009 at 11:40 PM, Tim Hoff timh...@... wrote:
>
> >
> >
> >
> > This all sounds like overkill; since you are really only interested
in
> > UIComponentB knowing the position of SpriteC. If you make SpriteC
> > public, is it possible to bind the x/y values for UIComponentB to
> > uiComponentA.spriteC.x and y (localToContent)?
> >
> > -TH
> >
> >
> > --- In flexcoders@yahoogroups.com ,
Alex
> > Harui aharui@ wrote:
> > >
> > > If you can use a subclass of Sprite that dispatches the events you
> > need, that will be the least expensive solution in terms of CPU
usage.
> > If you can't use a subclass or you won't have so many Sprites that
> > polling will matter, polling will probably be sufficient.
> > >
> > > Alex Harui
> > > Flex SDK Developer
> > > Adobe Systems Inc.
> > > Blog: http://blogs.adobe.com/aharui
> > >
> > > From: flexcoders@yahoogroups.com 
[mailto:
> > flexcoders@yahoogroups.com ]
> > On Behalf Of Tim Hoff
> > > Sent: Thursday, May 07, 2009 9:32 PM
> > > To: flexcoders@yahoogroups.com 
> > > Subject: [flexcoders] Re: Tracking a sprite's position
> > >
> > >
> > >
> > >
> > >
> > > My thought was that since all of the Sprites of UIComponentA were
> > > children, they would invalidate the display list of UIComponentA
> > > whenever they were changed. I forget that Sprites are their own
beast.
> > > If you can't find a way to listen for changes to all of the
Sprite's
> > > position/size, and trigger action on the common canvas, enterframe
> > > starts to sound more and more appealing. I'm still wondering
though,
> > > what you plan to do onEnterFrame, in order to re-position
> > UIComponentB.
> > > For a parent or sibling to know about a component's state (or it's
> > > children), events and public vars/methods are usually employed.
I'm
> > > interested to hear what you end up doing for this edge-case.
> > > Challenging for me, I can say.
> > >
> > > -TH
> > >
> > > --- In
> > flexcoders@yahoogroups.com  > flexcoders%40yahoogroups.com >,
Aaron
> >
> > Hardy aaronius9er@ wrote:
> > > >
> > > > What would be invalidating UIComponent A's display list? It's my
> > > > understanding that if Sprite B were to be scaled (which is
> > likely--it
> > > is
> > > > a graphic editing app afterall) but not Sprite A, the display
list
> > of
> > > > UIComponent A would never be invalidated, so updateDisplayList
> > > wouldn't
> > > > be called in that case. The same is true if Sprite C were scaled
or
> > > > moved but not any members of its parent chain. Yet UIComponent B
> > still
> > > > needs to stay stuck to Sprite C. Again, I definitely could be
wrong.
> > > >
> > > > I guess the simple answer would be to make any tool or button or
> > > > anything that scales or moves anything inside UIComponent A
trigger
> > > > UIComponent B to update its location, but I can already think of
> > quite
> > > a
> > > > fiew places that would have to happen and it seems like future
> > > > developers would intrinsically have to know that if they make a
new
> > > tool
> > > > that modifies the position/scale of any of the elements that
they
> > need
> > > > to trigger UIComponent B to update its position. Ugh. That's
what
> > I'm
> > > > trying to avoid.
> > > >
> > > > Keep 'em coming if you've got 'em. It's not a dire situation so
I'll
> > > > save my dire need credits for later if needed. :)
> > > >
> > > > Aaron
> > > >
> > > > Tim Hoff wrote:
> > > > >
> > > > >
> > > > >
> > > > > Actually, in thinking about it a bit more, why not dispatch a
> > custom
> > > > > event in the updateDisplayList function of UIComponentA; that
> > > contains
> > > > > the coordinates of SpriteC. This will happen a lot less
frequently
> > > than
> > > > > listening for the enterFrame event.
> > > > >
> > > > > -TH
> > > > >
> > > > > --- In
> > flexcoders@yahoogroups.com  > flexcoders%40yahoogroups.com >
> > > > >
,
> > "Tim Hoff" TimHoff@ wrote:
> > > > > >
> > > >

[flexcoders] Form layout question

2009-05-08 Thread markgoldin_2000
Somehow labels in my form are all left aligned, while according to this:

Aligning and spacing Form container children

All Form container labels are right-aligned, and all children are left-aligned 
in the container. You cannot override this alignment

it should be right-aligned.





[flexcoders] Form layout question

2009-05-08 Thread markgoldin_2000
Can fields in a form be alligned like this:

A   ___

BB   ___

CCC ___

D___

or like this:

   A  ___

 BB  ___

CCC  ___

  D  ___



Thanks





[flexcoders] Form layout question

2009-05-08 Thread markgoldin_2000
Can fields in a form be alligned like this:

A  ___

BB ___

CCC___

D  ___

or like this:

  A___

 BB___

CCC___

  D___



Thanks  



RE: [flexcoders] Communication between SWF and HTML Window - CloseEvent

2009-05-08 Thread Tracy Spratt
Use ExternalInterface to call javascript code in the html wrapper that
actually opens the new window, don't use navigateToURL().

 

This is basically the same as what you are doing, but using the existing
html wrapper window to launch the new window.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of olearix
Sent: Friday, May 08, 2009 8:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Communication between SWF and HTML Window - CloseEvent

 






Hi,

For one of my flex project, I have to communicate with an HTML Window popup.
To open it, it's not a problem, but specificaly I have to add a listener to
catch event when this Window close.

I saw that you can communicate with your own HTML page by integrating some
JavaScript functionnalities, but the problem is that I have to open an
external window that is not mine.

I have got a "dirty" solution but I don't like it: open one own window popup
wich contains JavaScript function to communicate with swf, and this window
will open the desired window that I want to listen. When This window close,
my own window catch the event and dispatch it to swf throw JS function. I
don't know if my explication are very clear, but that is the idea and I
don't like it.

Please if somebody can tell me if it's possible to catch a closer event of
an external window?

Thanks for your answerds

Xavi





RE: [flexcoders] Re: Sending textinput id

2009-05-08 Thread Tracy Spratt
And if you do need to just send changed items, put a, "isModified" property
on the VO and set it when the data is updated..

 

I pass all edits through a single function, and since I usually use xml, I
can set a datamodified="true" attribute on any changed node.

 

When I send the data to the server, a function extracts the modified nodes
and builds an update xml structure.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tim Hoff
Sent: Friday, May 08, 2009 1:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Sending textinput id

 







Hi Gustavo,

I'm not sure of your implementation, but many times it's easier to
persist a working copy of the data in a value object (VO). Each
property in the object, that is editable in the form, is bound to it's
associated control. When a control changes, update the associated
property in the VO. This way, you don't need to keep track of each
change to the object. When the user submits the form, you just send the
entire VO to the server for update. This assumes though, that you don't
have a special need to keep a running tally of the changes.

-TH

--- In flexcod...@yahoogro  ups.com,
"valdhor"  wrote:
>
> If you use the change event of the text input then the id is at
event.target.id
>
>
> Steve
>
>
> --- In flexcod...@yahoogro  ups.com,
"Gustavo" xyrer@ wrote:
> >
> > Hi, I have a form and I would like to add the textinput id to an
array so I know which fields were edited, I trigger the change event on
each one but I can't send the textinput id via the event.
> > any of this I'm saying makes sense? and if it does, how do I do it,
or maybe there is a better way to update only the fields edited in a
form?
> >
> > Some light about this would be really appreciated. thanks.
> >
>





Re: [flexcoders] where does AdvancedDataGridColumn.id come from?

2009-05-08 Thread Pan Troglodytes
Well, there is an there isn't.  UIComponent actually defines a property of
called "id."  AdvancedDataGridColumn isn't a UIComponent, its a descendant
of CSSStyleDeclaration, which does not define "id", nor does its ancestors.
So I guess I really knew the answer before I asked it in that it's a bit of
a kludge to let you name objects in MXML so you can refer to them later.
Then at runtime, this information just isn't there because it really never
existed.


On Fri, May 8, 2009 at 3:08 PM, Charles Parcell wrote:

>
>
> I believe there is an 'id' for every element you add via MXML.
>
> http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_10.html
>
> See the second example on this page.
>
> Charles P.
>
>
>
> On Fri, May 8, 2009 at 4:01 PM, Pan Troglodytes wrote:
>
>>
>>
>> This puzzles me a bit.  There is no such property as "id" on
>> AdvancedDataGridColumn or its ancestors.  So why doesn't the compiler barf
>> and give you an unknown property at compile time (it does at runtime)?  Is
>> this some kind of kludge in FB such that it always allows an element called
>> "id" to be stuck on some components (like CSSStyleDeclaration descendants)?
>>
>> --
>> Jason
>>
>>
>>
>  
>



-- 
Jason


Re: [flexcoders] scrollbar inside "100%" sized background image in container?

2009-05-08 Thread Charles Parcell
This is dumb, I know, but put your Canvas (with the scrollbars) inside
another Canvas and apply the background to the parent Canvas so that it
never has to deal with scrollbar scaling. And set the child Canvas
background to transparent.

Charles P.


On Thu, May 7, 2009 at 4:54 PM, gwangdesign  wrote:

>
>
> Hi,
>
> I am trying to get the scrollbar for a container (can be either a Canvas or
> VBox) "inside" my background image. Basically my Canvas has a background
> image which I set background-size to "100%". Flex scales the background
> image to fit the whole component when there is no scroll bar. But when the
> scroll bar appears, the image "shrinks" to allow space for the scroll bar.
>
> So say if the Canvas has a width of 200 px, the background image has a
> width of 200 px when there is no scrollbar. If the scrollbar is 16 pixels
> wide, the background image would become 200 - 16 = 184 px, as opposed to
> staying 200px.
>
> I think I can get around this by using nested containers. Just to want to
> make sure that I am not missing anything obvious.
>
> Thanks.
>
>  
>


Re: [flexcoders] where does AdvancedDataGridColumn.id come from?

2009-05-08 Thread Charles Parcell
I believe there is an 'id' for every element you add via MXML.

http://livedocs.adobe.com/flex/3/html/help.html?content=advdatagrid_10.html

See the second example on this page.

Charles P.


On Fri, May 8, 2009 at 4:01 PM, Pan Troglodytes wrote:

>
>
> This puzzles me a bit.  There is no such property as "id" on
> AdvancedDataGridColumn or its ancestors.  So why doesn't the compiler barf
> and give you an unknown property at compile time (it does at runtime)?  Is
> this some kind of kludge in FB such that it always allows an element called
> "id" to be stuck on some components (like CSSStyleDeclaration descendants)?
>
> --
> Jason
>
>
> 
>


Re: [flexcoders] cover file to ByteArray in Air.

2009-05-08 Thread Charles Parcell
Wouldn't writeUTF() work?

or you can do myByteArray.toString()


Charles P.


On Fri, May 8, 2009 at 11:41 AM, markflex2007 wrote:

> Hi,
>
> I try to use File class,FileStream and ByteArray Class to convert a text
> file( test.txt) to ByteArray.  I also need covert the ByteArray back to text
> file.
>
> Please give a idea how to do this.Thanks
>
> Mark
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


[flexcoders] where does AdvancedDataGridColumn.id come from?

2009-05-08 Thread Pan Troglodytes
This puzzles me a bit.  There is no such property as "id" on
AdvancedDataGridColumn or its ancestors.  So why doesn't the compiler barf
and give you an unknown property at compile time (it does at runtime)?  Is
this some kind of kludge in FB such that it always allows an element called
"id" to be stuck on some components (like CSSStyleDeclaration descendants)?

-- 
Jason


[flexcoders] Re: Does ADG work with Gumbo?

2009-05-08 Thread markgoldin_2000
I did not compile it outside of FB.
But I have set it up in a way it compiles with no errors. That includes 
pointing a project to FP 10.

--- In flexcoders@yahoogroups.com, Charles Parcell  wrote:
>
> Have you tried trying to compile outside of Flex Builder? Just to check and
> see. Again, I don't know why that would be the problem but I am trying to
> come up with anything that may be causing the issue for you.
> 
> Have you removed the 3.x SDK from the library list of your application?
> Perhaps there is a conflict of some sort.
> 
> Have you set the compiler to build for Flash 10 rather than Flash 9?  i saw
> a thread on this forum or another just today about how to change this.
> 
> Charles P.
> 
> 
> 
> On Fri, May 8, 2009 at 2:41 PM, markgoldin_2000
> wrote:
> 
> > But I do have Flex 3 Professional.
> >
> > --- In flexcoders@yahoogroups.com, Charles Parcell 
> > wrote:
> > >
> > > Could it be a professional license thing.  Not sure why that would be the
> > > case for an unreleased SDK, but...
> > >
> > > Charles P.
> > >
> > >
> > > On Fri, May 8, 2009 at 12:05 PM, markgoldin_2000
> > > wrote:
> > >
> > > > That's the error I am getitng:
> > > > TypeError: Error #1007: Instantiation attempted on a non-constructor.
> > > >at
> > > >
> > mx.controls::AdvancedDataGridBaseEx/getSeparator()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4149]
> > > >at
> > > >
> > mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4186]
> > > >at
> > > >
> > mx.controls::AdvancedDataGrid/createHeaderSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:1774]
> > > >at
> > > >
> > mx.controls::AdvancedDataGridBaseEx/drawSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4110]
> > > >at
> > > >
> > mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:1880]
> > > >at
> > > >
> > mx.controls::AdvancedDataGrid/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:6007]
> > > >at
> > > >
> > mx.controls.listClasses::AdvancedListBase/validateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:3072]
> > > >at
> > > >
> > mx.managers::LayoutManager/validateDisplayList()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:657]
> > > >at
> > > >
> > mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:734]
> > > >
> > > > Thanks
> > > >
> > >
> >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >
> >
> >
> >
>




Re: [flexcoders] Re: Add items to an array list as a child

2009-05-08 Thread Charles Parcell
http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=62&productId=2

or

http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Parts&file=cellrenderer_072_37.html

and a nice little bonus feature if you like...

http://blog.flexexamples.com/2008/01/11/displaying-the-number-of-children-in-each-branch-of-a-flex-tree-control/


Charles P.



On Fri, May 8, 2009 at 3:39 PM, timgerr  wrote:

> That did it, now how do you get the text to change color in your code here
> in the Groups???
>
> thanks,
> timgerr
>
>
> --- In flexcoders@yahoogroups.com, Charles Parcell 
> wrote:
> >
> > Going out on a limb here but try changing the one line of code that
> injects
> > an child object to...
> >
> > Object(myCollection[0]).children= obj;
> >
> > Charles P.
> >
> >
> >
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


[flexcoders] Re: ASP.NET .ashx handler - POST variables not working

2009-05-08 Thread valdhor
I don't use .NET but just looking at your code I think you are using the wrong 
API calls.

I would assume the context.Request.QueryString would be getting the variables 
from the actual query string in the URL - the part after the ?.

Usually, POST variables are populated elsewhere. For example, in PHP, the 
QueryString variables are available in the $_GET array and the POST variables 
are available in the $_POST array.

Looking at the .NET documentation I think you should be using 
context.Request.form 
(http://msdn.microsoft.com/en-us/library/system.web.httprequest.form(VS.71).aspx).


HTH


Steve


--- In flexcoders@yahoogroups.com, "Matthew A. Wilson"  wrote:
>
> I created a web handler (.ashx) in ASP.NET and it takes 4 post variables, all 
> strings.
> 
> When I manually type in the URL with the variables 
> (name=this&email=that&comments=this) it works fine, but when I try to POST 
> those variables in an HTTPRequest in Flex, my web handler can't "see" the 
> variables. It breaks on the first line and says, there is no "name" variable, 
> i.e. - no instance of an object.
> 
> What am I doing wrong? Does the Flex Request have to be formatted differently 
> for .NET? It works fine in PHP.
> 
> 
> 
> public void ProcessRequest (HttpContext context) {
> string sName = context.Request.QueryString["name"].ToString();
> string sEmail = context.Request.QueryString["email"].ToString();
> string sType = context.Request.QueryString["type"].ToString();
> string sComment = context.Request.QueryString["comment"].ToString();
> 
> ...
> ...
> 
> }
> 
> 
>




[flexcoders] Re: Add items to an array list as a child

2009-05-08 Thread Tim Hoff

When I say XML, I mean XMLListCollection.

-TH

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
>
> Honestly, if you're looking to create a hierarchical structure, for
use
> in a tree control, you would be better searved using XML. The way you
> are setting up your ArrayCollection, you would have to add additional
> collections as children of your items. This is much easier, and works
> better with trees, if you work with nodes instead.
>
> -TH
>
> --- In flexcoders@yahoogroups.com, Charles Parcell pokemonkiller@
> wrote:
> >
> > Going out on a limb here but try changing the one line of code that
> injects
> > an child object to...
> >
> > Object(myCollection[0]).children= obj;
> >
> > Charles P.
> >
> >
> >
> > On Fri, May 8, 2009 at 3:04 PM, timgerr tgallagher@ wrote:
> >
> > > Thanks for the response, I have a question about arraycollection
and
> > > trees. If I do this:
> > >
> > > var myCollection:ArrayCollection = new ArrayCollection([{first:
> 'Matt',
> > > last:'Matthews'}, {first: 'Tom', last: 'Jones'}]);
> > >
> > > var obj:Object = new Object();
> > > obj.first = 'lisa';
> > > obj.last = 'griffen';
> > >
> > > Object(myCollection[0]).obj = obj;
> > >
> > > then create a tree:
> > >  > > dataProvider="{myCollection}"
> > > labelFunction="GetTreeLable"
> > > click="ItemClicked(event)">
> > >
> > > I only see the first 2 names, Matt and Tom. How do I have the new
> > > object show as a child of the Matt?
> > >
> > > Thanks,
> > > timgerr
> > >
> > > PS, how did you do he color in your code
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > >
> > > >
> > > > Ah, ok. The first item in the arrayCollection is an Object. So,
> you
> > > > would have to do something like this:
> > > >
> > > > var myCollection:ArrayCollection = new ArrayCollection([{first:
> > > 'Matt',
> > > > last:'Matthews'}, {first: 'Tom', last: 'Jones'}]);
> > > >
> > > > var obj:Object = new Object();
> > > > obj.first = 'lisa';
> > > > obj.last = 'griffen';
> > > >
> > > > Object(myCollection[0]).obj = obj;
> > > >
> > > > -TH
> > > >
> > > > --- In flexcoders@yahoogroups.com, "timgerr" tgallagher@ wrote:
> > > > >
> > > > > I want to add it as a child to the first item in the
> arraycollection
> > > > (myCollection[0]). Can this be done???
> > > > >
> > > > > Thanks,
> > > > > timgerr
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > > > >
> > > > > >
> > > > > > Have you tried myCollection.addItemAt(obj,0);?
> > > > > >
> > > > > > -TH
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com, "timgerr" 
> wrote:
> > > > > > >
> > > > > > > I want to add items to an arraycollection as a child
> > > > > > >
> > > > > > >
> > > > > > > --- In flexcoders@yahoogroups.com, "timgerr" tgallagher@
> wrote:
> > > > > > > >
> > > > > > > > Hello all,
> > > > > > > > I have a question for you all. I was wondering how I can
> add a
> > > > child
> > > > > > to an object within a arraycollection. Here is what I mean:
> > > > > > > > var myCollection:ArrayCollection = new
> > > ArrayCollection([{first:
> > > > > > 'Matt', last: 'Matthews'}, {first: 'Tom', last: 'Jones'}]);
> > > > > > > >
> > > > > > > > var obj:Object = new Object();
> > > > > > > > obj.first = 'lisa';
> > > > > > > > obj.last = 'griffen';
> > > > > > > >
> > > > > > > > I would like to add the new object to be a child of the
> first
> > > > item
> > > > > > in the array list. Can this be done??
> > > > > > > >
> > > > > > > > Thanks,
> > > > > > > > timgerr
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > Flexcoders Mailing List
> > > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Alternative FAQ location:
> > >
>
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
\
> 1e62079f6847
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> Groups
> > > Links
> > >
> > >
> > >
> > >
> >
>





[flexcoders] Re: Add items to an array list as a child

2009-05-08 Thread timgerr
That did it, now how do you get the text to change color in your code here in 
the Groups???

thanks,
timgerr


--- In flexcoders@yahoogroups.com, Charles Parcell  wrote:
>
> Going out on a limb here but try changing the one line of code that injects
> an child object to...
> 
> Object(myCollection[0]).children= obj;
> 
> Charles P.
> 
> 
> 




Re: [flexcoders] ASP.NET .ashx handler - POST variables not working

2009-05-08 Thread Charles Parcell
Well, if you are POSTing from Flex and your ASP.NET is looking at the query
string it will of course not find it.  GET puts content in the query string.
Either change how Flex is sending the data (change it to GET) or change how
your ASP is looking for the data (look at the POST data).

I am not familiar with ASP.NET syntax but in PHP it is the difference
between $_GET and $_POST.

Charles P.



On Fri, May 8, 2009 at 12:47 PM, Matthew A. Wilson wrote:

> I created a web handler (.ashx) in ASP.NET and it takes 4 post variables,
> all strings.
>
> When I manually type in the URL with the variables
> (name=this&email=that&comments=this) it works fine, but when I try to POST
> those variables in an HTTPRequest in Flex, my web handler can't "see" the
> variables. It breaks on the first line and says, there is no "name"
> variable, i.e. - no instance of an object.
>
> What am I doing wrong? Does the Flex Request have to be formatted
> differently for .NET? It works fine in PHP.
>
> 
>
> public void ProcessRequest (HttpContext context) {
>string sName = context.Request.QueryString["name"].ToString();
>string sEmail = context.Request.QueryString["email"].ToString();
>string sType = context.Request.QueryString["type"].ToString();
>string sComment = context.Request.QueryString["comment"].ToString();
>
> ...
> ...
>
> }
>
> 
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


[flexcoders] Re: Add items to an array list as a child

2009-05-08 Thread Tim Hoff

Honestly, if you're looking to create a hierarchical structure, for use
in a tree control, you would be better searved using XML.  The way you
are setting up your ArrayCollection, you would have to add additional
collections as children of your items.  This is much easier, and works
better with trees, if you work with nodes instead.

-TH

--- In flexcoders@yahoogroups.com, Charles Parcell 
wrote:
>
> Going out on a limb here but try changing the one line of code that
injects
> an child object to...
>
> Object(myCollection[0]).children= obj;
>
> Charles P.
>
>
>
> On Fri, May 8, 2009 at 3:04 PM, timgerr tgallag...@... wrote:
>
> > Thanks for the response, I have a question about arraycollection and
> > trees. If I do this:
> >
> > var myCollection:ArrayCollection = new ArrayCollection([{first:
'Matt',
> > last:'Matthews'}, {first: 'Tom', last: 'Jones'}]);
> >
> > var obj:Object = new Object();
> > obj.first = 'lisa';
> > obj.last = 'griffen';
> >
> > Object(myCollection[0]).obj = obj;
> >
> > then create a tree:
> >  > dataProvider="{myCollection}"
> > labelFunction="GetTreeLable"
> > click="ItemClicked(event)">
> >
> > I only see the first 2 names, Matt and Tom. How do I have the new
> > object show as a child of the Matt?
> >
> > Thanks,
> > timgerr
> >
> > PS, how did you do he color in your code
> >
> >
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Ah, ok. The first item in the arrayCollection is an Object. So,
you
> > > would have to do something like this:
> > >
> > > var myCollection:ArrayCollection = new ArrayCollection([{first:
> > 'Matt',
> > > last:'Matthews'}, {first: 'Tom', last: 'Jones'}]);
> > >
> > > var obj:Object = new Object();
> > > obj.first = 'lisa';
> > > obj.last = 'griffen';
> > >
> > > Object(myCollection[0]).obj = obj;
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com, "timgerr" tgallagher@ wrote:
> > > >
> > > > I want to add it as a child to the first item in the
arraycollection
> > > (myCollection[0]). Can this be done???
> > > >
> > > > Thanks,
> > > > timgerr
> > > >
> > > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > > >
> > > > >
> > > > > Have you tried myCollection.addItemAt(obj,0);?
> > > > >
> > > > > -TH
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, "timgerr" 
wrote:
> > > > > >
> > > > > > I want to add items to an arraycollection as a child
> > > > > >
> > > > > >
> > > > > > --- In flexcoders@yahoogroups.com, "timgerr" tgallagher@
wrote:
> > > > > > >
> > > > > > > Hello all,
> > > > > > > I have a question for you all. I was wondering how I can
add a
> > > child
> > > > > to an object within a arraycollection. Here is what I mean:
> > > > > > > var myCollection:ArrayCollection = new
> > ArrayCollection([{first:
> > > > > 'Matt', last: 'Matthews'}, {first: 'Tom', last: 'Jones'}]);
> > > > > > >
> > > > > > > var obj:Object = new Object();
> > > > > > > obj.first = 'lisa';
> > > > > > > obj.last = 'griffen';
> > > > > > >
> > > > > > > I would like to add the new object to be a child of the
first
> > > item
> > > > > in the array list. Can this be done??
> > > > > > >
> > > > > > > Thanks,
> > > > > > > timgerr
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
> >
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
1e62079f6847
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
Groups
> > Links
> >
> >
> >
> >
>





[flexcoders] AIR fscommand() listener

2009-05-08 Thread tgersic
Hi All,

Does anybody know if it's possible to listen for fscommands from a child .swf 
within an AIR application, much as you could do if you were hosting the .swf 
from within a C++ or C# app? I'm looking at whether or not it's possible to 
build an AIR wrapper for existing .swfs that used to be hosted online, and 
which use fscommands.

Thanks,
Tom



RE: [flexcoders] Re: Help with error

2009-05-08 Thread Jonathon Stierman
I used to run into strange issues like this all the time - after I started 
using the Disable Cache feature Web Developer add-on to Firefox, I've never run 
into it again.

Errors don't just go away - something has to change to fix them. ;)  Preventing 
caching at least ensures that you're getting all your latest updates.

Jonathon

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of markgoldin_2000
Sent: Friday, May 08, 2009 10:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Help with error




This is unbelievable!
I am playing with Gumbo. I was compiling many times, but I was getting this 
error. But now, after I checked my Iframe class (did not do anything just 
opened.). It ran fine. Well, as long as it works...

--- In flexcoders@yahoogroups.com, Tom 
Chiverton  wrote:
>
> On Friday 08 May 2009, markgoldin_2000 wrote:
> > TypeError: Error #1009: Cannot access a property or method of a null object
> > reference.
> > D:\projects\sfcs\UFDPortal\src\IFrame.as:353
>
> I mean, I'm just *guessing* ya know, but might something be null around line
> 353 of your IFrame class ?
>
> --
> Helping to confidentially maintain metrics as part of the IT team of the
> year, '09 and '08
>
> Tom Chiverton
> Developer
> Tel: +44 0161 618 5032
> Fax: +44 0161 618 5099
> tom.chiver...@...
> 3 Hardman Square, Manchester, M3 3EB
> www.Halliwells.com
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England and 
> Wales under registered number OC307980 whose registered office address is at 
> Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list 
> of members is available for inspection at the registered office together with 
> a list of those non members who are referred to as partners. We use the word 
> ?partner? to refer to a member of the LLP, or an employee or consultant with 
> equivalent standing and qualifications. Regulated by the Solicitors 
> Regulation Authority.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and may 
> be confidential or legally privileged. If you are not the addressee you must 
> not read it and must not use any information contained in nor copy it nor 
> inform any person other than Halliwells LLP or the addressee of its existence 
> or contents. If you have received this email in error please delete it and 
> notify Halliwells LLP IT Department on 0870 365 2500.
>
> For more information about Halliwells LLP visit www.Halliwells.com.
>

<><>

[flexcoders] ASP.NET .ashx handler - POST variables not working

2009-05-08 Thread Matthew A. Wilson
I created a web handler (.ashx) in ASP.NET and it takes 4 post variables, all 
strings.

When I manually type in the URL with the variables 
(name=this&email=that&comments=this) it works fine, but when I try to POST 
those variables in an HTTPRequest in Flex, my web handler can't "see" the 
variables. It breaks on the first line and says, there is no "name" variable, 
i.e. - no instance of an object.

What am I doing wrong? Does the Flex Request have to be formatted differently 
for .NET? It works fine in PHP.



public void ProcessRequest (HttpContext context) {
string sName = context.Request.QueryString["name"].ToString();
string sEmail = context.Request.QueryString["email"].ToString();
string sType = context.Request.QueryString["type"].ToString();
string sComment = context.Request.QueryString["comment"].ToString();

...
...

}





Re: [flexcoders] Re: Add items to an array list as a child

2009-05-08 Thread Charles Parcell
Going out on a limb here but try changing the one line of code that injects
an child object to...

Object(myCollection[0]).children= obj;

Charles P.



On Fri, May 8, 2009 at 3:04 PM, timgerr  wrote:

> Thanks for the response, I have a question about arraycollection and
> trees.  If I do this:
>
> var myCollection:ArrayCollection = new ArrayCollection([{first: 'Matt',
> last:'Matthews'}, {first: 'Tom', last: 'Jones'}]);
>
> var obj:Object = new Object();
> obj.first = 'lisa';
> obj.last = 'griffen';
>
> Object(myCollection[0]).obj = obj;
>
> then create a tree:
>  dataProvider="{myCollection}"
> labelFunction="GetTreeLable"
> click="ItemClicked(event)">
>
> I only see the first 2 names, Matt and Tom.  How do I have the new
> object show as a child of the Matt?
>
> Thanks,
> timgerr
>
> PS, how did you do he color in your code
>
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
> >
> >
> > Ah, ok.  The first item in the arrayCollection is an Object.  So, you
> > would have to do something like this:
> >
> > var myCollection:ArrayCollection = new ArrayCollection([{first:
> 'Matt',
> > last:'Matthews'}, {first: 'Tom', last: 'Jones'}]);
> >
> > var obj:Object = new Object();
> > obj.first = 'lisa';
> > obj.last = 'griffen';
> >
> > Object(myCollection[0]).obj = obj;
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "timgerr" tgallagher@ wrote:
> > >
> > > I want to add it as a child to the first item in the arraycollection
> > (myCollection[0]). Can this be done???
> > >
> > > Thanks,
> > > timgerr
> > >
> > > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > > >
> > > >
> > > > Have you tried myCollection.addItemAt(obj,0);?
> > > >
> > > > -TH
> > > >
> > > > --- In flexcoders@yahoogroups.com, "timgerr"  wrote:
> > > > >
> > > > > I want to add items to an arraycollection as a child
> > > > >
> > > > >
> > > > > --- In flexcoders@yahoogroups.com, "timgerr" tgallagher@ wrote:
> > > > > >
> > > > > > Hello all,
> > > > > > I have a question for you all. I was wondering how I can add a
> > child
> > > > to an object within a arraycollection. Here is what I mean:
> > > > > > var myCollection:ArrayCollection = new
> ArrayCollection([{first:
> > > > 'Matt', last: 'Matthews'}, {first: 'Tom', last: 'Jones'}]);
> > > > > >
> > > > > > var obj:Object = new Object();
> > > > > > obj.first = 'lisa';
> > > > > > obj.last = 'griffen';
> > > > > >
> > > > > > I would like to add the new object to be a child of the first
> > item
> > > > in the array list. Can this be done??
> > > > > >
> > > > > > Thanks,
> > > > > > timgerr
> > > > > >
> > > > >
> > > >
> > >
> >
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


[flexcoders] Re: Add items to an array list as a child

2009-05-08 Thread timgerr
Thanks for the response, I have a question about arraycollection and
trees.  If I do this:

var myCollection:ArrayCollection = new ArrayCollection([{first: 'Matt',
last:'Matthews'}, {first: 'Tom', last: 'Jones'}]);

var obj:Object = new Object();
obj.first = 'lisa';
obj.last = 'griffen';

Object(myCollection[0]).obj = obj;

then create a tree:


I only see the first 2 names, Matt and Tom.  How do I have the new
object show as a child of the Matt?

Thanks,
timgerr

PS, how did you do he color in your code


--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
>
> Ah, ok.  The first item in the arrayCollection is an Object.  So, you
> would have to do something like this:
>
> var myCollection:ArrayCollection = new ArrayCollection([{first:
'Matt',
> last:'Matthews'}, {first: 'Tom', last: 'Jones'}]);
>
> var obj:Object = new Object();
> obj.first = 'lisa';
> obj.last = 'griffen';
>
> Object(myCollection[0]).obj = obj;
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "timgerr" tgallagher@ wrote:
> >
> > I want to add it as a child to the first item in the arraycollection
> (myCollection[0]). Can this be done???
> >
> > Thanks,
> > timgerr
> >
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Have you tried myCollection.addItemAt(obj,0);?
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com, "timgerr"  wrote:
> > > >
> > > > I want to add items to an arraycollection as a child
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com, "timgerr" tgallagher@ wrote:
> > > > >
> > > > > Hello all,
> > > > > I have a question for you all. I was wondering how I can add a
> child
> > > to an object within a arraycollection. Here is what I mean:
> > > > > var myCollection:ArrayCollection = new
ArrayCollection([{first:
> > > 'Matt', last: 'Matthews'}, {first: 'Tom', last: 'Jones'}]);
> > > > >
> > > > > var obj:Object = new Object();
> > > > > obj.first = 'lisa';
> > > > > obj.last = 'griffen';
> > > > >
> > > > > I would like to add the new object to be a child of the first
> item
> > > in the array list. Can this be done??
> > > > >
> > > > > Thanks,
> > > > > timgerr
> > > > >
> > > >
> > >
> >
>




Re: [flexcoders] Anyone using Flex with LCDS & ColdFusion

2009-05-08 Thread Charles Parcell
I am going to go ahead and out myself.  What is LCDS?  Could you explain
what this configuration is?

Charles P.


On Fri, May 8, 2009 at 12:11 PM, Brendan Meutzner wrote:

>
>
> Hi All,
> I've already got another post up with a conundrum I'm facing with LCDS and
> ColdFusion, but it's not the first question I've posted over the last year
> which has gone unanswered.
>
> So... my second question is... Is anyone out there using this particular
> setup?  I never see any posts relating to this, and as I already mentioned,
> there's not a lot of feedback when I bring up questions.  So if you're using
> these technologies, throw in a reply to this thread... I wouldn't think I'm
> the only person facing difficulties with this, so it'd be nice to hook up
> with other folks who are doing the same thing.
>
>
> Brendan
>
>
> --
> Brendan Meutzner
> http://www.meutzner.com/blog/
> http://www.riajobs.com
>
>
> 
>


[flexcoders] Re: Validating items in DataGrids

2009-05-08 Thread Ravi Suda
John,
  I am working on a similar requirement. I want to show the mandatory 
fields in datagrid as a validation error(red border). Could you provide your 
custom item renderer that you created.

Thanks in Advance
Ravi

--- In flexcoders@yahoogroups.com, "j_lentzz"  wrote:
>
> True.  Good idea.  I've already coded the method to increment a
> counter to display number of failed items.  I'll modify the item
> renderer too and see what appears.
> 
> Thanks,
> 
> John
> --- In flexcoders@yahoogroups.com, "Roman Protsiuk"
>  wrote:
> >
> > Then all you need is dataProvider. Validate items held in there. And
> change
> > some property of the item that indicates whether it's valid or not. Then
> > item renderer easily can draw something bad basing on that info.
> > 
> > R.
> > 
> > On 9/19/07, j_lentzz  wrote:
> > >
> > >   I'm doing something like that right now for the individual cells.
> > > I've integrated a validator into the cell object. However, I need to
> > > be able to validate the complete datagrid when the save button is
> > > pressed. If the user never moves to a cell, I can't use the
> > > itemEditEnd to validate, I need to move through the data and check.
> > > Using the itemEditor.newInstance() and calling my validation routine,
> > > I can detect that a validation fails. Now I'm going to try to use the
> > > itemRenderer property to indicate the nice red boxes.
> > >
> > > John
> > > --- In flexcoders@yahoogroups.com ,
> "Roman
> > > Protsiuk"
> > >  wrote:
> > > >
> > > > I remember I did it like this:
> > > >
> > > > public class FilesDataGridColumnEditor extends TextInput {
> > > >
> > > > public function SomeDataGridEditor() {
> > > > _validator.source = this;
> > > > _validator.triggerEvent = "change";
> > > > _validator.required = true;
> > > > _validator.property = "text";
> > > > }
> > > >
> > > > private var _validator : Validator = new SomeValidator();
> > > > }
> > > >
> > > > It's not "the best practices", but as far as I remember it
> worked. :)
> > > >
> > > > R.
> > > >
> > > > On 9/18/07, merelypixels  wrote:
> > > > >
> > > > > seems to me that no mucking about with itemEditors is necessary...
> > > > > extract the data you need from your dataProvider and then validate
> > > > > that data directly before sending it on. If you want the
> little red
> > > > > validation things, you should probably validate on a field by
> field
> > > > > basis using the dataGrids itemEditEnd event, validating using
> > > > > dg.itemEditorInstance and doing e.preventDefault() if the field is
> > > > > invalid.
> > > > >
> > > > > Hope that helps!
> > > > > -Pixels
> > > > >
> > > > > --- In flexcoders@yahoogroups.com
> ,
> > >
> > > > > "j_lentzz"  wrote:
> > > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I'm now trying to validating the contents of a datagrid and
> I was
> > > > > > wondering if there is an established way to do this. It
> seems like I
> > > > > > would need to get an instance of the itemEditor and somehow
> pass it
> > > > > > the value on that row. Then I would either call a validator
> against
> > > > > > that editor, or call a method contained in the itemEditor to
> do the
> > > > > > validation. I can get the itemEditor to do validation when
> the user
> > > > > > is entering data, but I need to be able to do validation on
> all the
> > > > > > entries in the datagrid when the save button is pressed - to
> handle
> > > > > > the cases of missing data in required datagrid fields. I've
> found
> > > > > > some examples of how to validate when the user is entering
> data for
> > > > > > that field, but not for validating the complete datagrid. Any
> > > help or
> > > > > > ideas would be greatly appreciated.
> > > > > >
> > > > > > John
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >  
> > >
> >
>




Re: [flexcoders] Re: Does ADG work with Gumbo?

2009-05-08 Thread Charles Parcell
Have you tried trying to compile outside of Flex Builder? Just to check and
see. Again, I don't know why that would be the problem but I am trying to
come up with anything that may be causing the issue for you.

Have you removed the 3.x SDK from the library list of your application?
Perhaps there is a conflict of some sort.

Have you set the compiler to build for Flash 10 rather than Flash 9?  i saw
a thread on this forum or another just today about how to change this.

Charles P.



On Fri, May 8, 2009 at 2:41 PM, markgoldin_2000
wrote:

> But I do have Flex 3 Professional.
>
> --- In flexcoders@yahoogroups.com, Charles Parcell 
> wrote:
> >
> > Could it be a professional license thing.  Not sure why that would be the
> > case for an unreleased SDK, but...
> >
> > Charles P.
> >
> >
> > On Fri, May 8, 2009 at 12:05 PM, markgoldin_2000
> > wrote:
> >
> > > That's the error I am getitng:
> > > TypeError: Error #1007: Instantiation attempted on a non-constructor.
> > >at
> > >
> mx.controls::AdvancedDataGridBaseEx/getSeparator()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4149]
> > >at
> > >
> mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4186]
> > >at
> > >
> mx.controls::AdvancedDataGrid/createHeaderSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:1774]
> > >at
> > >
> mx.controls::AdvancedDataGridBaseEx/drawSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4110]
> > >at
> > >
> mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:1880]
> > >at
> > >
> mx.controls::AdvancedDataGrid/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:6007]
> > >at
> > >
> mx.controls.listClasses::AdvancedListBase/validateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:3072]
> > >at
> > >
> mx.managers::LayoutManager/validateDisplayList()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:657]
> > >at
> > >
> mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:734]
> > >
> > > Thanks
> > >
> >
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


[flexcoders] Re: Does ADG work with Gumbo?

2009-05-08 Thread markgoldin_2000
But I do have Flex 3 Professional.

--- In flexcoders@yahoogroups.com, Charles Parcell  wrote:
>
> Could it be a professional license thing.  Not sure why that would be the
> case for an unreleased SDK, but...
> 
> Charles P.
> 
> 
> On Fri, May 8, 2009 at 12:05 PM, markgoldin_2000
> wrote:
> 
> > That's the error I am getitng:
> > TypeError: Error #1007: Instantiation attempted on a non-constructor.
> >at
> > mx.controls::AdvancedDataGridBaseEx/getSeparator()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4149]
> >at
> > mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4186]
> >at
> > mx.controls::AdvancedDataGrid/createHeaderSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:1774]
> >at
> > mx.controls::AdvancedDataGridBaseEx/drawSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4110]
> >at
> > mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:1880]
> >at
> > mx.controls::AdvancedDataGrid/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:6007]
> >at
> > mx.controls.listClasses::AdvancedListBase/validateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:3072]
> >at
> > mx.managers::LayoutManager/validateDisplayList()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:657]
> >at
> > mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:734]
> >
> > Thanks
> >
>




[flexcoders] Re: Add items to an array list as a child

2009-05-08 Thread Tim Hoff

Ah, ok.  The first item in the arrayCollection is an Object.  So, you
would have to do something like this:

var myCollection:ArrayCollection = new ArrayCollection([{first: 'Matt',
last:'Matthews'}, {first: 'Tom', last: 'Jones'}]);

var obj:Object = new Object();
obj.first = 'lisa';
obj.last = 'griffen';

Object(myCollection[0]).obj = obj;

-TH

--- In flexcoders@yahoogroups.com, "timgerr"  wrote:
>
> I want to add it as a child to the first item in the arraycollection
(myCollection[0]). Can this be done???
>
> Thanks,
> timgerr
>
> --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> >
> >
> > Have you tried myCollection.addItemAt(obj,0);?
> >
> > -TH
> >
> > --- In flexcoders@yahoogroups.com, "timgerr"  wrote:
> > >
> > > I want to add items to an arraycollection as a child
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, "timgerr" tgallagher@ wrote:
> > > >
> > > > Hello all,
> > > > I have a question for you all. I was wondering how I can add a
child
> > to an object within a arraycollection. Here is what I mean:
> > > > var myCollection:ArrayCollection = new ArrayCollection([{first:
> > 'Matt', last: 'Matthews'}, {first: 'Tom', last: 'Jones'}]);
> > > >
> > > > var obj:Object = new Object();
> > > > obj.first = 'lisa';
> > > > obj.last = 'griffen';
> > > >
> > > > I would like to add the new object to be a child of the first
item
> > in the array list. Can this be done??
> > > >
> > > > Thanks,
> > > > timgerr
> > > >
> > >
> >
>




Re: [flexcoders] Does ADG work with Gumbo?

2009-05-08 Thread Charles Parcell
Could it be a professional license thing.  Not sure why that would be the
case for an unreleased SDK, but...

Charles P.


On Fri, May 8, 2009 at 12:05 PM, markgoldin_2000
wrote:

> That's the error I am getitng:
> TypeError: Error #1007: Instantiation attempted on a non-constructor.
>at
> mx.controls::AdvancedDataGridBaseEx/getSeparator()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4149]
>at
> mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4186]
>at
> mx.controls::AdvancedDataGrid/createHeaderSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:1774]
>at
> mx.controls::AdvancedDataGridBaseEx/drawSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4110]
>at
> mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:1880]
>at
> mx.controls::AdvancedDataGrid/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:6007]
>at
> mx.controls.listClasses::AdvancedListBase/validateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:3072]
>at
> mx.managers::LayoutManager/validateDisplayList()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:657]
>at
> mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:734]
>
> Thanks
>


[flexcoders] Re: Add items to an array list as a child

2009-05-08 Thread timgerr
I want to add it as a child to the first item in the arraycollection 
(myCollection[0]).  Can this be done???

Thanks, 
timgerr

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
> 
> Have you tried myCollection.addItemAt(obj,0);?
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "timgerr"  wrote:
> >
> > I want to add items to an arraycollection as a child
> >
> >
> > --- In flexcoders@yahoogroups.com, "timgerr" tgallagher@ wrote:
> > >
> > > Hello all,
> > > I have a question for you all. I was wondering how I can add a child
> to an object within a arraycollection. Here is what I mean:
> > > var myCollection:ArrayCollection = new ArrayCollection([{first:
> 'Matt', last: 'Matthews'}, {first: 'Tom', last: 'Jones'}]);
> > >
> > > var obj:Object = new Object();
> > > obj.first = 'lisa';
> > > obj.last = 'griffen';
> > >
> > > I would like to add the new object to be a child of the first item
> in the array list. Can this be done??
> > >
> > > Thanks,
> > > timgerr
> > >
> >
>




[flexcoders] Re: Add items to an array list as a child

2009-05-08 Thread Tim Hoff

Have you tried myCollection.addItemAt(obj,0);?

-TH

--- In flexcoders@yahoogroups.com, "timgerr"  wrote:
>
> I want to add items to an arraycollection as a child
>
>
> --- In flexcoders@yahoogroups.com, "timgerr" tgallagher@ wrote:
> >
> > Hello all,
> > I have a question for you all. I was wondering how I can add a child
to an object within a arraycollection. Here is what I mean:
> > var myCollection:ArrayCollection = new ArrayCollection([{first:
'Matt', last: 'Matthews'}, {first: 'Tom', last: 'Jones'}]);
> >
> > var obj:Object = new Object();
> > obj.first = 'lisa';
> > obj.last = 'griffen';
> >
> > I would like to add the new object to be a child of the first item
in the array list. Can this be done??
> >
> > Thanks,
> > timgerr
> >
>





[flexcoders] How to create ByteArray object from FileStream object?

2009-05-08 Thread markflex2007

I already have a FileStream object,how to create a ByteArray object from 
it.Thanks

Please give me a idea for this.

Mark



[flexcoders] Re: Add items to an array list as a child

2009-05-08 Thread timgerr
I want to add items to an arraycollection as a child


--- In flexcoders@yahoogroups.com, "timgerr"  wrote:
>
> Hello all, 
> I have a question for you all.  I was wondering how I can add a child to an 
> object within a arraycollection.  Here is what I mean:
> var myCollection:ArrayCollection = new ArrayCollection([{first: 'Matt', last: 
> 'Matthews'}, {first: 'Tom', last: 'Jones'}]);
> 
> var obj:Object = new Object();
> obj.first = 'lisa';
> obj.last = 'griffen';
> 
> I would like to add the new object to be a child of the first item in the 
> array list.  Can this be done??
> 
> Thanks,
> timgerr
>




[flexcoders] Add items to an array list as a child

2009-05-08 Thread timgerr
Hello all, 
I have a question for you all.  I was wondering how I can add a child to an 
object within a arraycollection.  Here is what I mean:
var myCollection:ArrayCollection = new ArrayCollection([{first: 'Matt', last: 
'Matthews'}, {first: 'Tom', last: 'Jones'}]);

var obj:Object = new Object();
obj.first = 'lisa';
obj.last = 'griffen';

I would like to add the new object to be a child of the first item in the array 
list.  Can this be done??

Thanks,
timgerr



[flexcoders] Re: Sending textinput id

2009-05-08 Thread Tim Hoff

Hi Gustavo,

I'm not sure of your implementation, but many times it's easier to
persist a working copy of the data in a value object (VO).  Each
property in the object, that is editable in the form, is bound to it's
associated control.  When a control changes, update the associated
property in the VO.  This way, you don't need to keep track of each
change to the object.  When the user submits the form, you just send the
entire VO to the server for update.  This assumes though, that you don't
have a special need to keep a running tally of the changes.

-TH

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> If you use the change event of the text input then the id is at
event.target.id
>
>
> Steve
>
>
> --- In flexcoders@yahoogroups.com, "Gustavo" xyrer@ wrote:
> >
> > Hi, I have a form and I would like to add the textinput id to an
array so I know which fields were edited, I trigger the change event on
each one but I can't send the textinput id via the event.
> > any of this I'm saying makes sense? and if it does, how do I do it,
or maybe there is a better way to update only the fields edited in a
form?
> >
> > Some light about this would be really appreciated. thanks.
> >
>





Re: [flexcoders] Re: custom title for panel

2009-05-08 Thread Greg Morphis
Thanks Tim, worked beautifully!

On Fri, May 8, 2009 at 12:03 PM, Tim Hoff  wrote:
>
> Hi Greg,
>
> You need to use setActualSize for firstWord and secondWord.  Or, just
> set their width and height explicitly.
>
> -TH
>
> --- In flexcoders@yahoogroups.com, Greg Morphis  wrote:
>>
>> I'm trying to write a custom title for a Panel and I thought something
>> like this would work but nothing's showing. There's no errors but no
>> title either.
>> I'm using Flex 3, what am I missing?
>> Thanks!
>>
>> I've pasted the code here so it'll look a little nicer:
>> http://rafb.net/p/8bs3Ln82.html
>>
>
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>


[flexcoders] Re: custom title for panel

2009-05-08 Thread Tim Hoff

Hi Greg,

You need to use setActualSize for firstWord and secondWord.  Or, just
set their width and height explicitly.

-TH

--- In flexcoders@yahoogroups.com, Greg Morphis  wrote:
>
> I'm trying to write a custom title for a Panel and I thought something
> like this would work but nothing's showing. There's no errors but no
> title either.
> I'm using Flex 3, what am I missing?
> Thanks!
>
> I've pasted the code here so it'll look a little nicer:
> http://rafb.net/p/8bs3Ln82.html
>





[flexcoders] Re: link examples to sell Flex apps to small business clients

2009-05-08 Thread Anthony DeBonis
For sending out emails with links and file download buttons I use 
www.kineticast.com - Flex based app that is perfect for this + it give the 
tracking to see who you sent the email to and if they pressed/followed the link 
or download button.



[flexcoders] Anyone using Flex with LCDS & ColdFusion

2009-05-08 Thread Brendan Meutzner
Hi All,
I've already got another post up with a conundrum I'm facing with LCDS and
ColdFusion, but it's not the first question I've posted over the last year
which has gone unanswered.

So... my second question is... Is anyone out there using this particular
setup?  I never see any posts relating to this, and as I already mentioned,
there's not a lot of feedback when I bring up questions.  So if you're using
these technologies, throw in a reply to this thread... I wouldn't think I'm
the only person facing difficulties with this, so it'd be nice to hook up
with other folks who are doing the same thing.


Brendan


-- 
Brendan Meutzner
http://www.meutzner.com/blog/
http://www.riajobs.com


Re: [flexcoders] TabNavigator SEO in Flex

2009-05-08 Thread Shabith Ishan
thanks GK.


On Fri, May 8, 2009 at 6:07 PM, Gregor Kiddie  wrote:

>
>
>  It’s the history management functions…
>
>
>
> You can turn this off in your application tag.
>
>
>
> Gk.
>
> *Gregor Kiddie*
> Senior Developer
> *INPS*
>
> Tel:   01382 564343
>
> Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
>
> Registered Number: 1788577
>
> Registered in the UK
>
> Visit our Internet Web site at www.inps.co.uk
>
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it by
> anyone else is not authorised. Any views or opinions presented are solely
> those of the author and do not necessarily represent those of INPS or any of
> its affiliates. If you are not the intended recipient please contact
> is.helpd...@inps.co.uk
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Shabith
> *Sent:* 08 May 2009 03:53
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] TabNavigator SEO in Flex
>
>
>
>
>
>
>
> Hi,
>
> I'm new to flex and new to this forum as well.
> I have a tab navigator. When i click on the certain tab my Web address
> is change to something like
>
> c:/demoapp/demoapp.html#app=6688&5286-selectedIndex=0
>
> what does this "app" means? Can I disable this in tab navigator? or
> else can I change this "app" to something.
>
> Thanks
>
> Shabith
>   
>


[flexcoders] Does ADG work with Gumbo?

2009-05-08 Thread markgoldin_2000
That's the error I am getitng:
TypeError: Error #1007: Instantiation attempted on a non-constructor.
at 
mx.controls::AdvancedDataGridBaseEx/getSeparator()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4149]
at 
mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4186]
at 
mx.controls::AdvancedDataGrid/createHeaderSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:1774]
at 
mx.controls::AdvancedDataGridBaseEx/drawSeparators()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:4110]
at 
mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:1880]
at 
mx.controls::AdvancedDataGrid/updateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGrid.as:6007]
at 
mx.controls.listClasses::AdvancedListBase/validateDisplayList()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\listClasses\AdvancedListBase.as:3072]
at 
mx.managers::LayoutManager/validateDisplayList()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:657]
at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\trunk\frameworks\projects\framework\src\mx\managers\LayoutManager.as:734]

Thanks



[flexcoders] BUMP - Dynamic datasource in ColdFusion via LCDS ES

2009-05-08 Thread Brendan Meutzner
I'm really hoping that somebody out there has come across this issue before... 
I can't imagine I'm the first :-)

The solution I'm looking for isn't just isolated to ColdFusion.  Somebody out 
there must have figured out what's required to dynamically determine which 
database their LCDS tier talks to???


Thanks,

Brendan


--- In flexcoders@yahoogroups.com, Brendan Meutzner  wrote:
>
> Hi All,
> 
> 
> 
> I'm hitting a wall on a requirement for a Flex application which utilizes
> the LCDS version included with ColdFusion.
> 
> 
> 
> I have the project setup to use DAO's, Assemblers and ValueObject (cfc's)
> which I call from Flex via DataService implmentation and the fill(),
> getItem(), etc... methods.
> 
> 
> 
> I need to setup my ColdFusion layer to access multiple datasources from the
> same Flex application.  However, because of the way LCDS gets called from
> Flex, it doesn't seem that Application or Session variables in ColdFusion
> persist when I set them.  I was thinking I could just have the HTML (cfm)
> wrapper page for my Flex application set that, but it is not recognized when
> I go to make a fill or get call against the assembler.
> 
> 
> 
> I thought about passing the datasource as a parameter each time a call is
> made, but while that would work when I initiate fill and get methods, the
> sync methods are "invisible" and I wouldn't be able to append an argument to
> them.
> 
> 
> 
> So my issue is... how do I go about having ColdFusion read a dynamic
> variable to define it's datasource?
> 
> 
> 
> 
> 
> Thanks in advance for the help.
> 
> 
> 
> 
> 
> Brendan
> 
> -- 
> Brendan Meutzner
> http://www.meutzner.com/blog/
> http://www.riajobs.com
>




[flexcoders] custom title for panel

2009-05-08 Thread Greg Morphis
I'm trying to write a custom title for a Panel and I thought something
like this would work but nothing's showing. There's no errors but no
title either.
I'm using Flex 3, what am I missing?
Thanks!

I've pasted the code here so it'll look a little nicer:
http://rafb.net/p/8bs3Ln82.html


[flexcoders] Re: Help with error

2009-05-08 Thread markgoldin_2000
This is unbelievable!
I am playing with Gumbo. I was compiling many times, but I was getting this 
error. But now, after I checked my Iframe class (did not do anything just 
opened.). It ran fine. Well, as long as it works...


--- In flexcoders@yahoogroups.com, Tom Chiverton  wrote:
>
> On Friday 08 May 2009, markgoldin_2000 wrote:
> > TypeError: Error #1009: Cannot access a property or method of a null object
> > reference.
> > D:\projects\sfcs\UFDPortal\src\IFrame.as:353
> 
> I mean, I'm just *guessing* ya know, but might something be null around line 
> 353 of your IFrame class ? 
> 
> -- 
> Helping to confidentially maintain metrics as part of the IT team of the 
> year, '09 and '08
> 
> Tom Chiverton
> Developer
> Tel: +44 0161 618 5032
> Fax: +44 0161 618 5099 
> tom.chiver...@...
> 3 Hardman Square, Manchester, M3 3EB
> www.Halliwells.com
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in England and 
> Wales under registered number OC307980 whose registered office address is at 
> Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list 
> of members is available for inspection at the registered office together with 
> a list of those non members who are referred to as partners. We use the word 
> ?partner? to refer to a member of the LLP, or an employee or consultant with 
> equivalent standing and qualifications. Regulated by the Solicitors 
> Regulation Authority.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above and may 
> be confidential or legally privileged. If you are not the addressee you must 
> not read it and must not use any information contained in nor copy it nor 
> inform any person other than Halliwells LLP or the addressee of its existence 
> or contents. If you have received this email in error please delete it and 
> notify Halliwells LLP IT Department on 0870 365 2500.
> 
> For more information about Halliwells LLP visit www.Halliwells.com.
>




[flexcoders] cover file to ByteArray in Air.

2009-05-08 Thread markflex2007
Hi,

I try to use File class,FileStream and ByteArray Class to convert a text file( 
test.txt) to ByteArray.  I also need covert the ByteArray back to text file.

Please give a idea how to do this.Thanks

Mark



Re: [flexcoders] Help with error

2009-05-08 Thread Tom Chiverton
On Friday 08 May 2009, markgoldin_2000 wrote:
> TypeError: Error #1009: Cannot access a property or method of a null object
> reference.
> D:\projects\sfcs\UFDPortal\src\IFrame.as:353

I mean, I'm just *guessing* ya know, but might something be null around line 
353 of your IFrame class ? 

-- 
Helping to confidentially maintain metrics as part of the IT team of the 
year, '09 and '08

Tom Chiverton
Developer
Tel: +44 0161 618 5032
Fax: +44 0161 618 5099 
tom.chiver...@halliwells.com
3 Hardman Square, Manchester, M3 3EB
www.Halliwells.com



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of 
members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners. We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

[flexcoders] Help with error

2009-05-08 Thread markgoldin_2000
What would this mean:

TypeError: Error #1009: Cannot access a property or method of a null object 
reference.
at 
mx.utils::URLUtil$/getProtocol()[E:\dev\trunk\frameworks\projects\rpc\src\mx\utils\URLUtil.as:239]
at IFrame/createChildren()[D:\projects\sfcs\UFDPortal\src\IFrame.as:353]
at 
mx.core::UIComponent/initialize()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:6510]
at 
mx.core::Container/initialize()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:3053]
at 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:6402]
at 
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:3879]
at 
mx.core::Container/addChildAt()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:2541]
at 
mx.core::Container/addChild()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:2459]
at 
mx.core::Container/createComponentFromDescriptor()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:4275]
at 
mx.containers::ViewStack/createComponentsFromDescriptors()[E:\dev\trunk\frameworks\projects\framework\src\mx\containers\ViewStack.as:1067]
at 
mx.core::Container/createChildren()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:3120]
at 
mx.core::UIComponent/initialize()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:6510]
at 
mx.core::Container/initialize()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:3053]
at 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:6402]
at 
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:3879]
at 
mx.core::Container/addChildAt()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:2541]
at 
mx.core::Container/addChild()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:2459]
at 
mx.core::Container/createComponentFromDescriptor()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:4275]
at 
mx.core::Container/createComponentsFromDescriptors()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:4082]
at 
mx.core::Container/createChildren()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:3120]
at 
mx.core::UIComponent/initialize()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:6510]
at 
mx.core::Container/initialize()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:3053]
at 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:6402]
at 
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:3879]
at 
mx.core::Container/addChildAt()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:2541]
at 
mx.core::Container/addChild()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:2459]
at 
mx.core::Container/createComponentFromDescriptor()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:4275]
at 
mx.core::Container/createComponentsFromDescriptors()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:4082]
at 
mx.core::Container/createChildren()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:3120]
at 
mx.core::UIComponent/initialize()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:6510]
at 
mx.core::Container/initialize()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:3053]
at 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\UIComponent.as:6402]
at 
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:3879]
at 
mx.core::Container/addChildAt()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:2541]
at 
mx.core::Container/addChild()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:2459]
at 
mx.core::Container/createComponentFromDescriptor()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:4275]
at 
mx.core::Container/createComponentsFromDescriptors()[E:\dev\trunk\frameworks\projects\framework\src\mx\core\Container.as:4082]
  

Re: [flexcoders] Source could not be found.... when I CTRL-CLICK on a chart Class???

2009-05-08 Thread - -
Hi Gregor, I do have FB Pro... This feature used to work but is no longer 
available... ??? 
I had done an update a couple of weeks ago... could that have changed something 
???

Thanks.

-David





From: Gregor Kiddie 
To: flexcoders@yahoogroups.com
Sent: Friday, May 8, 2009 10:58:07 AM
Subject: RE: [flexcoders] Source could not be found when I CTRL-CLICK on a 
chart Class???





You need to link the source files that are unlocked by having FB Pro
 
Gregor Kiddie
Senior Developer
INPS
Tel:   01382 564343
Registered address: The Bread Factory, 1a Broughton Street, LondonSW8 3QJ
Registered Number: 1788577
Registered in the UK
Visit our Internet Web site at www.inps.co. uk
The information in this internet email is confidential and is intended solely 
for the addressee. Access, copying or re-use of information in it by anyone 
else is not authorised. Any views or opinions presented are solely those of the 
author and do not necessarily represent those of INPS or any of its affiliates. 
If you are not the intended recipient please contact is.helpdesk@ inps.co.uk



From:flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of sailorsea21
Sent: 08 May 2009 15:54
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Source could not be found when I CTRL-CLICK on a 
chart Class???
 




Does anyone know why I get the following error when I CTRL-CLICK on a chart 
Class???

Source could not be found for mx.charts.series. ColumnSeries in 
C:\ProgramFiles\ Adobe\Flex Builder 3\sdks\3.2.0\ frameworks\ libs\datavisuali 
zation.swc.

I'm using Adobe Flex Builder 3.0 (build 3.0.2.214193)

???

Thanks guys...

-David



  

Re: [flexcoders] Re: Launch Failed

2009-05-08 Thread Charles Parcell
Yeah, key is that it is not on Labs but in Open Source. I was checking the
Labs site. :(

Charles P.


On Fri, May 8, 2009 at 10:51 AM, Tom Chiverton  wrote:

>
>
>
>
> On Friday 08 May 2009, Charles Parcell wrote:
> > You have the Flex 4 compiler? Not that I am complaining about hearing
> > things about Flex 4 but isn't that NOT a public beta yet? Shouldn't this
> > question be for the beta list and not a public forum?
>
> You can get it from SVN and/or the nightly builds on Labs, no ?
>
> --
> Helping to paradigmatically lead internet web-enabled clusters as part of
> the
> IT team of the year, '09 and '08
>
>
>   Tom Chiverton
>  Developer
>  Tel: +44 0161 618 5032
> Fax: +44 0161 618 5099
>  tom.chiver...@halliwells.com
>  3 Hardman Square, Manchester, M3 3EB
>  www.Halliwells.com
>
>  
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England and
> Wales under registered number OC307980 whose registered office address is at
> Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
> of members is available for inspection at the registered office together
> with a list of those non members who are referred to as partners. We use the
> word ?partner? to refer to a member of the LLP, or an employee or consultant
> with equivalent standing and qualifications. Regulated by the Solicitors
> Regulation Authority.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and
> may be confidential or legally privileged. If you are not the addressee you
> must not read it and must not use any information contained in nor copy it
> nor inform any person other than Halliwells LLP or the addressee of its
> existence or contents. If you have received this email in error please
> delete it and notify Halliwells LLP IT Department on 0870 365 2500.
>
> For more information about Halliwells LLP visit www.Halliwells.com.
>
>
>  
>


[flexcoders] Re: Launch Failed

2009-05-08 Thread markgoldin_2000
A just tried to copy of a wrapper from another project. 
That worked. Still dont know why it stopped creating a wrapper.

--- In flexcoders@yahoogroups.com, Charles Parcell  wrote:
>
> Well shoot!  I missed this somehow.
> 
> Are you using the nightly builds? Try updating to a newer.
> 
> Charles P.
> 
> 
> On Fri, May 8, 2009 at 10:38 AM, markgoldin_2000
> wrote:
> 
> >
> >
> > I am simply trying Flex 4 SDK:
> > http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4
> >
> >
> > --- In flexcoders@yahoogroups.com , Charles
> > Parcell  wrote:
> > >
> > > You have the Flex 4 compiler? Not that I am complaining about hearing
> > things
> > > about Flex 4 but isn't that NOT a public beta yet? Shouldn't this
> > question
> > > be for the beta list and not a public forum?
> > >
> > > Charles P.
> > >
> > >
> > >
> > > On Fri, May 8, 2009 at 10:28 AM, markgoldin_2000
> > > wrote:
> > >
> > > >
> > > > I am using Flex 3 Builder. I am trying to see what is going to be
> > involved
> > > > to move to Flex 4 when it's out. So far, I see it's going to be tough.
> > > > Unless, it's simply buggy at this point.
> > > >
> > > > --- In flexcoders@yahoogroups.com 
> > > >  > 40yahoogroups.com>, Harish
> >
> > > > Sivaramakrishnan  wrote:
> > > > >
> > > > > are you on Flex Builder 3 using Spark components?
> > > > >
> > > > > On Fri, May 8, 2009 at 7:04 AM, markgoldin_2000
> > > > > wrote:
> > > > >
> > > > > >
> > > > > >
> > > > > > I am trying a simlpe Flex 4 application found in the Web:
> > > > > > 
> > > > > >  > > > > > xmlns="http://ns.adobe.com/mxml/2009";
> > > > > > xmlns:fx="library://ns.adobe.com/flex/spark"
> > > > > > xmlns:mx="library://ns.adobe.com/flex/halo">
> > > > > >
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > >
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > >
> > > > > > It compiles but does not start.
> > > > > > Launch Failed
> > > > > > File not found
> > > > > > Path to an html wrapper
> > > > > >
> > > > > > What's wrong here?
> > > > > >
> > > > > > Thansk
> > > >
> >
>




Re: [flexcoders] Re: Launch Failed

2009-05-08 Thread Tom Chiverton
On Friday 08 May 2009, Charles Parcell wrote:
> You have the Flex 4 compiler? Not that I am complaining about hearing
> things about Flex 4 but isn't that NOT a public beta yet?  Shouldn't this
> question be for the beta list and not a public forum?

You can get it from SVN and/or the nightly builds on Labs, no ?

-- 
Helping to paradigmatically lead internet web-enabled clusters as part of the 
IT team of the year, '09 and '08

Tom Chiverton
Developer
Tel: +44 0161 618 5032
Fax: +44 0161 618 5099 
tom.chiver...@halliwells.com
3 Hardman Square, Manchester, M3 3EB
www.Halliwells.com



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

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of 
members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners. We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

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

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

Re: [flexcoders] Re: Launch Failed

2009-05-08 Thread Charles Parcell
Well shoot!  I missed this somehow.

Are you using the nightly builds? Try updating to a newer.

Charles P.


On Fri, May 8, 2009 at 10:38 AM, markgoldin_2000
wrote:

>
>
> I am simply trying Flex 4 SDK:
> http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4
>
>
> --- In flexcoders@yahoogroups.com , Charles
> Parcell  wrote:
> >
> > You have the Flex 4 compiler? Not that I am complaining about hearing
> things
> > about Flex 4 but isn't that NOT a public beta yet? Shouldn't this
> question
> > be for the beta list and not a public forum?
> >
> > Charles P.
> >
> >
> >
> > On Fri, May 8, 2009 at 10:28 AM, markgoldin_2000
> > wrote:
> >
> > >
> > > I am using Flex 3 Builder. I am trying to see what is going to be
> involved
> > > to move to Flex 4 when it's out. So far, I see it's going to be tough.
> > > Unless, it's simply buggy at this point.
> > >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>, Harish
>
> > > Sivaramakrishnan  wrote:
> > > >
> > > > are you on Flex Builder 3 using Spark components?
> > > >
> > > > On Fri, May 8, 2009 at 7:04 AM, markgoldin_2000
> > > > wrote:
> > > >
> > > > >
> > > > >
> > > > > I am trying a simlpe Flex 4 application found in the Web:
> > > > > 
> > > > >  > > > > xmlns="http://ns.adobe.com/mxml/2009";
> > > > > xmlns:fx="library://ns.adobe.com/flex/spark"
> > > > > xmlns:mx="library://ns.adobe.com/flex/halo">
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > > It compiles but does not start.
> > > > > Launch Failed
> > > > > File not found
> > > > > Path to an html wrapper
> > > > >
> > > > > What's wrong here?
> > > > >
> > > > > Thansk
> > >
>


RE: [flexcoders] Source could not be found.... when I CTRL-CLICK on a chart Class???

2009-05-08 Thread Gregor Kiddie
You need to link the source files that are unlocked by having FB Pro

 

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of sailorsea21
Sent: 08 May 2009 15:54
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Source could not be found when I CTRL-CLICK on
a chart Class???

 






Does anyone know why I get the following error when I CTRL-CLICK on a
chart Class???

Source could not be found for mx.charts.series.ColumnSeries in
C:\ProgramFiles\Adobe\Flex Builder
3\sdks\3.2.0\frameworks\libs\datavisualization.swc.

I'm using Adobe Flex Builder 3.0 (build 3.0.2.214193)

???

Thanks guys...

-David





[flexcoders] Re: Trying Gumbo

2009-05-08 Thread markgoldin_2000
After I copied the whole fbpro from my 3.3 to 4.0 I am not getting the message 
about AdvancedDataGrid, but I am still getting:
import mx.collections.HierarchicalData;
1172: Definition mx.collections:HierarchicalData could not be found

--- In flexcoders@yahoogroups.com, "markgoldin_2000"  
wrote:
>
> I am trying to compile my project using Flex 4 SDK. I am getting the 
> following error:
> 1046: Type was not found or was not a compile-time constant: 
> AdvancedDataGrid. What am I missing?
> Also I have a share library project. When I try to compile it with Flex 4 I 
> get many errors about Matrix3D and Vector. A quick resourch discovered that I 
> have to point a project to FP 10. But my share library does not have that 
> option. What do I do?
> 
> Thanks for the help.
>




[flexcoders] Source could not be found.... when I CTRL-CLICK on a chart Class???

2009-05-08 Thread sailorsea21
Does anyone know why I get the following error when I CTRL-CLICK on a chart 
Class???

Source could not be found for mx.charts.series.ColumnSeries in 
C:\ProgramFiles\Adobe\Flex Builder 
3\sdks\3.2.0\frameworks\libs\datavisualization.swc.

I'm using Adobe Flex Builder 3.0 (build 3.0.2.214193)

???

Thanks guys...

-David



[flexcoders] Re: Launch Failed

2009-05-08 Thread markgoldin_2000
I am simply trying Flex 4 SDK:
http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4

--- In flexcoders@yahoogroups.com, Charles Parcell  wrote:
>
> You have the Flex 4 compiler? Not that I am complaining about hearing things
> about Flex 4 but isn't that NOT a public beta yet?  Shouldn't this question
> be for the beta list and not a public forum?
> 
> Charles P.
> 
> 
> 
> On Fri, May 8, 2009 at 10:28 AM, markgoldin_2000
> wrote:
> 
> >
> > I am using Flex 3 Builder. I am trying to see what is going to be involved
> > to move to Flex 4 when it's out. So far, I see it's going to be tough.
> > Unless, it's simply buggy at this point.
> >
> > --- In flexcoders@yahoogroups.com , Harish
> > Sivaramakrishnan  wrote:
> > >
> > > are you on Flex Builder 3 using Spark components?
> > >
> > > On Fri, May 8, 2009 at 7:04 AM, markgoldin_2000
> > > wrote:
> > >
> > > >
> > > >
> > > > I am trying a simlpe Flex 4 application found in the Web:
> > > > 
> > > >  > > > xmlns="http://ns.adobe.com/mxml/2009";
> > > > xmlns:fx="library://ns.adobe.com/flex/spark"
> > > > xmlns:mx="library://ns.adobe.com/flex/halo">
> > > >
> > > > 
> > > > 
> > > > 
> > > >
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > It compiles but does not start.
> > > > Launch Failed
> > > > File not found
> > > > Path to an html wrapper
> > > >
> > > > What's wrong here?
> > > >
> > > > Thansk
> >
>




Re: [flexcoders] Re: Launch Failed

2009-05-08 Thread Charles Parcell
You have the Flex 4 compiler? Not that I am complaining about hearing things
about Flex 4 but isn't that NOT a public beta yet?  Shouldn't this question
be for the beta list and not a public forum?

Charles P.



On Fri, May 8, 2009 at 10:28 AM, markgoldin_2000
wrote:

>
> I am using Flex 3 Builder. I am trying to see what is going to be involved
> to move to Flex 4 when it's out. So far, I see it's going to be tough.
> Unless, it's simply buggy at this point.
>
> --- In flexcoders@yahoogroups.com , Harish
> Sivaramakrishnan  wrote:
> >
> > are you on Flex Builder 3 using Spark components?
> >
> > On Fri, May 8, 2009 at 7:04 AM, markgoldin_2000
> > wrote:
> >
> > >
> > >
> > > I am trying a simlpe Flex 4 application found in the Web:
> > > 
> > >  > > xmlns="http://ns.adobe.com/mxml/2009";
> > > xmlns:fx="library://ns.adobe.com/flex/spark"
> > > xmlns:mx="library://ns.adobe.com/flex/halo">
> > >
> > > 
> > > 
> > > 
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > It compiles but does not start.
> > > Launch Failed
> > > File not found
> > > Path to an html wrapper
> > >
> > > What's wrong here?
> > >
> > > Thansk
>


Re: [flexcoders] Re: Tracking a sprite's position

2009-05-08 Thread Aaron Hardy
Tim, I would need to test it out, but off the top of my head I don't think
binding would do the job.  Let's say Sprite A was scaled up.  Even though
Sprite C's coordinates in relation to UIComponent B have changed, its actual
coordinates in relation to Sprite B (its parent) have not changed, therefore
I don't think any bindings would trigger.

Alex, that would work.  I won't be able to just watch the event coming from
Sprite C since it may actually be one of its parents that changes its scale
or position, but if I take a broader approach of where I watch for bubbling
events I think it would do the trick.  Its unfortunate I can't do it just
with regular sprites but I guess that's why they're lightweight.

Thanks guys.  I don't want to use much more of your time.  I really
appreciate your input and you've given me some good fuel to work with.

Aaron

On Thu, May 7, 2009 at 11:40 PM, Tim Hoff  wrote:

>
>
>
> This all sounds like overkill; since you are really only interested in
> UIComponentB knowing the position of SpriteC. If you make SpriteC
> public, is it possible to bind the x/y values for UIComponentB to
> uiComponentA.spriteC.x and y (localToContent)?
>
> -TH
>
>
> --- In flexcoders@yahoogroups.com , Alex
> Harui  wrote:
> >
> > If you can use a subclass of Sprite that dispatches the events you
> need, that will be the least expensive solution in terms of CPU usage.
> If you can't use a subclass or you won't have so many Sprites that
> polling will matter, polling will probably be sufficient.
> >
> > Alex Harui
> > Flex SDK Developer
> > Adobe Systems Inc.
> > Blog: http://blogs.adobe.com/aharui
> >
> > From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ]
> On Behalf Of Tim Hoff
> > Sent: Thursday, May 07, 2009 9:32 PM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] Re: Tracking a sprite's position
> >
> >
> >
> >
> >
> > My thought was that since all of the Sprites of UIComponentA were
> > children, they would invalidate the display list of UIComponentA
> > whenever they were changed. I forget that Sprites are their own beast.
> > If you can't find a way to listen for changes to all of the Sprite's
> > position/size, and trigger action on the common canvas, enterframe
> > starts to sound more and more appealing. I'm still wondering though,
> > what you plan to do onEnterFrame, in order to re-position
> UIComponentB.
> > For a parent or sibling to know about a component's state (or it's
> > children), events and public vars/methods are usually employed. I'm
> > interested to hear what you end up doing for this edge-case.
> > Challenging for me, I can say.
> >
> > -TH
> >
> > --- In
> flexcoders@yahoogroups.com  flexcoders%40yahoogroups.com >, Aaron
>
> Hardy aaronius9er@ wrote:
> > >
> > > What would be invalidating UIComponent A's display list? It's my
> > > understanding that if Sprite B were to be scaled (which is
> likely--it
> > is
> > > a graphic editing app afterall) but not Sprite A, the display list
> of
> > > UIComponent A would never be invalidated, so updateDisplayList
> > wouldn't
> > > be called in that case. The same is true if Sprite C were scaled or
> > > moved but not any members of its parent chain. Yet UIComponent B
> still
> > > needs to stay stuck to Sprite C. Again, I definitely could be wrong.
> > >
> > > I guess the simple answer would be to make any tool or button or
> > > anything that scales or moves anything inside UIComponent A trigger
> > > UIComponent B to update its location, but I can already think of
> quite
> > a
> > > fiew places that would have to happen and it seems like future
> > > developers would intrinsically have to know that if they make a new
> > tool
> > > that modifies the position/scale of any of the elements that they
> need
> > > to trigger UIComponent B to update its position. Ugh. That's what
> I'm
> > > trying to avoid.
> > >
> > > Keep 'em coming if you've got 'em. It's not a dire situation so I'll
> > > save my dire need credits for later if needed. :)
> > >
> > > Aaron
> > >
> > > Tim Hoff wrote:
> > > >
> > > >
> > > >
> > > > Actually, in thinking about it a bit more, why not dispatch a
> custom
> > > > event in the updateDisplayList function of UIComponentA; that
> > contains
> > > > the coordinates of SpriteC. This will happen a lot less frequently
> > than
> > > > listening for the enterFrame event.
> > > >
> > > > -TH
> > > >
> > > > --- In
> flexcoders@yahoogroups.com  flexcoders%40yahoogroups.com >
> > > > ,
> "Tim Hoff" TimHoff@ wrote:
> > > > >
> > > > >
> > > > > Batting .000 so far. The only other thing that I can think of,
> is
> > to
> > > > > move UIComponentB into UIComponnentA, same level as SpriteC, and
> > bind
> > > > > the position of UIComponentB to the x and y (plus any offset) of
> > > > > SpriteC. Sorry that I couldn't have offered more useful help. It
> > > > > sounds like you have an interesting use-case. Good luck Aaron.
>

[flexcoders] Re: Launch Failed

2009-05-08 Thread markgoldin_2000
I am using Flex 3 Builder. I am trying to see what is going to be involved to 
move to Flex 4 when it's out. So far, I see it's going to be tough. Unless, 
it's simply buggy at this point.


--- In flexcoders@yahoogroups.com, Harish Sivaramakrishnan 
 wrote:
>
> are you on Flex Builder 3 using Spark components?
> 
> On Fri, May 8, 2009 at 7:04 AM, markgoldin_2000
> wrote:
> 
> >
> >
> > I am trying a simlpe Flex 4 application found in the Web:
> > 
> >  > xmlns="http://ns.adobe.com/mxml/2009";
> > xmlns:fx="library://ns.adobe.com/flex/spark"
> > xmlns:mx="library://ns.adobe.com/flex/halo">
> >
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > It compiles but does not start.
> > Launch Failed
> > File not found
> > Path to an html wrapper
> >
> > What's wrong here?
> >
> > Thansk
> >
> >  
> >
>




Re: [flexcoders] Launch Failed

2009-05-08 Thread Harish Sivaramakrishnan
are you on Flex Builder 3 using Spark components?

On Fri, May 8, 2009 at 7:04 AM, markgoldin_2000
wrote:

>
>
> I am trying a simlpe Flex 4 application found in the Web:
> 
>  xmlns="http://ns.adobe.com/mxml/2009";
> xmlns:fx="library://ns.adobe.com/flex/spark"
> xmlns:mx="library://ns.adobe.com/flex/halo">
>
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
>
> It compiles but does not start.
> Launch Failed
> File not found
> Path to an html wrapper
>
> What's wrong here?
>
> Thansk
>
>  
>


[flexcoders] Launch Failed

2009-05-08 Thread markgoldin_2000
I am trying a simlpe Flex 4 application found in the Web:
 
http://ns.adobe.com/mxml/2009"; 
xmlns:fx="library://ns.adobe.com/flex/spark" 
xmlns:mx="library://ns.adobe.com/flex/halo"> 

 
 
 


 
 
 
 
 
 

It compiles but does not start. 
Launch Failed
File not found
Path to an html wrapper

What's wrong here?

Thansk



[flexcoders] Which Class should I extend???

2009-05-08 Thread sailorsea21
Hey everyone, what class should I extend to manipulate the label inside my 
ColumnSeries ???

I would like to force the labels in my ColumnSeries to always display 
vertically and if there isn't enough room inside the column to automatically 
display outside the column...

Thanks guys!

-David



[flexcoders] Re: Sending textinput id

2009-05-08 Thread valdhor
If you use the change event of the text input then the id is at event.target.id


Steve


--- In flexcoders@yahoogroups.com, "Gustavo"  wrote:
>
> Hi, I have a form and I would like to add the textinput id to an array so I 
> know which fields were edited, I trigger the change event on each one but I 
> can't send the textinput id via the event.
> any of this I'm saying makes sense? and if it does, how do I do it, or maybe 
> there is a better way to update only the fields edited in a form?
> 
> Some light about this would be really appreciated. thanks.
>




[flexcoders] Re: navigateToURL to new TAB rather than new WINDOW

2009-05-08 Thread valdhor
Unfortunately, that is a user preference for the browser. There is no way, 
AFAIK, that a developer can control this.

In my case, with Firefox 3.0.10, I have turned on the preference to open new 
pages in a tab (Tools->Options->Tabs) so my navigateToURL opens in a new tab.


--- In flexcoders@yahoogroups.com, "itdanny2002"  wrote:
>
> I use navigateToURL(new URLRequest(URL),"_blank") to open a new window
> How can I open in in a new tab instead ? I try to hold CTRL and then click. 
> it works in other web page but not flash.
>




[flexcoders] Trying Gumbo

2009-05-08 Thread markgoldin_2000
I am trying to compile my project using Flex 4 SDK. I am getting the following 
error:
1046: Type was not found or was not a compile-time constant: AdvancedDataGrid. 
What am I missing?
Also I have a share library project. When I try to compile it with Flex 4 I get 
many errors about Matrix3D and Vector. A quick resourch discovered that I have 
to point a project to FP 10. But my share library does not have that option. 
What do I do?

Thanks for the help.



[flexcoders] Re: Need to save Employee Form data in a database

2009-05-08 Thread valdhor
It depends on what you are using as your back end server (PHP, .NET, Java etc) 
and whether you want to use Remote Objects, XML, JSON etc.

How much have you learned so far? Have you been through the getting started 
material? Have you completed the "Learn Flex in a Week" video training course? 
All of these will get you started.


HTH.



Steve
 
--- In flexcoders@yahoogroups.com, "shabirgilkar"  wrote:
>
> Hi Flexers!
> 
> I am fresher just learning the flex, can any body help me how to save data in 
> a database and what kind of setting i need to follow. I mean to say to save 
> data in a access database.
> 
> Thanks
>




[flexcoders] Re: Remove Popup from ItemRenderer

2009-05-08 Thread valdhor
The way I would do it is to put the click handler code that opens the popup in 
the same component as the datagrid instead of in the item renderer itself. When 
you get a click event, open the new popup and dispatch an event that the parent 
(titlewindow) catches that closes itself.


--- In flexcoders@yahoogroups.com, "cvsikh"  wrote:
>
> There is a datagrid with an external itemrenderer which opens a popup.  Along 
> with opening the popup, I want to close the original titlewindow in which I 
> have the datagrid.
> 
> Thanks for your help!
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > Sorry I did not understand any of that, will you please explain in more
> > detail?
> > 
> >  
> > 
> > Tracy Spratt,
> > 
> > Lariat Services, development services available
> > 
> >   _  
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> > Behalf Of cvsikh
> > Sent: Thursday, May 07, 2009 7:31 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Remove Popup from ItemRenderer
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> > 
> > Hi,
> > 
> > I was wondering if its possible to trigger removepopup(this) (or some other
> > method) from a external item renderer. Popupmanager is not removing the
> > actual popup which holds the itemrenderer.
> >
>




RE: [flexcoders] TabNavigator SEO in Flex

2009-05-08 Thread Gregor Kiddie
It's the history management functions...

 

You can turn this off in your application tag.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Shabith
Sent: 08 May 2009 03:53
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TabNavigator SEO in Flex

 







Hi,

I'm new to flex and new to this forum as well.
I have a tab navigator. When i click on the certain tab my Web address
is change to something like

c:/demoapp/demoapp.html#app=6688&5286-selectedIndex=0

what does this "app" means? Can I disable this in tab navigator? or
else can I change this "app" to something.

Thanks

Shabith





[flexcoders] Re: Help me

2009-05-08 Thread vaddi sujith reddy
--- In flexcoders@yahoogroups.com, "flexdeveloper"  wrote:
>
> Hi this is sri from hyderabad
> Iam new to flex, i want to choose Flex career,
> where should i start and how can i get assistance
> let me know what softwares should i know
> 
> 
> sri
>

Hi,

Does any body know good institute for Flex in hyderabad.
I would like to start on Flex.
Please let me know.

Sujith



[flexcoders] Communication between SWF and HTML Window - CloseEvent

2009-05-08 Thread olearix
Hi,

For one of my flex project, I have to communicate with an HTML Window popup.
To open it, it's not a problem, but specificaly I have to add a listener to 
catch event when this Window close.

I saw that you can communicate with your own HTML page by integrating some 
JavaScript functionnalities, but the problem is that I have to open an external 
window that is not mine.

I have got a "dirty" solution but I don't like it: open one own window popup 
wich contains JavaScript function to communicate with swf, and this window will 
open the desired window that I want to listen. When This window close, my own 
window catch the event and dispatch it to swf throw JS function. I don't know 
if my explication are very clear, but that is the idea and I don't like it.

Please if somebody can tell me if it's possible to catch a closer event of an 
external window?

Thanks for your answerds

Xavi



[flexcoders] TabNavigator SEO in Flex

2009-05-08 Thread Shabith

Hi,

I'm new to flex and new to this forum as well.
I have a tab navigator. When i click on the certain tab my Web address
is change to something like

c:/demoapp/demoapp.html#app=6688&5286-selectedIndex=0

what does this "app" means? Can I disable this in tab navigator? or
else can I change this "app" to something.

Thanks

Shabith



[flexcoders] [ANN] Flexmojos 3.2 Released

2009-05-08 Thread Marvin Froeder
Hi people,

I released last night the latest version of flexmojos, version 3.2.0.

Release notes:
https://issues.sonatype.org/browse/FLEXMOJOS/fixforversion/10296

This release was mainly focused on improving the unit test support.  The
greatest new is for Linux headless machines (CI servers).  Now flexmojos
will automatically launch Xvfb to run the tests.  It is only necessary to
have xvfb-run installed.
https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests

Fork mode for unit test is now configurable.

> 

  once




Fork once means all unit test classes will be compiled into a single SWF
file, and all tests will be run at once.
Fork always means one SWF per unit test classes.  This is very helpful on
automated UI tests using flexmonkey.

Changes on html-wrapper mojo too, it does now interpolate all files on the
template.  On previous versions it only interpolate the index.template.html.

Optimization is now available to SWF projects too.  Now, if for any reason
you need to optimize your SWF that can be done using optimizer mojo.


That is it.  For 3.3 we are planning some improvements on ActionScript
generation.

Stay tunned.


VELO


[flexcoders] navigateToURL to new TAB rather than new WINDOW

2009-05-08 Thread itdanny2002
I use navigateToURL(new URLRequest(URL),"_blank") to open a new window
How can I open in in a new tab instead ? I try to hold CTRL and then click. it 
works in other web page but not flash.



[flexcoders] Slide show

2009-05-08 Thread Shabir Gilkar
Hi Friends!

I need a Flash Banner for a News portal in which a slide show of
different ads can be shown. On every show there will be new ad and
that ad will be linked to different sites corresponding to that ad. On
every show there will be different text which will be having different
animation sequences.

I want:

There should be dynamic mechanism to add different images to the
show(via XML), and dynamic mechanism to link different show images to
different websites corresponding to that ad.

I need some logical explanation to this requirement or any tutorial
which clearly defines the procedure.

-- 
With Regards

Shabir Ahmad Gilkar

Srinagar Kashmir J&K

Voice: +91 9419942501
email: shabirgil...@gmail.com
Skype: shabirgilkar


[flexcoders] Re: Memory leaks in a asyncronic operation

2009-05-08 Thread Rob Kunkle
I'm running into a similar problem, but I don't think the issue is the async 
jpeg encoding. I think the problem is generally with flash player.

I'm working on a flash application that gets large (~15mb) jpeg images from the 
users file system, the resizes them and recompresses them using the async jpeg 
encoder class, then uploads the results to a server.

It works fine if you are only doing this with a few images, but when you run 
the software with hundreds of images, flash eventually crashes.

I switched back to the native jpeg encoder, and still had the same problem. 
When I run the profiler, flash seems to be doing everything right...the 
application runs using a steady amount of memory, and there are not excessive 
objects being created then loitering.

However, when i look at the mac's activitiy monitor (this is similar to task 
man on windows)...Firefox steadily uses up more and more real memory and 
virtual memory as the images are uploaded. Eventually flash crashes when it has 
used up all the system memory available.

So it appears that the flash player is not returning unused memory back to the 
browser, or that the browser can't make use of the freed up memory.

I've tried reusing ojects, BitmapData.dispose(), unloading, unloadandStop(), 
etc... I can't seem to find a way to fix this one.

Has anyone run into a similar problem loading lots of content into flash 
player, but not able to recover the memory?

Help with this one would be much appreciated!

Rob





 




 


--- In flexcoders@yahoogroups.com, "cavi21"  wrote:
>
> Hello, i've been searching for a while to a solution to this problem,
> and i've been trying myself, with no succeed.
> The problem is this, i'm encoding to JPEG six bitmap captures from a
> webcam stream in a video component.
> Up to here, is no problem. But if I used the native class to encode
> (mx.graphics.codec.JPEGEncoder) the AIR application hang for 2 minutes
> processing the images. In these case at the end of the process i call
> a function to free up the memory, and everything works fine.
> The problem is that i'm using a modified class to encode
> (http://blog.paranoidferret.com/index.php/2007/12/11/flex-tutorial-an-asynchronous-jpeg-encoder/)
> . The benefit is that i can show a progressbar showing the encoding
> process. But the only problem that i have is that, at the end of the
> process, i have memory hang up... i've been reading that these may
> occur  without a proper care in the events listeners.
> Sory about my english, is not ma native language, and thanks in
> advance for your time and patience.
>