Re: [flexcoders] How to set up Flex builder 3 with LCDS 2.5?

2008-07-02 Thread Sherif Abdou


Are you using Coldfusion cause I am writing a tutorial on that and also check 
http://coenraets.org/blog/ he does alot of stuff with Flex and LCDS

- Original Message 
From: markflex2007 <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 2, 2008 7:48:11 PM
Subject: [flexcoders] How to set up Flex builder 3 with LCDS 2.5?


Hi,

I plan to use Flex ,LCDS and web service to build a flex application.

But I do not have a idea how to set up the project in Flex builder 3.

LCDS web root is C:\lcds\jrun4\ servers\default.

Please give me a idea.Thanks

Mark




  

RE: [flexcoders] MXML component with multiple controls as an itemRenderer

2008-07-02 Thread Alex Harui
Read up on renderers on my blog.

 

To have a multiple field editor, you have to implement
IFocusManagerComponent and handle setFocus, then handle keyFocusChange
and call preventDefault() when you want to switch fields.  Search the
internet for examples.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Keith
Sent: Wednesday, July 02, 2008 8:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] MXML component with multiple controls as an
itemRenderer

 

*QUESTION:
Can anyone send a good link explaining how to build a MXML component 
with mulitple input controls
using it as an itemRenderer in a List?

**My controls of the list items reset and do not update when I scroll 
them outside the length of the List.*
*

EXAMPLE:
Here is my failed attempt but it shows what I'm trying to do:
http://tinyurl.com/46rjmk  

Thanks,

-- Keith H --
*

 



RE: [flexcoders] PrintDataGrid is not work properly

2008-07-02 Thread Alex Harui
Be more specific about what is wrong.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of whg733279
Sent: Wednesday, July 02, 2008 9:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PrintDataGrid is not work properly

 

Hi all, 
I was using PrintDataGrid but the output is not nice here is my 
printDataGrid Proprerties .








Can anybody help me >

 



Re: [flexcoders] THIS IS ABSOLUTELY NUTS

2008-07-02 Thread Joseph Balderson
> The cache problem has been mentioned by many – it might be worth noting from 
> my experience Flash doesn’t always honour http meta tags such as No-Cache.

In my experience Flash never obeyed the No-Cache metatag since I began working 
with Flash in version 4, it supposedly doesn't work for plugins, just the HTML 
of the page itself.

The problem is not one of caching -- the browser will always cache the SWF 
unless you use some form of dynamic SWF encryption like Nitro-LM -- but that 
the 
browser uses the cashed SWF more than once.

The best way to ensure that the browser always reloads the SWF from the server 
and not the cache, is to use SWFObject or JS to instantiate the OBJECT/EMBED 
tags for the flash plugin, and at the end of the SWF filename, append the 
following JS:

... myApp.swf?"+(new Date()).getTime() ...

This will create a unique string at the end of the filename, and the browser 
will think it's a unique file every time, thus loading the SWF from the server, 
every time.

What I did was modify the index.template.html file to work with SWFObject, and 
append that JS on the end while I'm testing my application.

See if that works.
___

Joseph Balderson, Flash Platform Developer | http://joeflash.ca


Tim Rowe wrote:
> Though you seem to have this figured out, might I suggest that you add a 
> build number to your compiled project somewhere that you can verify when 
> loading it?  This will at least help you determine what version you’re 
> getting, whether it’s coming from cache etc.
> 
> The cache problem has been mentioned by many – it might be worth noting 
> from my experience Flash doesn’t always honour http meta tags such as 
> No-Cache.
> 
>  
> 
> Though others have already picked it to death, what is it that indicated 
> to you that it ‘does not compile’.  If it’s just that it appears to do 
> very little, remember that like most common compilers, Flex does 
> incremental building and linking.
> 
>  
> 
> --Tim Rowe
> 
> Software Engineer
> 
> carsales.com.au
> 
> 
> 
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
> *On Behalf Of *Dan Pride
> *Sent:* Wednesday, 2 July 2008 4:06 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] THIS IS ABSOLUTELY NUTS
> 
>  
> 
> I have an application which will not compile, delivers no error code and 
> simply gives me the last good app with no explanation whatsoever???
> 
> Who designed this thing and what were they thinking?
> 
> Clean app does nothing.
> 
> No error code
> 
> No way to get an error code.
> 
> What does one do???
> 
> I can develop fine, but when I go to export a release and send it up the 
> the net, WITHOUT WARNING I JUST KEEP GETTING THE SAME OLD CRAP LIKE I 
> NEVER DID ANYTHING.
> 
> AGAIN NO WARNING
> G
> 
> 



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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



[flexcoders] PrintDataGrid is not work properly

2008-07-02 Thread whg733279
Hi all, 
I was using PrintDataGrid but the output is not nice here is my 
printDataGrid Proprerties .
  







Can anybody help me >



[flexcoders] Flex Drag Drop Tree Pull and push data into database

2008-07-02 Thread timgerr
Hello all, 
I am working on a project that is using Flex 3, php5 and mysql.
1. The tree has to be created and populated from a mysql backend query
ether JSON or XML.
2. The tree has to be drag and drop, then the data base needs to be
updated.
3. I have to close the tree.

Has anyone done this?  Are there any components that do this.  I have
been looking at left right keys but was wondering if there are any
tutorials on how to do this.


Thank for the help,

timgerr



[flexcoders] Re: Skinning a scrollBar

2008-07-02 Thread djhatrick
It's all about mesuredWidth and MeasuredHeight, it has to be override,
after a while of fiddling, i picked up the my flex cookbook and it all
made sense again.

patrick

--- In flexcoders@yahoogroups.com, "djhatrick" <[EMAIL PROTECTED]> wrote:
>
> I extended the programmatic skin class, and drew into
> updateDisplayList, however, my arrowskin does not show up, any
> suggestions?  I'm working right from the Adobe example...
> 
> import mx.skins.ProgrammaticSkin
>   
> 
>   public class DownArrowSkin extends ProgrammaticSkin
>   {
>   public function DownArrowSkin()
>   {
>   super();
>   }
> 
>override protected function updateDisplayList(w:Number,
> h:Number):void {
>   this.graphics.clear();
>   this.graphics.beginFill(0x9a999a,1)
>   this.graphics.drawRoundRect(0,0,w,h,4,4);
>   this.graphics.endFill();
>  }
>   }
>




RE: [flexcoders] Re: Simple text vs htmlText length question

2008-07-02 Thread Rick Winscot
Smaskit - In ActionScript CDATA sections the \n is permitted and is parsed
in htmlText as if it were a  - the particular behavior of htmlText is
worth a skim - see: Using the htmlText property in FlexDocs.

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of smaskit
Sent: Wednesday, July 02, 2008 11:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Simple text vs htmlText length question

 

If you replace this:

textField.htmlText = text

with this:

textField.text = text

you will get the result you seek. By setting htmlText, you declare
that the input should be parsed as html. In html \n and \r are
ignored. You need to use html tags like  and .

--- In flexcoders@yahoogroups.com  ,
"Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Try using \n instead of \r.
> 
> 
> 
> Also try seeing whether setting textField.condenseWhite to true or false
> before setting textField.htmlText affects it.
> 
> 
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On
> Behalf Of cmalartre
> Sent: Wednesday, July 02, 2008 1:33 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Simple text vs htmlText length question
> 
> 
> 
> Why does the simple code below output:
> 
> -
> text.length : 4
> textField.length : 4
> text : '1
> 
> 2'
> textField.text : '12'
> -
> 
> and not:
> -
> textField.text : '1
> 
> 2'
> -
> 
> 
> http://www.adobe.com/2006/mxml
>  "
> layout="absolute">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>

 



[flexcoders] Re: Simple text vs htmlText length question

2008-07-02 Thread smaskit
If you replace this:

textField.htmlText = text

with this:

textField.text = text

you will get the result you seek. By setting htmlText, you declare
that the input should be parsed as html. In html \n and \r are
ignored. You need to use html tags like  and .

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> Try using \n instead of \r.
> 
>  
> 
> Also try seeing whether setting textField.condenseWhite to true or false
> before setting textField.htmlText affects it.
> 
>  
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of cmalartre
> Sent: Wednesday, July 02, 2008 1:33 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Simple text vs htmlText length question
> 
>  
> 
> Why does the simple code below output:
> 
> -
> text.length : 4
> textField.length : 4
> text : '1
> 
> 2'
> textField.text : '12'
> -
> 
> and not:
> -
> textField.text : '1
> 
> 2'
> -
> 
> 
> http://www.adobe.com/2006/mxml
>  "
> layout="absolute">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>




Re: [flexcoders] MySQL query from flex builder

2008-07-02 Thread Alan

Thanks Igor

Hey BTW I found a great tutorial about getting PDT and Zend debugger  
going on Flex:


http://www.themidnightcoders.com/forum/default.aspx?g=posts&t=452


Alan




On Jul 2, 2008, at 8:53 PM, Igor Costa wrote:


Alan

My friend Google give me this indication (http://quantum.sourceforge.net 
)


Regards
Igor


On Wed, Jul 2, 2008 at 5:41 PM, Alan <[EMAIL PROTECTED]> wrote:
Anyone know about any plugin that allows me to run querys from flex
builder...perhaps an eclipse plug in?

Alan




--

Igor Costa
www.igorcosta.com
www.igorcosta.org






[flexcoders] Re: Reference to mxml id from within mxml component

2008-07-02 Thread edlueze
Hi Sean:

Yep. Three-up - three-down. You nailed them all.

Thanks!

Ted.

--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> wrote:
>
> Hi Ted.
> 
> 1. Oh, right... the mouse events bubble, so they are fired not only
for your
> components, but for whatever you actually clicked on underneath it.  It
> looks like I used event.currentTarget instead of event.target.  Can you
> trace (event.target) and see if it is actually the component you wanted?
> 
> 2. Try fixing 1 and seeing if that fixes
> 
> 3. You needed to import flash.display.Spirte;  Google "flex 3 language
> reference".  you can find everything there.  The only reason I used
sprite
> was because that was the class that defines startDrag.  Normally, if
all the
> components were the same (all of type ComponentA), I would do
> event.currentTarget as ComponentA, since that's more specific. 
Since all
> flex components are UIComponents, which are sprites, they all have the
> startDrag event.  you would have to import your ComponentA though.  You
> could have done event.currentTarget as UIComponent just as easily
(import
> mx.core.UIComponent).
> 
> 
> 
> On Wed, Jul 2, 2008 at 2:36 PM, edlueze <[EMAIL PROTECTED]> wrote:
> 
> >   Thanks Sean!
> >
> > I've only just started playing with your suggestion - it seems to work
> > fine but there are some things I'm going to need to dig into before I
> > fully understand what's going on:
> >
> > 1. Not only do my components drag around fine, but the components
> > *within* those components now also drag around. Interesting, but not
> > what I expected. I'm going to have to figure out how to lock those
> > internal parts of the component.
> >
> > 2. There is some text that I'm displaying within the components. It
> > appears that this text is not allowed to be dragged, and when I click
> > on the text to drag it an error is thrown.
> >
> > 3. I now need to add an additional line of code "import
> > flash.display.*". I didn't need that before - presumably I need it now
> > to cast the component into a Sprite. Not sure which part of
> > flash.display.* I actually need.
> >
> > All the best!
> >
> > Ted.
> >
> >
> > --- In flexcoders@yahoogroups.com ,
"Sean
> > Clark Hess"  wrote:
> > >
> > > Yes, use event.target.
> > >
> > > private function onMouseDown(event:MouseEvent):void
> > > {
> > > (event.target as Spirte).startDrag();
> > > }
> > >
> > > The reason why your last two things don't work is because, unlike
> > > javascript, "this" and "id" would refer to the parent component
> > (e.g. the
> > > file you are currently editing). So, if you want to pass "id" you
> > have to
> > > pass "ComponentCId.id" (like you did in #2). Or, if you want to
> > pass "this"
> > > you have to pass "ComponentDId"
> > >
> > > This way is very consistent... this always just refers to the
file your
> > > working in. It's always easy to drill down anyway.
> > >
> > >
> > >
> > > On Wed, Jul 2, 2008 at 1:18 PM, edlueze  wrote:
> > >
> > > > I am trying to refer to the id field for an mxml component from
> > within
> > > > that component so I can pass it back to some actionscript.
> > > >
> > > > Consider this example: I want to be able to drag components
around a
> > > > panel by calling mouseDown/mouseUp from within the mxml component
> > > > definition. The first two components work (ComponentA and
ComponentB)
> > > > but the second two components don't work (ComponentC and
ComponentD).
> > > >
> > > > Being able to reference the component id from within the mxml
> > > > component provides a little more scalability. Perhaps there is a
> > > > better way altogether?
> > > >
> > > > 
> > > > 
> > > > 
> > > >
> > > > 
> > > >  > > > id="ComponentAId"
> > > > mouseDown="onMouseDown(event,'ComponentAId')"
> > > > mouseUp="onMouseUp(event,'ComponentAId')"/>
> > > >
> > > > 
> > > >  > > > id="ComponentBId"
> > > > mouseDown="onMouseDown(event,ComponentBId.id)"
> > > > mouseUp="onMouseUp(event,ComponentBId.id)"/>
> > > >
> > > > 
> > > >  > > > id="ComponentCId"
> > > > mouseDown="onMouseDown(event,id)"
> > > > mouseUp="onMouseUp(event,id)"/>
> > > >
> > > > 
> > > >  > > > id="ComponentDId"
> > > > mouseDown="onMouseDown(event,this)"
> > > > mouseUp="onMouseUp(event,this)"/>
> > > >
> > > >
> > > >
> > >
> >
> >  
> >
>




[flexcoders] Debugging Panel in Flex

2008-07-02 Thread fullerseth1992
I'm working on some debugging panels for Flex and to teach me more
about events and Flex Layout.

I've created a that will descend through a container's children and
their children, etc. and make each screen element a different color
and create a tooltip showing each component's x and y values, width,
height, and name.

Now I'm trying to create a popup window the code below this paragraph.
I've set up a right-click mouse event that triggers this function. The
ShowContainer class is an ActionScript class I've created derived from
TitleWindow. When I get the parent object in the createPopup function
it shows the container i right-clicked on. In the ShowContainer class
though, when I access its parent property it is null. Also I get
multiple copies of the ShowContainer window since several levels of
containers or controls have this event registered. I tried calling the
stopPropogate and then the stopImmediatePropogate methods in the event
handler, but that didn't seem to work. What did I do wrong.

protected function createPopup(event:MouseEvent):void {
  var showCont:ShowContainer = new ShowContainer();
  var parObj:DisplayObject = null;
  parObj = event.target as DisplayObject;
  if (null == parObj) {
trace('DebugPanel.createPopup parObj == null');
parObj = event.currentTarget as DisplayObject;
  }
  if (null == parObj) {
trace('DebugPanel.createPopup parObj == null');
  }
  else {
trace('DebugPanel.createPopup parObj == ' + parObj.toString());
  }

  PopUpManager.addPopUp(showCont, parObj, false);
}




RE: [flexcoders]

2008-07-02 Thread Tim Rowe
I could be mistaken, but it was my understanding that the Flex Builder
plug-in was not yet compatible with Ganymede (3.4), only Europa (3.3).

 

--Tim Rowe

Software Engineer

carsales.com.au



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Lieven Cardoen
Sent: Tuesday, 1 July 2008 11:22 PM
To: flexcoders@yahoogroups.com
Cc: Bert Vandamme
Subject: [flexcoders] 

 

Hi guys,

 

We just installed Eclipse 3.4 with FlexBuilder and when opening a mxml
file we get this error?

 

Thx, Lieven Cardoen

 

 

Cardoen Lieven
development engineer - teamlead

televic education nv
Innovative technology for your learning environment!

 

Phone   +32 (0)56 36 21 91

Email   [EMAIL PROTECTED]
 

Website   www.televic-education.com


Televic Education NV

Leo Bekaertlaan 1

8870 Izegem - Belgium

 

// communicatie bij voorkeur via e-mail

 

 



RE: [flexcoders] THIS IS ABSOLUTELY NUTS

2008-07-02 Thread Tim Rowe
Though you seem to have this figured out, might I suggest that you add a
build number to your compiled project somewhere that you can verify when
loading it?  This will at least help you determine what version you're
getting, whether it's coming from cache etc.

The cache problem has been mentioned by many - it might be worth noting
from my experience Flash doesn't always honour http meta tags such as
No-Cache.

 

