[flexcoders] Web Services: Nearing Wit's End

2007-03-10 Thread Shibli Zaman
I've followed every single tutorial on consuming Web Services in Flex
and not a single one works with anything other than simple demo web
services available on the net. I've followed all the different methods
documented and followed each and every step in detail. Now, I'm at the
point that I am appealing for someone to take a look at my WSDL file and
tell me what I am doing wrong. If you're interested in helping me out
please let me know. Thanks. --Shibli 



Re: [flexcoders] Re: DB access in Apollo

2007-03-10 Thread dorkie dork from dorktown

btw, the way this thing works is by feature request (voting system). at
least at the company i work for. so if you aren't asking for it ask for it
now.
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform



On 3/9/07, dorkie dork from dorktown [EMAIL PROTECTED]
wrote:


It is a must have IMO. I thought it was already going to be built in.

Lets say you have a client that says we don't have database support but
you can use files, XML or shared objects. How would that limit your
application? If you needed a database you would have to go online to get it
defeating the purpose of Apollo's goal of desktop development.

There are already apps in development that would use a database:

- Java Docs Generator (in dev) - documents your code, stores and updates
java docs in db
- Project management software (in dev) - keeps track of tasks, projects
- Photo management software - accesses the filesystem like Adobe Bridge,
search and sort
- Music software (already created by an Adobe engineer) - keep track and
sort mp3's (itunes, windows media player, winamp, etc use their own built in
db)
- DVD collection - keeps track of all your dvds or cds
- CD demos - pass out demos on cd of your application may need db access

Really, think of all the applications on your computer that use a
database. Apollo is a desktop application builder.

Someone may say you say you can use xml but when you add anymore than a
few collections of data, you start to rebuilt a database and try and make
xml do what a database is supposed to. It is a sloppy hack.

Here's another thing. You come out with Apollo and it doesn't have DB
support. You get Apollo adopted after a year at 50% penetration but the big
huge apps in development out there need db support. So these can't come out
yet. They end up waiting until Apollo 2 is here but also has more then 50%
adoption rate. Now its 2 years later. People are frustrated. You could do
that or you could push back your release date a month or two now. I would
rather wait. I don't care which database you choose as long as there is some
kind of database in this release.

my 2 cents,
dorkie rioting in the streets dork from dorktown

On 3/9/07, Eric Guesdon [EMAIL PROTECTED]  wrote:

   I mean nothing, i just asked every one if something like SharedObject
 (of course more robust and larger) should answer to the database subject.



 What do you think about that… from my point of view a system like
 sharedobject should be enough

 I don't know if you downloaded New York Times application (unfortunately
 based on wpf) but they synchronized all their news each time you start the
 application.

 Of course it represents a large quantity of data but I'm not sure they
 use a local database for that



 Let me know



 Regards



 Eric


  --

 *De :* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] *De
 la part de* Merrill, Jason
 *Envoy� :* vendredi 9 mars 2007 17:54
 *� :* flexcoders@yahoogroups.com
 *Objet :* RE: [flexcoders] Re: DB access in Apollo



 SharedObject.

 You mean those little tiny 128k or whatever Shared Objects like from the
 Flash player or do you mean Apollo will have a more robust  larger
 Shared Object?

 Jason Merrill
 Bank of America
 Global Technology  Operations
 Learning  Leadership Development
 eTools  Multimedia Team

 






Re: [flexcoders] Re: DB access in Apollo

2007-03-10 Thread shaun
dorkie,

dorkie dork from dorktown wrote:
 btw, the way this thing works is by feature request (voting system). at
 least at the company i work for. so if you aren't asking for it ask for it
 now.
 http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
 
 
 
 On 3/9/07, dorkie dork from dorktown [EMAIL PROTECTED]
 wrote:
 

 It is a must have IMO. I thought it was already going to be built in.

 Lets say you have a client that says we don't have database support but
 you can use files, XML or shared objects. How would that limit your
 application? If you needed a database you would have to go online to 
 get it
 defeating the purpose of Apollo's goal of desktop development.


Your overstating the importance of a db on the client.
Bringing the desktop and the 'net together is one of its(Apollo's) 
strong points. At least thats what it seems like from where i'm sitting.


 There are already apps in development that would use a database:

 - Java Docs Generator (in dev) - documents your code, stores and updates
 java docs in db

You wouldnt want to store the documents in a DB, thats just dumb. 
Metadata perhaps, but there are other options.

 - Project management software (in dev) - keeps track of tasks, projects

This information you would probably not want stored in a client DB, more 
likely this would be stored on a DB server and accessed from the client. 
Usually more than one person wants to see how a project is tracking.
If you must have it on a client(no server) then, use a xml document, at 
least its portable, that way you could send it to another person so they 
could see the project details, and you can render it using XSLT in any 
format you like.

 - Photo management software - accesses the filesystem like Adobe Bridge,
 search and sort

Nah not really, simply use the filesystem to store the assets(images) 
and store the metadata in a file that points to the filesystem. Same as 
iTunes. You sort and search the metadata not the assets.

 - Music software (already created by an Adobe engineer) - keep track and
 sort mp3's (itunes, windows media player, winamp, etc use their own 
 built in
 db)

iTunes uses an xml file.. Dunno about the others. iTunes connects to the 
'net when it needs access to a DB, that hasnt stopped it being a huge 
success as far as I can tell.

So, a client side DB is not as critical to me, as it to you. Sure it 
might come in handy, but I can live without it.

cheers,
   shaun






Re: [flexcoders] Re: DB access in Apollo

2007-03-10 Thread hank williams
Wow Shaun,

Lots of stuff to vehemently disagree with.



 Your overstating the importance of a db on the client.

Well, he may be. But let me just say this. For the last 20 years, most
desktop apps have use a client side database. Generally in the MS
world it used to be a library called Jet that was an embeddable
version of Access. And almost every pc based app used it. So the idea
that Dorkie is saying something out of the mainstream of thinking as
it relates to client side development is just wrong.

 Bringing the desktop and the 'net together is one of its(Apollo's)
 strong points. At least thats what it seems like from where i'm sitting.


