RE: [flexcoders] AIR app uninstall issue - database stays in applicationStorageDirectory forever?

2008-12-08 Thread Gregor Kiddie
Yeah, solutions to this tend to end up being messy.

 

Question is, why do your users consider keeping their settings from one
install to another a bug?

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

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

Registered Number: 1788577

Registered in the UK

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

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



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alen Balja
Sent: 08 December 2008 10:27
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] AIR app uninstall issue - database stays in
applicationStorageDirectory forever?

 

Thanks guys, but this still doesn't solve my problem. 

Gregor, I understand that Mac users would delete the folder and nothing
could be run then, but at least I need a workaround to run some code at
the install time, or first time the application runs after install, is
there a way to do at least that? Then I could check for any old files
and delete them, reset prefs, etc. 

As user Dan commented in the Oli's blog, I also got the same idea of
checking the file dates and times in applicationDirectory, if that time
is less than 1 minute from "now", then it is a fresh install and I need
to clean up what is in the applicationStorageDirectory. If that date is
older, that means I'm just running the same already installed
application again, and I leave everything as is. But as Dan posted, this
seems like a very very ugly hack.


a.





On Mon, Dec 8, 2008 at 1:33 PM, Gregor Kiddie <[EMAIL PROTECTED]
 > wrote:

Take a look at Oli Goldman's article on why the AIR app installer
doesn't clean up after itself.

 

http://blogs.adobe.com/simplicity/2008/07/why_uninstallers_dont_clean_up
_user_files.html
 

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

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

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk

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



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Alen Balja
Sent: 08 December 2008 03:34
To: flexcoders@yahoogroups.com  
Subject: Re: [flexcoders] AIR app uninstall issue - database stays in
applicationStorageDirectory forever?

 

I would really appreciate if someone maybe close to Adobe would shed
some light on the issue. Can it be done, are there some workarounds.
It's really annoying, we're few days from release and client just found
this "bug". The bug is that ApplicationStorageDirectory doesn't get
deleted on uninstall. Hence, all the user's settings remain after he
uninstalls the app and installs it again. (Plus it's very ugly to have
all the files there forever)


Not sure if I'm doing something wrong, on the application launch I'm
copying SQLite database from applicationDirectory to
applicationStorageDirectory, in order to be able to read and write. 

Of course, I check if the database already exists there or not. 

var dbFile:File = File.applicationDirectory.

resolvePath("database.db");

var DBDestination:File =
File.applicationStorageDirectory.resolvePath("db/database.db");


if (!DBDestination.exists)
{
dbFile.copyTo(DBDestination); 
}

Everything is fine here, up to the point when application is
uninstalled. Database stays there even after the uninstall and hence
breaks some critical functionality. 

It might be that I'm not following some best practices, or there is a
way to manually clean up the stuff, I don't know. Any ideas?

Alen

 

 

 

 

 

On Fri, Dec 5, 2008 at 7:24 PM, b_alen <[EMAIL PROTECTED]
 > wrote:

Not sure if I'm doing something wrong, on the application launch I'm
copying SQLite database from applicationDirectory to
applicationStorageDirectory, in order to be able to read and write. 

Of course, I check if the database already exists there or not. 

Re: [flexcoders] Re: AMF3 ping???

2008-12-08 Thread andrea bianchi
Thank you, this is a really helpful information.

Regards,

Andrea


On Fri, Dec 5, 2008 at 10:43 PM, Seth Hodgson <[EMAIL PROTECTED]> wrote:

>   The messaging/transport layer in Flex 2 and 3 is based on channels. A
> channel always handshakes with a server endpoint before passing
> application-generated messages/requests over its connection.
>
> So you'll see a ping command issued each time a channel initially connects.
> If a request fails due to a network problem such that the channel moves to a
> disconnected state, the next message/request the app sends will trigger it
> to reconnect, and it'll do so by sending another ping command.
>
> But this only happens when a channel is attempting to move from a
> disconnected state to a connected state.
>
> The one exception to this rule is when you're using an HTTPService or
> WebService component that's hitting a remote endpoint directly rather than
> going through the proxy service in BlazeDS or LCDS. This scenario uses a
> "direct" channel that always considers itself connected.
>
> Best,
> Seth
>
> From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On Behalf Of
> valdhor
> Sent: Friday, December 05, 2008 6:31 AM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] Re: AMF3 ping???
>
>
> I don't know about BlazeDS but with WebORB you get a ping (It's
> actually called a "Command Message") just before the first server
> access. Any server requests after that are only sent once (ie. no
> "Command Message").
>
> Now, it seems to me that this will work this way for a while and the
> this "Command Message" is sent again. I don't know if this happens
> automatically after a certain amount of idle time or whatever.
>
> Has anyone else seen this? Has anyone read the AMF3 spec to see if
> this is standard behaviour?
>
> --- In flexcoders@yahoogroups.com , "andrea
> bianchi" <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > debugging my application I discovered that every request produces
> two POSTs.
> > I'm connecting a RemoteObject to an AMFEndpoint of BlazeDS. Reading the
> > content of the POST data (using HTTPFox) I guessed one is a sort of
> ping,
> > the other is the "real" request. The application works fine but I
> actually
> > don't understand the need of this "ping" (and the documentation doesn't
> > speak about it).
> > Actually this behaviour is confirmed from the Flashlog.txt:
> >
> > 08:25:44.692 [INFO] mx.messaging.Producer
> > '5DE3A67A-5244-ACD0-5814-0640997D7449'
> > producer sending message '6EADA155-B3EE-4DC4-6AB5-06409DF3CAEE'
> > 08:25:44.718 [DEBUG] mx.messaging.Channel 'amf' pinging endpoint.
> > 08:25:44.750 [INFO] mx.messaging.Channel 'amf' channel is connected.
> > 08:25:44.755 [DEBUG] mx.messaging.Channel 'amf' channel sending message:
> > (mx.messaging.messages::RemotingMessage)#0
> > ...
> >
> > Can someone please clarify this? I tried playing with BlazeDS
> configuration
> > files but I didn't find anything. Is there any way to disable the
> "ping"?
> >
> > Thank you,
> >
> > Andrea
> >
>
>  
>


Re: [flexcoders] Getting Null exception when adding an Alert to a Canvas

2008-12-08 Thread Josh McDonald
It'll never work properly, AlertForm.removeAlert calls
PopupManager.removePopup()

On Tue, Dec 9, 2008 at 4:28 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>  Alert doesn't expect to be a child of a Canvas.  It has to be popped up.
> Post a test case of what didn't work.
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *devenhariyani
> *Sent:* Monday, December 08, 2008 5:09 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Getting Null exception when adding an Alert to a
> Canvas
>
>
>
> I have an application that has a small 300x300 canvas, and I want to
> show an Alert that is centered inside of that canvas. I tried passing
> a parent parameter to Alert.show() method but that did not work, so I
> was able to get the below code to center the alert inside the Canvas,
> but the problem is that when a user clicks OK on the Alert, I get a
> null pointer exception sometimes. Any ideas why i get the exception
> somtimes, and how to get rid of it??
>
> //app popup alert to parent container
> var alertMsg:Alert = new Alert();
> alertMsg.text = arrErrorMsgs.join("\n\n");
> alertMsg.title = "Invalid Feedback Form";
> alertMsg.owner = Application.application.cnvFeedback;
> alertMsg.explicitMaxHeight = 300;
> alertMsg.explicitMaxWidth = 300;
> Application.application.cnvFeedback.addChild(alertMsg);
>
> 
> EXCEPTION
> -
> TypeError: Error #1009: Cannot access a property or method of a null
> object reference.
> at
>
> mx.managers::PopUpManagerImpl/findPopupInfoByOwner()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:657]
> at
>
> mx.managers::PopUpManagerImpl/removePopUp()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:366]
> at
>
> mx.managers::PopUpManager$/removePopUp()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\PopUpManager.as:196]
> at
>
> mx.controls.alertClasses::AlertForm/removeAlert()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:502]
> at
>
> mx.controls.alertClasses::AlertForm/clickHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:541]
>
>  
>



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

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Defining, but not adding to parent in MXML

2008-12-08 Thread Josh McDonald
I think he's intending to use PopupManager, but wants to define it in the
same file as its container?

On Tue, Dec 9, 2008 at 4:30 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>  Why not use tooltip or popup manager to float that thing?  Then it won't
> be clipped and what not
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Josh McDonald
> *Sent:* Monday, December 08, 2008 5:04 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Defining, but not adding to parent in MXML
>
>
>
> That's not exactly what you're after, in this case the object will be added
> to the list of children, it's just not positioned on
> parent.updateDisplayList() or counted during parent.measure().
>
> The only way I can think of off the top of my head to do what you're after
> is wrap it in . Here's a quick example:
>
> http://pastie.textmate.org/private/hjd33kkztkuojpzltd2ylw
>
> You can use  to do thins kind of like this, but
>  defines classes,  not interfaces, and IIRC, mxmlc is kinda
> picky as to where it'll let you do it.
>
> -Josh
>
> On Tue, Dec 9, 2008 at 10:53 AM, Michael Prescott <
> [EMAIL PROTECTED]> wrote:
>
> Sweet!  Nice that there's an easy answer.
>
>
>
> On Mon, Dec 8, 2008 at 4:47 PM, Tracy Spratt <[EMAIL PROTECTED]>
> wrote:
>
> includeInLayout="false" (also visible="false", of course)
>
>
>
> Tracy
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Michael Prescott
> *Sent:* Monday, December 08, 2008 4:28 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Defining, but not adding to parent in MXML
>
>
>
> Is it possible to define a component but somehow cause it to be omitted
> from the enclosing component's list of children?  Essentially:
>
> 
>   
>   
> 
>
> An obvious question is, "Why are you defining the component there if it's
> not supposed to be a child?"
>
> I've got a datagrid inline item renderer that always shows a (summary)
> piece of information, but I want a pop-up to appear on rollover of the
> summary.  The problem I'm having is that the detail is (of course) added to
> the container that holds the summary, which causes the datagrid cell to blow
> open too big.
>
> 
>   
> 
>   
>   
>
> *  
>   *
> 
>   
> 
>
> Defining the detail outside the itemrenderer entirely seems one way to go,
> except that this would mean there's only one pop up for all of the rows of
> the data grid.
>
> Can you do this sort of thing with a nested component?
>
> 
>   
> 
>   
>   
> 
> *  
> 
>   *
> 
>   
> 
>   
> 
>
> Any tips would be appreciated!
>
> Michael
>
>
>
>
>
>
> --
> "Therefore, send not to know For whom the bell tolls. It tolls for thee."
>
> Like the cut of my jib? Check out my Flex blog!
>
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
> :: http://flex.joshmcdonald.info/
> :: http://twitter.com/sophistifunk
>
>  
>



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

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


RE: [flexcoders] Re: Item Renderer focus on subcomponent in List

2008-12-08 Thread Alex Harui
The list "should" work the same way, but I haven't tried it.  If you have a 
simple test case post it.  Also post the full text of the error you got.  Make 
sure you're using a debug build so you get line numbers.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
boilerman1984
Sent: Monday, December 08, 2008 12:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Item Renderer focus on subcomponent in List


I read and followed the example on your blog about tabbing between two
text inputs in the datagrid. This is similar to that, but two text
inputs in a render of a list. I don't believe the List functions the
same way and I am having trouble transfering what I learned on that to
my situation.



RE: [flexcoders] Defining, but not adding to parent in MXML

2008-12-08 Thread Alex Harui
Why not use tooltip or popup manager to float that thing?  Then it won't be 
clipped and what not

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh 
McDonald
Sent: Monday, December 08, 2008 5:04 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Defining, but not adding to parent in MXML


That's not exactly what you're after, in this case the object will be added to 
the list of children, it's just not positioned on parent.updateDisplayList() or 
counted during parent.measure().

The only way I can think of off the top of my head to do what you're after is 
wrap it in . Here's a quick example:

http://pastie.textmate.org/private/hjd33kkztkuojpzltd2ylw

You can use  to do thins kind of like this, but  
defines classes,  not interfaces, and IIRC, mxmlc is kinda picky as to where 
it'll let you do it.

-Josh
On Tue, Dec 9, 2008 at 10:53 AM, Michael Prescott <[EMAIL 
PROTECTED]> wrote:
Sweet!  Nice that there's an easy answer.

On Mon, Dec 8, 2008 at 4:47 PM, Tracy Spratt <[EMAIL PROTECTED]> wrote:

includeInLayout="false" (also visible="false", of course)



Tracy





From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On 
Behalf Of Michael Prescott
Sent: Monday, December 08, 2008 4:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Defining, but not adding to parent in MXML



Is it possible to define a component but somehow cause it to be omitted from 
the enclosing component's list of children?  Essentially:


  
  


An obvious question is, "Why are you defining the component there if it's not 
supposed to be a child?"

I've got a datagrid inline item renderer that always shows a (summary) piece of 
information, but I want a pop-up to appear on rollover of the summary.  The 
problem I'm having is that the detail is (of course) added to the container 
that holds the summary, which causes the datagrid cell to blow open too big.


  

  
  

  
  

  


Defining the detail outside the itemrenderer entirely seems one way to go, 
except that this would mean there's only one pop up for all of the rows of the 
data grid.

Can you do this sort of thing with a nested component?


  

  
  

  

  

  

  


Any tips would be appreciated!

Michael





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

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk



RE: [flexcoders] Getting Null exception when adding an Alert to a Canvas

2008-12-08 Thread Alex Harui
Alert doesn't expect to be a child of a Canvas.  It has to be popped up.  Post 
a test case of what didn't work.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
devenhariyani
Sent: Monday, December 08, 2008 5:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Getting Null exception when adding an Alert to a Canvas


I have an application that has a small 300x300 canvas, and I want to
show an Alert that is centered inside of that canvas. I tried passing
a parent parameter to Alert.show() method but that did not work, so I
was able to get the below code to center the alert inside the Canvas,
but the problem is that when a user clicks OK on the Alert, I get a
null pointer exception sometimes. Any ideas why i get the exception
somtimes, and how to get rid of it??

//app popup alert to parent container
var alertMsg:Alert = new Alert();
alertMsg.text = arrErrorMsgs.join("\n\n");
alertMsg.title = "Invalid Feedback Form";
alertMsg.owner = Application.application.cnvFeedback;
alertMsg.explicitMaxHeight = 300;
alertMsg.explicitMaxWidth = 300;
Application.application.cnvFeedback.addChild(alertMsg);


EXCEPTION
-
TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at
mx.managers::PopUpManagerImpl/findPopupInfoByOwner()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:657]
at
mx.managers::PopUpManagerImpl/removePopUp()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:366]
at
mx.managers::PopUpManager$/removePopUp()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\PopUpManager.as:196]
at
mx.controls.alertClasses::AlertForm/removeAlert()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:502]
at
mx.controls.alertClasses::AlertForm/clickHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:541]



RE: [flexcoders] Closing an itemEditor

2008-12-08 Thread Alex Harui
In theory, if your editor implements IFocusManagerComponent it should work 
better.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Guy 
Morton
Sent: Monday, December 08, 2008 6:59 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Closing an itemEditor


Since I've already almost answered my own question, all I had to do to get what 
I was after was add "this.setFocus():" to my init code for the editor 
components.

On 09/12/2008, at 1:20 PM, Guy Morton wrote:



More on this, I think the actual problem is one of focus. If I don't *click* on 
my editor but just hit tab to try and move past it, it doesn't work. So, I 
guess what I need to do is force the focus into my editors whe! n they load.

On 09/12/2008, at 12:55 PM, Guy Morton wrote:



Hi all

I have some custom components I'm using as itemEditors in a DataGrid.
I want those editors to close if the user hits the tab key while the
editor is up and move the focus to the next column in the grid, as it
does when yo! u are using the default textfield editor.

Currently my ! editors don't do this. How can I tell Flex I want to
close this editor and move focus to the next cell?

Guy






RE: [flexcoders] Flex Messaging - Typing Objects.

2008-12-08 Thread Seth Hodgson
Yes, you can build and push AsyncMessages that contain typed objects as the 
message bodies.

If you're just pushing messages from client to client through the server (i.e. 
no JMS or some other custom adapter into a backend messaging system), you can 
just tag your ActionScript class with [RemoteClass] (no alias="..." attribute), 
and it'll show up at the receiving client as an instance of the desired type. 
In this case you don't even need a corresponding server-side Java class.

Best,
Seth

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rodrigo 
Pereira Fraga
Sent: Monday, December 08, 2008 5:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Messaging - Typing Objects.

Hi!

I'm using the messaging services of BlazeDS.
So, anybody here knows if I can type an object using [RemoteClass]?

My messages are sent from java to flex.

Thanks.




[flexcoders] Re: Bug: flash.display.Graphics being removed.