Though others have already picked it to death, what is it that indicated
to you that it 'does not compile'.  If it's just that it appears to do
very little, remember that like most common compilers, Flex does
incremental building and linking.

 

--Tim Rowe

Software Engineer

carsales.com.au



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan Pride
Sent: Wednesday, 2 July 2008 4:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] THIS IS ABSOLUTELY NUTS

 

I have an application which will not compile, delivers no error code and
simply gives me the last good app with no explanation whatsoever???

Who designed this thing and what were they thinking?

Clean app does nothing.

No error code

No way to get an error code.

What does one do???

I can develop fine, but when I go to export a release and send it up the
the net, WITHOUT WARNING I JUST KEEP GETTING THE SAME OLD CRAP LIKE I
NEVER DID ANYTHING.

AGAIN NO WARNING
G

 



[flexcoders] MXML component with multiple controls as an itemRenderer

2008-07-02 Thread Keith
*QUESTION:
Can anyone send a good link explaining how to build a MXML component 
with mulitple input controls
using it as an itemRenderer in a List?

**My controls of the list items reset and do not update when I scroll  
them outside the length of the List.*
*


EXAMPLE:
Here is my failed attempt but it shows what I'm trying to do:
http://tinyurl.com/46rjmk

Thanks,

-- Keith H --
*


RE: [flexcoders] Flex Builder Debug Issue

2008-07-02 Thread Tracy Spratt
Are you running Firefox with any add-ins, like "GreaseMonkey"?  This is
a known issue.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jonese
Sent: Wednesday, July 02, 2008 5:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Builder Debug Issue

 

Hey all my flex debugger has stopped working. I've done the following
trying to fix it

* I've uninstalled flash using the adobe uninstaller.
* Rebooted my machine.
* Downloaded the latest debugger from adobe's website.
* Install latest flash debug player.
* Verified via Adobe KB that i have the latest version and it is a
debugger version.
* Tried to run debug for a basic flex applicaiton in both FF3 and IE7
both failed.

Any thoughts what could be wrong?

jonese
http://www.jonese.us  
http://twitter.com/jonese  

 



RE: [flexcoders] Inspecting data from HTTPService result to an ArrayCollection

2008-07-02 Thread Tracy Spratt
A DataGrid can directly consume both XMLList and XMLListCollection. 

 

Search the archives for a full discussion of DataGrid performance.  Also
these blog entries: http://blog.fastlanesw.com/?p=14
 ,  http://blog.fastlanesw.com/?p=16.
  I think it was Scott who brought
this issue to the attention of the community first.

 

This really only seems to be a major factor when you have many visible
itemRenderers.  I still use XML a lot.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sean Clark Hess
Sent: Wednesday, July 02, 2008 6:19 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Inspecting data from HTTPService result to an
ArrayCollection

 

Tracy, 

can a datagrid read an xml object directly?  (Like, an XMLList or
XMLListCollection?)  If so, why would manually converting it perform
better than the original XML?  Does it have something to do with the
strong typing?

Thanks
~sean

On Wed, Jul 2, 2008 at 4:29 PM, Tracy Spratt <[EMAIL PROTECTED]
 > wrote:

It is a rare case that you want to use mx:Model or the default
resultFormat="object".  You take the performance hit for the conversion,
you have no control over the conversion process (your strings that look
like numbers will get converted to numbers, willy nilly) and you wind up
with dynamic objects, which have an access peformance penalty.

 

I advise using resultFormat="e4x", a result handler function, and an
instance variable to hold the xmlResult.

 

The best performance, especially in a multi-renderer DataGrid, will be
if you manually convert the XML node data ino an ArrayCollection of
strongly typed value objects.

 

Tracy

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Sean Clark Hess
Sent: Wednesday, July 02, 2008 4:05 PM
To: flexcoders@yahoogroups.com  
Subject: Re: [flexcoders] Inspecting data from HTTPService result to an
ArrayCollection

 

Ah, got it. 

The  tag converts everything to a flat object.  So the minute
you use it, you no longer have xml. 

It's still easy enough to loop through though.  

var result:Object = myData.getItemAt(0);
for (var name:String in result)
{
trace(name + " :: " + result[name]);
}

should output
apple :: 81768
orange :: 60310
banana :: 43357

On Wed, Jul 2, 2008 at 1:46 PM, Stephen More <[EMAIL PROTECTED]
 > wrote:

Here is my output:

DEBUG: 2 null
[object Object]
CHECK : false
CHECK : false

Here is all the code:


http://www.adobe.com/2006/mxml
 "
width="100%" height="100%">

import mx.utils.ArrayUtil;




























On Wed, Jul 2, 2008 at 3:34 PM, Sean Clark Hess <[EMAIL PROTECTED]
 > wrote:
> What do you get when you trace myData.getItemAt(0)? That will return
null
> if it isn't an XML. You can do this too:
>
> trace("CHECK : " + (myData.getItemAt(0) is XML));
>
> You can check to see if it is an XMLList too, but I thought looking at
it,
> it seemed like a flat xml.
>
> On Wed, Jul 2, 2008 at 1:32 PM, Stephen More <[EMAIL PROTECTED]
 > wrote:
>>
>> Thats what I was thinking but when I try:
>>
>> var myXML:XML;
>> myXML = myData.getItemAt(0) as XML;
>> trace( "DEBUG: " + myXML );
>>
>> I get
>> DEBUG: null
>>
>> On Wed, Jul 2, 2008 at 2:30 PM, Sean Clark Hess <[EMAIL PROTECTED]
 >
>> wrote:
>> > Each row is an xml object...
>> >
>> > So, (myData.getItemAt(i) as XML).children()
>> >
>> > Then you could loop through the children and ask them for their
name.
>> > After
>> > the as XML step you can do anything you can normally do with the
XML
>> > object
>> >
>> > On Wed, Jul 2, 2008 at 12:11 PM, Stephen More
<[EMAIL PROTECTED]  >
>> > wrote:
>> >>
>> >> ( Example code taken from:
>> >> http://livedocs.adobe.com/flex/201/html/charts_intro_108_12.html
  )
>> >> Here is the dataset I am trying to work with:
>> >>
>> >> 
>> >> 
>> >> 81768
>> >> 60310
>> >> 43357
>> >> 
>> >> 
>> >> 81156
>> >> 58883
>> >> 49280
>> >> 
>> >> 
>> >>
>> >> The flex code will look like this:
>> >> > >> id="srv"
>> >> url="../assets/data.xml"
>> >> useProxy="false"
>> >> result="myData=ArrayCollection(srv.lastResult.data.result)"
>> >> />
>> >>
>> >> How can I interrogate the ArrayCollection named myData so that it
will
>> >> return apple, orange, and banana ?
>> >> I am not looking to get the numerical values, I want to get the
xml
>> >> name.
>> >>
>> >> -Thanks
>> >> Steve More
>> >
>> >
>
> 

 

 

 



[flexcoders] Re: Question about ContextMenu and dataGrid

2008-07-02 Thread Amy
--- In flexcoders@yahoogroups.com, "markgoldin_2000" 
<[EMAIL PROTECTED]> wrote:
>
> I wasn't right, the grid is enabled.
> I have added this to the grid:
> addEventListener("itemFocusIn", itemFocusInHandler);
> 
> itemFocusInHandler does not fire.

How bout itemClick?



[flexcoders] Skinning a scrollBar

2008-07-02 Thread djhatrick
I extended the programmatic skin class, and drew into
updateDisplayList, however, my arrowskin does not show up, any
suggestions?  I'm working right from the Adobe example...

import mx.skins.ProgrammaticSkin


public class DownArrowSkin extends ProgrammaticSkin
{
public function DownArrowSkin()
{
super();
}

 override protected function updateDisplayList(w:Number,
h:Number):void {
this.graphics.clear();
this.graphics.beginFill(0x9a999a,1)
this.graphics.drawRoundRect(0,0,w,h,4,4);
this.graphics.endFill();
 }
}



RE: [flexcoders] Refreshing array inside a DataGrid itemRenderer

2008-07-02 Thread Alex Harui
You can pass an array into a List or ComboBox and it will display it.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom McNeer
Sent: Wednesday, July 02, 2008 1:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Refreshing array inside a DataGrid itemRenderer

 

Hi,

I'm pretty new to Flex, so I'm sure I'm missing the obvious. But here's
the situation: inside a custom component, I am displaying the contents
of an Actionscript Object (custom class).

I have a DataGrid bound to an ArrayCollection which is one of the
properties of the Object. The source array contains Value Objects which
are populated by a RemoteObject call to ColdFusion. One property of the
Value Object is also an array. So it looks like this:

Object:Config has an itemAC property. The itemAC contains an array of
Item objects. The Item is the VO. The Item contains an options:Array.
The options:Array contains optionItems. One of the properties of an
optionItem is an optionName.

So the DataProvider for my DG is {config.itemAC}. This is fine.

However, I need one column of my DG to show a simple list of the
associated optionNames.

I can't make the options:Array within the Item VO an ArrayCollection, or
Flex will not translate the objects sent by ColdFusion into a typed AS
object. 

So I have created an itemRenderer for the DG, in which I loop over the
options:Array in the current row's data and build a string. But of
course, this has to be updated as options are added to the array. I have
tried placing a datachange listener inside the renderer itself; but when
it fires, it's creating an infinite loop -- to the point where I can't
even debug it.

At this point, I'm basically spinning wheels and I could use a little
direction. I realize this whole problem sounds pretty vague; but any
advice would be appreciated.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com  
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560 

 



RE: [flexcoders] about the datagrid will auto scroll after drag-droped

2008-07-02 Thread Alex Harui
I believe there already is a bug on that issue.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of y x
Sent: Wednesday, July 02, 2008 2:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] about the datagrid will auto scroll after
drag-droped

 

Hi all,
here is the test application: drag some data from the left list to
the 
datagrid until it display a vertical srollbar, then, as the mouse moved
(not 
click down), the datagrid will response the mousemove event and scroll.

the scrollbar will not response the movement of the mouse if the
data is 
no dragged into the grid. so ,I think the  datagrid was added  a
listener to 
response the mouse movement for the drop action.

so, anyone knows how can I remove this listener as the drop is over?

Thanks!

Speed
2008-07-02

---the test application code--


http://www.adobe.com/2006/mxml
 "
creationComplete="initApp();">



















 

 



Re: [flexcoders] MySQL query from flex builder

2008-07-02 Thread Igor Costa
Alan

My friend Google give me this indication (http://quantum.sourceforge.net)

Regards
Igor

On Wed, Jul 2, 2008 at 5:41 PM, Alan <[EMAIL PROTECTED]> wrote:

>   Anyone know about any plugin that allows me to run querys from flex
> builder...perhaps an eclipse plug in?
>
> Alan
>  
>



-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


[flexcoders] How to set up Flex builder 3 with LCDS 2.5?

2008-07-02 Thread markflex2007
Hi,

I plan to use Flex ,LCDS and web service to build a flex application.

But I do not have a idea how to set up the project in Flex builder 3.

LCDS web root is C:\lcds\jrun4\servers\default.


Please give me a idea.Thanks

Mark



Re: [flexcoders] remover water mark from Trial version

2008-07-02 Thread Enjoy Jake
Rick! Get back here! I'm not quite done with the inside of your left cheek!



- Original Message 
From: Rick Winscot <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 2, 2008 4:51:58 PM
Subject: RE: [flexcoders] remover water mark from Trial version


I’d be happy to do it… however – I’m in the middle of getting my
butt waxed. Scratch that – I’d be happy to do it!
 
Rick Winscot
 
 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Vivian
Richard
Sent: Wednesday, July 02, 2008 7:25 PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] remover water mark from Trial version
 


   Thanks Rick, that would be too much to ask for. I guess
   only JESUS would do that for some one. :-)))



On Wed, Jul 2, 2008 at 4:17 PM, Rick Winscot  wrote:
Have
someone that owns Flex 3 Professional compile it for you… the compiled output
won't have the watermark.
 
Rick
Winscot
 
 
From:[EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of 
hworke
Sent: Wednesday, July 02, 2008 6:22 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] remover water mark from Trial version
 
Hi I am using flex 3 trial version and it puts
a water mark on charting components. Is there
any way to remove it? I have flex 2 but want to
use a feature of flex 3 for a presentation. 
  


  

RE: [flexcoders] Anyone Know of a Good Flex MP3 Player?

2008-07-02 Thread Rick Winscot
There once was this guy that knew a dude that had one. Gweedo was his name.
or was it Frankie. I can't remember, any ways. I said, "Hey yous guys!" and
they said, "Use the Google" and I did. 

 

http://labs.flexcoders.nl/2006/12/10/easy-to-use-mp3player-version-001/ 

http://flash-mp3-player.net/ 

http://axel.cfwebtools.com/index.cfm/2007/10/18/Open-source-flex-xml-mp3-pla
yer

http://www.riapedia.com/2006/12/07/a_flex_2_streaming_mp3_player 

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wwwpl
Sent: Wednesday, July 02, 2008 11:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Anyone Know of a Good Flex MP3 Player?

 

Does anyone know of a good open source Flex mp3 player? I have seen a 
few good Flash mp3 players but they don't come with the source. 
Actually, I don't need the source if the player is what I want.

Thanks

 



RE: [flexcoders] remover water mark from Trial version

2008-07-02 Thread Rick Winscot
I'd be happy to do it. however - I'm in the middle of getting my butt waxed.
Scratch that - I'd be happy to do it!

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Vivian Richard
Sent: Wednesday, July 02, 2008 7:25 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] remover water mark from Trial version

 



   Thanks Rick, that would be too much to ask for. I guess
   only JESUS would do that for some one. :-)))




On Wed, Jul 2, 2008 at 4:17 PM, Rick Winscot <[EMAIL PROTECTED]> wrote:

Have someone that owns Flex 3 Professional compile it for you. the compiled
output won't have the watermark.

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hworke
Sent: Wednesday, July 02, 2008 6:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] remover water mark from Trial version

 

Hi I am using flex 3 trial version and it puts
a water mark on charting components. Is there
any way to remove it? I have flex 2 but want to
use a feature of flex 3 for a presentation. 

 

 



Re: [flexcoders] remover water mark from Trial version

2008-07-02 Thread Vivian Richard
   Thanks Rick, that would be too much to ask for. I guess
   only JESUS would do that for some one. :-)))



On Wed, Jul 2, 2008 at 4:17 PM, Rick Winscot <[EMAIL PROTECTED]> wrote:

>Have someone that owns Flex 3 Professional compile it for you… the
> compiled output won't have the watermark.
>
>
>
> Rick Winscot
>
>
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *hworke
> *Sent:* Wednesday, July 02, 2008 6:22 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] remover water mark from Trial version
>
>
>
> Hi I am using flex 3 trial version and it puts
> a water mark on charting components. Is there
> any way to remove it? I have flex 2 but want to
> use a feature of flex 3 for a presentation.
>
>   
>


Re: [flexcoders] remover water mark from Trial version

2008-07-02 Thread Vivian Richard
   Wrong advices Since I have Flex 2, I guess I just
   need to upgrade it to 3, Instead of buying it 3 :-).
   Just kidding. Well I think that since the trial version
   is going to expire in 60 days there was no point
   of putting the water mark.



On Wed, Jul 2, 2008 at 4:12 PM, Alan Rother <[EMAIL PROTECTED]> wrote:

>   >>>But don't buy just any version. The Standard version doesn't include
> charting components, so you have to buy the $699 Professional version.
>
> Yes, good point, thank you. I did forget to mention that.
> --
> Alan Rother
> Adobe Certified Advanced ColdFusion MX 7 Developer
> Manager, Phoenix Cold Fusion User Group, AZCFUG.org
>  
>


RE: [flexcoders] remover water mark from Trial version

2008-07-02 Thread Rick Winscot
Have someone that owns Flex 3 Professional compile it for you. the compiled
output won't have the watermark.

 

Rick Winscot

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hworke
Sent: Wednesday, July 02, 2008 6:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] remover water mark from Trial version

 

Hi I am using flex 3 trial version and it puts
a water mark on charting components. Is there
any way to remove it? I have flex 2 but want to
use a feature of flex 3 for a presentation. 

 



Re: [flexcoders] remover water mark from Trial version

2008-07-02 Thread Alan Rother
>>>But don't buy just any version. The Standard version doesn't include
charting components, so you have to buy the $699 Professional version.

Yes, good point, thank you. I did forget to mention that.
-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


Re: [flexcoders] remover water mark from Trial version

2008-07-02 Thread Enjoy Jake
But don't buy just any version. The Standard version doesn't include charting 
components, so you have to buy the $699 Professional version.