Translation - bringing local file storage to web applications is
Apollo's strong point. What we are arguing about it *how* best to do
the local storage. You make your point as though the database issue is
not relevant to bringing desktop and 'net together. What other
important issues are there in this regard aside from storage?
 
  There are already apps in development that would use a database:
 
  - Java Docs Generator (in dev) - documents your code, stores and updates
  java docs in db

 You wouldnt want to store the documents in a DB, thats just dumb.
 Metadata perhaps, but there are other options.


No, is isn't dumb. It might be the right solution sometimes and
sometimes not. But its not dumb. Databases provide integrity which you
dont get with file system storage. This is a design decision and trade
off and it is not a clear cut decision.

  - Project management software (in dev) - keeps track of tasks, projects

 This information you would probably not want stored in a client DB, more
 likely this would be stored on a DB server and accessed from the client.
 Usually more than one person wants to see how a project is tracking.
 If you must have it on a client(no server) then, use a xml document, at
 least its portable, that way you could send it to another person so they
 could see the project details, and you can render it using XSLT in any
 format you like.


The entire point of Apollo is disconnected use with synchronization.
You seem to be arguing with your comment that for some apps this is a
bad idea. NEWSFLASH: You dont need Apollo if everything is going to be
server based.
To your point about XSLT this is just silly. The model you are
describing is not an app model its a web page model. Imagine saying to
microsoft hey guys lets just use XSLT to display those PERT or GANTT
charts.

  - Photo management software - accesses the filesystem like Adobe Bridge,
  search and sort

 Nah not really, simply use the filesystem to store the assets(images)
 and store the metadata in a file that points to the filesystem. Same as
 iTunes. You sort and search the metadata not the assets.


I cant say i'm sure about this - but I am *fairly* confident, that the
iTunes XML file is an output format and that it also uses a native
file format for its actual operation and management. I  think it just
periodically exports the database in XML format. But whether it does
or not, the issue is whether you want a RAM based application, or a
disk based application. Plain and Simple. Despite your implied
contention, it is a well established notion that there is value in
storing your data on a hard disk and only changing the bits that need
to be changed instead of writing out the whole file after every
modification. More importantly, deveoping this way is *much* more work
for table based applications. You have to create your own indexes for
sorting, etc. SQL *does* make life easier, and that is the point of
all this isnt it?

  - Music software (already created by an Adobe engineer) - keep track and
  sort mp3's (itunes, windows media player, winamp, etc use their own
  built in
  db)

 iTunes uses an xml file.. Dunno about the others. iTunes connects to the
 'net when it needs access to a DB, that hasnt stopped it being a huge
 success as far as I can tell.


What a silly comment. itunes is successful, therefore there is no need
for disk based applications!?

 So, a client side DB is not as critical to me, as it to you. Sure it
 might come in handy, but I can live without it.


Well, this is the first thing you have said that makes sense to me. It
is clear that depending on what you are developing and how you like to
develop that your mileage may vary. But I guarantee you this. If I had
a database and all you had was the flash api and text file storage,
that for any kind of data intensive application I would be able to
write a more robust application - or at least the data handling piece,
and I would be able to write it faster than you would with just file
storage.

Regards,
Hank


Re: [flexcoders] Mac style drop-down sheet

2007-03-10 Thread Michael Wills
Hmm something like this link?

http://weblogs.macromedia.com/mc/archives/2006/05/mac_os_x-lookin.cfm

Or something more specific to drop-downs?

Michael

ashifsayani wrote:

 Hi,

 I'd seen a posting where someone created a mac style drop-down sheet 
 in Flex. I can't seem
 to find the link anymore, does anyone remember who's blog it was on?

 thanks,
 Ashif

  


Re: [flexcoders] Web Services: Nearing Wit's End

2007-03-10 Thread Michael Wills
Hi Shibli,