2008-12-08 Thread sunild999999
Usually, when code completion stops working in Flex Builder, it's because the 
I'm editing 
has an error/omission in it...

Sunil


--- In flexcoders@yahoogroups.com, li wenzhi <[EMAIL PROTECTED]> wrote:
>
> in my flex project using flexsdk3.1, while coding in flexbuilder, the 
> uicomponent 
cannot auto hint the graphics attribute after "."
> graphics missing in flexsdk3.1?
> 
>  --
> lwz7512
> Ultrapower Flex Team Leader
> OpenRIA -- A Window You Exploring RIA World
> http://www.rimeeting.cn
> 
> 
> 
> 
> 
> From: flexaustin <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Saturday, December 6, 2008 5:56:11 AM
> Subject: [flexcoders] Bug: flash.display.Graphics being removed.
> 
> 
> Has anyone had this issue?  I do the following (using Flex Builder 3
> w/ sdk 3.1 and Flash Player 10).
> 
> // BEGIN CODE  - - - - --
> import flash.display. Graphics;
> 
> public function get drawGraphics( ):Graphics {
> if(_drawing) {
> return _drawing.graphics;
> } else {
> return null;
> }
> }
> // END CODE  - - - - 
> 
> Every 3rd or 4th time I save my file, Flex Builder removes my import
> statement then I get t"1046 Type not found..."
>





[flexcoders] Re: problem with a simple XML Loader :(

2008-12-08 Thread nathanleewei
could u give the detail of modification?
I am facing the same problem. thx



Re: [flexcoders] Re: Charts Datatip hide delay

2008-12-08 Thread Brendan Meutzner
An example based on DataGrid control... could be modified for use with
Series item renderers on a chart easily enough based on mouse events as I
have for the Datagrid here already:
http://www.meutzner.com/blog/attachments/menu_tooltip/


HTH,

Brendan



On Mon, Dec 8, 2008 at 7:21 PM, pratikshah83 <[EMAIL PROTECTED]> wrote:

>   Help would really be appreciated.
>
> --- In flexcoders@yahoogroups.com ,
> "pratikshah83" <[EMAIL PROTECTED]>
> wrote:
>
> >
> > Hi Guys,
> >
> > I would like to know how to delay the hiding of datatip for charts.
> >
> > I am planning to have a URL in the datatip. But when I move the mouse
> > it destroys the datatip. I would like to delay it so that the user can
> > move over the tooltip and click the URL, I can destroy it on mouse out
> > event.
> >
> > Replies in this regards will be highly appreciated.
> >
> > Thanks
> > Pratik
> >
>
>  
>



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


Re: [flexcoders] mx:httpservice and/or mx:request strips namespace information from posted messag

2008-12-08 Thread anonauser
Thanks Tracy. I'll try that, but the issue has more to do with the request than 
the response.




From: Tracy Spratt <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Monday, December 8, 2008 9:47:51 AM
Subject: RE: [flexcoders] mx:httpservice and/or mx:request strips namespace 
information from posted messag


First, change your resultFormat to use “e4x”. 
“xml” is the legacy object.
 
Tracy
 


 
From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of anonauser
Sent: Friday, December 05, 2008
5:49 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders]
mx:httpservice and/or mx:request strips namespace information from posted
messag
 
Hi,

Can someone tell me why, when I use:

http://server: 8080/webservice/ url"
useProxy="false" >


http://schemas. xmlsoap.org/ soap/envelope/" 
xmlns:SOAP-ENC= "http://schemas. xmlsoap.org/ soap/encoding/" 
xmlns:xsi="http://www.w3. org/2001/ XMLSchema- instance" 
xmlns:xsd="http://www.w3. org/2001/ XMLSchema" 
xmlns:ns1="http://rts.splwg. com/webservices/" 
xmlns:ns2="http://rts.splwg. com/webservices/ packets" 
xmlns:ns3="http://rts.splwg. com/webservices/ fields">
 








And when I sniff the message between the .swf and the webservice, the
XML posted looks like:







i.e.) it strips my namespace information. This causes a version error
at the AXIS webservice.


http://schemas. xmlsoap.org/ soap/envelope/"
xmlns:xsd="http://www.w3. org/2001/ XMLSchema"
xmlns:xsi="http://www.w3. org/2001/ XMLSchema- instance">

http://schemas. xmlsoap.org/ soap/actor/ next"
soapenv:mustUnderst and="0">





soapenv: VersionMismatch< /faultcode>
 Version Mismatch

http://xml.apache. org/axis/">atldev15





I know this may be an un-conventional way to call a webservice.. .. Any
ideas or suggestions are appreciated. 


  

Re: [flexcoders] Closing an itemEditor

2008-12-08 Thread Guy Morton
Since I've already almost answered my own question, all I had to do to  
get what I was after was add "this.setFocus():" to my init code for  
the editor components.


On 09/12/2008, at 1:20 PM, Guy Morton wrote:

More on this, I think the actual problem is one of focus. If I don't  
*click* on my editor but just hit tab to try and move past it, it  
doesn't work. So, I guess what I need to do is force the focus into  
my editors when they load.



On 09/12/2008, at 12:55 PM, Guy Morton wrote:


Hi all

I have some custom components I'm using as itemEditors in a DataGrid.
I want those editors to close if the user hits the tab key while the
editor is up and move the focus to the next column in the grid, as it
does when you are using the default textfield editor.

Currently my editors don't do this. How can I tell Flex I want to
close this editor and move focus to the next cell?

Guy









[flexcoders] datagrid filter

2008-12-08 Thread coder3

Is there a sample to do multiple filtering? 

for example, i have a datagrid , i want to filter the year, 2006, 2007,
2008, 2009.

if i select 2006, 2008, the datagrid shows the list for 2006 and 2008,
i unselect 2006 and select 2009, the datagrid shows 2008 and 2009,

thanks!



-- 
View this message in context: 
http://www.nabble.com/datagrid-filter-tp20907563p20907563.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Closing an itemEditor

2008-12-08 Thread Guy Morton
More on this, I think the actual problem is one of focus. If I don't  
*click* on my editor but just hit tab to try and move past it, it  
doesn't work. So, I guess what I need to do is force the focus into my  
editors when they load.


On 09/12/2008, at 12:55 PM, Guy Morton wrote:


Hi all

I have some custom components I'm using as itemEditors in a DataGrid.
I want those editors to close if the user hits the tab key while the
editor is up and move the focus to the next column in the grid, as it
does when you are using the default textfield editor.

Currently my editors don't do this. How can I tell Flex I want to
close this editor and move focus to the next cell?

Guy






[flexcoders] Closing an itemEditor

2008-12-08 Thread Guy Morton
Hi all

I have some custom components I'm using as itemEditors in a DataGrid.  
I want those editors to close if the user hits the tab key while the  
editor is up and move the focus to the next column in the grid, as it  
does when you are using the default textfield editor.

Currently my editors don't do this. How can I tell Flex I want to  
close this editor and move focus to the next cell?

Guy


[flexcoders] Re: Flash Player 10: FileReference.save Security User event

2008-12-08 Thread Brian Raymes
I went around this by showing a progress animation while the PDF was 
being generated. When the return result fires, I replace the progress 
animation with a "Download Now" button.

Lame, but more clean then an "Are You sure?" alert.

--- In flexcoders@yahoogroups.com, "Battershall, Jeff" 
<[EMAIL PROTECTED]> wrote:
>
> Jason,
> 
> I'm with you on this - I just posted on this minutes before you did.  
In
> my case, I'm generating a PDF on the server side and listening for 
the
> return event of that process and then initiating
> FileReference.download(). Requiring that the save() or download() 
call
> occur at the top level of the event handler is, in my opinion, just 
too
> restrictive.
> 
> Jeff
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
On
> Behalf Of Jason Ervin
> Sent: Wednesday, November 12, 2008 11:32 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Flash Player 10: FileReference.save Security 
User
> event
> 
> 
> Does anyone know if there is a way around the security feature of
> FileReference that requires a user event in order to execute
> FileReference.save?
> 
> I have method that is called via a buttons click event, but this
> original eventhandler function calls three more functions via 
callLater
> (passing in the original event as an argument to callLater), but I 
still
> get the error telling me that when calling FileReference.save it has 
to
> be called because of a user event (gesture).  
> 
> I am I wrong to think that passing the initial click event along 
with
> callLater should be enough to pass the security requirement?
> 
> Thanks, Jason
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-
b4cf-
> 1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups
> Links
>



Re: [flexcoders] errorTip fontSize break the tooltip? Possible bug?

2008-12-08 Thread Fotis Chatzinikos
Here you are: (And a screenshot - via mail - have not tried before so do not
know if attachment work here...)


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




.errorTipGreen
{
color: #FF;
fontSize: 11;
fontWeight: "bold";
shadowColor: #00;
borderColor: #00FF00;
borderStyle: "errorTipAbove";
paddingBottom: 4;
paddingLeft: 4;
paddingRight: 4;
paddingTop: 4;
}





On Mon, Dec 8, 2008 at 8:25 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>Can you post an entire test case that is as small as possible?
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Fotis Chatzinikos
> *Sent:* Monday, December 08, 2008 9:44 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] errorTip fontSize break the tooltip? Possible
> bug?
>
>
>
> bump :-)
>
> Sorry did not get a reply on this... Could somebody test? Alex?
>
> On Thu, Dec 4, 2008 at 1:01 PM, fotis.chatzinikos <
> [EMAIL PROTECTED]> wrote:
>
> Hi, the following works:
>
> .errorTip
> {
> color: #FF;
> /*fontSize: 11;*/
> fontWeight: "bold";
> shadowColor: #00;
> borderColor: #FF;
> borderStyle: "errorTipAbove";
> paddingBottom: 4;
> paddingLeft: 4;
> paddingRight: 4;
> paddingTop: 4;
> }
>
> If I un-comment fontSize, the font gets bigger but the tooltip text
> gets outside of the tooltips 'area'. Ie text length is 200 pixels and
> tooltips area 150 pixels... Is the tooltip's area calculations
> hardcoded to font size 9?
>
> Fotis
>
>
>
>
> --
> Fotis Chatzinikos, Ph.D.
> Founder,
> Phinnovation
> [EMAIL PROTECTED],
>
>   
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],
<>

[flexcoders] Re: Charts Datatip hide delay

2008-12-08 Thread pratikshah83
Help would really be appreciated. 

--- In flexcoders@yahoogroups.com, "pratikshah83" <[EMAIL PROTECTED]>
wrote:
>
> Hi Guys, 
> 
> I would like to know how to delay the hiding of datatip for charts. 
> 
> I am planning to have a URL in the datatip. But when I move the mouse
> it destroys the datatip. I would like to delay it so that the user can
> move over the tooltip and click the URL, I can destroy it on mouse out
> event. 
> 
> Replies in this regards will be highly appreciated. 
> 
> Thanks
> Pratik
>




Re: [flexcoders] Best language for remoting

2008-12-08 Thread Fotis Chatzinikos
Google for BlazeDZ, opensource and free a good replacement over lcds...

On Tue, Dec 9, 2008 at 3:05 AM, Dale Fraser <[EMAIL PROTECTED]> wrote:

>I would give ColdFusion a try, its dam fast and very easy.
>
>
>
> Its not free, but much cheaper than LCDS and does most of the same stuff.
>
>
>
> Regards
>
> Dale Fraser
>
> http://learncf.com
>
> http://flexcf.com
>
>
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Sceneshift
> *Sent:* Tuesday, 9 December 2008 10:02 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Best language for remoting
>
>
>
>
> Hey guys,
>
> When building larger applications with bigger database interactions, which
> is considered the best language to develop the back-end environment in? I
> have been using PHP in most of my projects, but using AMFPHP to pass
> objects
> just seems really clunky... It seems as though Adobe are pushing
> ColdFusion,
> but I was wondering what the general consensus is on which methods
> (webservices, remoting) and languages are considered to be the best for
> communicating with databases.
> --
> View this message in context:
> http://www.nabble.com/Best-language-for-remoting-tp20905438p20905438.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>   
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],


[flexcoders] Getting Null exception when adding an Alert to a Canvas

2008-12-08 Thread devenhariyani
I have an application that has a small 300x300 canvas, and I want to
show an Alert that is centered inside of that canvas.  I tried passing
a parent parameter to Alert.show() method but that did not work, so I
was able to get the below code to center the alert inside the Canvas,
but the problem is that when a user clicks OK on the Alert, I get a
null pointer exception sometimes.  Any ideas why i get the exception
somtimes, and how to get rid of it??

//app popup alert to parent container
var alertMsg:Alert = new Alert();
alertMsg.text = arrErrorMsgs.join("\n\n");
alertMsg.title = "Invalid Feedback Form";
alertMsg.owner = Application.application.cnvFeedback;
alertMsg.explicitMaxHeight = 300;
alertMsg.explicitMaxWidth = 300;
Application.application.cnvFeedback.addChild(alertMsg);


EXCEPTION
-
TypeError: Error #1009: Cannot access a property or method of a null
object reference.
at
mx.managers::PopUpManagerImpl/findPopupInfoByOwner()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:657]
at
mx.managers::PopUpManagerImpl/removePopUp()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:366]
at
mx.managers::PopUpManager$/removePopUp()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\PopUpManager.as:196]
at
mx.controls.alertClasses::AlertForm/removeAlert()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:502]
at
mx.controls.alertClasses::AlertForm/clickHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\controls\alertClasses\AlertForm.as:541]




RE: [flexcoders] Best language for remoting

2008-12-08 Thread Dale Fraser
I would give ColdFusion a try, its dam fast and very easy.

 

Its not free, but much cheaper than LCDS and does most of the same stuff.

 

Regards

Dale Fraser

  http://learncf.com

  http://flexcf.com

 

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sceneshift
Sent: Tuesday, 9 December 2008 10:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Best language for remoting

 


Hey guys,

When building larger applications with bigger database interactions, which
is considered the best language to develop the back-end environment in? I
have been using PHP in most of my projects, but using AMFPHP to pass objects
just seems really clunky... It seems as though Adobe are pushing ColdFusion,
but I was wondering what the general consensus is on which methods
(webservices, remoting) and languages are considered to be the best for
communicating with databases. 
-- 
View this message in context:
http://www.nabble.com/Best-language-for-remoting-tp20905438p20905438.html
Sent from the FlexCoders mailing list archive at Nabble.com.

 



[flexcoders] Flex Messaging - Typing Objects.

2008-12-08 Thread Rodrigo Pereira Fraga
Hi!

I'm using the messaging services of BlazeDS. 
So, anybody here knows if I can type an object using [RemoteClass]? 

My messages are sent from java to flex.

Thanks.



Re: [flexcoders] Defining, but not adding to parent in MXML

2008-12-08 Thread Josh McDonald
That's not exactly what you're after, in this case the object will be added
to the list of children, it's just not positioned on
parent.updateDisplayList() or counted during parent.measure().

The only way I can think of off the top of my head to do what you're after
is wrap it in . Here's a quick example:

http://pastie.textmate.org/private/hjd33kkztkuojpzltd2ylw

You can use  to do thins kind of like this, but 
defines classes,  not interfaces, and IIRC, mxmlc is kinda picky as to where
it'll let you do it.

-Josh

On Tue, Dec 9, 2008 at 10:53 AM, Michael Prescott <
[EMAIL PROTECTED]> wrote:

>  Sweet!  Nice that there's an easy answer.
>
>
> On Mon, Dec 8, 2008 at 4:47 PM, Tracy Spratt <[EMAIL PROTECTED]>wrote:
>
>>includeInLayout="false" (also visible="false", of course)
>>
>>
>>
>> Tracy
>>
>>
>>  --
>>
>> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
>> Behalf Of *Michael Prescott
>> *Sent:* Monday, December 08, 2008 4:28 PM
>> *To:* flexcoders@yahoogroups.com
>> *Subject:* [flexcoders] Defining, but not adding to parent in MXML
>>
>>
>>
>> Is it possible to define a component but somehow cause it to be omitted
>> from the enclosing component's list of children?  Essentially:
>>
>> 
>>   
>>   
>> 
>>
>> An obvious question is, "Why are you defining the component there if it's
>> not supposed to be a child?"
>>
>> I've got a datagrid inline item renderer that always shows a (summary)
>> piece of information, but I want a pop-up to appear on rollover of the
>> summary.  The problem I'm having is that the detail is (of course) added to
>> the container that holds the summary, which causes the datagrid cell to blow
>> open too big.
>>
>> 
>>   
>> 
>>   
>>   
>>
>> *  
>>   *
>> 
>>   
>> 
>>
>> Defining the detail outside the itemrenderer entirely seems one way to go,
>> except that this would mean there's only one pop up for all of the rows of
>> the data grid.
>>
>> Can you do this sort of thing with a nested component?
>>
>> 
>>   
>> 
>>   
>>   
>> 
>> *  
>> 
>>   *
>> 
>>   
>> 
>>   
>> 
>>
>> Any tips would be appreciated!
>>
>> Michael
>>
>>
> 
>



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

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Defining, but not adding to parent in MXML