Unless you're an education customer (student, faculty, or staff) then you can 
get it FREE at https://www.flexregistration.com/



- Original Message 
From: Alan Rother <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 2, 2008 3:27:43 PM
Subject: Re: [flexcoders] remover water mark from Trial version


Yes, simply buy a copy of Flex 3, install it and the watermark will go away.

There is no other legal way to remove it. The watermark is there for this very 
purpose.


>>>

Hi I am using flex 3 trial version and it puts
a water mark on charting components. Is there
any way to remove it? I have flex 2 but want to
use a feature of flex 3 for a presentation. 


-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org 


  

Re: [flexcoders] Re: Reference to mxml id from within mxml component

2008-07-02 Thread Sean Clark Hess
Hi Ted.

1. Oh, right... the mouse events bubble, so they are fired not only for your
components, but for whatever you actually clicked on underneath it.  It
looks like I used event.currentTarget instead of event.target.  Can you
trace (event.target) and see if it is actually the component you wanted?

2. Try fixing 1 and seeing if that fixes

3. You needed to import flash.display.Spirte;  Google "flex 3 language
reference".  you can find everything there.  The only reason I used sprite
was because that was the class that defines startDrag.  Normally, if all the
components were the same (all of type ComponentA), I would do
event.currentTarget as ComponentA, since that's more specific.  Since all
flex components are UIComponents, which are sprites, they all have the
startDrag event.  you would have to import your ComponentA though.  You
could have done event.currentTarget as UIComponent just as easily (import
mx.core.UIComponent).



On Wed, Jul 2, 2008 at 2:36 PM, edlueze <[EMAIL PROTECTED]> wrote:

>   Thanks Sean!
>
> I've only just started playing with your suggestion - it seems to work
> fine but there are some things I'm going to need to dig into before I
> fully understand what's going on:
>
> 1. Not only do my components drag around fine, but the components
> *within* those components now also drag around. Interesting, but not
> what I expected. I'm going to have to figure out how to lock those
> internal parts of the component.
>
> 2. There is some text that I'm displaying within the components. It
> appears that this text is not allowed to be dragged, and when I click
> on the text to drag it an error is thrown.
>
> 3. I now need to add an additional line of code "import
> flash.display.*". I didn't need that before - presumably I need it now
> to cast the component into a Sprite. Not sure which part of
> flash.display.* I actually need.
>
> All the best!
>
> Ted.
>
>
> --- In flexcoders@yahoogroups.com , "Sean
> Clark Hess" <[EMAIL PROTECTED]> wrote:
> >
> > Yes, use event.target.
> >
> > private function onMouseDown(event:MouseEvent):void
> > {
> > (event.target as Spirte).startDrag();
> > }
> >
> > The reason why your last two things don't work is because, unlike
> > javascript, "this" and "id" would refer to the parent component
> (e.g. the
> > file you are currently editing). So, if you want to pass "id" you
> have to
> > pass "ComponentCId.id" (like you did in #2). Or, if you want to
> pass "this"
> > you have to pass "ComponentDId"
> >
> > This way is very consistent... this always just refers to the file your
> > working in. It's always easy to drill down anyway.
> >
> >
> >
> > On Wed, Jul 2, 2008 at 1:18 PM, edlueze <[EMAIL PROTECTED]> wrote:
> >
> > > I am trying to refer to the id field for an mxml component from
> within
> > > that component so I can pass it back to some actionscript.
> > >
> > > Consider this example: I want to be able to drag components around a
> > > panel by calling mouseDown/mouseUp from within the mxml component
> > > definition. The first two components work (ComponentA and ComponentB)
> > > but the second two components don't work (ComponentC and ComponentD).
> > >
> > > Being able to reference the component id from within the mxml
> > > component provides a little more scalability. Perhaps there is a
> > > better way altogether?
> > >
> > > 
> > > 
> > > 
> > >
> > > 
> > >  > > id="ComponentAId"
> > > mouseDown="onMouseDown(event,'ComponentAId')"
> > > mouseUp="onMouseUp(event,'ComponentAId')"/>
> > >
> > > 
> > >  > > id="ComponentBId"
> > > mouseDown="onMouseDown(event,ComponentBId.id)"
> > > mouseUp="onMouseUp(event,ComponentBId.id)"/>
> > >
> > > 
> > >  > > id="ComponentCId"
> > > mouseDown="onMouseDown(event,id)"
> > > mouseUp="onMouseUp(event,id)"/>
> > >
> > > 
> > >  > > id="ComponentDId"
> > > mouseDown="onMouseDown(event,this)"
> > > mouseUp="onMouseUp(event,this)"/>
> > >
> > >
> > >
> >
>
>  
>


Re: [flexcoders] remover water mark from Trial version

2008-07-02 Thread Alan Rother
Yes, simply buy a copy of Flex 3, install it and the watermark will go away.

There is no other legal way to remove it. The watermark is there for this
very purpose.

>>>

>   Hi I am using flex 3 trial version and it puts
> a water mark on charting components. Is there
> any way to remove it? I have flex 2 but want to
> use a feature of flex 3 for a presentation.
>



-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


[flexcoders] Flex Builder Debug Issue

2008-07-02 Thread jonese
Hey all my flex debugger has stopped working. I've done the following
trying to fix it

* I've uninstalled flash using the adobe uninstaller.
* Rebooted my machine.
* Downloaded the latest debugger from adobe's website.
* Install latest flash debug player.
* Verified via Adobe KB that i have the latest version and it is a
debugger version.
* Tried to run debug for a basic flex applicaiton in both FF3 and IE7
both failed.

Any thoughts what could be wrong?

jonese
http://www.jonese.us
http://twitter.com/jonese


[flexcoders] about the datagrid will auto scroll after drag-droped

2008-07-02 Thread y x
Hi all,
    here is the test application: drag some data from the left list to the 
datagrid until it display a vertical srollbar, then, as the mouse moved (not 
click down), the datagrid will response the mousemove event and scroll.

    the scrollbar will not response the movement of the mouse if the data is 
no dragged into the grid. so ,I think the  datagrid was added  a listener to 
response the mouse movement for the drop action.

    so, anyone knows how can I remove this listener as the drop is over?

    Thanks!

Speed
2008-07-02

---the test application code--


http://www.adobe.com/2006/mxml";
    creationComplete="initApp();">

    
    
    

    
    

    
    
    
    
    
    
    
    

    

 



  


[flexcoders] MySQL query from flex builder

2008-07-02 Thread Alan
Anyone know about any plugin that allows me to run querys from flex  
builder...perhaps an eclipse plug in?

Alan


[flexcoders] Refreshing array inside a DataGrid itemRenderer

2008-07-02 Thread Tom McNeer
Hi,

I'm pretty new to Flex, so I'm sure I'm missing the obvious. But here's the
situation: inside a custom component, I am displaying the contents of an
Actionscript Object (custom class).

I have a DataGrid bound to an ArrayCollection which is one of the properties
of the Object. The source array contains Value Objects which are populated
by a RemoteObject call to ColdFusion. One property of the Value Object is
also an array. So it looks like this:

Object:Config has an itemAC property. The itemAC contains an array of Item
objects. The Item is the VO. The Item contains an options:Array. The
options:Array contains optionItems. One of the properties of an optionItem
is an optionName.

So the DataProvider for my DG is {config.itemAC}. This is fine.

However, I need one column of my DG to show a simple list of the associated
optionNames.

I can't make the options:Array within the Item VO an ArrayCollection, or
Flex will not translate the objects sent by ColdFusion into a typed AS
object.

So I have created an itemRenderer for the DG, in which I loop over the
options:Array in the current row's data and build a string. But of course,
this has to be updated as options are added to the array. I have tried
placing a datachange listener inside the renderer itself; but when it fires,
it's creating an infinite loop -- to the point where I can't even debug it.

At this point, I'm basically spinning wheels and I could use a little
direction. I realize this whole problem sounds pretty vague; but any advice
would be appreciated.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Re: Reference to mxml id from within mxml component

2008-07-02 Thread edlueze
Thanks Sean!

I've only just started playing with your suggestion - it seems to work
fine but there are some things I'm going to need to dig into before I
fully understand what's going on:

1. Not only do my components drag around fine, but the components
*within* those components now also drag around. Interesting, but not
what I expected. I'm going to have to figure out how to lock those
internal parts of the component.

2. There is some text that I'm displaying within the components. It
appears that this text is not allowed to be dragged, and when I click
on the text to drag it an error is thrown.

3. I now need to add an additional line of code "import
flash.display.*". I didn't need that before - presumably I need it now
to cast the component into a Sprite. Not sure which part of
flash.display.* I actually need.

All the best!

Ted.

--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> wrote:
>
> Yes, use event.target.
> 
> private function onMouseDown(event:MouseEvent):void
> {
> (event.target as Spirte).startDrag();
> }
> 
> The reason why your last two things don't work is because, unlike
> javascript, "this" and "id" would refer to the parent component
(e.g. the
> file you are currently editing).  So, if you want to pass "id" you
have to
> pass "ComponentCId.id" (like you did in #2).  Or, if you want to
pass "this"
> you have to pass "ComponentDId"
> 
> This way is very consistent... this always just refers to the file your
> working in.  It's always easy to drill down anyway.
> 
> 
> 
> On Wed, Jul 2, 2008 at 1:18 PM, edlueze <[EMAIL PROTECTED]> wrote:
> 
> >   I am trying to refer to the id field for an mxml component from
within
> > that component so I can pass it back to some actionscript.
> >
> > Consider this example: I want to be able to drag components around a
> > panel by calling mouseDown/mouseUp from within the mxml component
> > definition. The first two components work (ComponentA and ComponentB)
> > but the second two components don't work (ComponentC and ComponentD).
> >
> > Being able to reference the component id from within the mxml
> > component provides a little more scalability. Perhaps there is a
> > better way altogether?
> >
> > 
> > 
> > 
> >
> > 
> >  > id="ComponentAId"
> > mouseDown="onMouseDown(event,'ComponentAId')"
> > mouseUp="onMouseUp(event,'ComponentAId')"/>
> >
> > 
> >  > id="ComponentBId"
> > mouseDown="onMouseDown(event,ComponentBId.id)"
> > mouseUp="onMouseUp(event,ComponentBId.id)"/>
> >
> > 
> >  > id="ComponentCId"
> > mouseDown="onMouseDown(event,id)"
> > mouseUp="onMouseUp(event,id)"/>
> >
> > 
> >  > id="ComponentDId"
> > mouseDown="onMouseDown(event,this)"
> > mouseUp="onMouseUp(event,this)"/>
> >
> >  
> >
>




[flexcoders] remover water mark from Trial version

2008-07-02 Thread hworke
Hi I am using flex 3 trial version and it puts
a water mark on charting components. Is there
any way to remove it? I have flex 2 but want to
use a feature of flex 3 for a presentation. 



[flexcoders] Re: Missing AsnDecoder Class

2008-07-02 Thread Geoffrey
Odd, the AsnDecoder class isn't listed in the online LCDS Java API. 
Maybe they didn't release this class.

I can't seem to find any info about this class online.

Jeeze, what the heck did I do?

Geoff

--- In flexcoders@yahoogroups.com, "Geoffrey" <[EMAIL PROTECTED]> wrote:
>
> I seem to have the wrong version of the flex-messaging jar because
> when I start my server I get the spew below.  I looked at all the
> flex-messaging jars on my system and I don't see it anywhere.  All
> copies have the same manifest of:
>   Manifest-Version: 1.0
>   Ant-Version: Apache Ant 1.6.2
>   Created-By: 1.5.0_11-b03 (Sun Microsystems Inc.)
>   Sealed: false
>   Implementation-Title: LiveCycle Data Services 2.5.1
>   Implementation-Version: 2.5.1.173666
>   Implementation-Vendor: Adobe Systems Inc.
> 
> Any ideas?
> 
> Jul 2, 2008 10:32:27 AM org.apache.catalina.core.ApplicationContext log
> SEVERE: StandardWrapper.Throwable
> java.lang.NoClassDefFoundError: flex/messaging/license/AsnDecoder
>   at
flex.messaging.license.StandardLicense.(StandardLicense.java:50)
>   at
>
flex.messaging.license.LicenseServiceImpl.validateLicense(LicenseServiceImpl.java:250)
>   at
>
flex.messaging.license.LicenseServiceImpl.init(LicenseServiceImpl.java:296)
>   at
>
flex.messaging.MessageBrokerServlet.buildLicenseService(MessageBrokerServlet.java:274)
>   at
> flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:117)
>   at
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
>   at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
>   at
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
>   at
>
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
>   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>   at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>   at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>   at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:585)
>   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Jul 2, 2008 10:32:27 AM org.apache.catalina.core.StandardContext
> loadOnStartup
> SEVERE: Servlet /air-lcds threw load() exception
> java.lang.NoClassDefFoundError: flex/messaging/license/AsnDecoder
>   at
flex.messaging.license.StandardLicense.(StandardLicense.java:50)
>   at
>
flex.messaging.license.LicenseServiceImpl.validateLicense(LicenseServiceImpl.java:250)
>   at
>
flex.messaging.license.LicenseServiceImpl.init(LicenseServiceImpl.java:296)
>   at
>
flex.messaging.MessageBrokerServlet.buildLicenseService(MessageBrokerServlet.java:274)
>   at
> flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:117)
>   at
>
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
>   at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
>   at
>
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
>   at
>
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
>   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>   at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>   at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>   at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>   at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>   at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>   at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>   at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>   at java.lang.reflect.Method.invoke(Method.java:585)
>   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Jul 2, 2008 10:32:27 AM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> 

Re: [flexcoders] Inspecting data from HTTPService result to an ArrayCollection

2008-07-02 Thread Sean Clark Hess
Tracy,

can a datagrid read an xml object directly?  (Like, an XMLList or
XMLListCollection?)  If so, why would manually converting it perform better
than the original XML?  Does it have something to do with the strong typing?

Thanks
~sean

On Wed, Jul 2, 2008 at 4:29 PM, Tracy Spratt <[EMAIL PROTECTED]> wrote:

>It is a rare case that you want to use mx:Model or the default
> resultFormat="object".  You take the performance hit for the conversion, you
> have no control over the conversion process (your strings that look like
> numbers will get converted to numbers, willy nilly) and you wind up with
> dynamic objects, which have an access peformance penalty.
>
>
>
> I advise using resultFormat="e4x", a result handler function, and an
> instance variable to hold the xmlResult.
>
>
>
> The best performance, especially in a multi-renderer DataGrid, will be if
> you manually convert the XML node data ino an ArrayCollection of strongly
> typed value objects.
>
>
>
> Tracy
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Sean Clark Hess
> *Sent:* Wednesday, July 02, 2008 4:05 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Inspecting data from HTTPService result to an
> ArrayCollection
>
>
>
> Ah, got it.
>
> The  tag converts everything to a flat object.  So the minute you
> use it, you no longer have xml.
>
> It's still easy enough to loop through though.
>
> var result:Object = myData.getItemAt(0);
> for (var name:String in result)
> {
> trace(name + " :: " + result[name]);
> }
>
> should output
> apple :: 81768
> orange :: 60310
> banana :: 43357
>
>  On Wed, Jul 2, 2008 at 1:46 PM, Stephen More <[EMAIL PROTECTED]>
> wrote:
>
> Here is my output:
>
> DEBUG: 2 null
> [object Object]
> CHECK : false
> CHECK : false
>
> Here is all the code:
> 
> 
> http://www.adobe.com/2006/mxml";
> width="100%" height="100%">
> 
> import mx.utils.ArrayUtil;
> 
>
> 
>  source="{ArrayUtil.toArray(results.result)}"
> />
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>  labelPlacement="right" color="#993300"
> click="printMessage(event);"/>
>
> 
> 
> 
>
> 
> 
>
>
>
> On Wed, Jul 2, 2008 at 3:34 PM, Sean Clark Hess <[EMAIL 
> PROTECTED]>
> wrote:
> > What do you get when you trace myData.getItemAt(0)? That will return null
> > if it isn't an XML. You can do this too:
> >
> > trace("CHECK : " + (myData.getItemAt(0) is XML));
> >
> > You can check to see if it is an XMLList too, but I thought looking at
> it,
> > it seemed like a flat xml.
> >
> > On Wed, Jul 2, 2008 at 1:32 PM, Stephen More <[EMAIL 
> > PROTECTED]>
> wrote:
> >>
> >> Thats what I was thinking but when I try:
> >>
> >> var myXML:XML;
> >> myXML = myData.getItemAt(0) as XML;
> >> trace( "DEBUG: " + myXML );
> >>
> >> I get
> >> DEBUG: null
> >>
> >> On Wed, Jul 2, 2008 at 2:30 PM, Sean Clark Hess <[EMAIL 
> >> PROTECTED]
> >
> >> wrote:
> >> > Each row is an xml object...
> >> >
> >> > So, (myData.getItemAt(i) as XML).children()
> >> >
> >> > Then you could loop through the children and ask them for their name.
> >> > After
> >> > the as XML step you can do anything you can normally do with the XML
> >> > object
> >> >
> >> > On Wed, Jul 2, 2008 at 12:11 PM, Stephen More <[EMAIL 
> >> > PROTECTED]
> >
> >> > wrote:
> >> >>
> >> >> ( Example code taken from:
> >> >> http://livedocs.adobe.com/flex/201/html/charts_intro_108_12.html )
> >> >> Here is the dataset I am trying to work with:
> >> >>
> >> >> 
> >> >> 
> >> >> 81768
> >> >> 60310
> >> >> 43357
> >> >> 
> >> >> 
> >> >> 81156
> >> >> 58883
> >> >> 49280
> >> >> 
> >> >> 
> >> >>
> >> >> The flex code will look like this:
> >> >>  >> >> id="srv"
> >> >> url="../assets/data.xml"
> >> >> useProxy="false"
> >> >> result="myData=ArrayCollection(srv.lastResult.data.result)"
> >> >> />
> >> >>
> >> >> How can I interrogate the ArrayCollection named myData so that it
> will
> >> >> return apple, orange, and banana ?
> >> >> I am not looking to get the numerical values, I want to get the xml
> >> >> name.
> >> >>
> >> >> -Thanks
> >> >> Steve More
> >> >
> >> >
> >
> >
>
>
>
>  
>


RE: [flexcoders] Inspecting data from HTTPService result to an ArrayCollection

2008-07-02 Thread Tracy Spratt
It is a rare case that you want to use mx:Model or the default
resultFormat="object".  You take the performance hit for the conversion,
you have no control over the conversion process (your strings that look
like numbers will get converted to numbers, willy nilly) and you wind up
with dynamic objects, which have an access peformance penalty.

 

I advise using resultFormat="e4x", a result handler function, and an
instance variable to hold the xmlResult.

 

The best performance, especially in a multi-renderer DataGrid, will be
if you manually convert the XML node data ino an ArrayCollection of
strongly typed value objects.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sean Clark Hess
Sent: Wednesday, July 02, 2008 4:05 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Inspecting data from HTTPService result to an
ArrayCollection

 

Ah, got it. 

The  tag converts everything to a flat object.  So the minute
you use it, you no longer have xml. 

It's still easy enough to loop through though.  

var result:Object = myData.getItemAt(0);
for (var name:String in result)
{
trace(name + " :: " + result[name]);
}

should output
apple :: 81768
orange :: 60310
banana :: 43357



On Wed, Jul 2, 2008 at 1:46 PM, Stephen More <[EMAIL PROTECTED]
 > wrote:

Here is my output:

DEBUG: 2 null
[object Object]
CHECK : false
CHECK : false

Here is all the code:


http://www.adobe.com/2006/mxml
 "
width="100%" height="100%">

import mx.utils.ArrayUtil;




























On Wed, Jul 2, 2008 at 3:34 PM, Sean Clark Hess <[EMAIL PROTECTED]
 > wrote:
> What do you get when you trace myData.getItemAt(0)? That will return
null
> if it isn't an XML. You can do this too:
>
> trace("CHECK : " + (myData.getItemAt(0) is XML));
>
> You can check to see if it is an XMLList too, but I thought looking at
it,
> it seemed like a flat xml.
>
> On Wed, Jul 2, 2008 at 1:32 PM, Stephen More <[EMAIL PROTECTED]
 > wrote:
>>
>> Thats what I was thinking but when I try:
>>
>> var myXML:XML;
>> myXML = myData.getItemAt(0) as XML;
>> trace( "DEBUG: " + myXML );
>>
>> I get
>> DEBUG: null
>>
>> On Wed, Jul 2, 2008 at 2:30 PM, Sean Clark Hess <[EMAIL PROTECTED]
 >
>> wrote:
>> > Each row is an xml object...
>> >
>> > So, (myData.getItemAt(i) as XML).children()
>> >
>> > Then you could loop through the children and ask them for their
name.
>> > After
>> > the as XML step you can do anything you can normally do with the
XML
>> > object
>> >
>> > On Wed, Jul 2, 2008 at 12:11 PM, Stephen More
<[EMAIL PROTECTED]  >
>> > wrote:
>> >>
>> >> ( Example code taken from:
>> >> http://livedocs.adobe.com/flex/201/html/charts_intro_108_12.html
  )
>> >> Here is the dataset I am trying to work with:
>> >>
>> >> 
>> >> 
>> >> 81768
>> >> 60310
>> >> 43357
>> >> 
>> >> 
>> >> 81156
>> >> 58883
>> >> 49280
>> >> 
>> >> 
>> >>
>> >> The flex code will look like this:
>> >> > >> id="srv"
>> >> url="../assets/data.xml"
>> >> useProxy="false"
>> >> result="myData=ArrayCollection(srv.lastResult.data.result)"
>> >> />
>> >>
>> >> How can I interrogate the ArrayCollection named myData so that it
will
>> >> return apple, orange, and banana ?
>> >> I am not looking to get the numerical values, I want to get the
xml
>> >> name.
>> >>
>> >> -Thanks
>> >> Steve More
>> >
>> >
>
> 

 

 



Re: [flexcoders] Re: Cannot access a property or method of a null object reference at mx.controls::Tree/::buildUpCollectionEvents()

2008-07-02 Thread Josh McDonald
You're right :)

But still no exception, it works fine under HF1 and HF3.

-Josh

On Thu, Jul 3, 2008 at 2:51 AM, Sergey Kovalyov <
[EMAIL PROTECTED]> wrote:

>  May be so. But I want to find relevant workaround. Unfortunately, I have
> no possibility to switch the platform.
>
> On Tue, Jul 1, 2008 at 4:08 PM, valdhor <[EMAIL PROTECTED]> wrote:
>
>>   I don't use Flex 2.0.1 (I use Flex 3).
>>
>> I ran your app in Flex 3 and it works fine - ie. no exception is thrown.
>>
>> Could this be a bug in Flex 2.0.1?
>> .
>>
>>
> 
>



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

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


Re: [flexcoders] Get a list of all available classes?

2008-07-02 Thread Josh McDonald
Yikes!

Thanks for the answer though :)

On Thu, Jul 3, 2008 at 3:46 AM, Gordon Smith <[EMAIL PROTECTED]> wrote:

>  > is there a way to get a complete list of available public classes from
> the runtime?
>
>
>
> Not through a simple API. You'd have to parse the SWF's DoABC2 block. The
> SWF spec is here:
>
>
>
> http://www.adobe.com/devnet/swf/
>
>
>
> Gordon Smith
>
> Adobe Flex SDK Team
>
>
>
>  
>



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

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


Re: [flexcoders] Re: Question about ContextMenu and dataGrid

2008-07-02 Thread Sean Clark Hess
Something like



public function set mySelectedItem(value:Object):void
{
trace("Selected Row" + value);
}


On Wed, Jul 2, 2008 at 2:58 PM, markgoldin_2000 <[EMAIL PROTECTED]>
wrote:

>   In where? In contextmenu handler? How would I do that?
>
>
> --- In flexcoders@yahoogroups.com , "Sean
> Clark Hess" <[EMAIL PROTECTED]>
> wrote:
> >
> > Can you bind to selectedItem?
> >
> >
> > On Wed, Jul 2, 2008 at 2:54 PM, markgoldin_2000
> <[EMAIL PROTECTED]>
> > wrote:
> >
> > > I wasn't right, the grid is enabled.
> > > I have added this to the grid:
> > > addEventListener("itemFocusIn", itemFocusInHandler);
> > >
> > > itemFocusInHandler does not fire.
> > >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>, "Sean
> > > Clark Hess" 
> > > wrote:
> > >
> > > >
> > > > You can't click the row with enabled = false. But if you set
> > > enabled =
> > > > true, and hid the two indicators, you could easily use the
> > > itemFocusIn event
> > > > to know what you clicked.
> > > >
> > > > On Wed, Jul 2, 2008 at 2:03 PM, markgoldin_2000
> > > 
> > > > wrote:
> > > >
> > > > > My DG is enabled = false and both drawSelectionIndicator and
> > > > > drawHighlightIndicator are overridden to completely hide the
> > > selection
> > > > > indicator. Is there a way of knowing what item/row were
> clicked?
> > > > >
> > > > > Thanks
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> >
>
>  
>


[flexcoders] Re: Question about ContextMenu and dataGrid

2008-07-02 Thread markgoldin_2000
In where? In contextmenu handler? How would I do that?

--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> 
wrote:
>
> Can you bind to selectedItem?
> 
> 
> On Wed, Jul 2, 2008 at 2:54 PM, markgoldin_2000 
<[EMAIL PROTECTED]>
> wrote:
> 
> >   I wasn't right, the grid is enabled.
> > I have added this to the grid:
> > addEventListener("itemFocusIn", itemFocusInHandler);
> >
> > itemFocusInHandler does not fire.
> >
> > --- In flexcoders@yahoogroups.com , "Sean
> > Clark Hess" 
> > wrote:
> >
> > >
> > > You can't click the row with enabled = false. But if you set
> > enabled =
> > > true, and hid the two indicators, you could easily use the
> > itemFocusIn event
> > > to know what you clicked.
> > >
> > > On Wed, Jul 2, 2008 at 2:03 PM, markgoldin_2000
> > 
> > > wrote:
> > >
> > > > My DG is enabled = false and both drawSelectionIndicator and
> > > > drawHighlightIndicator are overridden to completely hide the
> > selection
> > > > indicator. Is there a way of knowing what item/row were 
clicked?
> > > >
> > > > Thanks
> > > >
> > > >
> > > >
> > >
> >
> >  
> >
>




Re: [flexcoders] Re: Question about ContextMenu and dataGrid

2008-07-02 Thread Sean Clark Hess
Can you bind to selectedItem?


On Wed, Jul 2, 2008 at 2:54 PM, markgoldin_2000 <[EMAIL PROTECTED]>
wrote:

>   I wasn't right, the grid is enabled.
> I have added this to the grid:
> addEventListener("itemFocusIn", itemFocusInHandler);
>
> itemFocusInHandler does not fire.
>
> --- In flexcoders@yahoogroups.com , "Sean
> Clark Hess" <[EMAIL PROTECTED]>
> wrote:
>
> >
> > You can't click the row with enabled = false. But if you set
> enabled =
> > true, and hid the two indicators, you could easily use the
> itemFocusIn event
> > to know what you clicked.
> >
> > On Wed, Jul 2, 2008 at 2:03 PM, markgoldin_2000
> <[EMAIL PROTECTED]>
> > wrote:
> >
> > > My DG is enabled = false and both drawSelectionIndicator and
> > > drawHighlightIndicator are overridden to completely hide the
> selection
> > > indicator. Is there a way of knowing what item/row were clicked?
> > >
> > > Thanks
> > >
> > >
> > >
> >
>
>  
>


[flexcoders] Re: Question about ContextMenu and dataGrid

2008-07-02 Thread markgoldin_2000
I wasn't right, the grid is enabled.
I have added this to the grid:
addEventListener("itemFocusIn", itemFocusInHandler);

itemFocusInHandler does not fire.

--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> 
wrote:
>
> You can't click the row with enabled = false.  But if you set 
enabled =
> true, and hid the two indicators, you could easily use the 
itemFocusIn event
> to know what you clicked.
> 
> On Wed, Jul 2, 2008 at 2:03 PM, markgoldin_2000 
<[EMAIL PROTECTED]>
> wrote:
> 
> >   My DG is enabled = false and both drawSelectionIndicator and
> > drawHighlightIndicator are overridden to completely hide the 
selection
> > indicator. Is there a way of knowing what item/row were clicked?
> >
> > Thanks
> >
> >  
> >
>




RE: [flexcoders] Simple text vs htmlText length question

2008-07-02 Thread Gordon Smith
Try using \n instead of \r.

 

Also try seeing whether setting textField.condenseWhite to true or false
before setting textField.htmlText affects it.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of cmalartre
Sent: Wednesday, July 02, 2008 1:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Simple text vs htmlText length question

 

Why does the simple code below output:

-
text.length : 4
textField.length : 4
text : '1

2'
textField.text : '12'
-

and not:
-
textField.text : '1

2'
-


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











 



[flexcoders] Re: List displaying wrong information - RESOLVED

2008-07-02 Thread Tim Hoff

The set Data method is the correct place to do this; since itemRenderers
get recycled.  Using creationComplete will only fire the first time that
the itemRenderer is instantiated.  From then on, the same renderer may
be re-used in another cell with different data; after actions like
scrolling.   This makes perfect sense why the displayed data wasn't
changed.

"how do I detect changes to the data property?"

use the data setter.

-TH


--- In flexcoders@yahoogroups.com, "nathanpdaniel" <[EMAIL PROTECTED]> wrote:
>
>
> In my itemRenderer, on CreationComplete I was calling a function which
> set two variables. From those variables I was displaying information.
> If I take out those variables and use the "data" property instead, it
> works. I don't like that but, I guess that's just how it works.
> It does bring up another question though: if I wanted to do it the
> other way, how do I detect changes to the data property? The
dataChange
> event doesn't do it (unless I'm using it wrong). I can use the
> updateComplete but it fires off every time there's any type of
> interaction with it (a bit overkill).
>
>
> --- In flexcoders@yahoogroups.com  "Sean Clark Hess" seanhess@ wrote:
> >
> > Yeah, that's as far as I can get without seeing any code
> >
> > On Wed, Jul 2, 2008 at 12:01 PM, Tim Hoff TimHoff@ wrote:
> >
> > >
> > > Interested to see what your itemRenderer looks like. Are you
> > > over-riding any methods?
> > >
> > > -TH
> > >
> > >
> > > --- In flexcoders@yahoogroups.com
>  > > "nathanpdaniel"  wrote:
> > > >
> > > > BTW - If I don't use an itemRenderer, it works fine and displays
> how
> > > > it should.
> > > >
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com
>  > > "nathanpdaniel" ndaniel@
> > > > wrote:
> > > > >
> > > > > Yes - and in fact - to clarify - when I run my application, it
> > > > > displays the mini cart all the time (always on) - so when I
add
> > > > > items, it updates, when they're removed, it's updated.
> > > > Unfortunately
> > > > > when I delete an item and add a new one, it displays the old
> one,
> > > > > even though in my cart itself is showing the new item. I'm
only
> > > > > making changes to the Cart object itself which has a property
> > > > > cartItems (ArrayCollection). Debugging, this is always right
> with
> > > > > what the cart should be - it's just not showing the right
> products.
> > > > >
> > > > > --- In flexcoders@yahoogroups.com
>  > > "Sean Clark Hess" 
> > > > > wrote:
> > > > > >
> > > > > > And both are bound to the same ArrayCollection?
> > > > > >
> > > > > > On Wed, Jul 2, 2008 at 10:19 AM, nathanpdaniel 
> wrote:
> > > > > >
> > > > > > > I'm building shopping cart functionality which uses a
> > > > > ShoppingCart
> > > > > > > component with 2 states. A "mini" cart and a regular view.
> The
> > > > > > > regular view works fine with a DataGrid component and
shows
> > > > > correct
> > > > > > > cart items and price etc.
> > > > > > >
> > > > > > > The mini cart on the other hand doesn't work properly once
> you
> > > > > add an
> > > > > > > item to the cart.
> > > > > > >
> > > > > > > If I add an item to the cart it displays properly. When I
> > > > delete a
> > > > > > > cart item, it displays properly. When I add another cart
> item
> > > > > after
> > > > > > > deleting one, the item I last deleted shows up rather than
> the
> > > > new
> > > > > > > item I'm trying to add. I change view to "regular" (with
> > > > DataGrid)
> > > > > > > and it displays properly.
> > > > > > >
> > > > > > > If I add 5 items to my cart, the mini view will show the
> first 5
> > > > > > > items I put in my cart. If I only had 3 items originally,
> then
> > > > > > > deleted all three and put 5 new ones, the first three
> display
> > > > as
> > > > > the
> > > > > > > original 3 (in the order they were deleted), the final 2
are
> the
> > > > > > > final 2 items I added with the set of 5.
> > > > > > >
> > > > > > > Hopefully I've explained my situation in a way that is
> helpful.
> > > > As
> > > > > > > for me, I'm at a loss - completely. I'm tracing through my
> cart
> > > > > > > items and it displays what "should" be showing up.
> > > > > > >
> > > > > > > I'm using a List component with a custom itemRenderer.
> > > > > > >
> > > > > > > -Nathan D.
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> > >
> > >
> >
>