I defer to the experts on the details (I'm new to Flex) but I have 
gotten other services to work. A web service debugger has been a great 
asset in that development. Two popular ones are Charles 
(http://www.xk72.com/charles/) and Service Capture 
(http://kevinlangdon.com/serviceCapture/) although I can only vouch for 
Charles. I haven't used Service Capture before.

Perhaps using one of those or a utility like that you might be able to 
see what is and is not coming across the wire.

Hope that helps!

Michael

Shibli Zaman wrote:

 I’ve followed every single tutorial on consuming Web Services in Flex 
 and not a single one works with anything other than simple demo web 
 services available on the net. I’ve followed all the different methods 
 documented and followed each and every step in detail. Now, I’m at the 
 point that I am appealing for someone to take a look at my WSDL file 
 and tell me what I am doing wrong. If you’re interested in helping me 
 out please let me know. Thanks. --Shibli

  


 Yahoo! Groups Sponsor ~-- 
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/4It09A/fOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


RE: [flexcoders] Re: DB access in Apollo

2007-03-10 Thread Agent RR-007
I don't it should be that difficult to built database connectivity like zinc 
uses. That way it can communicate with stand alone dbs like ms access, etc...

Thanks,
Rob 

-Original Message-
From: Troy Gilbert [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: 3/9/07 12:30 PM
Subject: Re: [flexcoders] Re: DB access in Apollo

I think that if Adobe really wants to bill Apollo as taking the best-of web
technology and putting it on the desktop, then they need to seriously
consider including a DB that speaks SQL.

Personally, I think it would be *fantastic* if Apollo was essentially an
embedded webserver, i.e. stripped down Apache (or similar) where I could
choose to generate documents using PHP and have a DB backend like MySQL.
Basically Zinc + Flex + WAMP, all in one executable. Now *that* would be
cool...

Troy.


On 09 Mar 2007 08:57:58 -0800, Matt Chotin [EMAIL PROTECTED] wrote:

Apollo has filesystem access, you can store whatever you want.  But a
 DB is under consideration, no guarantees but it hasn't been ruled out.

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Merrill, Jason
 *Sent:* Friday, March 09, 2007 8:49 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Re: DB access in Apollo

  SharedObject.

 You mean those little tiny 128k or whatever Shared Objects like from the
 Flash player or do you mean Apollo will have a more robust  larger
 Shared Object?

 Jason Merrill
 Bank of America
 Global Technology  Operations
 Learning  Leadership Development
 eTools  Multimedia Team

  




[flexcoders] Selecting child components in TabNavigator

2007-03-10 Thread Vyshakh Venugopal
hi all,

am a newbie to flex, I tried the nested tab navigator with custom 
canvas components in it. But i faced to show the componenets upon a 
button click event happened in another componenet. the 
tabnavigator.selectChildIndex is not working with this since its a 
user defined componenet. Please help me out...

Thanks in advance



RE: [flexcoders] Re: DB access in Apollo

2007-03-10 Thread Merrill, Jason
I don't it should be that difficult to built database connectivity
like zinc uses. 
That way it can communicate with stand alone dbs like ms access,
etc...
 
But then you have to deal with setting up  installing that database on
the user end.  If it was built in to Apollo, it would be much easier.
 

Jason Merrill 
Bank of America  
Global Technology  Operations 
Learning  Leadership Development 
eTools  Multimedia Team 


http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/
msgId=67417/stime=1173535274/nc1=4438988/nc2=3848643/nc3=3 
 



Re: [flexcoders] Re: DB access in Apollo

2007-03-10 Thread dorkie dork from dorktown

i agree. it should be built in. at some point the Apollo team realized they
needed to include built in support for HTML container and support css, etc.
and not rely on outside technology being there. thats its strong point in
that if it is built in we don't have to worry about installing something
else for the client.

On 3/10/07, Merrill, Jason [EMAIL PROTECTED] wrote:


 I don't it should be that difficult to built database connectivity like
zinc uses.
That way it can communicate with stand alone dbs like ms access, etc...

But then you have to deal with setting up  installing that database on
the user end.  If it was built in to Apollo, it would be much easier.


Jason Merrill
Bank of America
Global Technology  Operations
Learning  Leadership Development
eTools  Multimedia Team


 



[flexcoders] Changing currentState based on a url

2007-03-10 Thread flexjeremy
Hi guys,

I'm WOAH new to flex. My company is seriously starting to look at it
now. So I have the mind numbing task to work out a few things.

What I'm trying to do is change the currentState based on a URL that I
passthrough using flashvars i.e.

cfoutputflashvars,'RequestType=
#url.RequestType#historyUrl=history.htm%3Flconid=' + lc_id +
'',/cfoutput


Now that works a treat..passing the variables works fine. Where I come
stuck is how to get the currentState to show one thing when the url
comes through or another thing with a different url parameter.

i.e.

 private function initApp():void
 {
var RequestType:String =
Application.application.parameters.RequestType;
  Alert.show(RequestType);
if (RequestType == '1')
{
Alert.show('1');
changemystate();
}
else
{
Alert.show('2');
currentState='showdifferent';
}
   
  }

Am I doing this right...or can someone point me in the right direction
to learn about what I'm trying to do. 

I'm a coldfusion programmer...so all this object orientated stuff is
Wierd dood!.

Jeremy



RE: [flexcoders] Flex Data Services Question, Java backend

2007-03-10 Thread Allen Riddle
You could use Flex's JMS messaging capabilities. Check out the
messaging-config.xml and check out the mx:Consumer component. I still
haven't used the Data Management services with Data Services, but if the
new data is coming from a source other than your Flex app, I think using
the Flex messaging may be the way.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of bruce1976
Sent: Friday, March 09, 2007 4:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Data Services Question, Java backend

 

Hi,

I want my Flex clients to be notified when new data is available. The
data is read-only, so the Flex clients won't be updating it, they just
need to display it. When the data is ready to be viewed, I have a Java
backend that can send an HTTP post to any endpoint, but I'm having
trouble determining which FDS component I should use.

Of course, the Flex client can't receive the POST, and I don't mind
putting a mini-HTTP server on the same tier as the FDS, but I'm not
sure how to notify the clients.

Does anyone have any suggestions?

Thanks,

Bruce

 



RE: [flexcoders] Re: DB access in Apollo

2007-03-10 Thread Matt Chotin
Please don't for this feature, we already know enough of the use-cases.
 
Matt



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of dorkie 
dork from dorktown
Sent: Saturday, March 10, 2007 1:39 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: DB access in Apollo



btw, the way this thing works is by feature request (voting system). at least 
at the company i work for. so if you aren't asking for it ask for it now. 
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform 
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform 




On 3/9/07, dorkie dork from dorktown  [EMAIL PROTECTED] mailto:[EMAIL 
PROTECTED]  wrote: 

It is a must have IMO. I thought it was already going to be built in. 

Lets say you have a client that says we don't have database support but 
you can use files, XML or shared objects. How would that limit your 
application? If you needed a database you would have to go online to get it 
defeating the purpose of Apollo's goal of desktop development. 

There are already apps in development that would use a database: 

- Java Docs Generator (in dev) - documents your code, stores and 
updates java docs in db
- Project management software (in dev) - keeps track of tasks, projects 
- Photo management software - accesses the filesystem like Adobe 
Bridge, search and sort
- Music software (already created by an Adobe engineer) - keep track 
and sort mp3's (itunes, windows media player, winamp, etc use their own built 
in db) 
- DVD collection - keeps track of all your dvds or cds
- CD demos - pass out demos on cd of your application may need db access

Really, think of all the applications on your computer that use a 
database. Apollo is a desktop application builder. 

Someone may say you say you can use xml but when you add anymore than a 
few collections of data, you start to rebuilt a database and try and make xml 
do what a database is supposed to. It is a sloppy hack. 

Here's another thing. You come out with Apollo and it doesn't have DB 
support. You get Apollo adopted after a year at 50% penetration but the big 
huge apps in development out there need db support. So these can't come out 
yet. They end up waiting until Apollo 2 is here but also has more then 50% 
adoption rate. Now its 2 years later. People are frustrated. You could do that 
or you could push back your release date a month or two now. I would rather 
wait. I don't care which database you choose as long as there is some kind of 
database in this release. 

my 2 cents,
dorkie rioting in the streets dork from dorktown 



On 3/9/07, Eric Guesdon  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
 wrote: 

I mean nothing, i just asked every one if something like 
SharedObject (of course more robust and larger) should answer to the database 
subject.

 

What do you think about that… from my point of view a system 
like sharedobject should be enough

I don't know if you downloaded New York Times application 
(unfortunately based on wpf) but they synchronized all their news each time you 
start the application. 

Of course it represents a large quantity of data but I'm not 
sure they use a local database for that

 

Let me know

 

Regards

 

Eric

 





De : flexcoders@yahoogroups.com 
mailto:flexcoders@yahoogroups.com  [mailto: flexcoders@yahoogroups.com 
mailto:flexcoders@yahoogroups.com ] De la part de Merrill, Jason
Envoy� : vendredi 9 mars 2007 17:54
� : flexcoders@yahoogroups.com 
mailto:flexcoders@yahoogroups.com 
Objet : RE: [flexcoders] Re: DB access in Apollo

 



SharedObject.

You mean those little tiny 128k or whatever Shared Objects like 
from the
Flash player or do you mean Apollo will have a more robust  
larger
Shared Object? 

Jason Merrill
Bank of America 
Global Technology  Operations
Learning  Leadership Development 
eTools  Multimedia Team







 


[flexcoders] Re: Flex Data Services Question, Java backend (HTTPAdapter?)

2007-03-10 Thread bruce1976
Thanks,

I'll do look it up.

Ideally, I would like to do one of the following:

1) Use Flex Messaging Service, and have my Java backend act as a
producer (but I don't want to setup a JMS topic).

or

2) Use a HTTPAdapter (for lack of a better term) that will allow
remote producer of data to send a HTTP POST that will be delivered to
all the clients.

Thanks,

Bruce 


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

 Within FDS there is a Java class called
flex.data.DataServiceTransaction which will allow u from Java to
update your Flex clients. I haven't used it yet, but plan too, within
the FDS examples it is used, so look it up.
 
 Dimitrios Gianninas
 Optimal Payments Inc.
 
 
 
 -Original Message-
 From: flexcoders@yahoogroups.com on behalf of bruce1976
 Sent: Fri 3/9/2007 5:47 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Flex Data Services Question, Java backend
  
 Hi,
 
 I want my Flex clients to be notified when new data is available. The
 data is read-only, so the Flex clients won't be updating it, they just
 need to display it. When the data is ready to be viewed, I have a Java
 backend that can send an HTTP post to any endpoint, but I'm having
 trouble determining which FDS component I should use.
 
 Of course, the Flex client can't receive the POST, and I don't mind
 putting a mini-HTTP server on the same tier as the FDS, but I'm not
 sure how to notify the clients.
 
 Does anyone have any suggestions?
 
 Thanks,
 
 Bruce
 
 
 -- 
 WARNING
 ---
 This electronic message and its attachments may contain
confidential, proprietary or legally privileged information, which is
solely for the use of the intended recipient.  No privilege or other
rights are waived by any unintended transmission or unauthorized
retransmission of this message.  If you are not the intended recipient
of this message, or if you have received it in error, you should
immediately stop reading this message and delete it and all
attachments from your system.  The reading, distribution, copying or
other use of this message or its attachments by unintended recipients
is unauthorized and may be unlawful.  If you have received this e-mail
in error, please notify the sender.
 
 AVIS IMPORTANT
 --
 Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés
destinés au seul usage du destinataire visé.  L'expéditeur original ne
renonce à aucun privilège ou à aucun autre droit si le présent message
a été transmis involontairement ou s'il est retransmis sans son
autorisation.  Si vous n'êtes pas le destinataire visé du présent
message ou si vous l'avez reçu par erreur, veuillez cesser
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces
jointes, de votre système.  La lecture, la distribution, la copie ou
tout autre usage du présent message ou de ses pièces jointes par des
personnes autres que le destinataire visé ne sont pas autorisés et
pourraient être illégaux.  Si vous avez reçu ce courrier électronique
par erreur, veuillez en aviser l'expéditeur.





RE: [flexcoders] Changing currentState based on a url

2007-03-10 Thread Alex Harui
Eventually, you'll probably want a more full-featured URL handling
mechanism.  A third-party has a pretty good one here:

http://joeberkovitz.com/blog/urlkit

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of flexjeremy
Sent: Friday, March 09, 2007 6:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Changing currentState based on a url

 

Hi guys,

I'm WOAH new to flex. My company is seriously starting to look at it
now. So I have the mind numbing task to work out a few things.

What I'm trying to do is change the currentState based on a URL that I
passthrough using flashvars i.e.

cfoutputflashvars,'RequestType=
#url.RequestType#historyUrl=history.htm%3Flconid=' + lc_id +
'',/cfoutput

Now that works a treat..passing the variables works fine. Where I come
stuck is how to get the currentState to show one thing when the url
comes through or another thing with a different url parameter.

i.e.

private function initApp():void
{
var RequestType:String =
Application.application.parameters.RequestType;
Alert.show(RequestType);
if (RequestType == '1')
{
Alert.show('1');
changemystate();
}
else
{
Alert.show('2');
currentState='showdifferent';
}

}

Am I doing this right...or can someone point me in the right direction
to learn about what I'm trying to do. 

I'm a coldfusion programmer...so all this object orientated stuff is
Wierd dood!.

Jeremy

 



RE: [flexcoders] Re: newbie dataGrid question .

2007-03-10 Thread Alex Harui
I can't think of anything better, but I'll guess that by the time you
hit production you'll want to define the columns yourself so the headers
for price aren't in lower case, and you guarantee a particular order for
the columns..  You'll need to think about how you'll figure that out.
Maybe the column data can be defined on the server and just shipped over
and converted.  Then you'll end up with different logic.

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of iilsley
Sent: Friday, March 09, 2007 10:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: newbie dataGrid question .

 

This is what I currently have .. is there a better way ?? 

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

mx:Script
![CDATA[
import mx.controls.Alert;
import mx.collections.ArrayCollection;
[Bindable]
public var dp:ArrayCollection = new ArrayCollection(
   [{type: 'Pen', price: '10' , label: Stock Name }
   ,{type: 'Sock' , price: '20' , label: Stock Name }
 ! ;  ]);

private function redraw():void
{
for ( var a:String in myGrid.columns )
{
if (myGrid.columns[a].dataField == type)
{
myGrid.columns[a].headerText =
dp.source[0][label];
continue;
  nb! sp; }
  nb! sp; nbs p;   if (myGrid.columns[a].dataField == label)
{
myGrid.columns[a].visible = false;
}
}  
}
]]
/mx:Script
mx:DataGrid  creationComplete=redraw() id=myGrid
dataProvider={dp}/
/mx:Application

 



RE: [flexcoders] mx:Script error ?

2007-03-10 Thread Alex Harui
Try a new project, or build one of the samples.  You may need to
re-install.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Groups Mail
Sent: Friday, March 09, 2007 5:51 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] mx:Script error ?

 

when i don't use mx:Script /mx:Script  flex2 compile my project last
design but when i use script tag give an error to me so don't compile
last design..

2007/3/9, Tracy Spratt [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] : 

What happens in a new, empty application, with just the script tags?  If
that doesn't work, re-install.  If it does, then paste in code from the
broken app till it breaks.  There is the problem. 

 

Tracy

 



From: [EMAIL PROTECTED] ups.com http://ups.com/  [mailto:flexcoders@
yahoogroups.com http://yahoogroups.com ] On Behalf Of Groups Mail
Sent: Thursday, March 08, 2007 6:03 AM
To: flexcoders@yahoogroups.com http://ups.com/ 
Subject: [flexcoders] mx:Script error ?

 

 

hi i have got a strange error from the flex developer plugin for
eclipse. Below the error code;
Could not resolve mx:Script to a component implementation. 

 

and my code is 

 

?xml version=1.0 encoding=utf-8?

mx:Application

xmlns:mx= http://www.adobe.com/2006/mxml
http://www.adobe.com/2006/mxml  

layout=

absolute 

creationComplete=startService()

 

mx:Script 

![CDATA[

import samples.flexstore.Cd http://samples.flexstore.cd/ ; 

import mx.collections.IViewCursor ; 

import mx.collections.ArrayCollection ; 

import mx.rpc.events.ResultEvent ; 

private var catalog:ArrayCollection; 

private function startService(): void 

{

cdSrv.send();

}

private function handleGETResult(event:ResultEvent): void 

{

var cds:ArrayCollection = event.result.catalog.cd
http://event.result.catalog.cd/ ; 

var temp:ArrayCollection = new ArrayCollection(); 

var cursor:IViewCursor = cds.createCursor (); 

while(!cursor.afterLast) 

{

var cd:Cd = new Cd(); 

cd.fill(cursor.current);

temp.addItem(cd);

cursor.moveNext();

}

catalog = temp;

}

]]

/mx:Script 

mx:HTTPService id= cdSrv url= data/catalog.xml
result=handleGETResult(event)/ 

mx:Panel x= 82 y=60  width= 368 height=200 layout= absolute
title= Cd Album List horizontalGap=0 id= panel1  

mx:List dataProvider= {catalog}  labelField= title x=174 y= 0
width= 50% height=100% id= list1 /mx:List 

/mx:Panel 

/mx:Application

 

 



[flexcoders] Regexp wont work cause of the b labels

2007-03-10 Thread tonyx_788
Hi all i'm looking for a regular expression for mi app

im using CDATA inside my XML so when i try to make a filter search it
wont work cause of the B or i before the text

lets say in my xml i have something like this:
name![CDATA[bAcademia./b]]/name
it dont work if i type academia but
if i put bAcademia it works

this is what im using to make the filter search

 private function filter(item:Object):Boolean
{
return item.name.match(new RegExp(^ + inputText.text,i\*));
}

Thanks



[flexcoders] Re: Need help in dynamically updating datagrid

2007-03-10 Thread devil_love_99
Tracy Spratt [EMAIL PROTECTED] wrote:

 So the selected item in the combobox contains the key/filter value for
 the php query?

Thats true Tracy.




 In the change event of the combo, invoke send() on the HTTPService,
 passing in the key(s).  In a result handler function, assign the
 returned data to the dataProvider of the DataGrid and chart..

I have tried it, without luck. When I do that, my combobox end up
turning empty. I would post my code below.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
mx:HTTPService id=quarterRequest
url=http://x.x.x.x/flex/constants.php; useProxy=false method=GET
 /mx:HTTPService
mx:HTTPService id=quarterzRequest
url=http://x.x.x.x/flex/constants-1.php; useProxy=false
method=POST
mx:request xmlns=
 selectedqtr
 {Selectedqrtr.text}
 /selectedqtr
/mx:request
 /mx:HTTPService
 mx:Script
![CDATA[
private function send_data():void {
quarterzRequest.send();
}
]]
/mx:Script
 mx:ComboBox id=quarterz prompt=Select quarter
dataProvider={quarterRequest.lastResult.auditinfo.quarters.quarter}
labelField=quarter x=878 y=19 width=116
creationComplete=quarterRequest.send()
change=send_data()/mx:ComboBox


 mx:DataGrid x=19.5 y=67 id=FPFirstdg  width=705
height=149
dataProvider={quarterzRequest.lastResult.selectedauditinfo.microsoft}
 mx:columns
 mx:DataGridColumn headerText=Quarter
dataField=currentqtr/
 mx:DataGridColumn headerText=OS dataField=os/
 mx:DataGridColumn headerText=Servers
dataField=msnrows/
 mx:DataGridColumn headerText=High dataField=msnhigh/
 mx:DataGridColumn headerText=Medium dataField=msnmed/
 mx:DataGridColumn headerText=Low dataField=msnlow/
 /mx:columns
 /mx:DataGrid
 mx:Label id=Selectedqrtr text={quarterz.selectedItem}
visible=false /mx:Label

/mx:Application


PHP code for the cosntants-1.php is as follows:

?php

$link = mysql_connect('localhost','user','password') or die ('Could not
connect: ' . mysql_error());
$connected = mysql_select_db('xyz') or die( 'Unable to select
database');
$return =selectedauditinfo;

$return .=microsoft;
$return .=currentqtr.$_POST['selectedqtr']./currentqtr;

$return .=os Microsoft /os;
$query = 'SELECT DISTINCT host FROM quarters WHERE
quarter='.$_POST['selectedqtr'].' and os=msft';
$msnresult = mysql_query($query) or die ('Query failed: ' .
mysql_error());
$msnum_rows_SRVRS = mysql_num_rows($msnresult);
$return .=msnrows.$msnum_rows_SRVRS./msnrows;

$query = 'SELECT DISTINCT host FROM results WHERE r=3 and
quarter='.$_POST['selectedqtr'].' and os=msft and falsepos=N';
   $msnresult = mysql_query($query) or die ('Query failed: ' .
mysql_error());
   $msnum_rows_sHIGH = mysql_num_rows($msnresult);
   $return .=msnhigh.$msnum_rows_sHIGH./msnhigh;

$query = 'SELECT DISTINCT host FROM results WHERE r=2 and
quarter='.$_POST['selectedqtr'].' and os=msft and falsepos=N';
   $msnresult = mysql_query($query) or die ('Query failed: ' .
mysql_error());
   $msnum_rows_sMED = mysql_num_rows($msnresult);
   $return .=msnmed.$msnum_rows_sMED./msnmed;
$query = 'SELECT DISTINCT host FROM results WHERE r=1 and
quarter='.$_POST['selectedqtr'].' and os=msft and falsepos=N';
   $msnresult = mysql_query($query) or die ('Query failed: ' .
mysql_error());
   $msnum_rows_sLOW = mysql_num_rows($msnresult);
   $return .=msnlow.$msnum_rows_sLOW./msnlow;
   $return .=/microsoft/selectedauditinfo;
   }
print($return)

?

As I am quite a novice to Flex, I am sure I must have made some kind of 
newbie mistake. Frustrating part is ,  though it looks quite simple,  I
was unable to locate my mistakes.

I appreciate you taking time out for helping me.

Thanks






Re: [flexcoders] Web Services: Nearing Wit's End

2007-03-10 Thread slangeberg

Give me your url and the calls your trying to make. I'll see if i can set up
a sample for you!

Oh yeah, service capture is indeed awesome. 30 day trial will be enough to
convince you to pay the $30. It's been worth closer to $1-2K in savings of
lost time debugging server transfers, for me! Best part it picks up Remoting
connections and is only one I know of. However, the Xray Connector is
probably a viable free alternative. You'll need to search for the AS3
XRayLog code, as I don't know where I got it.

Interface:
http://osflash.org/xray?s=xray
http://www.rockonflash.com/xray/flex/Xray.html

-Scott

On 10 Mar 2007 01:12:57 -0800, Shibli Zaman [EMAIL PROTECTED] wrote:


   I've followed every single tutorial on consuming Web Services in Flex
and not a single one works with anything other than simple demo web services
available on the net. I've followed all the different methods documented and
followed each and every step in detail. Now, I'm at the point that I am
appealing for someone to take a look at my WSDL file and tell me what I am
doing wrong. If you're interested in helping me out please let me know.
Thanks. --Shibli

 





--

: : ) Scott


[flexcoders] Flex CacheKeyUtils error on JBoss Portal

2007-03-10 Thread johan.wasserman
I am trying to deploy a Flex app on JBoss portal using the Flex tag 
library
JBoss Portal 2.6.0 Developer Release 1
JBoss AS 4.0.5 GA
Flex 2.0.1

jsp:
%@ taglib uri=FlexTagLib prefix=mm %
mm:mxml source=/login.mxml/

Portlet code:
package com.jboss.portlet.login;

import javax.portlet.GenericPortlet;
import javax.portlet.PortletException;
import javax.portlet.PortletRequestDispatcher;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
import javax.portlet.UnavailableException;
import java.io.IOException;

public class LoginPortlet extends GenericPortlet {
public void doView (RenderRequest request, RenderResponse response)
throws PortletException, IOException, UnavailableException {
response.setContentType(text/html);
PortletRequestDispatcher rd = getPortletContext().getRequestDispatcher
(/login/login.jsp);
rd.include(request,response);
}
}

I get the following error:
java.lang.NullPointerException
at flex.server.j2ee.cache.CacheKeyUtils.generateSwfCacheKey
(CacheKeyUtils.java:54)
at flex.server.j2ee.RequestContext.setupMxmlRequest
(RequestContext.java:102)
at flex.server.j2ee.RequestContext.init(RequestContext.java:62)
at flex2.server.j2ee.CompileAgent.setupMxmlContextKeys
(CompileAgent.java:16)
at flex2.server.j2ee.CompileAgentServlet.setupMxmlContextKeys
(CompileAgentServlet.java:30)
at flex2.server.j2ee.MxmlServlet.doGet(MxmlServlet.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)


I have tried the simplest code possible, but as soon as I add the 
mm:mxml/ tag, the error occurs:
%@ taglib uri=FlexTagLib prefix=mm %
mm:mxml/




[flexcoders] Re: Need help in dynamically updating datagrid

2007-03-10 Thread devil_love_99
Hey thanks for the replies. I found out that the problem is with the
type of request being  made. Somehow same code is working with GET
requests but not POST. Is it a known bug??

Cheers



[flexcoders] n00b question on dynamic generation of UI components

2007-03-10 Thread systemsforge
Just wondering, is it possible to completely programmatically generate
all interface elements at runtime in Flex (i.e. do you HAVE to have
any compile time MXML or can you dynamically generate your entire UI
on the fly using AS if you so wish).

Simple example, want to generate forms for CRUD. I could code gen a
set of MXML files or I could (hopefully) write dynamic AS that'd take
a field list and create the appropriate components at runtime.
Ignoring performance issues for now, are there any limitations/gotchas
in completely dynamically generated UIs based on AS?

Also, can you dynamically add/edit/delete view states just using AS?

Any hints/tips much appreciated.

Best Wishes,
Peter



[flexcoders] Line or Edge Renderer

2007-03-10 Thread Keith Sutton
Has anyone built or seen an implementation of a line (renderer) 
which responds to click events, dragging, tooltips etc?

We are building graph (nodes and edges not pie charts) display 
application and need a way of accessing the edges/lines and 
underlying data. I have checked SpringGraph (http://mark-
shepherd.com/blog/springgraph-flex-component/) and it has some 
elements of edge rendering but doesn't implement them completely.

Any advice on how to implement - thinking of extending UIComponent 
in some way? Overriding updateDisplay and adding some kind of custom 
event handlers? 

Also how to end lines as arrows (probably a small matter once the 
class is working).

Any help appreciated.

Regards,
Keith



Re: [flexcoders] Passing complex objects (e. g. collection of name-value pairs) to server via either URLLoader or HTTPService using POST method

2007-03-10 Thread Sergey Kovalyov

Can AMFPHP convert Flex ArrayCollection of Objects to PHP Array of PHP
Objects?..

On 09 Mar 2007 16:04:39 -0800, Merrill, Jason 
[EMAIL PROTECTED] wrote:


   SOAP webservices can do that.  You don't have to convert to XML first,
you can send your complex Actionscript object directly to the WDSL method
and it transfers via SOAP (XML) protocol.  You can receive in the same way.


Jason Merrill
Bank of America
Global Technology  Operations
Learning  Leadership Development
eTools  Multimedia Team
.





[flexcoders] Re: Selecting child components in TabNavigator

2007-03-10 Thread bhaq1972
do you have any code to show. 

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

 hi all,
 
 am a newbie to flex, I tried the nested tab navigator with custom 
 canvas components in it. But i faced to show the componenets upon a 
 button click event happened in another componenet. the 
 tabnavigator.selectChildIndex is not working with this since its a 
 user defined componenet. Please help me out...
 
 Thanks in advance





RE: [flexcoders] n00b question on dynamic generation of UI components

2007-03-10 Thread Gordon Smith
Your application file itself should be MXML. In other words, you should
have at least an mx:Application tag, or you'll run into various
problems. But every other component instance can easily be
programmatically created using 'new'. I'm not very knowledgeable about
states, but I'm pretty sure that you can programmatically generate them
also.
 
- Gordon



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of systemsforge
Sent: Saturday, March 10, 2007 11:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] n00b question on dynamic generation of UI
components