2008-12-08 Thread Michael Prescott
Sweet!  Nice that there's an easy answer.

On Mon, Dec 8, 2008 at 4:47 PM, Tracy Spratt <[EMAIL PROTECTED]> wrote:

>includeInLayout="false" (also visible="false", of course)
>
>
>
> Tracy
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Michael Prescott
> *Sent:* Monday, December 08, 2008 4:28 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Defining, but not adding to parent in MXML
>
>
>
> Is it possible to define a component but somehow cause it to be omitted
> from the enclosing component's list of children?  Essentially:
>
> 
>   
>   
> 
>
> An obvious question is, "Why are you defining the component there if it's
> not supposed to be a child?"
>
> I've got a datagrid inline item renderer that always shows a (summary)
> piece of information, but I want a pop-up to appear on rollover of the
> summary.  The problem I'm having is that the detail is (of course) added to
> the container that holds the summary, which causes the datagrid cell to blow
> open too big.
>
> 
>   
> 
>   
>   
>
> *  
>   *
> 
>   
> 
>
> Defining the detail outside the itemrenderer entirely seems one way to go,
> except that this would mean there's only one pop up for all of the rows of
> the data grid.
>
> Can you do this sort of thing with a nested component?
>
> 
>   
> 
>   
>   
> 
> *  
> 
>   *
> 
>   
> 
>   
> 
>
> Any tips would be appreciated!
>
> Michael
>
>  
>


RE: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest?

2008-12-08 Thread Tracy Spratt
Also, have you yet managed to get Flex to communicate with the server at
all?

 

If not, that is job 1.

 

I'd advise simplifying things as much as possible, like creating a
simple page that accepts an HTTPService request (no parameters) and
returns a hard coded value (I advise xml).

 

Then, make that page an "echo" page, that takes a single querystring
parameter and returns it to the Flex client.  Test that from a browser
before you try it from Flex (using GET).  Then use an htm form to submit
the parm, then POST from Flex..

 

When you get that, you will be pretty much in business.

 

Ah, also try it without https.  There are some considerations with
HTTPS, particularly with serving the Flex app from http, but the data
from https.  Google that.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Monday, December 08, 2008 7:35 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Desperate Times...Desprate Messures: What
is sent by HTTPRequest?

 

That error typically means that flex failed to contact the specified
URL.

 

You said, "Ok, I see what is being sent".  How did you determine that?
You saw that where?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wkolcz
Sent: Monday, December 08, 2008 6:01 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Desperate Times...Desprate Messures: What
is sent by HTTPRequest?

 

I created a form that submitted to the same page that the HTTPService
sends to. It inserts fine. The variables are there, I generated a
document with them. What needs to be sent back and how? This is the
error I am getting:

faultCode:Server.Error.Request 
faultString:'HTTP request error' 
faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false
cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL:
https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm";]. URL:
https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm'



From: "Tracy Spratt" <[EMAIL PROTECTED]>
Sent: Monday, December 08, 2008 1:26 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Desperate Times...Desprate Messures: What
is sent by HTTPRequest?

That means Flex is sending the call with the data corrrectly.  So then
where is the error happening? Between CF and the Database?  Does the CF
Insert query work if you hard code the values?  What IS the error?

 

Send something back to Flex.  Hard code it if necessary.  I have never
done either HTTPService or WebSevice calls without some return data.
Maybe flex is trying work with a null.

 

I advise setting resultFormat="e4x" for either RPC call types.  I always
send back a "status" node to flex.

 

Tracy

 

 

 



From:flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wkolcz
Sent: Monday, December 08, 2008 3:56 PM
To:flexcoders@yahoogroups.com
Subject: re: [flexcoders] Re: Desperate Times...Desprate Messures: What
is sent by HTTPRequest?

 

Ok, I see what is being sent. If I dump them to a pdf, I can see them
fine. 


  FORM:

 
#form.duration#
 #form.action#
#form.source#




But when I just submit them to a page with just an insert Query, using
the form.variable, I get an error! This is making NO sense.


INSERT INTO tracker(clickCount, duration, action, dept,
videoFile, datePlayed)
VALUES(1, #form.duration#, '#form.action#', 'PRMC',
'#form.source#', #Now()#)


Is Flex waiting for something else? Do I need to send something back. I
just want to insert a counter into the database each time the user
leaves the page or clicks the stop button.








From: "valdhor" <[EMAIL PROTECTED]>
Sent: Monday, December 08, 2008 12:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Desperate Times...Desprate Messures: What is
sent by HTTPRequest?

Grab a copy of Charles (http://www.charlesproxy.com
 ). This will show
you exactly what is being sent to your server.

--- In flexcoders@yahoogroups.com 
, "wkolcz" <[EMAIL PROTECTED]> wrote:
>
> I am just trying to send 4 parameters over to a CFC or CFM page to
insert into the database and both WebService and HTTPRequest are
giving me fits. 
> 
> Ok here is the scenerio:
> When the user watches a video, it starts a timer, when the user
either exits the page or clicks the 'stop' button it triggers a
function that sends out 3 pieces of info: what video, how long, and
whether they clicked stop or left. I am packaging that information
into an Object and sending it to a .cfm page with a query on it, ready
to insert.
> 
> What exactly is my .cfm page 'seeing' sent to it? Are they 

RE: [flexcoders] Best language for remoting

2008-12-08 Thread Sceneshift

Thanks you very much for this detailed and extremely helpful reply. 

I've been looking into LCDS and it's certainly amazing, although probably
more than I need for now. It's something I am going to keep my eyes on for
the future if I ever need the functionality of offers.

For now, I think I'll look into Java and Remote Object. If anyone has any
links they found useful on this topic, I'd be very grateful. Thanks!


Tracy Spratt wrote:
> 
> It is not even theoretically possible to  determine the "best" of
> anything.
> 
>  
> 
> You must look at the project, the requirements, both business and
> technical, the proposed environment, everything.  All that said, if
> there are no budget or technical constraints to consider (working for
> God, maybe?), there are some popular, powerful combinations out there.
> 
>  
> 
> For long term enterprise level solutions look into LCDS. Paging, push,
> messaging, a bunch of stuff I have not needed yet.  Big-time
> functionality, big-time cost.
> 
>  
> 
> Many people swear by Java and Remote Object, because of the ability to
> pass strongly typed objects around. It is also very fast, probably the
> fastest protocol. (But transmission speed is rarely the bottleneck)  But
> there are third party programs that permit this with other back-end
> platforms like .net. (e.g. webOrb).
> 
>  
> 
> Stay clear on what tier does what.  HttpService, WebService,
> RemoteObject, sockets, etc do not communicate with databases.  They are
> protocols for communicating with a back-endServer platform.  Code on
> that platform communicates with the database.  And which database?
> (rhetorical question)
> 
>  
> 
> End to end design of a large project needs major commitment from many
> people, and there will be compormises on all sides.   The business side
> almost always wins, by the way.
> 
>  
> 
> We, on this list, have yet to come up with a consensus on *anything*, so
> good luck with that.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Sceneshift
> Sent: Monday, December 08, 2008 6:02 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Best language for remoting
> 
>  
> 
> 
> Hey guys,
> 
> When building larger applications with bigger database interactions,
> which
> is considered the best language to develop the back-end environment in?
> I
> have been using PHP in most of my projects, but using AMFPHP to pass
> objects
> just seems really clunky... It seems as though Adobe are pushing
> ColdFusion,
> but I was wondering what the general consensus is on which methods
> (webservices, remoting) and languages are considered to be the best for
> communicating with databases. 
> -- 
> View this message in context:
> http://www.nabble.com/Best-language-for-remoting-tp20905438p20905438.htm
> l
>  ml> 
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
>  
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Best-language-for-remoting-tp20905438p20906756.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] Best language for remoting

2008-12-08 Thread Tracy Spratt
It is not even theoretically possible to  determine the "best" of
anything.

 

You must look at the project, the requirements, both business and
technical, the proposed environment, everything.  All that said, if
there are no budget or technical constraints to consider (working for
God, maybe?), there are some popular, powerful combinations out there.

 

For long term enterprise level solutions look into LCDS. Paging, push,
messaging, a bunch of stuff I have not needed yet.  Big-time
functionality, big-time cost.

 

Many people swear by Java and Remote Object, because of the ability to
pass strongly typed objects around. It is also very fast, probably the
fastest protocol. (But transmission speed is rarely the bottleneck)  But
there are third party programs that permit this with other back-end
platforms like .net. (e.g. webOrb).

 

Stay clear on what tier does what.  HttpService, WebService,
RemoteObject, sockets, etc do not communicate with databases.  They are
protocols for communicating with a back-endServer platform.  Code on
that platform communicates with the database.  And which database?
(rhetorical question)

 

End to end design of a large project needs major commitment from many
people, and there will be compormises on all sides.   The business side
almost always wins, by the way.

 

We, on this list, have yet to come up with a consensus on *anything*, so
good luck with that.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sceneshift
Sent: Monday, December 08, 2008 6:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Best language for remoting

 


Hey guys,

When building larger applications with bigger database interactions,
which
is considered the best language to develop the back-end environment in?
I
have been using PHP in most of my projects, but using AMFPHP to pass
objects
just seems really clunky... It seems as though Adobe are pushing
ColdFusion,
but I was wondering what the general consensus is on which methods
(webservices, remoting) and languages are considered to be the best for
communicating with databases. 
-- 
View this message in context:
http://www.nabble.com/Best-language-for-remoting-tp20905438p20905438.htm
l
 
Sent from the FlexCoders mailing list archive at Nabble.com.

 



RE: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest?

2008-12-08 Thread Tracy Spratt
That error typically means that flex failed to contact the specified
URL.

 

You said, "Ok, I see what is being sent".  How did you determine that?
You saw that where?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wkolcz
Sent: Monday, December 08, 2008 6:01 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Desperate Times...Desprate Messures: What
is sent by HTTPRequest?

 

I created a form that submitted to the same page that the HTTPService
sends to. It inserts fine. The variables are there, I generated a
document with them. What needs to be sent back and how? This is the
error I am getting:

faultCode:Server.Error.Request 
faultString:'HTTP request error' 
faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false
cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL:
https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm";]. URL:
https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm'



From: "Tracy Spratt" <[EMAIL PROTECTED]>
Sent: Monday, December 08, 2008 1:26 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Desperate Times...Desprate Messures: What
is sent by HTTPRequest?

That means Flex is sending the call with the data corrrectly.  So then
where is the error happening? Between CF and the Database?  Does the CF
Insert query work if you hard code the values?  What IS the error?

 

Send something back to Flex.  Hard code it if necessary.  I have never
done either HTTPService or WebSevice calls without some return data.
Maybe flex is trying work with a null.

 

I advise setting resultFormat="e4x" for either RPC call types.  I always
send back a "status" node to flex.

 

Tracy

 

 

 



From:flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wkolcz
Sent: Monday, December 08, 2008 3:56 PM
To:flexcoders@yahoogroups.com
Subject: re: [flexcoders] Re: Desperate Times...Desprate Messures: What
is sent by HTTPRequest?

 

Ok, I see what is being sent. If I dump them to a pdf, I can see them
fine. 


  FORM:

 
#form.duration#
 #form.action#
#form.source#




But when I just submit them to a page with just an insert Query, using
the form.variable, I get an error! This is making NO sense.