[flexcoders] Simple text vs htmlText length question

2008-07-02 Thread cmalartre
Why does the simple code below output:

-
text.length : 4
textField.length : 4
text : '1

2'
textField.text : '12'
-

and not:
-
textField.text : '1

2'
-


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













Re: [flexcoders] Question about ContextMenu and dataGrid

2008-07-02 Thread Sean Clark Hess
You can't click the row with enabled = false.  But if you set enabled =
true, and hid the two indicators, you could easily use the itemFocusIn event
to know what you clicked.

On Wed, Jul 2, 2008 at 2:03 PM, markgoldin_2000 <[EMAIL PROTECTED]>
wrote:

>   My DG is enabled = false and both drawSelectionIndicator and
> drawHighlightIndicator are overridden to completely hide the selection
> indicator. Is there a way of knowing what item/row were clicked?
>
> Thanks
>
>  
>


Re: [flexcoders] How to post values from a swf widget to a backend server

2008-07-02 Thread Sean Clark Hess
Use this.mouseX and this.mouseY to get the point, then on the click handler
create a new instance of HTTPService and pass them as parameters (see the
documentation)

On Wed, Jul 2, 2008 at 2:03 PM, pankajtandon2003 <[EMAIL PROTECTED]>
wrote:

>   Hello,
> I've got a flex swf Panel say that I'm asking the user to click on.
> Once he has clicked, I would like to sent a http request (preferably a
> POST) to a back end server with the values of the coordinates of the
> point he has clicked on.
>
> Any suggestions on how I could affect this?
>
> TIA,
>
> Pankaj
>
>  
>


Re: [flexcoders] Inspecting data from HTTPService result to an ArrayCollection

2008-07-02 Thread Sean Clark Hess
Ah, got it.

The  tag converts everything to a flat object.  So the minute you
use it, you no longer have xml.

It's still easy enough to loop through though.

var result:Object = myData.getItemAt(0);
for (var name:String in result)
{
trace(name + " :: " + result[name]);
}

should output
apple :: 81768
orange :: 60310
banana :: 43357


On Wed, Jul 2, 2008 at 1:46 PM, Stephen More <[EMAIL PROTECTED]> wrote:

>   Here is my output:
>
> DEBUG: 2 null
> [object Object]
> CHECK : false
> CHECK : false
>
> Here is all the code:
> 
> 
> http://www.adobe.com/2006/mxml";
> width="100%" height="100%">
> 
> import mx.utils.ArrayUtil;
> 
>
> 
>  source="{ArrayUtil.toArray(results.result)}"
> />
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>  labelPlacement="right" color="#993300"
> click="printMessage(event);"/>
>
> 
> 
> 
>
> 
> 
>
>
> On Wed, Jul 2, 2008 at 3:34 PM, Sean Clark Hess <[EMAIL 
> PROTECTED]>
> wrote:
> > What do you get when you trace myData.getItemAt(0)? That will return null
> > if it isn't an XML. You can do this too:
> >
> > trace("CHECK : " + (myData.getItemAt(0) is XML));
> >
> > You can check to see if it is an XMLList too, but I thought looking at
> it,
> > it seemed like a flat xml.
> >
> > On Wed, Jul 2, 2008 at 1:32 PM, Stephen More <[EMAIL 
> > PROTECTED]>
> wrote:
> >>
> >> Thats what I was thinking but when I try:
> >>
> >> var myXML:XML;
> >> myXML = myData.getItemAt(0) as XML;
> >> trace( "DEBUG: " + myXML );
> >>
> >> I get
> >> DEBUG: null
> >>
> >> On Wed, Jul 2, 2008 at 2:30 PM, Sean Clark Hess <[EMAIL 
> >> PROTECTED]
> >
> >> wrote:
> >> > Each row is an xml object...
> >> >
> >> > So, (myData.getItemAt(i) as XML).children()
> >> >
> >> > Then you could loop through the children and ask them for their name.
> >> > After
> >> > the as XML step you can do anything you can normally do with the XML
> >> > object
> >> >
> >> > On Wed, Jul 2, 2008 at 12:11 PM, Stephen More <[EMAIL 
> >> > PROTECTED]
> >
> >> > wrote:
> >> >>
> >> >> ( Example code taken from:
> >> >> http://livedocs.adobe.com/flex/201/html/charts_intro_108_12.html )
> >> >> Here is the dataset I am trying to work with:
> >> >>
> >> >> 
> >> >> 
> >> >> 81768
> >> >> 60310
> >> >> 43357
> >> >> 
> >> >> 
> >> >> 81156
> >> >> 58883
> >> >> 49280
> >> >> 
> >> >> 
> >> >>
> >> >> The flex code will look like this:
> >> >>  >> >> id="srv"
> >> >> url="../assets/data.xml"
> >> >> useProxy="false"
> >> >> result="myData=ArrayCollection(srv.lastResult.data.result)"
> >> >> />
> >> >>
> >> >> How can I interrogate the ArrayCollection named myData so that it
> will
> >> >> return apple, orange, and banana ?
> >> >> I am not looking to get the numerical values, I want to get the xml
> >> >> name.
> >> >>
> >> >> -Thanks
> >> >> Steve More
> >> >
> >> >
> >
> >
>
>  
>


[flexcoders] Question about ContextMenu and dataGrid

2008-07-02 Thread markgoldin_2000
My DG is enabled = false and both drawSelectionIndicator and 
drawHighlightIndicator are overridden to completely hide the selection 
indicator. Is there a way of knowing what item/row were clicked?

Thanks



[flexcoders] How to post values from a swf widget to a backend server

2008-07-02 Thread pankajtandon2003
Hello,
I've got a flex swf Panel say that I'm asking the user to click on.
Once he has clicked, I would like to sent a http request (preferably a
POST) to a back end server with the values of the coordinates of the
point he has clicked on.

Any suggestions on how I could affect this?

TIA,

Pankaj




[flexcoders] Re: Flex Builder Eclipse Builder Syntax Checking

2008-07-02 Thread steve.baney
FIXED:

I'm still not sure exactly what was messing me up, but I reverted to
the root version from my CVS repository and slowly updated the files
from my newest version, testing the error checking and that the
project would still build after updating each file.  Fortunately I
hadn't coded too much in the current branch yet, so it didn't take to
long to bring the root version up to speed.

Thanks for all the help!



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

2008-07-02 Thread lytvynyuk
I did. I all cases request can reach server, in my case no. Just an
exception, no network activity I'm puzzled.

--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> wrote:
>
> You have to do it serverside -- for example, if you're using PHP,
you have
> to change Apache's maximum upload size for that domain.
> 
> Do a search for error 2038 in these forums though, I thought I saw
another
> couple of threads about it.
> 
> ~sean
>



Re: [flexcoders] Inspecting data from HTTPService result to an ArrayCollection

2008-07-02 Thread Stephen More
Here is my output:

DEBUG: 2 null
[object Object]
CHECK : false
CHECK : false


Here is all the code:


http://www.adobe.com/2006/mxml";
width="100%" height="100%">
  
 import mx.utils.ArrayUtil;
  

  
  

  
 

   


   
   
   

 













On Wed, Jul 2, 2008 at 3:34 PM, Sean Clark Hess <[EMAIL PROTECTED]> wrote:
> What do you get when you trace myData.getItemAt(0)?  That will return null
> if it isn't an XML.  You can do this too:
>
> trace("CHECK : " + (myData.getItemAt(0) is XML));
>
> You can check to see if it is an XMLList too, but I thought looking at it,
> it seemed like a flat xml.
>
> On Wed, Jul 2, 2008 at 1:32 PM, Stephen More <[EMAIL PROTECTED]> wrote:
>>
>> Thats what I was thinking but when I try:
>>
>> var myXML:XML;
>> myXML = myData.getItemAt(0) as XML;
>> trace( "DEBUG: " + myXML );
>>
>> I get
>> DEBUG: null
>>
>> On Wed, Jul 2, 2008 at 2:30 PM, Sean Clark Hess <[EMAIL PROTECTED]>
>> wrote:
>> > Each row is an xml object...
>> >
>> > So, (myData.getItemAt(i) as XML).children()
>> >
>> > Then you could loop through the children and ask them for their name.
>> > After
>> > the as XML step you can do anything you can normally do with the XML
>> > object
>> >
>> > On Wed, Jul 2, 2008 at 12:11 PM, Stephen More <[EMAIL PROTECTED]>
>> > wrote:
>> >>
>> >> ( Example code taken from:
>> >> http://livedocs.adobe.com/flex/201/html/charts_intro_108_12.html )
>> >> Here is the dataset I am trying to work with:
>> >>
>> >> 
>> >> 
>> >> 81768
>> >> 60310
>> >> 43357
>> >> 
>> >> 
>> >> 81156
>> >> 58883
>> >> 49280
>> >> 
>> >> 
>> >>
>> >> The flex code will look like this:
>> >> > >> id="srv"
>> >> url="../assets/data.xml"
>> >> useProxy="false"
>> >> result="myData=ArrayCollection(srv.lastResult.data.result)"
>> >> />
>> >>
>> >> How can I interrogate the ArrayCollection named myData so that it will
>> >> return apple, orange, and banana ?
>> >> I am not looking to get the numerical values, I want to get the xml
>> >> name.
>> >>
>> >> -Thanks
>> >> Steve More
>> >
>> >
>
> 


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

2008-07-02 Thread Sean Clark Hess
The other thing is that the file may be corrupted, or doesn't exist...

On Wed, Jul 2, 2008 at 1:43 PM, lytvynyuk <[EMAIL PROTECTED]> wrote:

>   I did. I all cases request can reach server, in my case no. Just an
> exception, no network activity I'm puzzled.
>
>
> --- In flexcoders@yahoogroups.com , "Sean
> Clark Hess" <[EMAIL PROTECTED]> wrote:
> >
> > You have to do it serverside -- for example, if you're using PHP,
> you have
> > to change Apache's maximum upload size for that domain.
> >
> > Do a search for error 2038 in these forums though, I thought I saw
> another
> > couple of threads about it.
> >
> > ~sean
> >
>
>  
>


Re: [flexcoders] Reference to mxml id from within mxml component

2008-07-02 Thread Sean Clark Hess
Yes, use event.target.

private function onMouseDown(event:MouseEvent):void
{
(event.target as Spirte).startDrag();
}

The reason why your last two things don't work is because, unlike
javascript, "this" and "id" would refer to the parent component (e.g. the
file you are currently editing).  So, if you want to pass "id" you have to
pass "ComponentCId.id" (like you did in #2).  Or, if you want to pass "this"
you have to pass "ComponentDId"

This way is very consistent... this always just refers to the file your
working in.  It's always easy to drill down anyway.



On Wed, Jul 2, 2008 at 1:18 PM, edlueze <[EMAIL PROTECTED]> wrote:

>   I am trying to refer to the id field for an mxml component from within
> that component so I can pass it back to some actionscript.
>
> Consider this example: I want to be able to drag components around a
> panel by calling mouseDown/mouseUp from within the mxml component
> definition. The first two components work (ComponentA and ComponentB)
> but the second two components don't work (ComponentC and ComponentD).
>
> Being able to reference the component id from within the mxml
> component provides a little more scalability. Perhaps there is a
> better way altogether?
>
> 
> 
> 
>
> 
>  id="ComponentAId"
> mouseDown="onMouseDown(event,'ComponentAId')"
> mouseUp="onMouseUp(event,'ComponentAId')"/>
>
> 
>  id="ComponentBId"
> mouseDown="onMouseDown(event,ComponentBId.id)"
> mouseUp="onMouseUp(event,ComponentBId.id)"/>
>
> 
>  id="ComponentCId"
> mouseDown="onMouseDown(event,id)"
> mouseUp="onMouseUp(event,id)"/>
>
> 
>  id="ComponentDId"
> mouseDown="onMouseDown(event,this)"
> mouseUp="onMouseUp(event,this)"/>
>
>  
>


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

2008-07-02 Thread Sean Clark Hess
You have to do it serverside -- for example, if you're using PHP, you have
to change Apache's maximum upload size for that domain.

Do a search for error 2038 in these forums though, I thought I saw another
couple of threads about it.

~sean

On Wed, Jul 2, 2008 at 1:33 PM, lytvynyuk <[EMAIL PROTECTED]> wrote:

>   How I can increase upload size? There is no such thing in URLRequest
> and FileReference...
>
>
> --- In flexcoders@yahoogroups.com , "Sean
> Clark Hess" <[EMAIL PROTECTED]> wrote:
> >
> > We would get that error a lot when the file was too big. Try increasing
> > your upload size.
> >
> > On Wed, Jul 2, 2008 at 1:01 PM, lytvynyuk <[EMAIL PROTECTED]> wrote:
> >
> > > I getting this error, but when I put breakpoint at my server
> side code
> > > nothing coming through!! When I created little HTML page with file
> > > upload filed to same servlet location - IT WORKS!
> > >
> > > I used "Live HTTP headers" to see activity on HTTP requests -
> > > nothing nothing going through, also I used Wireshark - same
> effect.
> > >
> > > So what is going on ? any Ideas?
> > >
> > > AS code is extremely simple:
> > >
> > > var request:URLRequest = new URLRequest();
> > > request.url = UPLOAD_URL;
> > > fr.upload(request);
> > > fileNameLabel.text = fr.name;
> > >
> > >
> > >
> >
>
>  
>


Re: [flexcoders] Inspecting data from HTTPService result to an ArrayCollection

2008-07-02 Thread Sean Clark Hess
What do you get when you trace myData.getItemAt(0)?  That will return null
if it isn't an XML.  You can do this too:

trace("CHECK : " + (myData.getItemAt(0) is XML));

You can check to see if it is an XMLList too, but I thought looking at it,
it seemed like a flat xml.

On Wed, Jul 2, 2008 at 1:32 PM, Stephen More <[EMAIL PROTECTED]> wrote:

>   Thats what I was thinking but when I try:
>
> var myXML:XML;
> myXML = myData.getItemAt(0) as XML;
> trace( "DEBUG: " + myXML );
>
> I get
> DEBUG: null
>
>
> On Wed, Jul 2, 2008 at 2:30 PM, Sean Clark Hess <[EMAIL 
> PROTECTED]>
> wrote:
> > Each row is an xml object...
> >
> > So, (myData.getItemAt(i) as XML).children()
> >
> > Then you could loop through the children and ask them for their name.
> After
> > the as XML step you can do anything you can normally do with the XML
> object
> >
> > On Wed, Jul 2, 2008 at 12:11 PM, Stephen More <[EMAIL 
> > PROTECTED]
> >
> > wrote:
> >>
> >> ( Example code taken from:
> >> http://livedocs.adobe.com/flex/201/html/charts_intro_108_12.html )
> >> Here is the dataset I am trying to work with:
> >>
> >> 
> >> 
> >> 81768
> >> 60310
> >> 43357
> >> 
> >> 
> >> 81156
> >> 58883
> >> 49280
> >> 
> >> 
> >>
> >> The flex code will look like this:
> >>  >> id="srv"
> >> url="../assets/data.xml"
> >> useProxy="false"
> >> result="myData=ArrayCollection(srv.lastResult.data.result)"
> >> />
> >>
> >> How can I interrogate the ArrayCollection named myData so that it will
> >> return apple, orange, and banana ?
> >> I am not looking to get the numerical values, I want to get the xml
> name.
> >>
> >> -Thanks
> >> Steve More
> >
> >
>  
>


[flexcoders] Re: Anyone Know of a Good Flex MP3 Player?

2008-07-02 Thread nathanpdaniel
http://www.adobe.com/devnet/flex/samples/media_widget/media_widget.html

--- In flexcoders@yahoogroups.com, "wwwpl" <[EMAIL PROTECTED]> wrote:
>
> Does anyone know of a good open source Flex mp3 player?  I have seen 
a 
> few good Flash mp3 players but they don't come with the source.  
> Actually, I don't need the source if the player is what I want.
> 
> Thanks
>




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

2008-07-02 Thread lytvynyuk
How I can increase upload size? There is no such thing in URLRequest
and FileReference...

--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> wrote:
>
> We would get that error a lot when the file was too big.  Try increasing
> your upload size.
> 
> On Wed, Jul 2, 2008 at 1:01 PM, lytvynyuk <[EMAIL PROTECTED]> wrote:
> 
> >   I getting this error, but when I put breakpoint at my server
side code
> > nothing coming through!! When I created little HTML page with file
> > upload filed to same servlet location - IT WORKS!
> >
> > I used "Live HTTP headers" to see activity on HTTP requests -
> > nothing nothing going through, also I used Wireshark - same
effect.
> >
> > So what is going on ? any Ideas?
> >
> > AS code is extremely simple:
> >
> > var request:URLRequest = new URLRequest();
> > request.url = UPLOAD_URL;
> > fr.upload(request);
> > fileNameLabel.text = fr.name;
> >
> >  
> >
>




Re: [flexcoders] Inspecting data from HTTPService result to an ArrayCollection

2008-07-02 Thread Stephen More
Thats what I was thinking but when I try:

   var myXML:XML;
   myXML = myData.getItemAt(0) as XML;
   trace( "DEBUG: " + myXML );

I get
   DEBUG: null



On Wed, Jul 2, 2008 at 2:30 PM, Sean Clark Hess <[EMAIL PROTECTED]> wrote:
> Each row is an xml object...
>
> So, (myData.getItemAt(i) as XML).children()
>
> Then you could loop through the children and ask them for their name. After
> the as XML step you can do anything you can normally do with the XML object
>
> On Wed, Jul 2, 2008 at 12:11 PM, Stephen More <[EMAIL PROTECTED]>
> wrote:
>>
>> ( Example code taken from:
>> http://livedocs.adobe.com/flex/201/html/charts_intro_108_12.html )
>> Here is the dataset I am trying to work with:
>>
>> 
>> 
>> 81768
>> 60310
>> 43357
>> 
>> 
>> 81156
>> 58883
>> 49280
>> 
>> 
>>
>> The flex code will look like this:
>> > id="srv"
>> url="../assets/data.xml"
>> useProxy="false"
>> result="myData=ArrayCollection(srv.lastResult.data.result)"
>> />
>>
>> How can I interrogate the ArrayCollection named myData so that it will
>> return apple, orange, and banana ?
>> I am not looking to get the numerical values, I want to get the xml name.
>>
>> -Thanks
>> Steve More
>
> 


[flexcoders] Reference to mxml id from within mxml component

2008-07-02 Thread edlueze
I am trying to refer to the id field for an mxml component from within
that component so I can pass it back to some actionscript.

Consider this example: I want to be able to drag components around a
panel by calling mouseDown/mouseUp from within the mxml component
definition. The first two components work (ComponentA and ComponentB)
but the second two components don't work (ComponentC and ComponentD).

Being able to reference the component id from within the mxml
component provides a little more scalability. Perhaps there is a
better way altogether?


  




  













[flexcoders] Re: LCDS and AIR?

2008-07-02 Thread meteatamel
LCDS uses the same rpc.swc as BlazeDS and another swc called fds.swc
for advanced LCDS specific client features. All the client and server
libraries come with the LCDS installation. You can get the latest LCDS
beta here:

http://labs.adobe.com/technologies/livecycle_dataservices2_6/

-Mete


--- In flexcoders@yahoogroups.com, "markflex2007" <[EMAIL PROTECTED]>
wrote:
>
> what is the name for client swc file for LCDS.where I can get it?
> 
> thanks
> 
> Mark
> 
> --- In flexcoders@yahoogroups.com, "meteatamel"  wrote:
> >
> > LCDS/BlazeDS is a server and a client product. On the server, it
> > requires a J2EE server but on the client, it's simply a few swcs
> > (rpc.swc in BlazeDS) and your AIR app would use this rpc.swc to talk
> > to the LCDS server. So the fact that the LCDS server piece runs on a
> > J2EE server is irrelevant to the AIR client application.
> > 
> > -Mete
> > 
> > --- In flexcoders@yahoogroups.com, "markflex2007" 
> > wrote:
> > >
> > > Hi,
> > > 
> > > I have a Flex application with LCDS.Do you think if I can convert
> it th 
> > > AIR application.
> > > 
> > > I know LCDS is web base and need Jrun runing so I an not sure if
AIR 
> > > works.
> > > 
> > > Thanks
> > > 
> > > Mark
> > >
> >
>




Re: [flexcoders] Re: Issues panning a swf loaded via SWFLoader

2008-07-02 Thread Sean Clark Hess
Ah, ok.. great

On Wed, Jul 2, 2008 at 12:55 PM, djepyon <[EMAIL PROTECTED]> wrote:

>   Figured out the problem here. I was moving the content within the
> SWFLoader instead of the SWFLoader itself. Moving the SWFLoader in a
> canvas object with clipContent = true solved the problem.
>
> Much thanks for the tip Sean.
>
>
> --- In flexcoders@yahoogroups.com ,
> "djepyon" <[EMAIL PROTECTED]> wrote:
> >
> > (I accidentally put this as a response to another topic the first time
> > so I'm re-posting)
> >
> > I'm loading a swf into a SWFLoader (earth-shattering, I know). The swf
> > document size itself is set 2800x960, but there is an additional
> > element beneath this in the pasteboard (what was the flash 8
> > "workarea") that is about 500px in length. I need to be able to pan
> > down to this element. If make a call to set the y value of the
> > SWFLoader to -500 (to pan downward) the area above it hovers above my
> > flex components instead of going underneath.
> >
> > I went a step further and wrapped the swfLoader in a Canvas object.
> > Setting the y value to -500 on the MXML object did just what I wanted
> > to. I then began setting this dynamically, which produces the same
> > results as before. I also tried to run validateDisplayList() hoping it
> > would fix things but to no avail.
> >
> > Any suggestions would be greatly appreciated :)
> >
>
>  
>


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

2008-07-02 Thread Sean Clark Hess
We would get that error a lot when the file was too big.  Try increasing
your upload size.

On Wed, Jul 2, 2008 at 1:01 PM, lytvynyuk <[EMAIL PROTECTED]> wrote:

>   I getting this error, but when I put breakpoint at my server side code
> nothing coming through!! When I created little HTML page with file
> upload filed to same servlet location - IT WORKS!
>
> I used "Live HTTP headers" to see activity on HTTP requests -
> nothing nothing going through, also I used Wireshark - same effect.
>
> So what is going on ? any Ideas?
>
> AS code is extremely simple:
>
> var request:URLRequest = new URLRequest();
> request.url = UPLOAD_URL;
> fr.upload(request);
> fileNameLabel.text = fr.name;
>
>  
>


[flexcoders] #2038: File I/O Error

2008-07-02 Thread lytvynyuk
I getting this error, but when I put breakpoint at my server side code
nothing coming through!! When I created little HTML page with file
upload filed to same servlet location - IT WORKS!

I used "Live HTTP headers" to see activity on HTTP requests -
nothing nothing going through, also I used Wireshark - same effect.

So what is going on ? any Ideas?

AS code is extremely simple:

var request:URLRequest = new URLRequest();
request.url = UPLOAD_URL;
fr.upload(request);
fileNameLabel.text = fr.name;



Re: [flexcoders] Re: display text input values in datagrid

2008-07-02 Thread Santhosh Garlapad
Thanks Amy..
Thanks
Santosh



- Original Message 
From: Amy <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 2, 2008 10:57:33 AM
Subject: [flexcoders] Re: display text input values in datagrid


--- In [EMAIL PROTECTED] ups.com, Santhosh Garlapad 
 wrote:
>
> Hi Sean,
> I m working on Shopping cart application.
> I have Button called ADD another Item.If i click on that button the 
all the shopping cart item details shold be displayed in the datagrid.
> Your solution is perfect if i have only one row item in the 
datagrid.If i click Add another items multiple times and alll the 
text input values should be displayed in the datagrid.
> Say i clicked the add another item 20 times ,,the datagrid should 
contains 20 items in that(with textinput values)
> The sample datagrid as follows:

Flex N Training From the Source (where N is the version of Flex you 
are using) walks you through making a shopping cart app. You might 
find it is a valuable shortcut.

HTH;

Amy

 


  

[flexcoders] Re: Issues panning a swf loaded via SWFLoader

2008-07-02 Thread djepyon
Figured out the problem here. I was moving the content within the
SWFLoader instead of the SWFLoader itself. Moving the SWFLoader in a
canvas object with clipContent = true solved the problem.

Much thanks for the tip Sean.

--- In flexcoders@yahoogroups.com, "djepyon" <[EMAIL PROTECTED]> wrote:
>
> (I accidentally put this as a response to another topic the first time
> so I'm re-posting)
> 
> I'm loading a swf into a SWFLoader (earth-shattering, I know). The swf
> document size itself is set 2800x960, but there is an additional
> element beneath this in the pasteboard (what was the flash 8
> "workarea")  that is about 500px in length. I need to be able to pan
> down to this element. If make a call to set the y value of the
> SWFLoader to -500 (to pan downward) the area above it hovers above my
> flex components instead of going underneath.
> 
> I went  a step further and wrapped the swfLoader in a Canvas object.
> Setting the y value to -500 on the MXML object did just what I wanted
> to. I then began setting this dynamically, which produces the same
> results as before. I also tried to run validateDisplayList() hoping it
> would fix things but to no avail.
> 
> Any suggestions would be greatly appreciated :)
>




Re: [flexcoders] Re: Socket does not connect on FP9 r45

2008-07-02 Thread Sean Clark Hess
Ah... the truth come out.  Ok, thanks, that's good to know.  I don't mind
Java, but running tomcat might be a problem.  I'll ask the system admin.

Thanks
~sean

On Wed, Jul 2, 2008 at 12:45 PM, valdhor <[EMAIL PROTECTED]> wrote:

>   BlazeDS does exactly what your custom solution does (Albeit more
> stably). The only caveat is that you would need a Java Servlet
> container (eg. Tomcat, JBoss) and you would need to learn Java.
>
>
> --- In flexcoders@yahoogroups.com , "Sean
> Clark Hess" <[EMAIL PROTECTED]> wrote:
> >
> > Ok, that's what I thought about WebORB. We were using a custom polling
> > mechanism before switching to sockets -- the delay was annoying,
> which is
> > why we switched.
> >
> > Are you saying that BlazeDS uses http persistent connections?
> You're right,
> > that could get annoying. It doesn't make any sense to use persistent
> > connections with apache or another large-scale HTTP server. My socket
> > server bypasses apache and just uses TCP/IP and the Socket class to
> open as
> > many persistent connections as I need. Since the communication is so
> > lightweight (no files, or even real data passed), it shouldn't be a
> big deal
> > to have hundreds or thousands of persistent connections at a time.
> Any time
> > it needs to pass big data, it just stores it in the db, messages the
> > recipients, who get it through a standard HTTP service.
> >
> > So far, our custom solution seems to be the best, since messages are
> sent
> > fairly infrequently, but we want them to show up instantaneously. A
> 2 or 4
> > second poll per client, with each one accessing the database can get
> hairy
> > pretty fast.
> >
> > Thanks
> > ~sean
> >
> >
> >
> >
> >
> > On Wed, Jul 2, 2008 at 9:51 AM, valdhor <[EMAIL PROTECTED]> wrote:
> >
> > > As far as I understand WebORB, it uses a pseudo push mechanism. The
> > > client actively polls for any new data. (I could be wrong about this.
> > > Please let me know if I am. I am basing my assumptions on forum posts
> > > - eg.
> http://www.themidnightcoders.com/forum/default.aspx?g=posts&t=505).
> > >
> > > If you don't like active polling, look at BlazeDS.
> > >
> > > I use an active poll in my applications but I do it once every 30
> > > minutes (It's just to alert users of any news they need to know).
> > >
> > > I don't know if I like the non polling solution. It means that you
> > > have to open a persistent connection to the server and sooner or later
> > > you will run out of connections.
> > >
> > >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>,
> "Sean
> > > Clark Hess"  wrote:
> > > >
> > > > Does WebORB use sockets? I thought it was an http connection, but I
> > > could
> > > > be mistaken. If there's a better way, I'd be happy to switch, but I
> > > couldn't
> > > > find anything. The current system is VERY lightweight, and it's
> quite
> > > > unlikely that WebORB is faster, but it might be a lot more
> stable -- I
> > > > definitely want to look into it.
> > > >
> > > > Our needs are
> > > > 1) Messaging between clients (Push to client)
> > > > 2) Speed (for lightweight messages)
> > > >
> > > > Does WebORB do #1?
> > > >
> > > > I looked at the example you posted -- Yes, it is very easy to send
> > > JSON to
> > > > PHP and get a JSON response -- we are doing this elsewhere. But
> > > HTTPService
> > > > is, well, HTTP -- the server can't push data back to the client.
> > > >
> > > > Thanks!
> > > > ~sean
> > > >
> > > > On Wed, Jul 2, 2008 at 7:42 AM, valdhor  wrote:
> > > >
> > > > > I can't help you with your problem but do wonder why you felt
> > > the need
> > > > > to create your own socket system to implement JSON to PHP.
> > > > >
> > > > > AFAIK there are a number of solutions for this (eg.
> > > > >
> > > > >
> > >
> > >
>
> http://blog.paranoidferret.com/index.php/2007/08/24/flex-php-json-mysql-advanced-updating/
> > > > > ).
> > > > >
> > > > > Also, WebORB with AMF3 is a much simpler (And probably faster)
> > > > > solution for getting data to and from Flex/PHP.
> > > > >
> > > > >
> > > > > --- In flexcoders@yahoogroups.com 
> 
> > > 40yahoogroups.com>,
> > > "Sean
> > > > > Clark Hess"  wrote:
> > > > > >
> > > > > > Hello coders!
> > > > > >
> > > > > > This is my first question to the list, so go easy on me,
> alright? :)
> > > > > >
> > > > > > I spent quite a while developing a good socket system that
> > > > > communicated with
> > > > > > PHP via JSON. It uses the Socket class (since that's the
> only way
> > > > > you can
> > > > > > do it, as far as I'm aware). It works perfectly now, with
> one small
> > > > > > caveat.
> > > > > >
> > > > > > When testing it on machines with r45 of FP9 installed, it didn't
> > > > > connect.
> > > > > > I'm not sure which version started working, but I think it
> works on
> > > > > r115
> > > > > > and r124. As far as I can tell, the connect event just never
> fires.
> > > > > The
> > > > > > policy file request goes through fine, but the socket server
> > > never hea

[flexcoders] Re: Socket does not connect on FP9 r45

2008-07-02 Thread valdhor
BlazeDS does exactly what your custom solution does (Albeit more
stably). The only caveat is that you would need a Java Servlet
container (eg. Tomcat, JBoss) and you would need to learn Java.



--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> wrote:
>
> Ok, that's what I thought about WebORB.  We were using a custom polling
> mechanism before switching to sockets -- the delay was annoying,
which is
> why we switched.
> 
> Are you saying that BlazeDS uses http persistent connections? 
You're right,
> that could get annoying.  It doesn't make any sense to use persistent
> connections with apache or another large-scale HTTP server.  My socket
> server bypasses apache and just uses TCP/IP and the Socket class to
open as
> many persistent connections as I need.  Since the communication is so
> lightweight (no files, or even real data passed), it shouldn't be a
big deal
> to have hundreds or thousands of persistent connections at a time. 
Any time
> it needs to pass big data, it just stores it in the db, messages the
> recipients, who get it through a standard HTTP service.
> 
> So far, our custom solution seems to be the best, since messages are
sent
> fairly infrequently, but we want them to show up instantaneously.  A
2 or 4
> second poll per client, with each one accessing the database can get
hairy
> pretty fast.
> 
> Thanks
> ~sean
> 
> 
> 
> 
> 
> On Wed, Jul 2, 2008 at 9:51 AM, valdhor <[EMAIL PROTECTED]> wrote:
> 
> >   As far as I understand WebORB, it uses a pseudo push mechanism. The
> > client actively polls for any new data. (I could be wrong about this.
> > Please let me know if I am. I am basing my assumptions on forum posts
> > - eg.
http://www.themidnightcoders.com/forum/default.aspx?g=posts&t=505).
> >
> > If you don't like active polling, look at BlazeDS.
> >
> > I use an active poll in my applications but I do it once every 30
> > minutes (It's just to alert users of any news they need to know).
> >
> > I don't know if I like the non polling solution. It means that you
> > have to open a persistent connection to the server and sooner or later
> > you will run out of connections.
> >
> >
> > --- In flexcoders@yahoogroups.com ,
"Sean
> > Clark Hess"  wrote:
> > >
> > > Does WebORB use sockets? I thought it was an http connection, but I
> > could
> > > be mistaken. If there's a better way, I'd be happy to switch, but I
> > couldn't
> > > find anything. The current system is VERY lightweight, and it's
quite
> > > unlikely that WebORB is faster, but it might be a lot more
stable -- I
> > > definitely want to look into it.
> > >
> > > Our needs are
> > > 1) Messaging between clients (Push to client)
> > > 2) Speed (for lightweight messages)
> > >
> > > Does WebORB do #1?
> > >
> > > I looked at the example you posted -- Yes, it is very easy to send
> > JSON to
> > > PHP and get a JSON response -- we are doing this elsewhere. But
> > HTTPService
> > > is, well, HTTP -- the server can't push data back to the client.
> > >
> > > Thanks!
> > > ~sean
> > >
> > > On Wed, Jul 2, 2008 at 7:42 AM, valdhor  wrote:
> > >
> > > > I can't help you with your problem but do wonder why you felt
> > the need
> > > > to create your own socket system to implement JSON to PHP.
> > > >
> > > > AFAIK there are a number of solutions for this (eg.
> > > >
> > > >
> >
> >
http://blog.paranoidferret.com/index.php/2007/08/24/flex-php-json-mysql-advanced-updating/
> > > > ).
> > > >
> > > > Also, WebORB with AMF3 is a much simpler (And probably faster)
> > > > solution for getting data to and from Flex/PHP.
> > > >
> > > >
> > > > --- In flexcoders@yahoogroups.com
 > 40yahoogroups.com>,
> > "Sean
> > > > Clark Hess"  wrote:
> > > > >
> > > > > Hello coders!
> > > > >
> > > > > This is my first question to the list, so go easy on me,
alright? :)
> > > > >
> > > > > I spent quite a while developing a good socket system that
> > > > communicated with
> > > > > PHP via JSON. It uses the Socket class (since that's the
only way
> > > > you can
> > > > > do it, as far as I'm aware). It works perfectly now, with
one small
> > > > > caveat.
> > > > >
> > > > > When testing it on machines with r45 of FP9 installed, it didn't
> > > > connect.
> > > > > I'm not sure which version started working, but I think it
works on
> > > > r115
> > > > > and r124. As far as I can tell, the connect event just never
fires.
> > > > The
> > > > > policy file request goes through fine, but the socket server
> > never hears
> > > > > from the connection request.
> > > > >
> > > > > Thanks!
> > > > > ~sean
> > > > >
> > > >
> > > >
> > > >
> > >
> >
> >  
> >
>




Re: [flexcoders] Anyone Know of a Good Flex MP3 Player?

2008-07-02 Thread Jeffry Houser
http://www.axelscript.com/2008/04/02/open-source-flex-xml-mp3-player-xspf/

wwwpl wrote:
> Does anyone know of a good open source Flex mp3 player?  I have seen a 
> few good Flash mp3 players but they don't come with the source.  
> Actually, I don't need the source if the player is what I want.
>
> Thanks
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>
>   

-- 
Jeffry Houser
Flex, ColdFusion, AIR
AIM: Reboog711  | Phone: 1-203-379-0773
--
Adobe Community Expert 

My Company:  
My Podcast: 
My Blog:  




[flexcoders] Re: Compile issues in FlexBuilder 3

2008-07-02 Thread daddyo_buckeye
I investigated further and discovered the path set in several parts 
of the app was a slightly different name than the folder in the 
unzipped files.

Give me a big 'DUH' on this one.

thanks for the quick response, y'all.



--- In flexcoders@yahoogroups.com, "fourctv" <[EMAIL PROTECTED]> wrote:
>
> Did you try right-clicking the error message? FB3 should give you 
the option to re-create 
> the html template folder on the context menu.
> 
> hth
> julio
> 
> --- In flexcoders@yahoogroups.com, "daddyo_buckeye"  
wrote:
> >
> > I have an app in Flex that won't compile, I'm getting a message 
that
> > the HTML file is missing.



Re: [SPAM] [flexcoders] returning data from a perl script using httpservice

2008-07-02 Thread valdhor
Some things you may want to look at...

AMF::Perlhttp://www.simonf.com/flap/
WebORB for .NEThttp://www.themidnightcoders.com/weborb/dotnet/


--- In flexcoders@yahoogroups.com, Cameron <[EMAIL PROTECTED]> wrote:
>
> I figured out my own answer if anyone is interested. The first part of 
> the "response" from perl needs to be "Content-type:text/xml\n\n" with 
> two \n's at the end. I only had one. Putting the second one in worked 
> for retuning XML to my resultFormat="object". This is nice. Now I can 
> use my old perl scripts.
> 
> Cameron wrote:
> >
> > I've set up a test just to see if I can make it work. I have a program
> > which needs to run some remote functions inside a perl script mostly
> > because there just isn't a better way to do it. I make a call to the
> > perl script using the httpservice and it all works fine except for the
> > return result. I know the perl script is executing because I have it
> > write the data to a file as well as try to write it back to the
stream,
> > but no matter how I try to return it, I get an http request error.
I've
> > tried setting the resultFormat to "object" and "printing" a string
> > variable which is composed of XML data from perl, but no luck. I also
> > tried printing the XML directly to the stream...no go. I've tried
using
> > resultFormat="text" and "printing" the data from perl as html, but
also
> > without success. Does anyone know how I can actually get a return from
> > the perl?
> > FWIW...the perl script is telneting to a router, pinging a private ip
> > address within the router, and returning the result. I know I could
> > re-write this in PHP, but my server is Windows and doesn't have
php. All
> > the rest of my program and scripts are in .net.
> > code sample is below:
> >
> > ...
> >
> > //function to ping customer radios for diagnostics
> > private function ping_cust():void{
> > PingCustSvc.url = "http://www.myurl.com/pingcust.pl 
> > <http://www.myurl.com/pingcust.pl>";
> > PingCustSvc.method = "POST";
> >
> > var Obj:Object = new Object();
> > Obj.w = wispid;
> > Obj.cid = tgtdata;
> > Obj.rip = CustInfRouterIP.text;
> > Obj.cpeip = CustInfCpeIP.text;
> >
> > PingCustSvc.send(Obj);
> >
> > }
> >
> > //handler for ping customer result
> > public function PingResult(event:ResultEvent):void{
> > response = event.result.pings.ping;
> > for (var i:int = 0; i < response.length; ++i) {
> > var resstr:String = resstr + response[i].result + "\n";
> > }
> > //var resstr:String = event.result.toString(); //attempt to
> > get data if it comes as string
> > Alert.show(resstr, "Ping Results");
> > }
> >
> > //httpservice fault handler
> > public function handleFault(event:FaultEvent):void
> > {
> >
> > var faultstr:String = event.fault.faultDetail;
> > Alert.show(event.fault.faultString, "Error");
> > }
> > ...
> > 
> >
> >  > fault="handleFault(event)" useProxy="false" method="POST"
> > resultFormat="object" />
> >
> >
>




[flexcoders] Re: List displaying wrong information

2008-07-02 Thread Amy
--- In flexcoders@yahoogroups.com, "nathanpdaniel" <[EMAIL PROTECTED]> wrote:
>
> BTW - If I don't use an itemRenderer, it works fine and displays how 
> it should.

Sounds like you're not updating the properties on your itemRenderer 
when the data is changed:

http://blogs.adobe.com/aharui/item_renderers/

http://weblogs.macromedia.com/pent/archives/2008/03/itemrenderers_p.html



[flexcoders] Re: List displaying wrong information - RESOLVED

2008-07-02 Thread nathanpdaniel

In my itemRenderer, on CreationComplete I was calling a function which
set two variables.  From those variables I was displaying information. 
If I take out those variables and use the "data" property instead, it
works.  I don't like that but, I guess that's just how it works.
It does bring up another question though:  if I wanted to do it the
other way, how do I detect changes to the data property?  The dataChange
event doesn't do it (unless I'm using it wrong).  I can use the
updateComplete but it fires off every time there's any type of
interaction with it (a bit overkill).


--- In flexcoders@yahoogroups.com  ,
"Sean Clark Hess" <[EMAIL PROTECTED]> wrote:
>
> Yeah, that's as far as I can get without seeing any code
>
> On Wed, Jul 2, 2008 at 12:01 PM, Tim Hoff <[EMAIL PROTECTED]> wrote:
>
> >
> > Interested to see what your itemRenderer looks like. Are you
> > over-riding any methods?
> >
> > -TH
> >
> >
> > --- In flexcoders@yahoogroups.com
  ,
> > "nathanpdaniel"  wrote:
> > >
> > > BTW - If I don't use an itemRenderer, it works fine and displays
how
> > > it should.
> > >
> > >
> > >
> > > --- In flexcoders@yahoogroups.com
  ,
> > "nathanpdaniel" ndaniel@
> > > wrote:
> > > >
> > > > Yes - and in fact - to clarify - when I run my application, it
> > > > displays the mini cart all the time (always on) - so when I add
> > > > items, it updates, when they're removed, it's updated.
> > > Unfortunately
> > > > when I delete an item and add a new one, it displays the old
one,
> > > > even though in my cart itself is showing the new item. I'm only
> > > > making changes to the Cart object itself which has a property
> > > > cartItems (ArrayCollection). Debugging, this is always right
with
> > > > what the cart should be - it's just not showing the right
products.
> > > >
> > > > --- In flexcoders@yahoogroups.com
  ,
> > "Sean Clark Hess" 
> > > > wrote:
> > > > >
> > > > > And both are bound to the same ArrayCollection?
> > > > >
> > > > > On Wed, Jul 2, 2008 at 10:19 AM, nathanpdaniel 
wrote:
> > > > >
> > > > > > I'm building shopping cart functionality which uses a
> > > > ShoppingCart
> > > > > > component with 2 states. A "mini" cart and a regular view.
The
> > > > > > regular view works fine with a DataGrid component and shows
> > > > correct
> > > > > > cart items and price etc.
> > > > > >
> > > > > > The mini cart on the other hand doesn't work properly once
you
> > > > add an
> > > > > > item to the cart.
> > > > > >
> > > > > > If I add an item to the cart it displays properly. When I
> > > delete a
> > > > > > cart item, it displays properly. When I add another cart
item
> > > > after
> > > > > > deleting one, the item I last deleted shows up rather than
the
> > > new
> > > > > > item I'm trying to add. I change view to "regular" (with
> > > DataGrid)
> > > > > > and it displays properly.
> > > > > >
> > > > > > If I add 5 items to my cart, the mini view will show the
first 5
> > > > > > items I put in my cart. If I only had 3 items originally,
then
> > > > > > deleted all three and put 5 new ones, the first three
display
> > > as
> > > > the
> > > > > > original 3 (in the order they were deleted), the final 2 are
the
> > > > > > final 2 items I added with the set of 5.
> > > > > >
> > > > > > Hopefully I've explained my situation in a way that is
helpful.
> > > As
> > > > > > for me, I'm at a loss - completely. I'm tracing through my
cart
> > > > > > items and it displays what "should" be showing up.
> > > > > >
> > > > > > I'm using a List component with a custom itemRenderer.
> > > > > >
> > > > > > -Nathan D.
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> >
> >
>




Re: [flexcoders] Inspecting data from HTTPService result to an ArrayCollection

2008-07-02 Thread Sean Clark Hess
Each row is an xml object...

So, (myData.getItemAt(i) as XML).children()

Then you could loop through the children and ask them for their name. After
the as XML step you can do anything you can normally do with the XML object

On Wed, Jul 2, 2008 at 12:11 PM, Stephen More <[EMAIL PROTECTED]>
wrote:

>   ( Example code taken from:
> http://livedocs.adobe.com/flex/201/html/charts_intro_108_12.html )
> Here is the dataset I am trying to work with:
>
> 
> 
> 81768
> 60310
> 43357
> 
> 
> 81156
> 58883
> 49280
> 
> 
>
> The flex code will look like this:
>  id="srv"
> url="../assets/data.xml"
> useProxy="false"
> result="myData=ArrayCollection(srv.lastResult.data.result)"
> />
>
> How can I interrogate the ArrayCollection named myData so that it will
> return apple, orange, and banana ?
> I am not looking to get the numerical values, I want to get the xml name.
>
> -Thanks
> Steve More
>  
>


[flexcoders] Recover after applying beginFill/endFill

2008-07-02 Thread markgoldin_2000
I am coloring rows in DG with the following code:
color = 0xFF;
var g:Graphics = s.graphics;
g.clear();
g.beginFill(color);
g.drawRect(x, y, width, rowHeight);
g.endFill();

The columns in DG have different colors. So, how do I restore cells 
from colored row back to columns colors? 

Thanks



[flexcoders] Re: How to rotate a Combo Box

2008-07-02 Thread wyattwang

This works as well! thank you, Paddy. 

--- In flexcoders@yahoogroups.com, "Paddy Keane" <[EMAIL PROTECTED]> wrote:
>
> You could also set the fontWeight to 'normal' for components if u
don't want to embed whole new font family:
> 
> i.e
> 
> ComboBox {
> fontFamily: myArial;
> fontSize: 20;
> fontWeight: "normal";
> }
> 
> 




[flexcoders] Re: Flex Builder Eclipse Builder Syntax Checking

2008-07-02 Thread steve.baney
Nope, still bad...



Re: [flexcoders] Re: List displaying wrong information

2008-07-02 Thread Sean Clark Hess
Yeah, that's as far as I can get without seeing any code

On Wed, Jul 2, 2008 at 12:01 PM, Tim Hoff <[EMAIL PROTECTED]> wrote:

>
> Interested to see what your itemRenderer looks like. Are you
> over-riding any methods?
>
> -TH
>
>
> --- In flexcoders@yahoogroups.com ,
> "nathanpdaniel" <[EMAIL PROTECTED]> wrote:
> >
> > BTW - If I don't use an itemRenderer, it works fine and displays how
> > it should.
> >
> >
> >
> > --- In flexcoders@yahoogroups.com ,
> "nathanpdaniel" ndaniel@
> > wrote:
> > >
> > > Yes - and in fact - to clarify - when I run my application, it
> > > displays the mini cart all the time (always on) - so when I add
> > > items, it updates, when they're removed, it's updated.
> > Unfortunately
> > > when I delete an item and add a new one, it displays the old one,
> > > even though in my cart itself is showing the new item. I'm only
> > > making changes to the Cart object itself which has a property
> > > cartItems (ArrayCollection). Debugging, this is always right with
> > > what the cart should be - it's just not showing the right products.
> > >
> > > --- In flexcoders@yahoogroups.com ,
> "Sean Clark Hess" 
> > > wrote:
> > > >
> > > > And both are bound to the same ArrayCollection?
> > > >
> > > > On Wed, Jul 2, 2008 at 10:19 AM, nathanpdaniel  wrote:
> > > >
> > > > > I'm building shopping cart functionality which uses a
> > > ShoppingCart
> > > > > component with 2 states. A "mini" cart and a regular view. The
> > > > > regular view works fine with a DataGrid component and shows
> > > correct
> > > > > cart items and price etc.
> > > > >
> > > > > The mini cart on the other hand doesn't work properly once you
> > > add an
> > > > > item to the cart.
> > > > >
> > > > > If I add an item to the cart it displays properly. When I
> > delete a
> > > > > cart item, it displays properly. When I add another cart item
> > > after
> > > > > deleting one, the item I last deleted shows up rather than the
> > new
> > > > > item I'm trying to add. I change view to "regular" (with
> > DataGrid)
> > > > > and it displays properly.
> > > > >
> > > > > If I add 5 items to my cart, the mini view will show the first 5
> > > > > items I put in my cart. If I only had 3 items originally, then
> > > > > deleted all three and put 5 new ones, the first three display
> > as
> > > the
> > > > > original 3 (in the order they were deleted), the final 2 are the
> > > > > final 2 items I added with the set of 5.
> > > > >
> > > > > Hopefully I've explained my situation in a way that is helpful.
> > As
> > > > > for me, I'm at a loss - completely. I'm tracing through my cart
> > > > > items and it displays what "should" be showing up.
> > > > >
> > > > > I'm using a List component with a custom itemRenderer.
> > > > >
> > > > > -Nathan D.
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>
>  
>


[flexcoders] Re: Flex Builder Eclipse Builder Syntax Checking

2008-07-02 Thread steve.baney
I think this was the problem

.actionScriptProperties

Had this:



Instead of:





No idea how that happened, or if I have it solved all the way, but if
that was it...man I feel dumb...

Thanks for the assistance, that really did help me come at it from a
different angle.

I'll post up any further progress.



[flexcoders] Inspecting data from HTTPService result to an ArrayCollection

2008-07-02 Thread Stephen More
( Example code taken from:
http://livedocs.adobe.com/flex/201/html/charts_intro_108_12.html )
Here is the dataset I am trying to work with:



81768
60310
43357


81156
58883
49280



The flex code will look like this:



How can I interrogate the ArrayCollection named myData so that it will
return apple, orange, and banana ?
I am not looking to get the numerical values, I want to get the xml name.

-Thanks
Steve More


[flexcoders] Re: How to rotate a Combo Box

2008-07-02 Thread wyattwang

It works. Thank you, Alex.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Combobox (and Button and a few others) use bold fontWeight.  You have to
> embed the bold version of the font as well.  I believe it looks
> something like:
> 
>  
> 
> @font-face{
> src: url("assets/ARIALBD.TTF"); /* copy from Windows/fonts/
> folder */
> fontFamily: myArial; 
> 
> fontWeight: bold;
> }
> 




[flexcoders] Issues panning a swf loaded via SWFLoader

2008-07-02 Thread djepyon
(I accidentally put this as a response to another topic the first time
so I'm re-posting)

I'm loading a swf into a SWFLoader (earth-shattering, I know). The swf
document size itself is set 2800x960, but there is an additional
element beneath this in the pasteboard (what was the flash 8
"workarea")  that is about 500px in length. I need to be able to pan
down to this element. If make a call to set the y value of the
SWFLoader to -500 (to pan downward) the area above it hovers above my
flex components instead of going underneath.

I went  a step further and wrapped the swfLoader in a Canvas object.
Setting the y value to -500 on the MXML object did just what I wanted
to. I then began setting this dynamically, which produces the same
results as before. I also tried to run validateDisplayList() hoping it
would fix things but to no avail.

Any suggestions would be greatly appreciated :) 



[flexcoders] Missing AsnDecoder Class

2008-07-02 Thread Geoffrey
I seem to have the wrong version of the flex-messaging jar because
when I start my server I get the spew below.  I looked at all the
flex-messaging jars on my system and I don't see it anywhere.  All
copies have the same manifest of:
  Manifest-Version: 1.0
  Ant-Version: Apache Ant 1.6.2
  Created-By: 1.5.0_11-b03 (Sun Microsystems Inc.)
  Sealed: false
  Implementation-Title: LiveCycle Data Services 2.5.1
  Implementation-Version: 2.5.1.173666
  Implementation-Vendor: Adobe Systems Inc.

Any ideas?

Jul 2, 2008 10:32:27 AM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.NoClassDefFoundError: flex/messaging/license/AsnDecoder
at 
flex.messaging.license.StandardLicense.(StandardLicense.java:50)
at
flex.messaging.license.LicenseServiceImpl.validateLicense(LicenseServiceImpl.java:250)
at
flex.messaging.license.LicenseServiceImpl.init(LicenseServiceImpl.java:296)
at
flex.messaging.MessageBrokerServlet.buildLicenseService(MessageBrokerServlet.java:274)
at
flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:117)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jul 2, 2008 10:32:27 AM org.apache.catalina.core.StandardContext
loadOnStartup
SEVERE: Servlet /air-lcds threw load() exception
java.lang.NoClassDefFoundError: flex/messaging/license/AsnDecoder
at 
flex.messaging.license.StandardLicense.(StandardLicense.java:50)
at
flex.messaging.license.LicenseServiceImpl.validateLicense(LicenseServiceImpl.java:250)
at
flex.messaging.license.LicenseServiceImpl.init(LicenseServiceImpl.java:296)
at
flex.messaging.MessageBrokerServlet.buildLicenseService(MessageBrokerServlet.java:274)
at
flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:117)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Jul 2, 2008 10:32:27 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 2, 2008 10:32:27 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-843
Jul 2, 2008 10:32:27 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 2, 2008 10:32:27 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16  config=null
Jul 2, 2008 10:32:27 AM org.apache.catali

[flexcoders] Re: List displaying wrong information

2008-07-02 Thread Tim Hoff

Interested to see what your itemRenderer looks like.  Are you
over-riding any methods?

-TH

--- In flexcoders@yahoogroups.com, "nathanpdaniel" <[EMAIL PROTECTED]> wrote:
>
> BTW - If I don't use an itemRenderer, it works fine and displays how
> it should.
>
>
>
> --- In flexcoders@yahoogroups.com, "nathanpdaniel" ndaniel@
> wrote:
> >
> > Yes - and in fact - to clarify - when I run my application, it
> > displays the mini cart all the time (always on) - so when I add
> > items, it updates, when they're removed, it's updated.
> Unfortunately
> > when I delete an item and add a new one, it displays the old one,
> > even though in my cart itself is showing the new item. I'm only
> > making changes to the Cart object itself which has a property
> > cartItems (ArrayCollection). Debugging, this is always right with
> > what the cart should be - it's just not showing the right products.
> >
> > --- In flexcoders@yahoogroups.com, "Sean Clark Hess" 
> > wrote:
> > >
> > > And both are bound to the same ArrayCollection?
> > >
> > > On Wed, Jul 2, 2008 at 10:19 AM, nathanpdaniel  wrote:
> > >
> > > > I'm building shopping cart functionality which uses a
> > ShoppingCart
> > > > component with 2 states. A "mini" cart and a regular view. The
> > > > regular view works fine with a DataGrid component and shows
> > correct
> > > > cart items and price etc.
> > > >
> > > > The mini cart on the other hand doesn't work properly once you
> > add an
> > > > item to the cart.
> > > >
> > > > If I add an item to the cart it displays properly. When I
> delete a
> > > > cart item, it displays properly. When I add another cart item
> > after
> > > > deleting one, the item I last deleted shows up rather than the
> new
> > > > item I'm trying to add. I change view to "regular" (with
> DataGrid)
> > > > and it displays properly.
> > > >
> > > > If I add 5 items to my cart, the mini view will show the first 5
> > > > items I put in my cart. If I only had 3 items originally, then
> > > > deleted all three and put 5 new ones, the first three display
> as
> > the
> > > > original 3 (in the order they were deleted), the final 2 are the
> > > > final 2 items I added with the set of 5.
> > > >
> > > > Hopefully I've explained my situation in a way that is helpful.
> As
> > > > for me, I'm at a loss - completely. I'm tracing through my cart
> > > > items and it displays what "should" be showing up.
> > > >
> > > > I'm using a List component with a custom itemRenderer.
> > > >
> > > > -Nathan D.
> > > >
> > > >
> > > >
> > >
> >
>





[flexcoders] Re: display text input values in datagrid

2008-07-02 Thread Amy
--- In flexcoders@yahoogroups.com, Santhosh Garlapad 
<[EMAIL PROTECTED]> wrote:
>
> Hi Sean,
> I m working on Shopping cart application.
> I have Button called ADD another Item.If i click on that button the 
all the shopping cart item details shold be displayed in the datagrid.
> Your solution is perfect if i have only one row item in the 
datagrid.If i click Add another items multiple times and alll the 
text input values should be displayed in the datagrid.
> Say i clicked the add another item 20 times ,,the datagrid should 
contains 20 items in that(with textinput values)
> The sample datagrid as follows:

Flex N Training From the Source (where N is the version of Flex you 
are using) walks you through making a shopping cart app.  You might 
find it is a valuable shortcut.

HTH;

Amy



[flexcoders] Re: Issues panning a swf loaded via SWFLoader

2008-07-02 Thread djepyon
I just set it on the canvas but it doesn't appear to help. There isn't
a clipContent property on the SWFLoader so thats out of the question.

--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> wrote:
>
> Do you have clipContent='true' on the container?
> 
> On Wed, Jul 2, 2008 at 9:14 AM, djepyon <[EMAIL PROTECTED]> wrote:
> 
> >   I'm loading a swf into a SWFLoader (earth-shattering, I know).
The swf
> > document size itself is set 2800x960, but there is an additional
> > element beneath this in the pasteboard (what was the flash 8
> > "workarea") that is about 500px in length. I need to be able to pan
> > down to this element. If make a call to set the y value of the
> > SWFLoader to -500 (to pan downward) the top portion breaks out and
> > hovers above my other components instead disappearing at the top
border.
> >
> > I went a step further and wrapped the swfLoader in a Canvas object.
> > Setting the y value to -500 on the MXML object did just what I wanted
> > to. I then began setting this dynamically, which produced the same
> > results as before. I also tried to run validateDisplayList() hoping it
> > would fix things but to no avail.
> >
> > Any suggestions would be greatly appreciated :)
> >
> >  
> >
>