Just wondering, is it possible to completely programmatically generate
all interface elements at runtime in Flex (i.e. do you HAVE to have
any compile time MXML or can you dynamically generate your entire UI
on the fly using AS if you so wish).

Simple example, want to generate forms for CRUD. I could code gen a
set of MXML files or I could (hopefully) write dynamic AS that'd take
a field list and create the appropriate components at runtime.
Ignoring performance issues for now, are there any limitations/gotchas
in completely dynamically generated UIs based on AS?

Also, can you dynamically add/edit/delete view states just using AS?

Any hints/tips much appreciated.

Best Wishes,
Peter



 


Re: [flexcoders] n00b question on dynamic generation of UI components

2007-03-10 Thread Benjamin Schwehn
systemsforge wrote:
 Just wondering, is it possible to completely programmatically generate
 all interface elements at runtime in Flex (i.e. do you HAVE to have
 any compile time MXML or can you dynamically generate your entire UI
 on the fly using AS if you so wish).

You sure can, matter of fact -- as I understand it -- mxml files are all 
converted to AS before compilation, so you don't compile mxml ever 
anyways. So logically, anything you can do in mxml, you can do in AS.

You can have a look at the generated AS if you use the compiler option 
-keep-generated-actionscript


hth
Ben


[flexcoders] Displaying single bar/column (Type: 100%)