INSERT INTO tracker(clickCount, duration, action, dept,
videoFile, datePlayed)
VALUES(1, #form.duration#, '#form.action#', 'PRMC',
'#form.source#', #Now()#)


Is Flex waiting for something else? Do I need to send something back. I
just want to insert a counter into the database each time the user
leaves the page or clicks the stop button.







From: "valdhor" <[EMAIL PROTECTED]>
Sent: Monday, December 08, 2008 12:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Desperate Times...Desprate Messures: What is
sent by HTTPRequest?

Grab a copy of Charles (http://www.charlesproxy.com
 ). This will show
you exactly what is being sent to your server.

--- In flexcoders@yahoogroups.com 
, "wkolcz" <[EMAIL PROTECTED]> wrote:
>
> I am just trying to send 4 parameters over to a CFC or CFM page to
insert into the database and both WebService and HTTPRequest are
giving me fits. 
> 
> Ok here is the scenerio:
> When the user watches a video, it starts a timer, when the user
either exits the page or clicks the 'stop' button it triggers a
function that sends out 3 pieces of info: what video, how long, and
whether they clicked stop or left. I am packaging that information
into an Object and sending it to a .cfm page with a query on it, ready
to insert.
> 
> What exactly is my .cfm page 'seeing' sent to it? Are they form.,
url., or just the stuct name?
> 
> Here is my AS code:
> trackInfo.duration = myTimer.currentCount;
> trackInfo.action = "Video Stopped"; 
> trackInfo.source = source;
> var service:HTTPService = new HTTPService();
> service.url =
"https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm
 ";
> service.method = "POST";
> service.addEventListener(ResultEvent.RESULT, countHandler);
> service.addEventListener(FaultEvent.FAULT, alertFault);
> service.send(trackInfo);
> 
> How should I constuct the query on the tracker.cfm page? Something
like:
> 
> 
> Insert Into tracker (clickCount, duration, action,
videoFile, datePlayed)
> VALUES(1, #trackInfo.duration#,
'#trackInfo.action#', '#trackInfo.source#', #Now()#)
> 
>





 

 

 



[flexcoders] Charts Datatip hide delay

2008-12-08 Thread pratikshah83
Hi Guys, 

I would like to know how to delay the hiding of datatip for charts. 

I am planning to have a URL in the datatip. But when I move the mouse
it destroys the datatip. I would like to delay it so that the user can
move over the tooltip and click the URL, I can destroy it on mouse out
event. 

Replies in this regards will be highly appreciated. 

Thanks
Pratik 




RE: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest?

2008-12-08 Thread wkolcz
I created a form that submitted to the same page that the HTTPService sends to. 
It inserts fine. The variables are there, I generated a document with them. 
What needs to be sent back and how? This is the error I am getting:

faultCode:Server.Error.Request 
faultString:'HTTP request error' 
faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false 
eventPhase=2 text="Error #2032: Stream Error. URL: 
https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm";]. URL: 
https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm'


From: "Tracy Spratt" <[EMAIL PROTECTED]>
Sent: Monday, December 08, 2008 1:26 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent 
by HTTPRequest? 

That means Flex is sending the call with
the data corrrectly.  So then where is the error happening? Between CF and
the Database?  Does the CF Insert query work if you hard code the values? 
What IS the error?   Send something back to Flex.  Hard
code it if necessary.  I have never done either HTTPService or WebSevice
calls without some return data.  Maybe flex is trying work with a null.   I 
advise setting resultFormat="e4x"
for either RPC call types.  I always send back a "status" node
to flex.   Tracy   

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wkolcz
Sent: Monday, December 08, 2008
3:56 PM
To:flexcoders@yahoogroups.com
Subject: re: [flexcoders] Re:
Desperate Times...Desprate Messures: What is sent by HTTPRequest?   

Ok, I see what is being sent. If I dump them to a pdf,
I can see them fine. 



FORM:





#form.duration#

 #form.action#

#form.source#





But when I just submit them to a page with just an insert Query, using the
form.variable, I get an error! This is making NO sense.



INSERT INTO
tracker(clickCount, duration, action, dept, videoFile, datePlayed)

VALUES(1, #form.duration#, '#form.action#',
'PRMC', '#form.source#', #Now()#)



Is Flex waiting for something else? Do I need to send something back. I just
want to insert a counter into the database each time the user leaves the page
or clicks the stop button.


 From :
"valdhor" <[EMAIL PROTECTED]>
Sent: Monday, December 08, 2008
12:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
Desperate Times...Desprate Messures: What is sent by HTTPRequest? 

Grab a
copy of Charles (http://www.charlesproxy.com).
This will show

you exactly what is being sent to your server.

--- In flexcoders@yahoogroups.com,
"wkolcz" <[EMAIL PROTECTED]> wrote:

>

> I am just trying to send 4 parameters over to a CFC or CFM page to

insert into the database and both WebService and HTTPRequest are

giving me fits. 

> 

> Ok here is the scenerio:

> When the user watches a video, it starts a timer, when the user

either exits the page or clicks the 'stop' button it triggers a

function that sends out 3 pieces of info: what video, how long, and

whether they clicked stop or left. I am packaging that information

into an Object and sending it to a .cfm page with a query on it, ready

to insert.

> 

> What exactly is my .cfm page 'seeing' sent to it? Are they form.,

url., or just the stuct name?

> 

> Here is my AS code:

> trackInfo.duration = myTimer.currentCount;

> trackInfo.action = "Video Stopped"; 

> trackInfo.source = source;

> var service:HTTPService = new HTTPService();

> service.url =

"https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm";;

> service.method = "POST";

> service.addEventListener(ResultEvent.RESULT, countHandler);

> service.addEventListener(FaultEvent.FAULT, alertFault);

> service.send(trackInfo);

> 

> How should I constuct the query on the tracker.cfm page? Something like:

> 

> 

> Insert Into tracker (clickCount, duration, action,

videoFile, datePlayed)

> VALUES(1, #trackInfo.duration#,

'#trackInfo.action#', '#trackInfo.source#', #Now()#)

> 

>





[flexcoders] Best language for remoting

2008-12-08 Thread Sceneshift

Hey guys,

When building larger applications with bigger database interactions, which
is considered the best language to develop the back-end environment in? I
have been using PHP in most of my projects, but using AMFPHP to pass objects
just seems really clunky... It seems as though Adobe are pushing ColdFusion,
but I was wondering what the general consensus is on which methods
(webservices, remoting) and languages are considered to be the best for
communicating with databases. 
-- 
View this message in context: 
http://www.nabble.com/Best-language-for-remoting-tp20905438p20905438.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Subclassing Vector?

2008-12-08 Thread Josh McDonald
Hey guys,

I'm wondering if it's possible to subclass Vector, as a back-door into
reusable generics? If so, is  available at runtime? Can you override the
constructor? How do you call super.()?

Cheers,

-Josh

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

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


RE: [flexcoders] Defining, but not adding to parent in MXML

2008-12-08 Thread Tracy Spratt
includeInLayout="false" (also visible="false", of course)

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Prescott
Sent: Monday, December 08, 2008 4:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Defining, but not adding to parent in MXML

 

Is it possible to define a component but somehow cause it to be omitted
from the enclosing component's list of children?  Essentially:


  
  


An obvious question is, "Why are you defining the component there if
it's not supposed to be a child?"

I've got a datagrid inline item renderer that always shows a (summary)
piece of information, but I want a pop-up to appear on rollover of the
summary.  The problem I'm having is that the detail is (of course) added
to the container that holds the summary, which causes the datagrid cell
to blow open too big.


  

  
  

  
  

  


Defining the detail outside the itemrenderer entirely seems one way to
go, except that this would mean there's only one pop up for all of the
rows of the data grid.

Can you do this sort of thing with a nested component?


  

  
  

  

  

  

  


Any tips would be appreciated!

Michael

 



[flexcoders] Defining, but not adding to parent in MXML

2008-12-08 Thread Michael Prescott
Is it possible to define a component but somehow cause it to be omitted from
the enclosing component's list of children?  Essentially:


  
  


An obvious question is, "Why are you defining the component there if it's
not supposed to be a child?"

I've got a datagrid inline item renderer that always shows a (summary) piece
of information, but I want a pop-up to appear on rollover of the summary.
The problem I'm having is that the detail is (of course) added to the
container that holds the summary, which causes the datagrid cell to blow
open too big.


  

  
  

*  
  *

  


Defining the detail outside the itemrenderer entirely seems one way to go,
except that this would mean there's only one pop up for all of the rows of
the data grid.

Can you do this sort of thing with a nested component?


  

  
  

*  

  *

  

  


Any tips would be appreciated!

Michael


RE: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest?

2008-12-08 Thread Tracy Spratt
That means Flex is sending the call with the data corrrectly.  So then
where is the error happening? Between CF and the Database?  Does the CF
Insert query work if you hard code the values?  What IS the error?

 

Send something back to Flex.  Hard code it if necessary.  I have never
done either HTTPService or WebSevice calls without some return data.
Maybe flex is trying work with a null.

 

I advise setting resultFormat="e4x" for either RPC call types.  I always
send back a "status" node to flex.

 

Tracy

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wkolcz
Sent: Monday, December 08, 2008 3:56 PM
To: flexcoders@yahoogroups.com
Subject: re: [flexcoders] Re: Desperate Times...Desprate Messures: What
is sent by HTTPRequest?

 

Ok, I see what is being sent. If I dump them to a pdf, I can see them
fine. 


  FORM:

 
#form.duration#
 #form.action#
#form.source#




But when I just submit them to a page with just an insert Query, using
the form.variable, I get an error! This is making NO sense.


INSERT INTO tracker(clickCount, duration, action, dept,
videoFile, datePlayed)
VALUES(1, #form.duration#, '#form.action#', 'PRMC',
'#form.source#', #Now()#)


Is Flex waiting for something else? Do I need to send something back. I
just want to insert a counter into the database each time the user
leaves the page or clicks the stop button.






From: "valdhor" <[EMAIL PROTECTED]>
Sent: Monday, December 08, 2008 12:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Desperate Times...Desprate Messures: What is
sent by HTTPRequest?

Grab a copy of Charles (http://www.charlesproxy.com
 ). This will show
you exactly what is being sent to your server.

--- In flexcoders@yahoogroups.com 
, "wkolcz" <[EMAIL PROTECTED]> wrote:
>
> I am just trying to send 4 parameters over to a CFC or CFM page to
insert into the database and both WebService and HTTPRequest are
giving me fits. 
> 
> Ok here is the scenerio:
> When the user watches a video, it starts a timer, when the user
either exits the page or clicks the 'stop' button it triggers a
function that sends out 3 pieces of info: what video, how long, and
whether they clicked stop or left. I am packaging that information
into an Object and sending it to a .cfm page with a query on it, ready
to insert.
> 
> What exactly is my .cfm page 'seeing' sent to it? Are they form.,
url., or just the stuct name?
> 
> Here is my AS code:
> trackInfo.duration = myTimer.currentCount;
> trackInfo.action = "Video Stopped"; 
> trackInfo.source = source;
> var service:HTTPService = new HTTPService();
> service.url =
"https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm
 ";
> service.method = "POST";
> service.addEventListener(ResultEvent.RESULT, countHandler);
> service.addEventListener(FaultEvent.FAULT, alertFault);
> service.send(trackInfo);
> 
> How should I constuct the query on the tracker.cfm page? Something
like:
> 
> 
> Insert Into tracker (clickCount, duration, action,
videoFile, datePlayed)
> VALUES(1, #trackInfo.duration#,
'#trackInfo.action#', '#trackInfo.source#', #Now()#)
> 
>




 

 



re: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest?

2008-12-08 Thread wkolcz
Ok, I see what is being sent. If I dump them to a pdf, I can see them fine. 


  FORM:

 
#form.duration#
 #form.action#
#form.source#



But when I just submit them to a page with just an insert Query, using the 
form.variable, I get an error! This is making NO sense.


INSERT INTO tracker(clickCount, duration, action, dept, videoFile, 
datePlayed)
VALUES(1, #form.duration#, '#form.action#', 'PRMC', 
'#form.source#', #Now()#)


Is Flex waiting for something else? Do I need to send something back. I just 
want to insert a counter into the database each time the user leaves the page 
or clicks the stop button.


From: "valdhor" <[EMAIL PROTECTED]>
Sent: Monday, December 08, 2008 12:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by 
HTTPRequest? 

Grab a copy of Charles (http://www.charlesproxy.com). This will show

you exactly what is being sent to your server.

--- In flexcoders@yahoogroups.com, "wkolcz" <[EMAIL PROTECTED]> wrote:

>

> I am just trying to send 4 parameters over to a CFC or CFM page to

insert into the database and both WebService and HTTPRequest are

giving me fits. 

> 

> Ok here is the scenerio:

> When the user watches a video, it starts a timer, when the user

either exits the page or clicks the 'stop' button it triggers a

function that sends out 3 pieces of info: what video, how long, and

whether they clicked stop or left. I am packaging that information

into an Object and sending it to a .cfm page with a query on it, ready

to insert.

> 

> What exactly is my .cfm page 'seeing' sent to it? Are they form.,

url., or just the stuct name?

> 

> Here is my AS code:

> trackInfo.duration =  myTimer.currentCount;

> trackInfo.action = "Video Stopped";

> trackInfo.source = source;

> var service:HTTPService = new HTTPService();

> service.url =

"https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm";;

> service.method = "POST";

> service.addEventListener(ResultEvent.RESULT, countHandler);

> service.addEventListener(FaultEvent.FAULT, alertFault);

> service.send(trackInfo);

> 

> How should I constuct the query on the tracker.cfm page? Something like:

> 

> 

> Insert Into tracker (clickCount, duration, action,

videoFile, datePlayed)

> VALUES(1, #trackInfo.duration#,

'#trackInfo.action#', '#trackInfo.source#', #Now()#)

> 

>





[flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest?

2008-12-08 Thread valdhor
Grab a copy of Charles (http://www.charlesproxy.com). This will show
you exactly what is being sent to your server.


--- In flexcoders@yahoogroups.com, "wkolcz" <[EMAIL PROTECTED]> wrote:
>
> I am just trying to send 4 parameters over to a CFC or CFM page to
insert into the database and both WebService and HTTPRequest are
giving me fits. 
> 
> Ok here is the scenerio:
> When the user watches a video, it starts a timer, when the user
either exits the page or clicks the 'stop' button it triggers a
function that sends out 3 pieces of info: what video, how long, and
whether they clicked stop or left. I am packaging that information
into an Object and sending it to a .cfm page with a query on it, ready
to insert.
> 
> What exactly is my .cfm page 'seeing' sent to it? Are they form.,
url., or just the stuct name?
> 
> Here is my AS code:
> trackInfo.duration =  myTimer.currentCount;
> trackInfo.action = "Video Stopped";
> trackInfo.source = source;
> var service:HTTPService = new HTTPService();
> service.url =
"https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm";;
> service.method = "POST";
> service.addEventListener(ResultEvent.RESULT, countHandler);
> service.addEventListener(FaultEvent.FAULT, alertFault);
> service.send(trackInfo);
> 
> How should I constuct the query on the tracker.cfm page? Something like:
> 
> 
> Insert Into tracker (clickCount, duration, action,
videoFile, datePlayed)
> VALUES(1, #trackInfo.duration#,
'#trackInfo.action#', '#trackInfo.source#', #Now()#)
> 
>




Re: [flexcoders] AIR as GUI on Linux

2008-12-08 Thread Ben Cessa
Thnx for the response, I'm on my way with this now, however I have a  
new question now :)
but I'll write a new mail since is a related but different subject

thanx a lot for your time on this one

On Dec 8, 2008, at 9:46 AM, Tom Chiverton wrote:

> On Sunday 07 Dec 2008, Ben Cessa wrote:
>> doubt here is this: what's the best way to communicate which such
>> programs from an AIR application or what can I use as middleware
>> between both.
>
> You'd need a Java wrapper, probably.
> Check the archives.
>
> -- 
> Tom Chiverton
> Helping to authoritatively disseminate cutting-edge integrated high- 
> yield
> end-to-end mindshares
>
>
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in  
> England and Wales under registered number OC307980 whose registered  
> office address is at Halliwells LLP, 3 Hardman Square,  
> Spinningfields, Manchester, M3 3EB.  A list of members is available  
> for inspection at the registered office together with a list of  
> those non members who are referred to as partners.  We use the word  
> “partner” to refer to a member of the LLP, or an employee or  
> consultant with equivalent standing and qualifications. Regulated by  
> the Solicitors Regulation Authority.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above  
> and may be confidential or legally privileged.  If you are not the  
> addressee you must not read it and must not use any information  
> contained in nor copy it nor inform any person other than Halliwells  
> LLP or the addressee of its existence or contents.  If you have  
> received this email in error please delete it and notify Halliwells  
> LLP IT Department on 0870 365 2500.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo 
> ! Groups Links
>
>
>



[flexcoders] Re: setting over state of a button using css?

2008-12-08 Thread oneworld95
What the user probably meant was rollover style.

-Alex

--- In flexcoders@yahoogroups.com, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> overSkin?
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of fl3xn00b
> Sent: Friday, December 05, 2008 10:11 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] setting over state of a button using css?
> 
> 
> does anyone know how to set an overstate of a button using css???
>




RE: [flexcoders] Desperate Times...Desprate Messures: What is sent by HTTPRequest?

2008-12-08 Thread wkolcz
Not necessarily giving up, but the internet is fruitless and not anyone in the 
Adobe Forums has chimed it, and you are the only one on here. Unfortunately for 
me, I need this thing running by Wednesday. So I am exploring both options 
right now. 

Which ever one works first, will be for the demo on Wednesday.


From: "Tracy Spratt" <[EMAIL PROTECTED]>
Sent: Monday, December 08, 2008 12:27 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Desperate Times...Desprate Messures: What is sent by 
HTTPRequest? 

With POST, it should be seeing "form"
parameters, in name=value pairs.  I do not know CF, but in asp.net, the
parameters would be available through Request.Form("action")   What is the 
tracker.cfm page returning?Have you given up on the WebService?   Tracy   

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wkolcz
Sent: Monday, December 08, 2008
3:16 PM
To:flexcoders@yahoogroups.com
Subject: [flexcoders] Desperate
Times...Desprate Messures: What is sent by HTTPRequest?   

I am just
trying to send 4 parameters over to a CFC or CFM page to insert into the
database and both WebService and HTTPRequest are giving me fits. 

Ok here is the scenerio:

When the user watches a video, it starts a timer, when the user either exits
the page or clicks the 'stop' button it triggers a function that sends out 3
pieces of info: what video, how long, and whether they clicked stop or left. I
am packaging that information into an Object and sending it to a .cfm page with
a query on it, ready to insert.

What exactly is my .cfm page 'seeing' sent to it? Are they form., url., or just
the stuct name?

Here is my AS code:

trackInfo.duration =  myTimer.currentCount;

trackInfo.action = "Video Stopped";

trackInfo.source = source;

var service:HTTPService = new HTTPService();

service.url = "https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm";;

service.method = "POST";

service.addEventListener(ResultEvent.RESULT, countHandler);

service.addEventListener(FaultEvent.FAULT, alertFault);

service.send(trackInfo);

How should I constuct the query on the tracker.cfm page? Something like:



Insert Into
tracker (clickCount, duration, action, videoFile, datePlayed)

VALUES(1, #trackInfo.duration#, '#trackInfo.action#',
'#trackInfo.source#', #Now()#)

  





RE: [flexcoders] Desperate Times...Desprate Messures: What is sent by HTTPRequest?

2008-12-08 Thread Tracy Spratt
With POST, it should be seeing "form" parameters, in name=value pairs.
I do not know CF, but in asp.net, the parameters would be available
through Request.Form("action")

 

What is the tracker.cfm page returning? 

 

Have you given up on the WebService?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wkolcz
Sent: Monday, December 08, 2008 3:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Desperate Times...Desprate Messures: What is sent
by HTTPRequest?

 

I am just trying to send 4 parameters over to a CFC or CFM page to
insert into the database and both WebService and HTTPRequest are giving
me fits. 

Ok here is the scenerio:
When the user watches a video, it starts a timer, when the user either
exits the page or clicks the 'stop' button it triggers a function that
sends out 3 pieces of info: what video, how long, and whether they
clicked stop or left. I am packaging that information into an Object and
sending it to a .cfm page with a query on it, ready to insert.

What exactly is my .cfm page 'seeing' sent to it? Are they form., url.,
or just the stuct name?

Here is my AS code:
trackInfo.duration =  myTimer.currentCount;
trackInfo.action = "Video Stopped";
trackInfo.source = source;
var service:HTTPService = new HTTPService();
service.url =
"https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm";;
service.method = "POST";
service.addEventListener(ResultEvent.RESULT, countHandler);
service.addEventListener(FaultEvent.FAULT, alertFault);
service.send(trackInfo);

How should I constuct the query on the tracker.cfm page? Something like:


Insert Into tracker (clickCount, duration, action,
videoFile, datePlayed)
VALUES(1, #trackInfo.duration#, '#trackInfo.action#',
'#trackInfo.source#', #Now()#)


 



[flexcoders] Re: Item Renderer focus on subcomponent in List

2008-12-08 Thread boilerman1984
I read and followed the example on your blog about tabbing between two
text inputs in the datagrid.  This is similar to that, but two text
inputs in a render of a list.  I don't believe the List functions the
same way and I am having trouble transfering what I learned on that to
my situation.  




[flexcoders] look for a Air application demo with Fabrication framework?

2008-12-08 Thread markflex2007
Hi,

Fabrication framework is a extension from pureMVC multicore.

http://code.google.com/p/fabrication/

I try a Flex demo and it works fine. but it has error when I convert
it to Air application.

Do you have experience for that? Do you have a Air demo?

Thanks

Mark



[flexcoders] Desperate Times...Desprate Messures: What is sent by HTTPRequest?

2008-12-08 Thread wkolcz
I am just trying to send 4 parameters over to a CFC or CFM page to insert into 
the database and both WebService and HTTPRequest are giving me fits. 

Ok here is the scenerio:
When the user watches a video, it starts a timer, when the user either exits 
the page or clicks the 'stop' button it triggers a function that sends out 3 
pieces of info: what video, how long, and whether they clicked stop or left. I 
am packaging that information into an Object and sending it to a .cfm page with 
a query on it, ready to insert.

What exactly is my .cfm page 'seeing' sent to it? Are they form., url., or just 
the stuct name?

Here is my AS code:
trackInfo.duration =  myTimer.currentCount;
trackInfo.action = "Video Stopped";
trackInfo.source = source;
var service:HTTPService = new HTTPService();
service.url = "https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm";;
service.method = "POST";
service.addEventListener(ResultEvent.RESULT, countHandler);
service.addEventListener(FaultEvent.FAULT, alertFault);
service.send(trackInfo);

How should I constuct the query on the tracker.cfm page? Something like:


Insert Into tracker (clickCount, duration, action, videoFile, 
datePlayed)
VALUES(1, #trackInfo.duration#, '#trackInfo.action#', 
'#trackInfo.source#', #Now()#)




[flexcoders] Re: Item Renderer focus on subcomponent in List

2008-12-08 Thread boilerman1984
Thanks that has got me on the right track. Not sure how I overlooked
that.  Ive got it to focus on the first item inside the item renderer.
 I now have a problem tabbing to the next item renderer in the list or
outside the list.  I get a 1069 error.  I think I have to modify the
keyfocuschange handler but I'm not positive.  Any thoughts.



RE: [flexcoders] Does anyone know ANYTHING about AS Webservices?

2008-12-08 Thread wkolcz
I put the webservice so it creates a public instance ready for use. 

public var webService:WebService = new WebService(); 
public var trackInfo:Object = new Object();
public var myTimer:Timer = new Timer(0);

I then change the code to:

private function wsdlLoaded(event:LoadEvent):void {
Alert.show("Web Service Loaded and Ready", "Service Status");
webService.countIt(trackInfo);
webService.addEventListener(FaultEvent.FAULT, alertFault);

}

private function stop_onClick(event:MouseEvent):void {
myTimer.stop()
trackInfo.addOne = 1 ;
trackInfo.duration =  myTimer.currentCount;
trackInfo.action = "Video Stopped";
trackInfo.source = source;
webService.wsdl = 
"https://ummciisdevweb22.umich.edu/videotracking/trackerDAO.cfc?wsdl";; 
webService.loadWSDL();
webService.addEventListener(LoadEvent.LOAD, wsdlLoaded);
stop();
playPressed = false;
}

It loads the WSDL and the Alert pops up, but still cant get it to the database. 
Now I am getting:

faultCode:DecodingError 
faultString:'SOAP Response cannot be decoded. 
Raw response: ' faultDetail:'null'


From: "Tracy Spratt" <[EMAIL PROTECTED]>
Sent: Monday, December 08, 2008 10:08 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Does anyone know ANYTHING about AS Webservices? 

First, loadWSDL() is asynchronous.  You
need to wait for the LoadEvent.LOAD event before attempting to call an
operation.   Also, declare and use a result Handler in
addition to the fault handler.   Tracy

 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wkolcz
Sent: Monday, December 08, 2008
12:34 PM
To:flexcoders@yahoogroups.com
Subject: [flexcoders] Does anyone
know ANYTHING about AS Webservices?   

I created
a simple web service using ColdFusion CFC. It takes a struct and inserts the
info into the database. Works fine from a direct call using CF's 
createObject("webservice")
so I know it works...

However in AS, I am getting this error:

faultCode:DecodingError faultString:'SOAP Response cannot be decoded.
Raw response: ' faultDetail:'null'

Here is my Web Service Script:

var ws:WebService = new WebService();

ws.wsdl = "https://ummciisdevweb22.umich.edu/videotracking/trackerDAO.cfc?wsdl";;

ws.addEventListener(FaultEvent.FAULT, alertFault);

ws.loadWSDL();

ws.countIt({trackData:trackInfo});

I have looked at 100 different examples and none of them work. Does ANYONE know
how I can get this to work? I have a Wednesday deadline to get this thing to 
work.





[flexcoders] Re: hiding parts of controls across the edges of their parents (masking?)

2008-12-08 Thread valdhor
I wanted to learn how to apply a mask so I thought I would try and
tackle your problem.

This is what I have come up with so far. For some reason that I cannot
fathom the bottom right hand corner does not want to honor the curveTo
so still breaks out. I have checked my calculations over and over but it
still does not want to come out and play. If any one can tell me why I
would be most appreciative.


http://www.adobe.com/2006/mxml";
 layout="absolute" backgroundColor="white" initialize="init();"
 creationComplete="onCreationComplete()">
 
 
 
 
 
 
 
 
 
 



Steve


--- In flexcoders@yahoogroups.com, "simonjpalmer" <[EMAIL PROTECTED]>
wrote:
>
> I have a canvas within a canvas and the outer canvas has rounded
> corners.  The inner one is basically a strip along the right hand side
> of the outer canvas which I fill with a colour depending on the state
> of some internal variable.  There are a couple of text fields in the
> outer canvas too, but they are irrelevant to the problem at hand.
>
> I want the inner one to have square corners but for its right hand
> edge to be trimmed or masked so that it doesn't appear outside the
> outer canvas's rounded corners.
>
> It's harder to describe than it is to see in reality.
>
> Here is my code which when displayed shows the little corners of the
> inner canvas poking out of the nicely rounded edges of its parent.
>
> http://www.adobe.com/2006/mxml";
>  width="225" height="100"
>  cornerRadius="8"
>  borderStyle="solid" borderColor="#c0c0c0"
>  xmlns:ns1="src.com.dsl.controls.*">
>
>   backgroundColor="#ff8000" backgroundAlpha=".5" id="cvs_StatusColour">
>   
>  
>   color="#808080" id="lbl_Title"/>
>   id="txt_Message"/>
>
> 
>



RE: [flexcoders] Drag and Drop into a Popup Window

2008-12-08 Thread Alex Harui
What didn't work?  Post a mini-example.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Reto M. 
Kiefer
Sent: Monday, December 08, 2008 1:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Drag and Drop into a Popup Window


Dear all,

I want to drag and drop data from the main application into field in a
popup window.

The usual handling of dragEnter and dragDrop doesn't work.

Any hints / links on how to enable drag and drop into a popup window
is highly appreciated.

Thanks in advance

Reto



RE: [flexcoders] setting over state of a button using css?

2008-12-08 Thread Alex Harui
overSkin?

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fl3xn00b
Sent: Friday, December 05, 2008 10:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] setting over state of a button using css?


does anyone know how to set an overstate of a button using css???



RE: [flexcoders] Tree has same number of items after expand but not after change

2008-12-08 Thread Alex Harui
Maybe on expand it has already calculated how many children it expects to see.  
I think there are lazy tree examples out there.  If not, maybe I'll get around 
to posting one.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
flex_geek
Sent: Saturday, December 06, 2008 2:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tree has same number of items after expand but not after 
change


Hi, all,

In Flex 3 I have a Tree control that is doing dynamic loading of
children. To simplify: I do a search that retrieves a root set of 15
folders. When I click on a folder, a function executes that retrieves
the children and expands the folder to reveal them. This works
correctly - the tree now displays the original 15 folders plus all
the children of the folder I clicked on.

On the other hand, if instead of clicking on the folder, I click on
the plus sign (or on Mac the triangle) to the left of the folder, the
folder opens and displays items, but the total number of items
displaying in the tree is only 15 (the same number as the original
number of folders) - so some of the folders disappear, and only a few
children display in the open folder. If I close the folder using the
minus and reopen it with the plus, all the items that should be
displaying do then appear (i.e., the 15 folders plus all the
children).

What is odd is that I am using basically the same function for both
events, the main difference being the event that is being passed to
it.

Here are the two functions:

private function handleTreeChange( event:Event ):void
{
var selectedItem:Object = Tree( event.target ).selectedItem;

if( selectedItem is FolderNode )
fetchFolderInfo( FolderNode( selectedItem ) );
}

private function handleRetrieve( event:TreeEvent ):void
{
if( event.item is FolderNode && event.opening )
fetchFolderInfo( FolderNode( event.item) );
}

private function fetchFolderInfo( folder:FolderNode ):void
{
//Items contains the children of the FolderNode
//so if the folder already has items, don't go doing
// the whole search thing
if( folder.Items.length != 0 )
return;

loadingPanel.visible = true;

catalogTreeGenerator.getFoldersOrStyles(theRootDBName, folder.Id,
theCatalogFKName);
catalogTreeGenerator.addEventListener("nonRootItemsArrayReady",
addFolderItems);

function addFolderItems(e:Event):void{
folder.Items = new ArrayCollection(e.currentTarget.fsItems as
Array );
catalogTree.validateNow();
catalogTree.expandItem( folder, true, true, false );
loadingPanel.visible = false;
catalogTreeGenerator.removeEventListener
("nonRootItemsArrayReady", addFolderItems);
}
}

Can anyone shed any light on why clicking on the plus next to a
folder the first time (doing the handleRetrieve function triggered
by "itemOpening" event) would cause the tree to only display a number
of items equal to the original number of folders, when clicking on
the folder itself (doing the handleTreeChange function triggered
by "change" event) causes the tree to display all the appropriate
items?

Thanks very much for any help.

-Flummoxed flex_geeklet



RE: [flexcoders] e4x Strings?

2008-12-08 Thread Alex Harui
A simple eval may be all you need.

Var parts:Array = inputText.split(".");

While (parts.length)
Node = node[parts.unshift()];

-Alex

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
artclifford
Sent: Sunday, December 07, 2008 3:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] e4x Strings?


I am familiar with e4x and know generally how to get information I need
when I know the structure of an XML file. I was going to put together a
utility as tutorial for new-hires to allow trying e4x to get different
values.

I quickly ran into the problem that I cannot see a way to allow this to
happen without creating my own e4x interpreter. Am I missing something?
If I wanted a user to enter a string like "[EMAIL PROTECTED]" and
want to get the xmllist matching that e4x string on an XML object can I
do that? I know that [EMAIL PROTECTED] will give me what I
want, I even know that xmlVar["somenode"]["@someAttribute"] will give
me what I want. But xmlVar["[EMAIL PROTECTED]"] doesn't work. Nor
does xmlVar.decendants("[EMAIL PROTECTED]");

I know Adobe has the D.eval stuff for providing eval in AS, but I was
hopeing for a solution that doesn't require external libraries.

Thanks for any input,

ArtC



RE: [flexcoders] Item Renderer focus on subcomponent in List

2008-12-08 Thread Alex Harui
rendererIsEditor=true

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
boilerman1984
Sent: Sunday, December 07, 2008 10:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Item Renderer focus on subcomponent in List


I've got a List of Item Renderers that contain inputs and a combobox.
When the List gets Focus, the item renderer displays its default,
text input focus instead of the item renderer. How can I get focus to
be set on an item renderer component instead of the whole item
renderer itself?



RE: [flexcoders] errorTip fontSize break the tooltip? Possible bug?

2008-12-08 Thread Alex Harui
Can you post an entire test case that is as small as possible?

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Fotis 
Chatzinikos
Sent: Monday, December 08, 2008 9:44 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] errorTip fontSize break the tooltip? Possible bug?


bump :-)

Sorry did not get a reply on this... Could somebody test? Alex?
On Thu, Dec 4, 2008 at 1:01 PM, fotis.chatzinikos <[EMAIL 
PROTECTED]> wrote:

Hi, the following works:

.errorTip
{
color: #FF;
/*fontSize: 11;*/
fontWeight: "bold";
shadowColor: #00;
borderColor: #FF;
borderStyle: "errorTipAbove";
paddingBottom: 4;
paddingLeft: 4;
paddingRight: 4;
paddingTop: 4;
}

If I un-comment fontSize, the font gets bigger but the tooltip text
gets outside of the tooltips 'area'. Ie text length is 200 pixels and
tooltips area 150 pixels... Is the tooltip's area calculations
hardcoded to font size 9?

Fotis



--
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],



RE: [flexcoders] Does anyone know ANYTHING about AS Webservices?

2008-12-08 Thread Tracy Spratt
I looked in the docs and see where you got your example, and that
example does as you do.  But I think it is incorrect.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Monday, December 08, 2008 1:26 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Does anyone know ANYTHING about AS
Webservices?

 

First, loadWSDL() is asynchronous.  You need to wait for the
LoadEvent.LOAD event before attempting to call an operation.

 

Also, declare and use a result Handler in addition to the fault handler.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wkolcz
Sent: Monday, December 08, 2008 12:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Does anyone know ANYTHING about AS Webservices?

 

I created a simple web service using ColdFusion CFC. It takes a struct
and inserts the info into the database. Works fine from a direct call
using CF's createObject("webservice") so I know it works...

However in AS, I am getting this error:
faultCode:DecodingError faultString:'SOAP Response cannot be decoded.
Raw response: ' faultDetail:'null'

Here is my Web Service Script:
var ws:WebService = new WebService();
ws.wsdl =
"https://ummciisdevweb22.umich.edu/videotracking/trackerDAO.cfc?wsdl";;
ws.addEventListener(FaultEvent.FAULT, alertFault);
ws.loadWSDL();
ws.countIt({trackData:trackInfo});

I have looked at 100 different examples and none of them work. Does
ANYONE know how I can get this to work? I have a Wednesday deadline to
get this thing to work. 

 



RE: [flexcoders] Does anyone know ANYTHING about AS Webservices?

2008-12-08 Thread Tracy Spratt
First, loadWSDL() is asynchronous.  You need to wait for the
LoadEvent.LOAD event before attempting to call an operation.

 

Also, declare and use a result Handler in addition to the fault handler.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of wkolcz
Sent: Monday, December 08, 2008 12:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Does anyone know ANYTHING about AS Webservices?

 

I created a simple web service using ColdFusion CFC. It takes a struct
and inserts the info into the database. Works fine from a direct call
using CF's createObject("webservice") so I know it works...

However in AS, I am getting this error:
faultCode:DecodingError faultString:'SOAP Response cannot be decoded.
Raw response: ' faultDetail:'null'

Here is my Web Service Script:
var ws:WebService = new WebService();
ws.wsdl =
"https://ummciisdevweb22.umich.edu/videotracking/trackerDAO.cfc?wsdl";;
ws.addEventListener(FaultEvent.FAULT, alertFault);
ws.loadWSDL();
ws.countIt({trackData:trackInfo});

I have looked at 100 different examples and none of them work. Does
ANYONE know how I can get this to work? I have a Wednesday deadline to
get this thing to work. 

 



[flexcoders] Re: Parsley MVC :: some thoughts

2008-12-08 Thread aphexyuri
there is on more reason..pureMVC

--- In flexcoders@yahoogroups.com, "Jules Suggate"
<[EMAIL PROTECTED]> wrote:
>
>  head explodes heh!
> 
> I have been happily thinking the whole time that events really *are*
> asynchronous, but that's obviously not true. Reality check...
> 
> Thanks guys. I think I might have run out of reasons *not* to use
Parsley :)
> 
> On Tue, Dec 9, 2008 at 01:06, Paul Andrews <[EMAIL PROTECTED]> wrote:
> > - Original Message -
> > From: "Jules Suggate" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Monday, December 08, 2008 6:49 AM
> > Subject: [flexcoders] Parsley MVC :: some thoughts
> >
> >> Anyone used Parsley MVC? I'm a bit confused by it.
> >>
> >> There's the standard MVC FrontController class, which exposes a
method
> >> dispatchEvent() for app-wide notifications. It also has a concept of
> >> interceptors which is nice... so far so good.
> >>
> >> BUT... that dispatchEvent() call executes *synchronously*. Control
> >> won't return to your code until *every single listener* to that event
> >> finishes executing!! In a single-threaded environment like Flash
> >> Player, I would have thought this to be a disastrous design
> >> decision... can anyone shed any light on this, as I'm sure there's
> >> something I'm missing here!
> >
> > Why is it disastrous? The flash player is single threaded so it's not
> > possible have concurrently running code (something I think that
Adobe should
> > address in the future) so why shouldn't all the waiting listeners
be called?
> >
> > It's not possible to resume execution elsewhere while a listener
is still
> > active because that would require semaphores to handle pseudo
concurrency
> > and I'm sure that holds true not just for the listeners themselves
but also
> > for the mechanism that calls the waiting listeners.
> >
> > Paul
> >
> >>
> >> TIA,
> >> +J
> >>
> >> PS another thing I haven't figured out yet is how to inject
> >> dependencies into a View component... it seems Parsley can only
inject
> >> into objects that have been created in the Parsley config file
... and
> >> because View components are instantiated by the Flex framework, from
> >> what I can tell Parsley has no way to reference them... this has the
> >> unpleasant side-effect of requiring all my View code to access the
> >> FrontController directly through the FrontController.root static
> >> property.
> >>
> >> In fact, the FrontController class is bugging me -- it is a concrete
> >> class with no abstract interface I can code to. It's making me
nervous
> >> about lock-in to the Parsley framework.
> >>
> >> Kinda goes against the whole IoC thing, no?
> >>
> >> PPS And yeah, I will post this to the Parsley forums, but I want the
> >> esteemed opinion of those on this list too!
> >>
> >> 
> >>
> >> --
> >> Flexcoders Mailing List
> >> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >> Alternative FAQ location:
> >>
> >>
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> >> Search Archives:
> >> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> >> Links
> >>
> >>
> >>
> >
> >
>




[flexcoders] Does anyone know ANYTHING about AS Webservices?

2008-12-08 Thread wkolcz
I created a simple web service using ColdFusion
CFC. It takes a struct and inserts the info into the database. Works
fine from a direct call using CF's createObject("webservice") so I know
it works...

However in AS, I am getting this error:
faultCode:DecodingError faultString:'SOAP Response cannot be decoded. Raw 
response: ' faultDetail:'null'

Here is my Web Service Script:
var ws:WebService = new WebService();
ws.wsdl = "https://ummciisdevweb22.umich.edu/videotracking/trackerDAO.cfc?wsdl";;
ws.addEventListener(FaultEvent.FAULT, alertFault);
ws.loadWSDL();
ws.countIt({trackData:trackInfo});

I
have looked at 100 different examples and none of them work. Does
ANYONE know how I can get this to work? I have a Wednesday deadline to
get this thing to work.


[flexcoders] Create popup that speaks to JavaScript

2008-12-08 Thread oneworld95
I've been tasked with creating this in the next 24 hours,
 - When an HTML page loads, a DIV tag pops up a Flex app ONLY if a
cookie on the user's machine has expired. Otherwise, it wouldn't show it.
 - In the Flex app, it has a little button, "Do not show again" that
communicates with a JavaScript library to set the cookie.
 - The Flex app needs to have a semi-transparent background so the
HTML page underneath can be seen.

Does anyone have an example of something like this? This is urgent!
Thanks much.

-Alex



Re: [flexcoders] errorTip fontSize break the tooltip? Possible bug?

2008-12-08 Thread Fotis Chatzinikos
bump :-)

Sorry did not get a reply on this... Could somebody test? Alex?

On Thu, Dec 4, 2008 at 1:01 PM, fotis.chatzinikos <
[EMAIL PROTECTED]> wrote:

>   Hi, the following works:
>
> .errorTip
> {
> color: #FF;
> /*fontSize: 11;*/
> fontWeight: "bold";
> shadowColor: #00;
> borderColor: #FF;
> borderStyle: "errorTipAbove";
> paddingBottom: 4;
> paddingLeft: 4;
> paddingRight: 4;
> paddingTop: 4;
> }
>
> If I un-comment fontSize, the font gets bigger but the tooltip text
> gets outside of the tooltips 'area'. Ie text length is 200 pixels and
> tooltips area 150 pixels... Is the tooltip's area calculations
> hardcoded to font size 9?
>
> Fotis
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],


RE: [flexcoders] mx:httpservice and/or mx:request strips namespace information from posted messag

2008-12-08 Thread Tracy Spratt
First, change your resultFormat to use "e4x".  "xml" is the legacy
object.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of anonauser
Sent: Friday, December 05, 2008 5:49 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mx:httpservice and/or mx:request strips namespace
information from posted messag

 

Hi,

Can someone tell me why, when I use:

http://server:8080/webservice/url
 "
useProxy="false">


http://schemas.xmlsoap.org/soap/envelope/
 " 
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/
 " 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
 " 
xmlns:xsd="http://www.w3.org/2001/XMLSchema
 " 
xmlns:ns1="http://rts.splwg.com/webservices/
 " 
xmlns:ns2="http://rts.splwg.com/webservices/packets
 " 
xmlns:ns3="http://rts.splwg.com/webservices/fields
 ">
 








And when I sniff the message between the .swf and the webservice, the
XML posted looks like:







i.e.) it strips my namespace information. This causes a version error
at the AXIS webservice.


http://schemas.xmlsoap.org/soap/envelope/
 "
xmlns:xsd="http://www.w3.org/2001/XMLSchema
 "
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
 ">

http://schemas.xmlsoap.org/soap/actor/next
 "
soapenv:mustUnderstand="0">





soapenv:VersionMismatch
Version Mismatch

http://xml.apache.org/axis/ 
">atldev15





I know this may be an un-conventional way to call a webservice Any
ideas or suggestions are appreciated.

 



RE: [flexcoders] Re: How to display special characters like ° in ComboBox list

2008-12-08 Thread Tracy Spratt
Huh, I guess I did not understand what he was saying.  I will look into that.

Thanks,

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of valdhor
Sent: Monday, December 08, 2008 9:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to display special characters like ° in ComboBox 
list

 

Tracy

Aaron is right. Just copy and paste into ActionScript. Vis:


http://www.adobe.com/2006/mxml"; layout="absolute" 
backgroundColor="#FF"
creationComplete="onCreationComplete()">







Steve

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Thanks. But I have just learned, this only works with declarative mxml.
> 
> If you want to crate the special char in Actionscript, you must use the 
> hex/Unicode character, that has the format \u.
> 
> Tracy
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aaron 
> Hardy
> Sent: Saturday, December 06, 2008 7:43 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] How to display special characters like ° in 
> ComboBox list
> 
> Go to a page like this one:
> 
> http://www.degraeve.com/reference/specialcharacters.php
> 
> Copy the actual character (not the HTML representation) and paste it 
> into your code. Bada bing bada boom.
> 
> Aaron
> 
> Tracy Spratt wrote:
> >
> > The special character numeric references work fine in Label and Text 
> > and such, but are interpreted literally in a ComboBox's drop list.
> >
> > Any sugestions?
> >
> > Tracy
> >
> > 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>

 



[flexcoders] Re: Auto expand TreeView on open - How?

2008-12-08 Thread jer_ela
I tried 

menuTree.openItems = menuData..node; 

but the tree doesn't expand.

What does work for me is 

callLater(menuTree.expandChildrenOf, [menuTree.dataProvider[0], true]);

--- In flexcoders@yahoogroups.com, "Paul Kukiel" <[EMAIL PROTECTED]> wrote:
>
> I was stuck with this aswell a while ago this is my solution:
> 
>  
> 
> 
> 
> http://www.adobe.com/2006/mxml";
layout="absolute"
> creationComplete="init()" >
> 
>   
> 
>   
> 
> private function init():void{
> 
>   menuTree.openItems = menuData..node;
> 
> }
> 
> 
> 
>   
> 
>
> 
> 
> 
>   
> 
> 
> 
> 
> 
>   
> 
>  
> 
>
> 
>  
> 
>
> 
>   
> 
>  
> 
>   
> 
>
>  height="224" labelField="@label" dataProvider="{menuData}"/>
> 
>  
> 
> 
> 
>  
> 
>  
> 
> Paul K
> 
>  
> 
>  
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of pbrendanc
> Sent: Thursday, 4 December 2008 3:16 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Auto expand TreeView on open - How?
> 
>  
> 
> I want to auto expand my menu treeview immediately on open - the
> following code is called from thecreationComplete="initTree();" and
> expands the first node only. 
> 
> Is there a way to expand all nodes - I can't seem to get this to work.
> (Other have reported problems so I wonder if this is supported)?
> 
> TIA,
> Patrick
> 
> (The data provider for the tree is an XMLList)
> 
>  
> 
> 
> 
> 
> 
> 
>  
> 
> private function initTree():void {
> 
> //Expands first visible Tree Item
> menuTree.expandItem(menuTree.firstVisibleItem,true); 
> }
>




Re: [flexcoders] AIR as GUI on Linux

2008-12-08 Thread Tom Chiverton
On Sunday 07 Dec 2008, Ben Cessa wrote:
> doubt here is this: what's the best way to communicate which such
> programs from an AIR application or what can I use as middleware
> between both.

You'd need a Java wrapper, probably.
Check the archives.

-- 
Tom Chiverton
Helping to authoritatively disseminate cutting-edge integrated high-yield 
end-to-end mindshares





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

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

CONFIDENTIALITY

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

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> 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] txtbx focus at login

2008-12-08 Thread Tom Chiverton
On Friday 05 Dec 2008, Tracy Spratt wrote:
> window.onload = setFocusOnLoad;

As an aside, if there's any client-side framework or other code that also 
hooks the event, you've just broken it (or it's broken you if it runs 
later) :-)

Something like http://snipplr.com/view/561/add-event-listener/ is a better way 
to do it.

-- 
Tom Chiverton
Helping to administratively brand essential next-generation customized 
eligible communities





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

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

CONFIDENTIALITY

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

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> 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] Re: Using japanese langiage in my application