RE: [flexcoders] Get a list of all available classes?

2008-07-02 Thread Gordon Smith
> is there a way to get a complete list of available public classes from
the runtime?

 

Not through a simple API. You'd have to parse the SWF's DoABC2 block.
The SWF spec is here:

 

http://www.adobe.com/devnet/swf/

 

Gordon Smith

Adobe Flex SDK Team

 

 



[flexcoders] Re: Compile issues in FlexBuilder 3

2008-07-02 Thread daddyo_buckeye
Surely there's a simpler way to fix this...



--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> wrote:
>
> Try creating a new project, and just copying the src folder from the
sample
> into your new one.
> 
> On Wed, Jul 2, 2008 at 10:38 AM, daddyo_buckeye <
> [EMAIL PROTECTED]> wrote:
> 
> >   I have an app in Flex that won't compile, I'm getting a message that
> > the HTML file is missing.
> >




[flexcoders] Re: List displaying wrong information

2008-07-02 Thread nathanpdaniel
BTW - If I don't use an itemRenderer, it works fine and displays how 
it should.



--- In flexcoders@yahoogroups.com, "nathanpdaniel" <[EMAIL PROTECTED]> 
wrote:
>
> Yes - and in fact - to clarify - when I run my application, it 
> displays the mini cart all the time (always on) - so when I add 
> items, it updates, when they're removed, it's updated.  
Unfortunately 
> when I delete an item and add a new one, it displays the old one, 
> even though in my cart itself is showing the new item.  I'm only 
> making changes to the Cart object itself which has a property 
> cartItems (ArrayCollection).  Debugging, this is always right with 
> what the cart should be - it's just not showing the right products.
> 
> --- In flexcoders@yahoogroups.com, "Sean Clark Hess"  
> wrote:
> >
> > And both are bound to the same ArrayCollection?
> > 
> > On Wed, Jul 2, 2008 at 10:19 AM, nathanpdaniel  wrote:
> > 
> > >   I'm building shopping cart functionality which uses a 
> ShoppingCart
> > > component with 2 states. A "mini" cart and a regular view. The
> > > regular view works fine with a DataGrid component and shows 
> correct
> > > cart items and price etc.
> > >
> > > The mini cart on the other hand doesn't work properly once you 
> add an
> > > item to the cart.
> > >
> > > If I add an item to the cart it displays properly. When I 
delete a
> > > cart item, it displays properly. When I add another cart item 
> after
> > > deleting one, the item I last deleted shows up rather than the 
new
> > > item I'm trying to add. I change view to "regular" (with 
DataGrid)
> > > and it displays properly.
> > >
> > > If I add 5 items to my cart, the mini view will show the first 5
> > > items I put in my cart. If I only had 3 items originally, then
> > > deleted all three and put 5 new ones, the first three display 
as 
> the
> > > original 3 (in the order they were deleted), the final 2 are the
> > > final 2 items I added with the set of 5.
> > >
> > > Hopefully I've explained my situation in a way that is helpful. 
As
> > > for me, I'm at a loss - completely. I'm tracing through my cart
> > > items and it displays what "should" be showing up.
> > >
> > > I'm using a List component with a custom itemRenderer.
> > >
> > > -Nathan D.
> > >
> > >  
> > >
> >
>