2007-03-10 Thread ichgehe
You certainly know the charting components BarSeries or
ColumnSeries They are great, if you need exactly this kind of
view. But I am currently in a bit of a problem, because I need a
column-/bar component which only is able to show ONE bar or column for
a series of data.
You probably say: 'Easy thing!' - just use bar-/columnseries with type
set to 100% and you will get only one bar with all data... but in
fact, you also get the cartesian chart around it, which annoys me. I
just want to have one simple Bar/Column which is able to show me
different values (Type 100%) without anything. I tried already to use
the IBar Interface, but no luck. 
Someone told me I have to have a look in the samples.zip of FDS (1.0)?
for an example 'Sector' but have not found it

Any help or hint is really appreciated...






[flexcoders] Undo/Redo system design

2007-03-10 Thread boo1975boo
Hello

I develop some complex interface with XML object based data model. The 
model is similar to Cairngorm's ModelLocator. It allows me to implement 
undo/redo system, holding in separate XML object changes in main data 
model reflecting users gestures. 
However, as far as I know, common undo/redo systems register not data 
model changes, but user commands. This approach is less useful in my 
case, since some user commands request a lot of information from the 
server, so repeating them would be highly undesirable. I will really 
appreciate professional opinion regarding the problem and links to 
related topics.

Beforehand grateful