2008-12-08 Thread ross_w_henderson
Naveen,

Hi.  Are you already familiar with embedding fonts in a Flex
application?  And, if you are, are you using the programmatic
approach, or the SWF approach?

You've probably already explored this, but one other option is to just
use the _sans system font, rather than embed a Japanese font.  We do
this for super large character sets (like Japanese).  Of course, it
doesn't look nearly as nice.


Ross


--- In flexcoders@yahoogroups.com, SAAGAR SHETTY
<[EMAIL PROTECTED]> wrote:
>
> Hi Naveen,
> 
> Try saving the file in UTF-8 format and then paste the Japanese word
into flex application. Flex supports Internationalization and it
works. Just make sure that the file you have created is in UTF-8 format
> 
> 
> Thanks,
> Saagar
> 
> 
> 
> 
> 
> From: Naveen Booma <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Monday, 8 December, 2008 9:02:32 AM
> Subject: [flexcoders] Using japanese langiage in my application
> 
> 
> Hi all,
> 
> Can anyone please tell me how to embed Japanese font in Flex ? I
tried installing the Japanese font in my local system and I when I do
a copy past Japanese language  on my flex builder, it does not support
the fonts and so it displays in English..  
> I wanted to know how to display different languages in a text box ?
> 
> It would be great if anyone can help me out with this issue ASAP..
> 
> Thanks,
> Flexmachine
> 
> 
> 
> 
>   Get perfect Email ID for your Resume. Grab now
http://in.promos.yahoo.com/address
>