[flexcoders] Re: LCDS and AIR?

2008-07-02 Thread markflex2007
what is the name for client swc file for LCDS.where I can get it?

thanks

Mark

--- In flexcoders@yahoogroups.com, "meteatamel" <[EMAIL PROTECTED]> wrote:
>
> LCDS/BlazeDS is a server and a client product. On the server, it
> requires a J2EE server but on the client, it's simply a few swcs
> (rpc.swc in BlazeDS) and your AIR app would use this rpc.swc to talk
> to the LCDS server. So the fact that the LCDS server piece runs on a
> J2EE server is irrelevant to the AIR client application.
> 
> -Mete
> 
> --- In flexcoders@yahoogroups.com, "markflex2007" 
> wrote:
> >
> > Hi,
> > 
> > I have a Flex application with LCDS.Do you think if I can convert
it th 
> > AIR application.
> > 
> > I know LCDS is web base and need Jrun runing so I an not sure if AIR 
> > works.
> > 
> > Thanks
> > 
> > Mark
> >
>




[flexcoders] Re: Compile issues in FlexBuilder 3

2008-07-02 Thread fourctv
Did you try right-clicking the error message? FB3 should give you the option to 
re-create 
the html template folder on the context menu.

hth
julio

--- In flexcoders@yahoogroups.com, "daddyo_buckeye" <[EMAIL PROTECTED]> wrote:
>
> I have an app in Flex that won't compile, I'm getting a message that
> the HTML file is missing.
> 
> This is a downloaded sample app loaded into Flex and tried to compile
> it the first time to see how the code works.
> 
> Is there a prefs file or compile parameters to tell Flex Builder to
> forget about previous builds and compile a new version? I'm guessing
> it's looking for a previous compile the author built but didn't
> include in the download.
> 
> BTW, I'm not getting any errors in the code.
> 
> Thanks in advance for your assistance.
>





[flexcoders] Re: LCDS and AIR?

2008-07-02 Thread meteatamel
LCDS/BlazeDS is a server and a client product. On the server, it
requires a J2EE server but on the client, it's simply a few swcs
(rpc.swc in BlazeDS) and your AIR app would use this rpc.swc to talk
to the LCDS server. So the fact that the LCDS server piece runs on a
J2EE server is irrelevant to the AIR client application.

-Mete

--- In flexcoders@yahoogroups.com, "markflex2007" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> 
> I have a Flex application with LCDS.Do you think if I can convert it th 
> AIR application.
> 
> I know LCDS is web base and need Jrun runing so I an not sure if AIR 
> works.
> 
> Thanks
> 
> Mark
>




[flexcoders] Re: List displaying wrong information

2008-07-02 Thread nathanpdaniel
Yes - and in fact - to clarify - when I run my application, it 
displays the mini cart all the time (always on) - so when I add 
items, it updates, when they're removed, it's updated.  Unfortunately 
when I delete an item and add a new one, it displays the old one, 
even though in my cart itself is showing the new item.  I'm only 
making changes to the Cart object itself which has a property 
cartItems (ArrayCollection).  Debugging, this is always right with 
what the cart should be - it's just not showing the right products.

--- In flexcoders@yahoogroups.com, "Sean Clark Hess" <[EMAIL PROTECTED]> 
wrote:
>
> And both are bound to the same ArrayCollection?
> 
> On Wed, Jul 2, 2008 at 10:19 AM, nathanpdaniel <[EMAIL PROTECTED]> wrote:
> 
> >   I'm building shopping cart functionality which uses a 
ShoppingCart
> > component with 2 states. A "mini" cart and a regular view. The
> > regular view works fine with a DataGrid component and shows 
correct
> > cart items and price etc.
> >
> > The mini cart on the other hand doesn't work properly once you 
add an
> > item to the cart.
> >
> > If I add an item to the cart it displays properly. When I delete a
> > cart item, it displays properly. When I add another cart item 
after
> > deleting one, the item I last deleted shows up rather than the new
> > item I'm trying to add. I change view to "regular" (with DataGrid)
> > and it displays properly.
> >
> > If I add 5 items to my cart, the mini view will show the first 5
> > items I put in my cart. If I only had 3 items originally, then
> > deleted all three and put 5 new ones, the first three display as 
the
> > original 3 (in the order they were deleted), the final 2 are the
> > final 2 items I added with the set of 5.
> >
> > Hopefully I've explained my situation in a way that is helpful. As
> > for me, I'm at a loss - completely. I'm tracing through my cart
> > items and it displays what "should" be showing up.
> >
> > I'm using a List component with a custom itemRenderer.
> >
> > -Nathan D.
> >
> >  
> >
>




  1   2   >