Leon 




[flexcoders] Cairngorm app with HTTPService

2007-03-10 Thread achegedus
I'm having a hard time learning Cairngorm, but I'm determined to
figure it out!!  My current problem is with my HTTPService.  In my
Delegate, I'm calling the service like this:

public class ContactListDelegate
{
  private var responder : IResponder;
  private var service : Object;
 
  public function ContactListDelegate(responder:IResponder)
  {
this.service =
ServiceLocator.getInstance().getHTTPService(ListContactsHS) as
HTTPService;
this.responder = responder
  }

  public function list():void
  {
var token : AsyncToken = service.list();
token.resultHandler = responder.result;
token.faultHandler = responder.fault;
  }

  public function listResult():void 
  {
responder.result(responder);
  }
}

and then in my services.mxml i have this:

mx:HTTPService id=ListContactsHS
url=http://localhost:3004/webservice/list; 
useProxy=false 
method=GET 
makeObjectsBindable=false 
result=event.token.resultHandler(event) 
fault=event.token.resultHandler(event) /

(the service is written in Rails and on the local machine)

When I call the event to get the data from service though, I get this
error:

Error: C0008E: HTTPService not found for ListContactsHS
at com.adobe.cairngorm.business::HTTPServices/getService()
at com.adobe.cairngorm.business::ServiceLocator/getHTTPService()
at com.adamhegedus.contactmanager.business::ContactListDelegate$iinit()
at
com.adamhegedus.contactmanager.command::GetContactListCommand/execute()
at
com.adobe.cairngorm.control::FrontController/com.adobe.cairngorm.control:FrontController::executeCommand()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.adobe.cairngorm.control::CairngormEventDispatcher/dispatchEvent()
at 
com.adamhegedus.contactmanager.view.screens::ContactManager/initFunc()
at
com.adamhegedus.contactmanager.view.screens::ContactManager/___VBox1_creationComplete()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at mx.core::UIComponent/set initialized()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/::callLaterDispatcher2()
at mx.core::UIComponent/::callLaterDispatcher()