[flexcoders] Re: Loading swf with flashvars into Flex

2008-12-08 Thread ericbichara
My bad, i got it to work now, one thing to note is that i had to
change my init function (which reads the parameters in the child swf)
to be triggered on applicationComplete instead of createComplete.
Thanks for you help!

/Eric

--- In flexcoders@yahoogroups.com, "Fotis Chatzinikos"
<[EMAIL PROTECTED]> wrote:
>
> If you read Paul's link you will see that are other ways to read
parameters
> than urlvars. As you do not have access to url vars when loading inside
> another swf use the technique described in the post...
> 
> On Mon, Dec 8, 2008 at 4:28 PM, ericbichara <[EMAIL PROTECTED]> wrote:
> 
> >   Appreaciate the help but thats not what i was asking. I am
loading an
> > swf into another swf and need the swf to be loaded using flashvars
> > parameters. Loading this swf from an html file with flashvars works
> > fine but not from another swf. :-)
> >
> >
> > --- In flexcoders@yahoogroups.com ,
"Paul
> > Andrews"  wrote:
> > >
> > >
> > > - Original Message -
> > > From: "ericbichara" 
> > > To: >
> > > Sent: Monday, December 08, 2008 12:25 PM
> > > Subject: [flexcoders] Loading swf with flashvars into Flex
> > >
> > >
> > > > Hi,
> > > >
> > > > I have several widgets which use flashvars and i wanted to
create a
> > > > gallery application to showcase them in flex. I need to
therefore load
> > > > them into flex and pass flashvars parameters into the loaded
swfs. I
> > > > tryed the following:
> > > >
> > > >  > source='http://myurl/myapp.swf?param1=blah¶m2=blih'/>
> > > >
> > > > but the loaded swf says the params are null. Is there some way
to do
> > > > this? I dont want to have to change all the widgets to be able to
> > > > recieve these parameters some other way than flashvars as they
do now.
> > > > Thanks in advance.
> > >
> > > Google is your friend..
> > >
> > >
> >
http://blogs.adobe.com/pdehaan/2006/07/using_flashvars_with_actionscr.html
> > >
> > >
> > > >
> > > > /Eric
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> Fotis Chatzinikos, Ph.D.
> Founder,
> Phinnovation
> [EMAIL PROTECTED],
>




[flexcoders] Re: e4x Strings?

2008-12-08 Thread Paul Fischer
Hey Artc, I was looking to solve the same problem. I created a set of
data component classes (charts and grids) have properties for the
datasource URL and xpath. My first attempt was using the descendants
method, but it was limited to just returning the repeating nodes from
any parent nodes. I want to be able to use any valid xpath expression
to evaluate the xml from the datasource which will support specific
node locations and also support filtering data.

The only way I could make this work is using an external 3rd party
library. I am using http://code.google.com/p/xpath-as3. It works but
is noticeably slow on datasets exceeding 1000 rows. 

This really should be included in the Actionscript core XML classes. I
have worked with Java XML libraries such as Axiom and JDOM which
support xpath expression evaluation directly.

/Paul



[flexcoders] Re: 2032 Stream Error - Deploying XML Application Configuration Data

2008-12-08 Thread oneworld95
Judah's blog has the most comprehensive info on this infamous error:
http://www.judahfrangipane.com/blog/?p=87

-Alex

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I have had so many problems using relative paths that I do not use them
> any more.
> 
>  
> 
> Instead, I pass fully qualified "root" url(s) into my apps via
> flashvars.  I no longer have any pathing issues.  This also allows for
> multiple launch confgurations in development and for configuring
> multiple implementations in production.
> 
>  
> 
> Let me know if you want some code snippets.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of pbrendanc
> Sent: Sunday, December 07, 2008 2:29 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] 2032 Stream Error - Deploying XML Application
> Configuration Data
> 
>  
> 
> I have created some application configuration files (e.g. app menu)
> that I need to load during startup. In development I have defined the
> following service that loads this data from a local file. 
> 
> mx:HTTPService id="appmenuService" url="data/appmenu.xml
> resultFormat="e4x" />
> 
> I' m trying to deploy this app to a google site and am getting 2032
> errors. This is the error:
> 
> [RPC Fault faultString="HTTP request error"
> faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent
> type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error
> #2032: Stream Error. URL:
> http://8882909683684169354-a-1802744773732722657-s-sites.googlegroups.co
> m/site/myflexdemos/Home/applinks/appmenu.xml
>  om/site/myflexdemos/Home/applinks/appmenu.xml> "].
> URL: appmenu.xml"]
> 
> I was hoping to be able to load this data from the XML files that I
> have uploaded. (All the files are in the same domain so I don't think
> crossdomain.xml is required here - I did add a cross domain file, but
> still get the error.)
> 
> I'm not sure if this is a Path/Directory error or if I need to create
> a new application service on the server to retrieve that data. (This
> would seem to defeat the purpose of having XML configuration files in
> the first place).
> 
> The more general question here is how to retrieve data from XML data
> that resides on the host?
> 
> Any suggestions?
> TIA,
> Patrick
>




[flexcoders] Re: How to display special characters like ° in ComboBox list

2008-12-08 Thread valdhor
Tracy

Aaron is right. Just copy and paste into ActionScript. Vis:


http://www.adobe.com/2006/mxml";
layout="absolute" backgroundColor="#FF"
 creationComplete="onCreationComplete()">
 
 
 
 



Steve

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Thanks.  But I have just learned, this only works with declarative
mxml.
>
> If you want to crate the special char in Actionscript, you must use
the hex/Unicode character, that has the format \u.
>
> Tracy
>
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Aaron Hardy
> Sent: Saturday, December 06, 2008 7:43 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] How to display special characters like °
in ComboBox list
>
> Go to a page like this one:
>
> http://www.degraeve.com/reference/specialcharacters.php
>
> Copy the actual character (not the HTML representation) and paste it
> into your code. Bada bing bada boom.
>
> Aaron
>
> Tracy Spratt wrote:
> >
> > The special character numeric references work fine in Label and Text
> > and such, but are interpreted literally in a ComboBox's drop list.
> >
> > Any sugestions?
> >
> > Tracy
> >
> >
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-\
1e62079f6847
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links
>