I looked through a bunch of samples, but I can't get passed this
one... Anyone have any suggestions?

Thanks,
Adam




[flexcoders] Re: Regexp wont work cause of the b labels

2007-03-10 Thread Paul DeCoursey
--- In flexcoders@yahoogroups.com, tonyx_788 [EMAIL PROTECTED] wrote:

 Hi all i'm looking for a regular expression for mi app
 
 im using CDATA inside my XML so when i try to make a filter search it
 wont work cause of the B or i before the text
 
 lets say in my xml i have something like this:
 name![CDATA[bAcademia./b]]/name
 it dont work if i type academia but
 if i put bAcademia it works
 
 this is what im using to make the filter search
 
  private function filter(item:Object):Boolean
   {
   return item.name.match(new RegExp(^ + inputText.text,i\*));
   }
 

^ searches from the beginning of the string, so of course it will
not find it since b is the beginning of your string.

 Thanks





[flexcoders] popup menu icons duplicated

2007-03-10 Thread Paul Hastings
i've got a popup button that loads a menu w/some icons  labels via
this function upon creation complete for that button:

private function initMeasurementMenu():void {
var measurementMenu:Menu = new Menu();
var dp:Object = [{label: measure angle, icon:measureAngleIcon},
{label: measure distance, icon:measureDistanceIcon}, {label:
measure area, icon:calcAreaIcon}, {label: erase measurement,
icon:eraseRedlineIcon}];
measurementMenu.dataProvider = dp;
measurementMenu.selectedIndex = 0;
measurementMenu.addEventListener(itemClick, 
measurementItemClickHandler);
measurementPopUp.popUp = measurementMenu;
}