[flexcoders] Re: AMF3 ping???

2008-12-08 Thread valdhor
Thanks for the explanation Seth.



Best Regards



Steve


--- In flexcoders@yahoogroups.com, Seth Hodgson <[EMAIL PROTECTED]> wrote:
>
> The messaging/transport layer in Flex 2 and 3 is based on channels.
A channel always handshakes with a server endpoint before passing
application-generated messages/requests over its connection.
> 
> So you'll see a ping command issued each time a channel initially
connects. If a request fails due to a network problem such that the
channel moves to a disconnected state, the next message/request the
app sends will trigger it to reconnect, and it'll do so by sending
another ping command.
> 
> But this only happens when a channel is attempting to move from a
disconnected state to a connected state.
> 
> The one exception to this rule is when you're using an HTTPService
or WebService component that's hitting a remote endpoint directly
rather than going through the proxy service in BlazeDS or LCDS. This
scenario uses a "direct" channel that always considers itself connected.
> 
> Best,
> Seth
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of valdhor
> Sent: Friday, December 05, 2008 6:31 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: AMF3 ping???
> 
> I don't know about BlazeDS but with WebORB you get a ping (It's
> actually called a "Command Message") just before the first server
> access. Any server requests after that are only sent once (ie. no
> "Command Message").
> 
> Now, it seems to me that this will work this way for a while and the
> this "Command Message" is sent again. I don't know if this happens
> automatically after a certain amount of idle time or whatever.
> 
> Has anyone else seen this? Has anyone read the AMF3 spec to see if
> this is standard behaviour?
> 
> --- In flexcoders@yahoogroups.com, "andrea bianchi"  wrote:
> >
> > Hi,
> >
> > debugging my application I discovered that every request produces
> two POSTs.
> > I'm connecting a RemoteObject to an AMFEndpoint of BlazeDS.
Reading the
> > content of the POST data (using HTTPFox) I guessed one is a sort of
> ping,
> > the other is the "real" request. The application works fine but I
> actually
> > don't understand the need of this "ping" (and the documentation
doesn't
> > speak about it).
> > Actually this behaviour is confirmed from the Flashlog.txt:
> >
> > 08:25:44.692 [INFO] mx.messaging.Producer
> > '5DE3A67A-5244-ACD0-5814-0640997D7449'
> > producer sending message '6EADA155-B3EE-4DC4-6AB5-06409DF3CAEE'
> > 08:25:44.718 [DEBUG] mx.messaging.Channel 'amf' pinging endpoint.
> > 08:25:44.750 [INFO] mx.messaging.Channel 'amf' channel is connected.
> > 08:25:44.755 [DEBUG] mx.messaging.Channel 'amf' channel sending
message:
> > (mx.messaging.messages::RemotingMessage)#0
> > ...
> >
> > Can someone please clarify this? I tried playing with BlazeDS
> configuration
> > files but I didn't find anything. Is there any way to disable the
> "ping"?
> >
> > Thank you,
> >
> > Andrea
> >
>




Re: [flexcoders] Re: Loading swf with flashvars into Flex

2008-12-08 Thread Fotis Chatzinikos
If you read Paul's link you will see that are other ways to read parameters
than urlvars. As you do not have access to url vars when loading inside
another swf use the technique described in the post...

On Mon, Dec 8, 2008 at 4:28 PM, ericbichara <[EMAIL PROTECTED]> wrote:

>   Appreaciate the help but thats not what i was asking. I am loading an
> swf into another swf and need the swf to be loaded using flashvars
> parameters. Loading this swf from an html file with flashvars works
> fine but not from another swf. :-)
>
>
> --- In flexcoders@yahoogroups.com , "Paul
> Andrews" <[EMAIL PROTECTED]> wrote:
> >
> >
> > - Original Message -
> > From: "ericbichara" <[EMAIL PROTECTED]>
> > To: >
> > Sent: Monday, December 08, 2008 12:25 PM
> > Subject: [flexcoders] Loading swf with flashvars into Flex
> >
> >
> > > Hi,
> > >
> > > I have several widgets which use flashvars and i wanted to create a
> > > gallery application to showcase them in flex. I need to therefore load
> > > them into flex and pass flashvars parameters into the loaded swfs. I
> > > tryed the following:
> > >
> > >  source='http://myurl/myapp.swf?param1=blah¶m2=blih'/>
> > >
> > > but the loaded swf says the params are null. Is there some way to do
> > > this? I dont want to have to change all the widgets to be able to
> > > recieve these parameters some other way than flashvars as they do now.
> > > Thanks in advance.
> >
> > Google is your friend..
> >
> >
> http://blogs.adobe.com/pdehaan/2006/07/using_flashvars_with_actionscr.html
> >
> >
> > >
> > > /Eric
> >
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
[EMAIL PROTECTED],


[flexcoders] Re: Multithreading Concept in Flex

2008-12-08 Thread Cato Paus
Go and wote for Change :)
http://bugs.adobe.com/jira/browse/FP-93 


--- In flexcoders@yahoogroups.com, jitendra jain
<[EMAIL PROTECTED]> wrote:
>
> 
> 
> Hi friends,
>    
>     I read Alex's PseudoThread blog and it is quite
useful information. My frustration starts with Flex consumer that
receives 25-30 messages/Second. Depending on this messages i run some
special effects like move , rotating etc. Everything is working fine.
But my user can't input or open dialog etc when this effects and
consumer is running. I tried with event priorities but it is not
helping. Let me know your views. Welcome for your vital suggestions.
>  Thanks,
> 
> with Regards,
> Jitendra Jain
> 
> 
> Connect with friends all over the world. Get Yahoo! India Messenger.
> 
> 
>   Unlimited freedom, unlimited storage. Get it now, on
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/
>




[flexcoders] Re: Loading swf with flashvars into Flex

2008-12-08 Thread ericbichara
Appreaciate the help but thats not what i was asking. I am loading an
swf into another swf and need the swf to be loaded using flashvars
parameters. Loading this swf from an html file with flashvars works
fine but not from another swf. :-)


--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> 
> - Original Message - 
> From: "ericbichara" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, December 08, 2008 12:25 PM
> Subject: [flexcoders] Loading swf with flashvars into Flex
> 
> 
> > Hi,
> > 
> > I have several widgets which use flashvars and i wanted to create a
> > gallery application to showcase them in flex. I need to therefore load
> > them into flex and pass flashvars parameters into the loaded swfs. I
> > tryed the following:
> > 
> > 
> > 
> > but the loaded swf says the params are null. Is there some way to do
> > this? I dont want to have to change all the widgets to be able to
> > recieve these parameters some other way than flashvars as they do now.
> > Thanks in advance.
> 
> Google is your friend..
> 
>
http://blogs.adobe.com/pdehaan/2006/07/using_flashvars_with_actionscr.html
> 
> 
> > 
> > /Eric
>




Re: [flexcoders] Package name refactoring in FLEX Builder

2008-12-08 Thread Christophe Jolif
 From what I've seen at MAX it should be available in Flex Builder 4 (aka 
Gumbo).

--
Christophe
http://blogs.ilog.com/elixir/author/cjolif

Josh McDonald wrote:
> There's no functionality for that in Builder 3. Frankly before they 
> worry about that, I'd like it if regular old "rename" took less than 2 
> minutes on the odd occasion where it doesn't simply hang Eclipse (unless 
> renaming private members, that works fine).
> 
> -Josh
> 
> On Mon, Dec 8, 2008 at 8:39 PM, amolyk <[EMAIL PROTECTED] 
> > wrote:
> 
> Hi All,
> 
> I have seen the refactoring feature available in FB for file names and
> variable name refactoring. In my project I have to refactor the package
> name. I don't see any option to do the refactoring at the
> package/folder level in FB. Since the package is renamed all the
> references needs to be changed. I am afraid that I have to do that
> manually, which is huge task and error prone. Please if anybody knows
> the option that refactors all the references automatically, please let
> me know.
> 
> Thanks,
> Amol
> 
> 
> 
> 




Re: [flexcoders] Package name refactoring in FLEX Builder

2008-12-08 Thread Josh McDonald
There's no functionality for that in Builder 3. Frankly before they worry
about that, I'd like it if regular old "rename" took less than 2 minutes on
the odd occasion where it doesn't simply hang Eclipse (unless renaming
private members, that works fine).

-Josh

On Mon, Dec 8, 2008 at 8:39 PM, amolyk <[EMAIL PROTECTED]> wrote:

> Hi All,
>
> I have seen the refactoring feature available in FB for file names and
> variable name refactoring. In my project I have to refactor the package
> name. I don't see any option to do the refactoring at the
> package/folder level in FB. Since the package is renamed all the
> references needs to be changed. I am afraid that I have to do that
> manually, which is huge task and error prone. Please if anybody knows
> the option that refactors all the references automatically, please let
> me know.
>
> Thanks,
> Amol
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


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

Like the cut of my jib? Check out my Flex blog!

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]
:: http://flex.joshmcdonald.info/
:: http://twitter.com/sophistifunk


Re: [flexcoders] Parsley MVC :: some thoughts

2008-12-08 Thread Paul Andrews
They are asynchronous but they aren't concurrent.

Paul
- Original Message - 
From: "Jules Suggate" <[EMAIL PROTECTED]>
To: 
Sent: Monday, December 08, 2008 1:59 PM
Subject: Re: [flexcoders] Parsley MVC :: some thoughts


>  head explodes heh!
>
> I have been happily thinking the whole time that events really *are*
> asynchronous, but that's obviously not true. Reality check...
>
> Thanks guys. I think I might have run out of reasons *not* to use Parsley 
> :)
>
> On Tue, Dec 9, 2008 at 01:06, Paul Andrews <[EMAIL PROTECTED]> wrote:
>> - Original Message -
>> From: "Jules Suggate" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Monday, December 08, 2008 6:49 AM
>> Subject: [flexcoders] Parsley MVC :: some thoughts
>>
>>> Anyone used Parsley MVC? I'm a bit confused by it.
>>>
>>> There's the standard MVC FrontController class, which exposes a method
>>> dispatchEvent() for app-wide notifications. It also has a concept of
>>> interceptors which is nice... so far so good.
>>>
>>> BUT... that dispatchEvent() call executes *synchronously*. Control
>>> won't return to your code until *every single listener* to that event
>>> finishes executing!! In a single-threaded environment like Flash
>>> Player, I would have thought this to be a disastrous design
>>> decision... can anyone shed any light on this, as I'm sure there's
>>> something I'm missing here!
>>
>> Why is it disastrous? The flash player is single threaded so it's not
>> possible have concurrently running code (something I think that Adobe 
>> should
>> address in the future) so why shouldn't all the waiting listeners be 
>> called?
>>
>> It's not possible to resume execution elsewhere while a listener is still
>> active because that would require semaphores to handle pseudo concurrency
>> and I'm sure that holds true not just for the listeners themselves but 
>> also
>> for the mechanism that calls the waiting listeners.
>>
>> Paul
>>
>>>
>>> TIA,
>>> +J
>>>
>>> PS another thing I haven't figured out yet is how to inject
>>> dependencies into a View component... it seems Parsley can only inject
>>> into objects that have been created in the Parsley config file ... and
>>> because View components are instantiated by the Flex framework, from
>>> what I can tell Parsley has no way to reference them... this has the
>>> unpleasant side-effect of requiring all my View code to access the
>>> FrontController directly through the FrontController.root static
>>> property.
>>>
>>> In fact, the FrontController class is bugging me -- it is a concrete
>>> class with no abstract interface I can code to. It's making me nervous
>>> about lock-in to the Parsley framework.
>>>
>>> Kinda goes against the whole IoC thing, no?
>>>
>>> PPS And yeah, I will post this to the Parsley forums, but I want the
>>> esteemed opinion of those on this list too!
>>>
>>> 
>>>
>>> --
>>> Flexcoders Mailing List
>>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>>> Alternative FAQ location:
>>>
>>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>>> Search Archives:
>>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>>> Links
>>>
>>>
>>>
>>
>>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> Links
>
>
>



Re: [flexcoders] Parsley MVC :: some thoughts

2008-12-08 Thread Jules Suggate
 head explodes heh!

I have been happily thinking the whole time that events really *are*
asynchronous, but that's obviously not true. Reality check...

Thanks guys. I think I might have run out of reasons *not* to use Parsley :)

On Tue, Dec 9, 2008 at 01:06, Paul Andrews <[EMAIL PROTECTED]> wrote:
> - Original Message -
> From: "Jules Suggate" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, December 08, 2008 6:49 AM
> Subject: [flexcoders] Parsley MVC :: some thoughts
>
>> Anyone used Parsley MVC? I'm a bit confused by it.
>>
>> There's the standard MVC FrontController class, which exposes a method
>> dispatchEvent() for app-wide notifications. It also has a concept of
>> interceptors which is nice... so far so good.
>>
>> BUT... that dispatchEvent() call executes *synchronously*. Control
>> won't return to your code until *every single listener* to that event
>> finishes executing!! In a single-threaded environment like Flash
>> Player, I would have thought this to be a disastrous design
>> decision... can anyone shed any light on this, as I'm sure there's
>> something I'm missing here!
>
> Why is it disastrous? The flash player is single threaded so it's not
> possible have concurrently running code (something I think that Adobe should
> address in the future) so why shouldn't all the waiting listeners be called?
>
> It's not possible to resume execution elsewhere while a listener is still
> active because that would require semaphores to handle pseudo concurrency
> and I'm sure that holds true not just for the listeners themselves but also
> for the mechanism that calls the waiting listeners.
>
> Paul
>
>>
>> TIA,
>> +J
>>
>> PS another thing I haven't figured out yet is how to inject
>> dependencies into a View component... it seems Parsley can only inject
>> into objects that have been created in the Parsley config file ... and
>> because View components are instantiated by the Flex framework, from
>> what I can tell Parsley has no way to reference them... this has the
>> unpleasant side-effect of requiring all my View code to access the
>> FrontController directly through the FrontController.root static
>> property.
>>
>> In fact, the FrontController class is bugging me -- it is a concrete
>> class with no abstract interface I can code to. It's making me nervous
>> about lock-in to the Parsley framework.
>>
>> Kinda goes against the whole IoC thing, no?
>>
>> PPS And yeah, I will post this to the Parsley forums, but I want the
>> esteemed opinion of those on this list too!
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location:
>>
>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> Links
>>
>>
>>
>
> 


[flexcoders] hiding parts of controls across the edges of their parents (masking?)

2008-12-08 Thread simonjpalmer
I have a canvas within a canvas and the outer canvas has rounded
corners.  The inner one is basically a strip along the right hand side
of the outer canvas which I fill with a colour depending on the state
of some internal variable.  There are a couple of text fields in the
outer canvas too, but they are irrelevant to the problem at hand.

I want the inner one to have square corners but for its right hand
edge to be trimmed or masked so that it doesn't appear outside the
outer canvas's rounded corners.

It's harder to describe than it is to see in reality.

Here is my code which when displayed shows the little corners of the
inner canvas poking out of the nicely rounded edges of its parent.

http://www.adobe.com/2006/mxml"; 
width="225" height="100" 
cornerRadius="8" 
borderStyle="solid" borderColor="#c0c0c0" 
xmlns:ns1="src.com.dsl.controls.*">













[flexcoders] Some questions

2008-12-08 Thread Olivier Ziller

hello,

we're in the process of evaluating flex to migrate old Delphi desktop 
applications.


and i have a couple of questions :

   * is it possible, with flex, to drive a card reader? i mean reading
 and writing to a mifare card?
   * if not possible with flex, is it with air?
   * for business applications, how do you handle all printing needs?
 we will use a java backend (blazeds) so is it the best to generate
 pdf on the server side?
   * i've read that file upload is not working on firefox when using
 https. If true, it's a big issue. Could you confirm this problem?

thanks in advance

best regards



[flexcoders] Package name refactoring in FLEX Builder

2008-12-08 Thread amolyk
Hi All,

I have seen the refactoring feature available in FB for file names and 
variable name refactoring. In my project I have to refactor the package 
name. I don't see any option to do the refactoring at the 
package/folder level in FB. Since the package is renamed all the 
references needs to be changed. I am afraid that I have to do that 
manually, which is huge task and error prone. Please if anybody knows 
the option that refactors all the references automatically, please let 
me know.

Thanks,
Amol
 



[flexcoders] Item Renderer focus on subcomponent in List

2008-12-08 Thread boilerman1984
I've got a List of Item Renderers that contain inputs and a combobox.
 When the List gets Focus, the item renderer displays its default,
text input focus instead of the item renderer.  How can I get focus to
be set on an item renderer component instead of the whole item
renderer itself?



[flexcoders] AIR as GUI on Linux

2008-12-08 Thread Ben Cessa
I'm starting with Flex/AIR and I wanna build some apps as GUI for some  
shell programs like: portage from Gentoo and a DHCP server, may big  
doubt here is this: what's the best way to communicate which such  
programs from an AIR application or what can I use as middleware  
between both.

I really hope that someone with more experience can point me in the  
right direction on this one. Thanx a lot for your help.


Re: [flexcoders] Re: interface layout help

2008-12-08 Thread Thibaud Van Vreckem
my 2 cents:
If people are going to choose between a set of filtered house items you have
to show them houses rather than numbers.(which they have already filtered)
The datagrid might not be the best choice to display images.
If you absolutely need the datagrid, you could perhaps add another view
accessible through a switch to jump from the datagrid to a tilelist (or
repeater).


On Mon, Dec 8, 2008 at 7:49 AM, stinasius <[EMAIL PROTECTED]> wrote:

>   OK this is the description of the usage pattern. the application is a
> real estate portal where people can easily find housing. now when
> someone visits the portal they do a search for property of their
> choice using different criteria. the search results show up in a
> datagrid and when he/she have identified what they want then they can
> click on a row in the datagrid to view details of the property which
> show up in a tab navigator that has two tabs one for info on the
> property and the other for pictures of the property plus when the
> person clicks on a row in the datagrid the map zooms in on the
> property to show surrounding areas and also a virtual tour is shown in
> the video player. all that shows up at the same time on the same page.
> now is there a better way to do it?
>
>  
>


[flexcoders] Newbie HELP

2008-12-08 Thread Tony
Ok.  I have been working through a Friends of Ed book called
Foundation Flex for Designers.  In chapter 8, the idea is to build a
external xml file controlled photo gallery.  Screen will be split
horizontally with one side being thumbnails of the larger pictures
stored externally to the application.  The other side (right side) is
supposed to display the targeted picture in full dimensions. I have
not got to the right side yet.  I am to the point where thumb nails
should be showing up in the thumbnail pane.  But I keep getting an
error upon runtime out of flex.  Can any one help???  I have put a zip
file in the files area of this group that contains a folder for the
picture assets and xml file plus all the flex files.  Can someone tell
me what I did wrong??

The next step will be to create a basic css file.  But my thumb nails
should still be showing up in the pane (or is it "pain").

respectfully,
Mini-me



[flexcoders] Foreign Keyboard Mappings

2008-12-08 Thread markdemich
I have a flash application that's being used in other countries.  
I'm having reports that certain keys from certain keyboards are not 
getting translated properly.

My application uses a custom "equation editor" that I wrote.  I'm 
using key up and key down handlers to capture key strokes.  I can't 
believe the flash doesn't support character translations out of the 
box.  

I know some people out there us a hidden TextField to capture 
the "translated text", but I really don't want to do there.  I 
suspect that will mess up a lot of my focus code and cursor movement 
code.

Has anyone tackled this another way?  One idea I had was to somehow 
come up with a keyboard mapping application, that would require the 
user to "learn" the keys.  I would then store some sort of a lookup 
table inside a shared object.  I'm not sure what the interface would 
look like, but it's an idea.

Any other ideas would be appreciated.





[flexcoders] e4x Strings?

2008-12-08 Thread artclifford
I am familiar with e4x and know generally how to get information I need 
when I know the structure of an XML file. I was going to put together a 
utility as tutorial for new-hires to allow trying e4x to get different 
values.

I quickly ran into the problem that I cannot see a way to allow this to 
happen without creating my own e4x interpreter. Am I missing something? 
If I wanted a user to enter a string like "[EMAIL PROTECTED]" and 
want to get the xmllist matching that e4x string on an XML object can I 
do that? I know that [EMAIL PROTECTED] will give me what I 
want, I even know that xmlVar["somenode"]["@someAttribute"] will give 
me what I want. But xmlVar["[EMAIL PROTECTED]"] doesn't work. Nor 
does xmlVar.decendants("[EMAIL PROTECTED]");

I know Adobe has the D.eval stuff for providing eval in AS, but I was 
hopeing for a solution that doesn't require external libraries.

Thanks for any input,

ArtC



[flexcoders] Tree has same number of items after expand but not after change

2008-12-08 Thread flex_geek
Hi, all,

In Flex 3 I have a Tree control that is doing dynamic loading of 
children. To simplify: I do a search that retrieves a root set of 15 
folders. When I click on a folder, a function executes that retrieves 
the children and expands the folder to reveal them. This works 
correctly - the tree now displays the original 15 folders plus all 
the children of the folder I clicked on. 

On the other hand, if instead of clicking on the folder, I click on 
the plus sign (or on Mac the triangle) to the left of the folder, the 
folder opens and displays items, but the total number of items 
displaying in the tree is only 15 (the same number as the original 
number of folders) - so some of the folders disappear, and only a few 
children display in the open folder. If I close the folder using the 
minus and reopen it with the plus, all the items that should be 
displaying do then appear (i.e., the 15 folders plus all the 
children).

What is odd is that I am using basically the same function for both 
events, the main difference being the event that is being passed to 
it.

Here are the two functions:

private function handleTreeChange( event:Event ):void
 {
   var selectedItem:Object = Tree( event.target ).selectedItem;

   if( selectedItem is FolderNode )
fetchFolderInfo( FolderNode( selectedItem ) );
 }

private function handleRetrieve( event:TreeEvent ):void
  { 
  if( event.item is FolderNode && event.opening )
   fetchFolderInfo( FolderNode( event.item) );
  } 

private function fetchFolderInfo( folder:FolderNode ):void
 {
  //Items contains the children of the FolderNode
  //so if the folder already has items, don't go doing
 // the whole search thing
  if( folder.Items.length != 0 )
return;

  loadingPanel.visible = true;

  catalogTreeGenerator.getFoldersOrStyles(theRootDBName, folder.Id, 
theCatalogFKName);
  catalogTreeGenerator.addEventListener("nonRootItemsArrayReady", 
addFolderItems);

   function addFolderItems(e:Event):void{   
  folder.Items = new ArrayCollection(e.currentTarget.fsItems as 
Array );
catalogTree.validateNow();
catalogTree.expandItem( folder, true, true, false );
loadingPanel.visible = false;   
catalogTreeGenerator.removeEventListener
("nonRootItemsArrayReady", addFolderItems);
}
  }

Can anyone shed any light on why clicking on the plus next to a 
folder the first time (doing the handleRetrieve function triggered 
by "itemOpening" event) would cause the tree to only display a number 
of items equal to the original number of folders, when clicking on 
the folder itself (doing the handleTreeChange function triggered 
by "change" event) causes the tree to display all the appropriate 
items?

Thanks very much for any help. 

-Flummoxed flex_geeklet




[flexcoders] help me settle an argument

2008-12-08 Thread Mike Oliver

I have a colleague that is of the opinion that SQL statements in Java Code
such as DAO classes is bad practice, that the SQL statements and parameter
tokens be externalized into Contants or property files.  I maintain that is
not only not necessary in general but given our loosely coupled service
oriented architecture the classes are largely not in any sort of complex
dependency so modifying code doesn't have the ripples of monolithic desktop
or client server applications.

So while it is true you can change the SQL statement if needed without
changing the code and even change syntax if you need to change databases,
how often does that happen anyway?  And how often do you change the SQL
without having to change the classes?

I look at DAO classes from Adobe Labs and Sun Microsystems and see SQL
statements in the code so I figure if it is good enough for them it is good
enough for us.

What say you all?
-- 
View this message in context: 
http://www.nabble.com/help-me-settle-an-argument-tp20876256p20876256.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Center Registration Point in Flex 3 (Matrix3D)

2008-12-08 Thread viatropos
Hi,

I am trying to do a basic 3d rotation of a Flex UIComponent (using Flex 3.2) 
and I can't 
make it rotate around its center.  I checked out some of Flex 4's classes, on 
how they 
accomplished the FxRotate3D effect which is centered, but it's too complex to 
just extract 
out the parts I need (and the effect is very bug prone anyway).

How do you set the UIComponent to have a center registration point if you are 
using 3D 
effects?  I've tried using the basic Matrix class, as there are some examples 
of centering 
registration points in 2D, but they don't work here.  I have done the following 
so far and 
have achieved at least a 3d rotation, but I can't control where it is (I don't 
know much 
about matrices).

myView.addEventListener(Event.ENTER_FRAME, tick);

private function tick(event:Event):void {
myView.transform.matrix3D.appendRotation(1, Vector3D.Y_AXIS)
}

I would like to be able to just have the object rotate like you would see in 
papervision 
using the camera, but I don't know where to start.

Thanks for your help.

Lance



[flexcoders] mx:httpservice and/or mx:request strips namespace information from posted messag

2008-12-08 Thread anonauser
Hi,

Can someone tell me why, when I use:

http://server:8080/webservice/url";
useProxy="false">


http://schemas.xmlsoap.org/soap/envelope/"; 

xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"; 

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:ns1="http://rts.splwg.com/webservices/"; 

xmlns:ns2="http://rts.splwg.com/webservices/packets"; 

xmlns:ns3="http://rts.splwg.com/webservices/fields";>
 









And when I sniff the message between the .swf and the webservice, the
XML posted looks like:


   
  
   


i.e.) it strips my namespace information. This causes a version error
at the AXIS webservice.



   http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  
 http://schemas.xmlsoap.org/soap/actor/next";
soapenv:mustUnderstand="0">

 
  
  
 
soapenv:VersionMismatch
Version Mismatch

   http://xml.apache.org/axis/";>atldev15

 
  
   


I know this may be an un-conventional way to call a webservice Any
ideas or suggestions are appreciated.



[flexcoders] setting over state of a button using css?

2008-12-08 Thread fl3xn00b
does anyone know how to set an overstate of a button using css???





Re: [flexcoders] Flex / Data / Create Application from Database - Can this also work as a module?

2008-12-08 Thread elfoman

Could someone explain to me how do I "wrap all the children of the mxml
file(not  
application) in a mxml component." 
I am new to flex and I don't know what that means, If someone could explain
step by step it would be really helpful. I am going to put the Database that
Flex created into an Accordion Navigator in a mxml I already have. 

Please help me, thanks.
Like Gangsta said?
-- 
View this message in context: 
http://www.nabble.com/Flex---Data---Create-Application-from-Database---Can-this-also-work-as-a-module--tp19922371p20867116.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Flex / Data / Create Application from Database - Can this also work as a module?

2008-12-08 Thread elfoman

I created a component by click on File, New Component, and copied the code
from the database aplication Flex created for me into the  New Component.

Then I inserted the new component into my Accordion and ran my main
application, the database component is there but when I click the "Save"
button nothing happens. It just stays on the same screen and doesn't save
anything to the database.

Can someone help me fix this so that I can save and return to the main
screen?

This is my project, what I have so far (only 87KB):
http://on.alfonso.googlepages.com/AgendaCalendario4.zip
-- 
View this message in context: 
http://www.nabble.com/Flex---Data---Create-Application-from-Database---Can-this-also-work-as-a-module--tp19922371p20874304.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Loading swf with flashvars into Flex

2008-12-08 Thread Paul Andrews

- Original Message - 
From: "ericbichara" <[EMAIL PROTECTED]>
To: 
Sent: Monday, December 08, 2008 12:25 PM
Subject: [flexcoders] Loading swf with flashvars into Flex


> Hi,
> 
> I have several widgets which use flashvars and i wanted to create a
> gallery application to showcase them in flex. I need to therefore load
> them into flex and pass flashvars parameters into the loaded swfs. I
> tryed the following:
> 
> 
> 
> but the loaded swf says the params are null. Is there some way to do
> this? I dont want to have to change all the widgets to be able to
> recieve these parameters some other way than flashvars as they do now.
> Thanks in advance.

Google is your friend..

http://blogs.adobe.com/pdehaan/2006/07/using_flashvars_with_actionscr.html


> 
> /Eric 



[flexcoders] Loading swf with flashvars into Flex

2008-12-08 Thread ericbichara
Hi,

I have several widgets which use flashvars and i wanted to create a
gallery application to showcase them in flex. I need to therefore load
them into flex and pass flashvars parameters into the loaded swfs. I
tryed the following:



but the loaded swf says the params are null. Is there some way to do
this? I dont want to have to change all the widgets to be able to
recieve these parameters some other way than flashvars as they do now.
Thanks in advance.

/Eric 



[flexcoders] Browser History & Firefox 3 & OS X Issue (white flashing)

2008-12-08 Thread stoff0
I was all psyched to get browser history working so easily in my app,
but now it looks like it's causing white flashing in firefox 3 and os
x. At first I thought it was just me, but it looks like the most basic
example has this effect. Take a look:

http://www.bobbyvandersluis.com/swfobject/flex3/flex_updated/DeepLinking/index.html#

(if you click the receiving tab you see the white flash in ff3)

This uses the standard adobe embed code from adobe, but it is taken
from the swfobject page: http://www.bobbyvandersluis.com/swfobject/flex3/

It seems that whenever i call setFragment on the IBrowserManager (the
call that updates the fragment) it flashes just like in the example above.

The combo that I've narrowed down to so far is the following:
 - ff3
 - os x
 - dynamic embedding
 - flash 9.114

Anyone come across this problem?



Re: [flexcoders] Parsley MVC :: some thoughts

2008-12-08 Thread Paul Andrews
- Original Message - 
From: "Jules Suggate" <[EMAIL PROTECTED]>
To: 
Sent: Monday, December 08, 2008 6:49 AM
Subject: [flexcoders] Parsley MVC :: some thoughts


> Anyone used Parsley MVC? I'm a bit confused by it.
>
> There's the standard MVC FrontController class, which exposes a method
> dispatchEvent() for app-wide notifications. It also has a concept of
> interceptors which is nice... so far so good.
>
> BUT... that dispatchEvent() call executes *synchronously*. Control
> won't return to your code until *every single listener* to that event
> finishes executing!! In a single-threaded environment like Flash
> Player, I would have thought this to be a disastrous design
> decision... can anyone shed any light on this, as I'm sure there's
> something I'm missing here!

Why is it disastrous? The flash player is single threaded so it's not 
possible have concurrently running code (something I think that Adobe should 
address in the future) so why shouldn't all the waiting listeners be called?

It's not possible to resume execution elsewhere while a listener is still 
active because that would require semaphores to handle pseudo concurrency 
and I'm sure that holds true not just for the listeners themselves but also 
for the mechanism that calls the waiting listeners.

Paul

>
> TIA,
> +J
>
> PS another thing I haven't figured out yet is how to inject
> dependencies into a View component... it seems Parsley can only inject
> into objects that have been created in the Parsley config file ... and
> because View components are instantiated by the Flex framework, from
> what I can tell Parsley has no way to reference them... this has the
> unpleasant side-effect of requiring all my View code to access the
> FrontController directly through the FrontController.root static
> property.
>
> In fact, the FrontController class is bugging me -- it is a concrete
> class with no abstract interface I can code to. It's making me nervous
> about lock-in to the Parsley framework.
>
> Kinda goes against the whole IoC thing, no?
>
> PPS And yeah, I will post this to the Parsley forums, but I want the
> esteemed opinion of those on this list too!
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> Links
>
>
>



Re: [flexcoders] Parsley MVC :: some thoughts

2008-12-08 Thread Ralf Bokelberg
> BUT... that dispatchEvent() call executes *synchronously*.

That's always the case with Flash/Flex.

Cheers
Ralf.

On Mon, Dec 8, 2008 at 7:49 AM, Jules Suggate <[EMAIL PROTECTED]> wrote:
> Anyone used Parsley MVC? I'm a bit confused by it.
>
> There's the standard MVC FrontController class, which exposes a method
> dispatchEvent() for app-wide notifications. It also has a concept of
> interceptors which is nice... so far so good.
>
> BUT... that dispatchEvent() call executes *synchronously*. Control
> won't return to your code until *every single listener* to that event
> finishes executing!! In a single-threaded environment like Flash
> Player, I would have thought this to be a disastrous design
> decision... can anyone shed any light on this, as I'm sure there's
> something I'm missing here!
>
> TIA,
> +J
>
> PS another thing I haven't figured out yet is how to inject
> dependencies into a View component... it seems Parsley can only inject
> into objects that have been created in the Parsley config file ... and
> because View components are instantiated by the Flex framework, from
> what I can tell Parsley has no way to reference them... this has the
> unpleasant side-effect of requiring all my View code to access the
> FrontController directly through the FrontController.root static
> property.
>
> In fact, the FrontController class is bugging me -- it is a concrete
> class with no abstract interface I can code to. It's making me nervous
> about lock-in to the Parsley framework.
>
> Kinda goes against the whole IoC thing, no?
>
> PPS And yeah, I will post this to the Parsley forums, but I want the
> esteemed opinion of those on this list too!
>
> 


  1   2   >