which works fine. my problem is that once a user clicks an item from
the menu  the menu is re-opened to use another item from the menu,
the previously selected icons are doubled  offset (screen capture
here: http://www.sustainablegis.com/projects/flex/popupmenu.htm).

any ideas?

thanks.


[flexcoders] Chrome behind content?

2007-03-10 Thread Jesse Warden

I'm extending Canvas.  His base class, Container, decrees on line 4608 that
all children are behind chrome.  I want the opposite.  I want my chrome
BEHIND the content; I want the content IN FRONT of my chrome.

However, since Container does all kinds of crazy over-writting of
DisplayObject methods and tucks them away in mx_internal and various other
private  final prefix's, I have no clue how to easily make my chrome inside
of rawChildren go backwards.  Obviously, setChildIndex doesn't work at this
point because the base class owns those methods as proxies now.

The hack, for now, is to NOT have my chrome draw a background.  If it
doesn't, I can click on children just fine.  That, however, sucks because I
want a background.  Figured 2nd hack is to just set the backgroundColor
property to my chrome's background, and redraw my chrome as a mask for the
background.  That is worse.

Suggestions?


Re: [flexcoders] popup menu icons duplicated

2007-03-10 Thread Doug McCune

Yeah, I ran into this one. I'm going to bet that you're setting the
dataprovider of the popupmenubutton with Object objects (as opposed to XML
or something else). There's a bug in the component. Try setting the type
property of the Object to an empty string.

So your code might look like this:

var obj:Object = new Object();
obj.type = ;
obj.label = measure angle;
obj.icon = angleIcon;

That part that says obj.type =  is the important part. Yeah, you shouldn't
have to do this, it's a problem with the MenuItemRenderer class. If you want
to dig in, take a look at the commitProperties of
mx.controls.menuClasses.MenuItemRenderer. I suppose this should get reported
as a bug, but it's saturday night for christ sake, time to go drinking.

Doug



On 3/10/07, Paul Hastings [EMAIL PROTECTED] wrote:


  i've got a popup button that loads a menu w/some icons  labels via
this function upon creation complete for that button:

private function initMeasurementMenu():void {
var measurementMenu:Menu = new Menu();
var dp:Object = [{label: measure angle, icon:measureAngleIcon},
{label: measure distance, icon:measureDistanceIcon}, {label:
measure area, icon:calcAreaIcon}, {label: erase measurement,
icon:eraseRedlineIcon}];
measurementMenu.dataProvider = dp;
measurementMenu.selectedIndex = 0;
measurementMenu.addEventListener(itemClick,
measurementItemClickHandler);
measurementPopUp.popUp = measurementMenu;
}

which works fine. my problem is that once a user clicks an item from
the menu  the menu is re-opened to use another item from the menu,
the previously selected icons are doubled  offset (screen capture
here: http://www.sustainablegis.com/projects/flex/popupmenu.htm).

any ideas?

thanks.