[flexcoders] Re: how do I know which object I need to expand?

2007-10-18 Thread TJ Downes
Thanks Alex

Maybe I'm misunderstanding. I would not how to get to the top level
objects, but what about the sub-level objects? Say I dont know how
many levels the collection is nested?

Let's say this is my function:

private function expandTree(event:CollectionEvent):void {
if(event.kind == CollectionEventKind.REFRESH) {
var parentItems:XMLList = 
sessionsByDateTree.dataProvider.children();

doExpand(parentItems);

function doExpand(items:XMLList):void {
var len:int = items.length();

// loop through collection backwards
for (var i:int = len-1; i >= 0; i--) {
var childList:XMLList = 
items[i].children();
 
 //sessionsByDateTree.expandChildrenOf(*what 
object am i
passing in?*, true);

//if this node has children, let's recurse!
if (childList.length() > 0) {
doExpand(childList);
}
}
}
}


as you can see, my recursor is completely ignorant of what level it is
currently in. Will I need to track that?



RE: [flexcoders] Re: how do I know which object I need to expand?

2007-10-18 Thread Alex Harui
Each top-level object in the XMLList should be in the Tree.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of TJ Downes
Sent: Thursday, October 18, 2007 10:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: how do I know which object I need to expand?

 

Sorry, that may have been a bit vague. I want to expand every node in
the tree. So, as i am iterating recursively, how do i dynamically
determine the node in the tree matching the node i am currently
iterating over?

 



Re: [flexcoders] Hyperlink in flex.

2007-10-18 Thread Tom Preet
Hi Venkat,

use the URL Navigator control for ex:

  var u:URLRequest = new URLRequest("x.mxml");
   navigateToURL(u, "_self");

for the Image Click event ok.

Bye..

Preet.






On 10/19/07, Venkat Perpati <[EMAIL PROTECTED]> wrote:
>
>Hi,
>
> Can anyone please tell me about how to add a hyperlink combined with a
> small image in flex refering to mxml file in the same folder or refer to a
> page in the same application.
>
> regards,
> Venkat Perpati
>
> --
> Save all your chat conversations. Find them 
> online.
>
> 
>


[flexcoders] Re: how do I know which object I need to expand?

2007-10-18 Thread TJ Downes
Sorry, that may have been a bit vague. I want to expand every node in
the tree. So, as i am iterating recursively, how do i dynamically
determine the node in the tree matching the node i am currently
iterating over?



[flexcoders] how do I know which object I need to expand?

2007-10-18 Thread TJ Downes
I am iterating over a hierarchical XMLList recursively, how do I know
which object in the Tree I need to expand?



[flexcoders] Re: Capturing RollOver events in a loaded swf that has it own actionscript.

2007-10-18 Thread essuark
Actually I did figure it out. I dynamically created a box component 
the size of the swf and inserted at the beginning of the child list. 
That way the box component get the mouseout, mousedown, etc events


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Can you post a small test case?
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of essuark
> Sent: Monday, October 15, 2007 5:49 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Capturing RollOver events in a loaded swf 
that
> has it own actionscript.
> 
>  
> 
> Ah, yes I tried that. It didn't work... thanks...
> 
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > See doc for addEventlListener and the capture parameter
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of essuark
> > Sent: Monday, October 15, 2007 4:45 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Re: Capturing RollOver events in a loaded 
swf 
> that
> > has it own actionscript.
> > 
> > 
> > 
> > Thanks but I am not sure what that means? What is a capture phase 
> > listener?
> > 
> > --- In flexcoders@yahoogroups.com
>    40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > If that's true, you should be able to use capture phase 
listener. 
> > If
> > > the swf is from another domain or is a player 8 swf or older 
> there 
> > might
> > > be an issue with that.
> > > 
> > > 
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
>    40yahoogroups.com>
> > 
> > [mailto:flexcoders@yahoogroups.com
>    40yahoogroups.com>
> > ] On
> > > Behalf Of essuark
> > > Sent: Monday, October 15, 2007 1:16 PM
> > > To: flexcoders@yahoogroups.com 
>  40yahoogroups.com> 
> > > Subject: [flexcoders] Capturing RollOver events in a loaded swf 
> > that has
> > > it own actionscript.
> > > 
> > > 
> > > 
> > > I have a swf that I load in my flex application. Apparently, 
the 
> > swf 
> > > has some actionscript behind so my flex application will not 
> > recieve a 
> > > RollOver event because I am assuming that the swf that I load 
is 
> > > capturing that event. Is there a way I can override this?
> > > 
> > > Thanks
> > > Ralph
> > >
> >
>




Re: [flexcoders] scale 9, quick question

2007-10-18 Thread dorkie dork from dorktown
I don't think its possible. There are 9 different pieces. Only the corners
don't scale.

On 10/17/07, aaron smith <[EMAIL PROTECTED]> wrote:
>
>   I've got an image I used scale9 on.. i used pretty much this example:
>
> http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=0976.html
>
>
> When I set the height the width is changing as well. Can it resize just
> the height?. Possible?
>  
>


Re: [flexcoders] Use a CSS file in Flex

2007-10-18 Thread Peter Connolly
Here are two inline examples from Chapter 18 of the Flex Developer's Guide:



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

.myFontStyle {
fontSize: 15;
color: #9933FF;
}




The following example defines a new style that applies to all
instances of the Button class:



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

Button {
fontSize: 15;
color: #9933FF;
}




An external CSS file would be used in the same fashion.

You can download the Flex documentation at:

http://www.adobe.com/support/documentation/en/flex/


On 10/18/07, Venkat Perpati <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
>
> Hi,
>
> got it. http://www.somesite.com/mystyles.css";>  is used to 
> include css file in the application . But how to use the style defined in it 
> , is it same as we use in html file
>
> like 
>
> can you pls give me an example of how we use the styles after including the 
> CSS file in the application.
>
> regards,
> Venkat Perpati
>
> Peter Connolly <[EMAIL PROTECTED]> wrote:
>
>
> Here's how you reference a CSS file:
>
> http://www.somesite.com/mystyles.css";>
>
> After that, there's a chapter on CSS in the Flex Developer's Guide.
>
> On 10/18/07, Venkat Perpati <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> >
> >
> > Hi,
> >
> > Can anyone please tell me how to add a CSS file and use the styles defined 
> > in CSS file in the flex application.
> >
> > Thanks in Advance
> >
> > regards,
> > Venkat Perpati.
> >
> >
> > 
> Meet people who discuss and share your passions. Join them now.
> >
> >
> >
> >
>
>
>
>   
 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.
>
>
>
>  


Re: [flexcoders] Use a CSS file in Flex

2007-10-18 Thread Venkat Perpati

Hi,
   
  got it. http://www.somesite.com/mystyles.css";>  is used to 
include css file in the application . But how to use the style defined in it , 
is it same as we use in html file 
   
  like 
   
  can you pls give me an example of how we use the styles after including the 
CSS file in the application.
   
  regards,
  Venkat Perpati
  
Peter Connolly <[EMAIL PROTECTED]> wrote:
  Here's how you reference a CSS file:

http://www.somesite.com/mystyles.css";>

After that, there's a chapter on CSS in the Flex Developer's Guide.

On 10/18/07, Venkat Perpati <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
> Hi,
>
> Can anyone please tell me how to add a CSS file and use the styles defined in 
> CSS file in the flex application.
>
> Thanks in Advance
>
> regards,
> Venkat Perpati.
>
>
> 
Meet people who discuss and share your passions. Join them now.
>
>
>
> 


 

   
-
 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.

[flexcoders] open source flex xml mp3 player

2007-10-18 Thread jensen.axel
Finally it's here...OPEN SOURCE FLEX XML MP3 PLAYER
Flex xml mp3 player

Basically you can specify an xml playlist from the url, and have it play
whatever is in the playlist…

The links for the examples are on the right side.

You can also specify the playlist in the url if you'd like:

http://axel.cfwebtools.com/Examples/xspfPlayer/bin/xmlPlayer.cfm?playlis\
t%5Furl=http://killtheheart.com/playlist.xml


here are the variables you can use:

* playlist_url : the url of the xspf file to load
* repeat_playlist : boolean value that make the repeats the playlist
after the end
* song_url : String the href location of a single song you want to
play, when this is used playlist_url is ignored
* song_title : the name of the song you want to use

The music player can also be used to play single mp3 files instead of
playlists, the parameters are:

* song_url : the url of the single mp3 you want to play
* song_title : the text to replace the players default's

and you could even create a custom playlist on your site (this link
doesn't work it's an example) http://flexcoders.nl/someplaylist.xml




and as long as it was in the right format, it's all good….



here is the format
http://axel.cfwebtools.com/Examples/xspfPlayer/bin/data.xml


right click and view source to actually copy and paste xml...



It's loosely based on the xspf (`spiff') standard, it's
an open source shareable playlist format…

Here is the documentation on it:

http://www.xspf.org/xspf-v1.html#rfc.section.4.1.1.2


here is another example of a playlist

http://www.killtheheart.com/playlist.xml


* Resources
* Google Code 
* labs.flexcoders.nl 
* axel.cfwebtools.com 
* Big Version

* Small Version


* Download
* Download the Big version to use

* Download the Small version to use

* Download the Flex Source


* People using
* flex.org (using a version geared for podcasts)

* Axel's site to listen to music (please don't tell the RIAA)


* Things that i hope for
* to get the podcast version relased
* people will report bugs (the issues tab) on the google code site
Google Code 
* people will report features they want on the google code site
Google Code 

* Examples - Coming soon (hopefully people start to use it and email
make me some tutorials)
* How to Skin the mp3 player
xml details (listed alphabetically)
* album

* the album name of this track... leave blank if you wish this shows
up in the big version on the bottom of the "now playing" view
* annotaion

* unused at the moment, please refer to xspf documenation for
information
* artist

* the artist name of this track... leave blank if you wish this shows
up in the big version in the middle of the "now playing" view
* creator

* the developer... this is just documentation in my eyes, but please
refer to xspf docs
* image

* in the big version of the player, if you specify a url of the image
you want, it will show on the left while the track is playing
* info

* there is an info button on the big version, it's simply another URL
you could specify, and it will produce a popup window for it.
* link

* there is an image in the big version, specify a URL here, and when
you click on the album in the big version it will give you a popup to
the address you specify.
* location

* the most import piece of the puzzle
* the url of the song (can be a URL, or relative path)
* timeEnd

* use this to pause the song at a certain point, say you only want
the user to listen to 0:15 - 0:20, make the timeEnd 2 (not exact but
close enough, it's milliseconds)
* specify a 0 to just play through the end
* NOTE: it is milliseconds!
* timeStart

* use this to start the song at a certain point, say you only want
the user to listen to 0:15 - 0:20, make the timeStart 15000 (not exact
but close enough, it's milliseconds)
* specify a 0 to just play from the 

[flexcoders] Re: Mock objects in AS3

2007-10-18 Thread aduston1976
Bjorn, I think this is a hack but it looks like a pretty awesome hack
and I'm definitely going to use it. Thank you very much for posting
it! I think this is part of the best path to creating a mock test
framework for AS3. Adam

--- In flexcoders@yahoogroups.com, Bjorn Schultheiss
<[EMAIL PROTECTED]> wrote:
>
> Hey Dave and Adam,
> 
> 
> That way a quick reply i sent yesterday without much thought.
> Currently to convert a generic object to a typed instance i've been  
> using a utility provided by Darron Schall.
> http://www.darronschall.com/weblog/archives/000247.cfm
> 
> basically the method looks like this,
> 
> public static function objectToInstance( object:Object, clazz:Class ):*
>   {
>   var bytes:ByteArray = new ByteArray();
>   bytes.objectEncoding = ObjectEncoding.AMF0;
>   
>   // Find the objects and byetArray.writeObject them, adding in 
> the
>   // class configuration variable name -- essentially, we're  
> constructing
>   // and AMF packet here that contains the class information so 
> that
>   // we can simplly byteArray.readObject the sucker for the 
> translation
>   
>   // Write out the bytes of the original object
>   var objBytes:ByteArray = new ByteArray();
>   objBytes.objectEncoding = ObjectEncoding.AMF0;
>   objBytes.writeObject( object );
>   
>   // Register all of the classes so they can be decoded via AMF
>   var typeInfo:XML = describeType( clazz );
>   var fullyQualifiedName:String = [EMAIL PROTECTED]().replace 
> ( /::/, "." );
>   registerClassAlias( fullyQualifiedName, clazz );
>   
>   // Write the new object information starting with the class  
> information
>   var len:int = fullyQualifiedName.length;
>   bytes.writeByte( 0x10 );  // 0x10 is AMF0 for "typed object 
> (class  
> instance)"
>   bytes.writeUTF( fullyQualifiedName );
>   // After the class name is set up, write the rest of the object
>   bytes.writeBytes( objBytes, 1 );
>   
>   // Read in the object with the class property added and return 
> that
>   bytes.position = 0;
>   
>   // This generates some ReferenceErrors of the object being 
> passed in
>   // has properties that aren't in the class instance, and 
> generates  
> TypeErrors
>   // when property values cannot be converted to correct values 
> (such  
> as false
>   // being the value, when it needs to be a Date instead).  
> However,  
> these
>   // errors are not thrown at runtime (and only appear in trace 
> ouput  
> when
>   // debugging), so a try/catch block isn't necessary.  I'm not 
> sure  
> if this
>   // classifies as a bug or not... but I wanted to explain why if 
> you  
> debug
>   // you might seem some TypeError or ReferenceError items appear.
>   var result:* = bytes.readObject();
>   return result;
>   }
> 
> 
> regards,
> 
> Bjorn
> 
> 
> 
> 
> 
> On 18/10/2007, at 10:40 AM, dave_defusion wrote:
> 
> > Bjorn,
> >
> > I have been looking at this (as I would like a mocking framework for
> > Flex too) this evening and I've had no luck either.
> >
> > The the registerClassAlias() does add the alias to a given class I
> > can't then get anything to accept it as being of that type
> > - I'm not sure what the alias is, but dumping the describeType()
> > results shows it as an alias property on the type and not as an
> > implementsInterface node, which is what we need.
> >
> > I may not have been fully understood what registerClassAlias though.
> >
> > But it looks (ok, it's late and I'm tired so it may just be that which
> > is causing my negativity) as if trying to get a class to implement an
> > interface (or at least appear to implement an interface) dynamically
> > at run time is a futile effort.
> >
> > Any thoughts?
> >
> > -D
> >
> > --- In flexcoders@yahoogroups.com, Bjorn Schultheiss
> >  wrote:
> > >
> > > try add
> > > flash.net.registerClassAlias( "attempt.TestInterface",  
> > TestInterface );
> > > prior to your cast attempt.
> > >
> > >
> > > regards,
> > >
> > > Bjorn
> > >
> > >
> > > On 17/10/2007, at 1:06 PM, aduston1976 wrote:
> > >
> > > > lus I see a number of places on the web where the idea is  
> > mentioned,
> > > > e.g. http://www.herrodius.com/blog/?m=200704 . However I cannot  
> > find
> > > > any mock frameworks for AS3.
> > > >
> > > > This evening I spent some time trying to mock one up on my own  
> > (ok,
> > > > sorry for the pun!) but I ran into troubles. Is anyone  
> > interested in
> > > > thinking about this problem with me?
> > > >
> > > > Here is what I did during my 20 minutes of playing:
> > > >
> > > > Defin

Re: [flexcoders] Use a CSS file in Flex

2007-10-18 Thread Peter Connolly
Here's how you reference a CSS file:

http://www.somesite.com/mystyles.css";>

After that, there's a chapter on CSS in the Flex Developer's Guide.

On 10/18/07, Venkat Perpati <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
> Hi,
>
> Can anyone please tell me how to add a CSS file and use the styles defined in 
> CSS file in the flex application.
>
> Thanks in Advance
>
> regards,
> Venkat Perpati.
>
>
>   
 Meet people who discuss and share your passions.  Join them now.
>
>
>
>  


Re: [flexcoders] Weird WebService Problem

2007-10-18 Thread Peter Connolly
The full incantation for handling a webservice in ActionScript is
shown in the Developer's Guide example:



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





Are you doing all these steps?


On 10/18/07, Ben <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> In my Flex Application MXML file I call a function called init() on
>  the creationComplete event.  creationComplete="init();"  In the init()
>  function a WebService's wsdl property is set to the URL for my CFC.
>  After the property is set I call a function on my service
>  (service.getBlah();) but the request is never sent.  However, if I set
>  the WebService wsdl on the WebService MXML tag before I compile my
>  program, the request is sent.
>
>  I'm not sure what could be the problem here.  It seems that there
>  might be some time after the wsdl is set in which requests cannot be sent.
>
>  Does anyone know?  Thanks in advance!
>
>


[flexcoders] Weird WebService Problem

2007-10-18 Thread Ben
In my Flex Application MXML file I call a function called init() on
the creationComplete event.  creationComplete="init();"  In the init()
function a WebService's wsdl property is set to the URL for my CFC. 
After the property is set I call a function on my service
(service.getBlah();) but the request is never sent.  However, if I set
the WebService wsdl on the WebService MXML tag before I compile my
program, the request is sent.

I'm not sure what could be the problem here.  It seems that there
might be some time after the wsdl is set in which requests cannot be sent.

Does anyone know?  Thanks in advance!



[flexcoders] Use a CSS file in Flex

2007-10-18 Thread Venkat Perpati
Hi, 
   
  Can anyone please tell me how to add a CSS file and use the styles defined in 
CSS file in the flex application.
   
  Thanks in Advance
   
  regards,
  Venkat Perpati.
   

   
-
 Meet people who discuss and share your passions.  Join them now.

[flexcoders] Hyperlink in flex.

2007-10-18 Thread Venkat Perpati
Hi, 
   
  Can anyone please tell me about how to add a hyperlink combined with a small 
image in flex refering to mxml file in the same folder or refer to a page in 
the same application.
   
  regards,
  Venkat Perpati 

   
-
 Save all your chat conversations. Find them online.

[flexcoders] Announce: Flex UndoRedo Framework for Cairngorm

2007-10-18 Thread kaleb_pederson
Hello all,

We (Soph-Ware Associates) have just released an Open Source 
Undo/Redo Framework for Flex.  It integrates tightly with Cairngorm 
and allows for an unlimited number of Undo/Redo events (which in 
turn fire undoable Cairngorm Commands).

The Flex UndoRedo Framework is lightweight and can usually be used 
with existing command classes without any necessary changes.

For more information, see the following links:

http://blogs.soph-ware.com/?p=5
http://code.google.com/p/flexundoredo/

And as everybody loves examples:

http://blogs.soph-ware.com/posted-content/files/undoredo/CairnCalc/

We'd love to hear from you, so if you have comments or suggestions 
please let us know!

Thanks.

Kaleb Pederson
http://www.soph-ware.com/



[flexcoders] Moxie caching flash player mac os x?

2007-10-18 Thread aaron smith
I'm having some strange behavior with the flash player and browsers. I wrote
this tool "plugout." http://www.adakasoft.com/?page_id=3  to switch flash
player versions..

The tool works on every mac I run it on. But for some reason the one machine
I have moxie on, the browsers don't pickup a new player.

Try these steps (these should all work fine if you don't have moxie):

--first get plugout -> http://www.adakasoft.com/?page_id=3
--install it (./install.sh)
--run this: "plugout -v 8.0.35 -b firefox" (this will install player
8.0.35and start firefox in rosetta)
--now go to a flash site (i always hit vw.com). Right click on the flash
content. You should see Player 8.
--now go to (
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15507) you
should see you have 8.0.35 installed.

If you did all that successfully that means it's fine..

Now on my one machine that I have moxie on. I have one difference in this
process. I do all of the above, but when I right click on flash content it
says player 9. And when I go to the adobe version checker, it says I have
8.0.35.

What's going on? Where is it picking up 9?

Thanks for any help
Aaron


RE: [flexcoders] Re: Drag Multiple items with the dragManager

2007-10-18 Thread Alex Harui
It is overly complicated because there's lots of flexibility built-in.
Panel dragging does not use DragManager because it doesn't need that
flexibility.  You probably don't either and could steal the code from
Panel.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of joshuagatcke
Sent: Thursday, October 18, 2007 3:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Drag Multiple items with the dragManager

 

ok, so as I understand it from your advise, I would dynamically
re-create the items I want to 
"look" like the user is dragging in a canvas, and arrange the items the
same way they are on 
the screen, pass them to the doDrag method as the dragProxy, then hide
the dragInitiator 
(and other selected items) then just pass this information (what has
been selected) in the 
dragSource?

Sounds like a plan. Seems overly complicated to do such a simple task as
dragging items 
from one container to another, or moving items around on the screen. Oh
well, I will do what 
needs to be done. 

Thanks for the help. Any other tips and advice out there? Anything I''m
missing? 

 



RE: [flexcoders] List Component: Working with Collapsed and Expanded ItemRenderer

2007-10-18 Thread Alex Harui
dataChange event fired when the .data is changed.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jurgen Beck
Sent: Thursday, October 18, 2007 2:55 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] List Component: Working with Collapsed and
Expanded ItemRenderer

 

Quick follow-up question:

 

Since we are storing the state of the item renderer in a property of the
data object, which event would be best used to make sure the state is
restored when the specific item comes back into view?

 

On Oct 18, 2007, at 1:47 PM, Alex Harui wrote:





 

Renderers are recycled.  Only as many renderers that you can see are
created regardless of how many items in your data provider.  So, one
renderer can end up having to render various items in the dataprovider.
As such, all aspects of its visuals must be driven by the .data object
including which state it is in.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jurgen Beck
Sent: Thursday, October 18, 2007 11:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] List Component: Working with Collapsed and
Expanded ItemRenderer

 

I am experiencing something mildly strange with the List component 
when using a custom item renderer that has two states, a collapsed 
state and an expanded state.

When I have one or more item renderers in the expanded state, the 
List component eventually will display the vertical scrollbar. Here 
is the strange part:

When using the scrollbar to scroll through the list, the original 
expanded item renderers that would normally disappear with their 
expanded state from the visual range of the list get collapsed and 
new list items that have not been expanded do so in their place.

As I am not forcing this behavior my thinking is that the List 
component is either missing a property setting to prevent this 
behavior, or this may be either a bug, or simply by design.

Anyone with some more info on this?

Thanks,

Jurgen

 

 

 

 



Re: [flexcoders] Re: How to hide browser address bar and tool bar with navigateToURL()?

2007-10-18 Thread Scott - FastLane
I have not used AIR, so not sure I will be much help there.  But... I 
thought it included an HTML component that would allow you to open your 
destination URL within the flex app.  If so, then it seems you would be 
in complete control of the "browser".  But, not at all sure about this...


Scott

Scott Melby
Founder, Fast Lane Software LLC
http://blog.fastlanesw.com



michniu wrote:


Thanks Scott!

But what if I use it in AIR Application?

--- In flexcoders@yahoogroups.com 
, Scott - FastLane <[EMAIL PROTECTED]>

wrote:
>
> Not sure if you can do all of that from within flex... but you can
> certainly do it via JavaScript's window.open() method. If you want
to
> do it that way you will need to make a call to
ExternalInterface.call()
> to call the JS method on the HTML page that contains your swf.
>
> hth
> Scott
>
> Scott Melby
> Founder, Fast Lane Software LLC
> http://blog.fastlanesw.com 
>
>
>
> michniu wrote:
> >
> > Hi coders,
> >
> > I have to popup a new browser in my application, and I need hide
the
> > toolbar adn addressbar in the popup window. Any help is
appretiated
> >
> > Thanks
> >
> > Mike
> >
> >
>

 


RE: [flexcoders] List Component: Working with Collapsed and Expanded ItemRenderer - Solution

2007-10-18 Thread Jurgen Beck

I'm documenting this here for others who may be struggling with this:

It has been suggested to use a VBox and simply just add children to  
it based on items in the dataprovider. That's a great approach and  
would have been my  workaround. However, Alex was giving enough  
pointers to implement the solution based on storing the expanded and  
collapsed state in the data object.


This can be easily done by overriding the data property of the item  
renderer and using a 'collapsed' property to restore the state of the  
item renderer.


So, here is an example:

override public function set data(value:Object):void {
super.data = value;
if (value.collapsed) {
currentState = "Closed";
} else {
currentState = "Open";
}
// Dispatch the dataChange event.
dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));
}

Use the following to switch the state:

private function switchOpenState():void {
if (currentState == "Closed") {
currentState = "Open";
data.collapsed = false;
} else {
currentState = "Closed";
data.collapsed = true;
}   
}

 I'm working with states and transitions, but this can be used in  
other ways as well. The other piece would be to use a function to  
switch the collapsed state and then setting the data.collapsed  
property. Changing the state causes a sequence of events that will  
eventually evaluate the data.collapsed property of each item renderer  
and restore it to its proper state should the user scroll through the  
list or interact with it in any other way.


Hope this helps,

Jurgen



On Oct 18, 2007, at 1:47 PM, Alex Harui wrote:



Renderers are recycled.  Only as many renderers that you can see  
are created regardless of how many items in your data provider.   
So, one renderer can end up having to render various items in the  
dataprovider.  As such, all aspects of its visuals must be driven  
by the .data object including which state it is in.




From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Jurgen Beck

Sent: Thursday, October 18, 2007 11:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] List Component: Working with Collapsed and  
Expanded ItemRenderer




I am experiencing something mildly strange with the List component
when using a custom item renderer that has two states, a collapsed
state and an expanded state.

When I have one or more item renderers in the expanded state, the
List component eventually will display the vertical scrollbar. Here
is the strange part:

When using the scrollbar to scroll through the list, the original
expanded item renderers that would normally disappear with their
expanded state from the visual range of the list get collapsed and
new list items that have not been expanded do so in their place.

As I am not forcing this behavior my thinking is that the List
component is either missing a property setting to prevent this
behavior, or this may be either a bug, or simply by design.

Anyone with some more info on this?

Thanks,

Jurgen











Re: [flexcoders] Re: Mock objects in AS3

2007-10-18 Thread Bjorn Schultheiss

Hey Dave and Adam,


That way a quick reply i sent yesterday without much thought.
Currently to convert a generic object to a typed instance i've been  
using a utility provided by Darron Schall.

http://www.darronschall.com/weblog/archives/000247.cfm

basically the method looks like this,

public static function objectToInstance( object:Object, clazz:Class ):*
{
var bytes:ByteArray = new ByteArray();
bytes.objectEncoding = ObjectEncoding.AMF0;

// Find the objects and byetArray.writeObject them, adding in 
the
		// class configuration variable name -- essentially, we're  
constructing

// and AMF packet here that contains the class information so 
that
// we can simplly byteArray.readObject the sucker for the 
translation

// Write out the bytes of the original object
var objBytes:ByteArray = new ByteArray();
objBytes.objectEncoding = ObjectEncoding.AMF0;
objBytes.writeObject( object );

// Register all of the classes so they can be decoded via AMF
var typeInfo:XML = describeType( clazz );
		var fullyQualifiedName:String = [EMAIL PROTECTED]().replace 
( /::/, "." );

registerClassAlias( fullyQualifiedName, clazz );

		// Write the new object information starting with the class  
information

var len:int = fullyQualifiedName.length;
		bytes.writeByte( 0x10 );  // 0x10 is AMF0 for "typed object (class  
instance)"

bytes.writeUTF( fullyQualifiedName );
// After the class name is set up, write the rest of the object
bytes.writeBytes( objBytes, 1 );

// Read in the object with the class property added and return 
that
bytes.position = 0;

// This generates some ReferenceErrors of the object being 
passed in
		// has properties that aren't in the class instance, and generates  
TypeErrors
		// when property values cannot be converted to correct values (such  
as false
		// being the value, when it needs to be a Date instead).  However,  
these
		// errors are not thrown at runtime (and only appear in trace ouput  
when
		// debugging), so a try/catch block isn't necessary.  I'm not sure  
if this
		// classifies as a bug or not... but I wanted to explain why if you  
debug

// you might seem some TypeError or ReferenceError items appear.
var result:* = bytes.readObject();
return result;
}


regards,

Bjorn





On 18/10/2007, at 10:40 AM, dave_defusion wrote:


Bjorn,

I have been looking at this (as I would like a mocking framework for
Flex too) this evening and I've had no luck either.

The the registerClassAlias() does add the alias to a given class I
can't then get anything to accept it as being of that type
- I'm not sure what the alias is, but dumping the describeType()
results shows it as an alias property on the type and not as an
implementsInterface node, which is what we need.

I may not have been fully understood what registerClassAlias though.

But it looks (ok, it's late and I'm tired so it may just be that which
is causing my negativity) as if trying to get a class to implement an
interface (or at least appear to implement an interface) dynamically
at run time is a futile effort.

Any thoughts?

-D

--- In flexcoders@yahoogroups.com, Bjorn Schultheiss
<[EMAIL PROTECTED]> wrote:
>
> try add
> flash.net.registerClassAlias( "attempt.TestInterface",  
TestInterface );

> prior to your cast attempt.
>
>
> regards,
>
> Bjorn
>
>
> On 17/10/2007, at 1:06 PM, aduston1976 wrote:
>
> > lus I see a number of places on the web where the idea is  
mentioned,
> > e.g. http://www.herrodius.com/blog/?m=200704 . However I cannot  
find

> > any mock frameworks for AS3.
> >
> > This evening I spent some time trying to mock one up on my own  
(ok,
> > sorry for the pun!) but I ran into troubles. Is anyone  
interested in

> > thinking about this problem with me?
> >
> > Here is what I did during my 20 minutes of playing:
> >
> > Define an interface:
> >
> > public interface TestInterface
> > {
> > function setSomething(something : String) : void;
> > }
> >
> > Run the following code:
> >
> > public function flexmock() {
> > var i : TestInterface;
> > var c : Class =
> > flash.utils.getDefinitionByName("attempt.TestInterface") as Class;
> > var desc : XML = flash.utils.describeType(c);
> > var str : String = desc.toString();
> > var a : Object = new Object();
> > a["setSomething"] = function(something : String) : void {
> > trace(something); };
> > // will fail on the following line, since a does not implement
> > TestInterface.
> > i = TestInterface(a);
> > i.setSomething("blah");
> > }
> >
> > AS3 doesn't support duck typing like Ruby, and I 

[flexcoders] Re: httpservice url decode problem

2007-10-18 Thread Doug Lowder

Have a look at encodeURIComponent()
   in the docs.

I believe it would be something like the following:

srv.url = "http://www.mydomain.com/eTraffic.cgi?target="; +
encodeURIComponent("/Fed-switchports/100/1006/16;range=d");


--- In flexcoders@yahoogroups.com, coder3 <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> i need to use an url that contains "/" in the parameters.
>
> like
>
> 
url="http://www.mydomain.com/eTraffic.cgi?target=%2Fed-switchports%2F100\
%2F1006%2F16;range=d"
> result="resultHandler(event)"/>
>
>
> i use unescapeMultiByte to convert first and then send it.
>
> srv.url = unescapeMultiByte(srv.url);
> srv.send();
>
>
> it still doesn't work. resultHandler(event) has not been called after
that.
>
> the data in result file has nothing wrong. what is the problem?
>
> --
> View this message in context:
http://www.nabble.com/httpservice-url-decode-problem-tf4649345.html#a132\
82349
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




[flexcoders] Re: Unable to Expand a Tree programatically..

2007-10-18 Thread sk_acura
Thanks a lot Tracy,

  That worked great..

Regards
Kumar

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> No, since you have just assigned the dataProvider, you need to give the
> Tree a chance to render before calling visually oriented methods.
> 
>  
> 
> Use callLater to call the expand node code.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of sk_acura
> Sent: Thursday, October 18, 2007 5:58 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Unable to Expand a Tree programatically..
> 
>  
> 
> Hi All,
> 
> I have a Tree Control and is backed by a ArrayCollection of Node
> (custom) Class.
> 
> And when i set the dataProvider and call the updateNow it doesn't
> expand..(i have to manuallt expand the nodes..)
> 
> Here is the Code i am using..(I am initilaizing this on my init()
> method..(creationComplete..)
> [CODE]
> modelTree.dataProvider = arrayCollection;
> modelTree.validateNow();
> modelTree.expandItem(this.contextNode,true,true,false,null);
> modelTree.expandChildrenOf(this.contextNode,true);
> modelTree.validateNow();
> [/CODE]
> 
> Is this because i am trying to expand the Root Node ?? 
> 
> Thanks
> Kumar..
>




[flexcoders] Re: Drag Multiple items with the dragManager

2007-10-18 Thread joshuagatcke
ok, so as I understand it from your advise, I would dynamically re-create the 
items I want to 
"look" like the user is dragging in a canvas, and arrange the items the same 
way they are on 
the screen, pass them to the doDrag method as the dragProxy, then hide the 
dragInitiator 
(and other selected items) then just pass this information (what has been 
selected) in the 
dragSource?

Sounds like a plan. Seems overly complicated to do such a simple task as 
dragging items 
from one container to another, or moving items around on the screen. Oh well, I 
will do what 
needs to be done. 

Thanks for the help. Any other tips and advice out there? Anything I''m 
missing? 



[flexcoders] Effect on VBox with Repeater...

2007-10-18 Thread qnotemedia
Stupid question here probably, but I've been struggling with effects 
and generally doing visual design in Flex.

OK - I have Vbox.  Within it is a repeater.  The component repeated is 
just a line of text and an image.  I have rollOver and rollOut styles 
applied that will "highlight" the text by making the backgroundalpha of 
the component 0-1 and the text changes color.

However, I would like to have an effect that fades out the entire Vbox 
and its children, including the repeater and all of its repeated 
components, and fade back in.  When I apply the sequenced effect 
(animate alpha property on the VBox) it only fades in/out the single 
highlighted repeated item.  How come?



[flexcoders] Re: How to hide browser address bar and tool bar with navigateToURL()?

2007-10-18 Thread michniu
Thanks Scott!

 But  what if  I use it in  AIR Application?




--- In flexcoders@yahoogroups.com, Scott - FastLane <[EMAIL PROTECTED]> 
wrote:
>
> Not sure if you can do all of that from within flex... but you can 
> certainly do it via JavaScript's window.open() method.  If you want 
to 
> do it that way you will need to make a call to 
ExternalInterface.call() 
> to call the JS method on the HTML page that contains your swf.
> 
> hth
> Scott
> 
> Scott Melby
> Founder, Fast Lane Software LLC
> http://blog.fastlanesw.com
> 
> 
> 
> michniu wrote:
> >
> > Hi coders,
> >
> > I have to popup a new browser in my application, and I need hide 
the
> > toolbar adn addressbar in the popup window. Any help is 
appretiated
> >
> > Thanks
> >
> > Mike
> >
> >
>




[flexcoders] Re: Open Source Java Remoting : Mapping complex Structure

2007-10-18 Thread tomeuchre
If that is all you thought Granite was good for, you missed the big 
picture. Granite IS open source remoting!

With Granite I can have it both ways: Flex compile at design time OR 
runtime, AND let it handle the remoting with AMF3 
serialization/deserialization.

I built my Flex app two ways:
1) Remotely with Flex Builder, with compiler that references the 
services-config.xml in my web app so it can pair the endpoints and 
destinations.
2) integrated with Grantite/FlexTasks in my web app completely.

You can do EITHER (can you tell that I am becoming a Granite 
evangelist?)
I am convinced.

--- In flexcoders@yahoogroups.com, "Paramjit Jolly" 
<[EMAIL PROTECTED]> wrote:
>
> We tried & evaluate granite services ..that is for on the fly 
compilation we
> don't need it ..as well as that's not much mature ..
> 
> So ..we are using Flex compile at design time & open source java 
remoting ..
> 
>  
> 
> Thanks & Regards
> 
> Jolly
> 
> Life Fitness - A Division of Brunswick Corporation
> 
> 
> 
>  
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of tomeuchre
> Sent: Thursday, October 18, 2007 9:30 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Open Source Java Remoting : Mapping 
complex
> Structure
> 
>  
> 
> --- In flexcoders@yahoogroups.com  ,
> "Paramjit Jolly" 
>  wrote:
> >
> > 
> > 
> > Hi All,
> > 
> > I am using open source java remoting to get data from server in 
AMF.
> > 
> > 
> > 
> > My structure is complex data structure having ArrayCollection 
with 
> again
> > complex structure in it.
> > 
> > 
> 
> Have you tried to use Granite instead of openAMF?
>




RE: [flexcoders] Unable to Expand a Tree programatically..

2007-10-18 Thread Tracy Spratt
No, since you have just assigned the dataProvider, you need to give the
Tree a chance to render before calling visually oriented methods.

 

Use callLater to call the expand node code.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sk_acura
Sent: Thursday, October 18, 2007 5:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Unable to Expand a Tree programatically..

 

Hi All,

I have a Tree Control and is backed by a ArrayCollection of Node
(custom) Class.

And when i set the dataProvider and call the updateNow it doesn't
expand..(i have to manuallt expand the nodes..)

Here is the Code i am using..(I am initilaizing this on my init()
method..(creationComplete..)
[CODE]
modelTree.dataProvider = arrayCollection;
modelTree.validateNow();
modelTree.expandItem(this.contextNode,true,true,false,null);
modelTree.expandChildrenOf(this.contextNode,true);
modelTree.validateNow();
[/CODE]

Is this because i am trying to expand the Root Node ?? 

Thanks
Kumar..

 



RE: [flexcoders] httpservice url decode problem

2007-10-18 Thread Tracy Spratt
Can you either POST or GET the parameters in the request object instead
of concatenating the url?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of coder3
Sent: Thursday, October 18, 2007 5:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] httpservice url decode problem

 


Hi,

i need to use an url that contains "/" in the parameters.

like

http://www.mydomain.com/eTraffic.cgi?target=%2Fed-switchports%2F100
%2F1006%2F16;range=d
 "
result="resultHandler(event)"/>

i use unescapeMultiByte to convert first and then send it. 

srv.url = unescapeMultiByte(srv.url);
srv.send();

it still doesn't work. resultHandler(event) has not been called after
that.

the data in result file has nothing wrong. what is the problem?

-- 
View this message in context:
http://www.nabble.com/httpservice-url-decode-problem-tf4649345.html#a132
82349
 
Sent from the FlexCoders mailing list archive at Nabble.com.

 



[flexcoders] Unable to Expand a Tree programatically..

2007-10-18 Thread sk_acura
Hi All,

  I have a Tree Control and is backed by a ArrayCollection of Node
(custom) Class.

  And when i set the dataProvider and call the updateNow it doesn't
expand..(i have to manuallt expand the nodes..)


Here is the Code i am using..(I am initilaizing this on my init()
method..(creationComplete..)
[CODE]
modelTree.dataProvider = arrayCollection;
modelTree.validateNow();
modelTree.expandItem(this.contextNode,true,true,false,null);
modelTree.expandChildrenOf(this.contextNode,true);
modelTree.validateNow();
[/CODE]

 Is this because i am trying to expand the Root Node ?? 

Thanks
Kumar..



RE: [flexcoders] LCDS/Hibernate DataServices Issue

2007-10-18 Thread Jeff Vroom
Do you have association tags (i.e. one-to-many) defined for the
collectionb and collectionc properties?  If you do not have an explicit
association tag defined, DMS uses the "hierarchical values" mode where
it still detect changes but treats that entire property more like a
"blob" which gets sent to/from the server in its entirety on each
operation.  It will not ensure that there is only one instance for each
identity so you can easily get aliasing problems.  In order to ensure
one instance for each identity, we need to know the identity property
for the instances in collectionb and c so that we can do the mapping
properly.  

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Joshua Garnett
Sent: Thursday, October 18, 2007 6:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LCDS/Hibernate DataServices Issue

 

Hello,

We've recently encountered a problem on a project I'm working on.  We
are using the Data Management Services to managed all of our persisted
objects.  It connects to our database via a customized Hibernate
assembler.  The issue we are seeing is that we have a series of
collections that point to each other and the references aren't being
maintained properly throughout the system. 

Example:

Each item in collectiona, has two properties collectionb and
collectionc.
The items in collectionc have a reference to an item in collectionb.

var itemB:Object = collectionb.getItemAt(0); 
var refItemB:object = collectionc.getItemAt(0).referenceToB;
itemB.id == refItemB.id

If at this point I make a change to itemB the corresponding object
refItemB is not changed.  They are identical objects on the server and
should always be the same on the client.  I can refresh my client and
the differences in the objects are still present.  It is not until I
close the session and re-login that refItemB is updated properly. 

Any thoughts on what we might be doing wrong or need to adjust?  Thanks,


--Josh










 



RE: [flexcoders] List Component: Working with Collapsed and Expanded ItemRenderer

2007-10-18 Thread Jurgen Beck

Quick follow-up question:

Since we are storing the state of the item renderer in a property of  
the data object, which event would be best used to make sure the  
state is restored when the specific item comes back into view?


On Oct 18, 2007, at 1:47 PM, Alex Harui wrote:



Renderers are recycled.  Only as many renderers that you can see  
are created regardless of how many items in your data provider.   
So, one renderer can end up having to render various items in the  
dataprovider.  As such, all aspects of its visuals must be driven  
by the .data object including which state it is in.




From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Jurgen Beck

Sent: Thursday, October 18, 2007 11:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] List Component: Working with Collapsed and  
Expanded ItemRenderer




I am experiencing something mildly strange with the List component
when using a custom item renderer that has two states, a collapsed
state and an expanded state.

When I have one or more item renderers in the expanded state, the
List component eventually will display the vertical scrollbar. Here
is the strange part:

When using the scrollbar to scroll through the list, the original
expanded item renderers that would normally disappear with their
expanded state from the visual range of the list get collapsed and
new list items that have not been expanded do so in their place.

As I am not forcing this behavior my thinking is that the List
component is either missing a property setting to prevent this
behavior, or this may be either a bug, or simply by design.

Anyone with some more info on this?

Thanks,

Jurgen








[flexcoders] httpservice url decode problem

2007-10-18 Thread coder3

Hi,

i need to use an url that contains "/" in the parameters.

like

http://www.mydomain.com/eTraffic.cgi?target=%2Fed-switchports%2F100%2F1006%2F16;range=d";
result="resultHandler(event)"/>


i use unescapeMultiByte to convert first and then send it. 

srv.url = unescapeMultiByte(srv.url);
srv.send();


it still doesn't work. resultHandler(event) has not been called after that.

the data in result file has nothing wrong.  what is the problem?

-- 
View this message in context: 
http://www.nabble.com/httpservice-url-decode-problem-tf4649345.html#a13282349
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] How to hide browser address bar and tool bar with navigateToURL()?

2007-10-18 Thread Scott - FastLane
Not sure if you can do all of that from within flex... but you can 
certainly do it via JavaScript's window.open() method.  If you want to 
do it that way you will need to make a call to ExternalInterface.call() 
to call the JS method on the HTML page that contains your swf.


hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://blog.fastlanesw.com



michniu wrote:


Hi coders,

I have to popup a new browser in my application, and I need hide the
toolbar adn addressbar in the popup window. Any help is appretiated

Thanks

Mike

 


[flexcoders] Re: List Component: Working with Collapsed and Expanded ItemRenderer

2007-10-18 Thread Jurgen Beck
You mean, using a VBox as the container and then adding the custom  
components as children based on the rows in the dataprovider? I like  
that idea.



On Oct 18, 2007, at 4:32 PM, scalenine wrote:


I had the same issue with the player on Shilliber.com. Exact same use
case. I think the guy who programmed it up ended up using a VBox.

Juan

scalenine.com | degarafa.com | ocflex.org

--- In flexcoders@yahoogroups.com, Jurgen Beck <[EMAIL PROTECTED]> wrote:
>
> Makes sense, Alex. Thanks!
>
> I also found an entry in the Flex Bug system after I posted on the
> list. So, this is for documentation for others to see:
>
> http://bugs.adobe.com/jira/browse/SDK-12343
>
> In it was a great reference to an article you wrote:
>
> http://blogs.adobe.com/aharui/2007/03/
> thinking_about_item_renderers_1.html
>
> On Oct 18, 2007, at 1:47 PM, Alex Harui wrote:
>
> >
> > Renderers are recycled. Only as many renderers that you can see
> > are created regardless of how many items in your data provider.
> > So, one renderer can end up having to render various items in the
> > dataprovider. As such, all aspects of its visuals must be driven
> > by the .data object including which state it is in.
> >
> >
> >
> > From: flexcoders@yahoogroups.com
> > [mailto:[EMAIL PROTECTED] On Behalf Of Jurgen Beck
> > Sent: Thursday, October 18, 2007 11:14 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] List Component: Working with Collapsed and
> > Expanded ItemRenderer
> >
> >
> >
> > I am experiencing something mildly strange with the List component
> > when using a custom item renderer that has two states, a collapsed
> > state and an expanded state.
> >
> > When I have one or more item renderers in the expanded state, the
> > List component eventually will display the vertical scrollbar.  
Here

> > is the strange part:
> >
> > When using the scrollbar to scroll through the list, the original
> > expanded item renderers that would normally disappear with their
> > expanded state from the visual range of the list get collapsed and
> > new list items that have not been expanded do so in their place.
> >
> > As I am not forcing this behavior my thinking is that the List
> > component is either missing a property setting to prevent this
> > behavior, or this may be either a bug, or simply by design.
> >
> > Anyone with some more info on this?
> >
> > Thanks,
> >
> > Jurgen
> >
> >
> >
> >
>







[flexcoders] How to hide browser address bar and tool bar with navigateToURL()?

2007-10-18 Thread michniu
Hi coders,

I have to popup a new  browser in my application, and I need  hide the 
toolbar adn addressbar  in the popup window. Any help is appretiated


Thanks


Mike



[flexcoders] Re: List Component: Working with Collapsed and Expanded ItemRenderer

2007-10-18 Thread scalenine
I had the same issue with the player on Shilliber.com. Exact same use
case. I think the guy who programmed it up ended up using a VBox.

Juan

scalenine.com | degarafa.com | ocflex.org

--- In flexcoders@yahoogroups.com, Jurgen Beck <[EMAIL PROTECTED]> wrote:
>
> Makes sense, Alex. Thanks!
> 
> I also found an entry in the Flex Bug system after I posted on the  
> list. So, this is for documentation for others to see:
> 
> http://bugs.adobe.com/jira/browse/SDK-12343
> 
> In it was a great reference to an article you wrote:
> 
> http://blogs.adobe.com/aharui/2007/03/ 
> thinking_about_item_renderers_1.html
> 
> On Oct 18, 2007, at 1:47 PM, Alex Harui wrote:
> 
> >
> > Renderers are recycled.  Only as many renderers that you can see  
> > are created regardless of how many items in your data provider.   
> > So, one renderer can end up having to render various items in the  
> > dataprovider.  As such, all aspects of its visuals must be driven  
> > by the .data object including which state it is in.
> >
> >
> >
> > From: flexcoders@yahoogroups.com  
> > [mailto:[EMAIL PROTECTED] On Behalf Of Jurgen Beck
> > Sent: Thursday, October 18, 2007 11:14 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] List Component: Working with Collapsed and  
> > Expanded ItemRenderer
> >
> >
> >
> > I am experiencing something mildly strange with the List component
> > when using a custom item renderer that has two states, a collapsed
> > state and an expanded state.
> >
> > When I have one or more item renderers in the expanded state, the
> > List component eventually will display the vertical scrollbar. Here
> > is the strange part:
> >
> > When using the scrollbar to scroll through the list, the original
> > expanded item renderers that would normally disappear with their
> > expanded state from the visual range of the list get collapsed and
> > new list items that have not been expanded do so in their place.
> >
> > As I am not forcing this behavior my thinking is that the List
> > component is either missing a property setting to prevent this
> > behavior, or this may be either a bug, or simply by design.
> >
> > Anyone with some more info on this?
> >
> > Thanks,
> >
> > Jurgen
> >
> >
> >
> >
>




Re: [flexcoders] questions about Flex and deploying on servers

2007-10-18 Thread Graham Pearson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
I use the same Directory Structure on my Development, Testing and
production Servers so when I create a Flex Application, I am sure that
it will work no matter what server it is currently running on. I have
all of the flex swf files in a web accessible directory but not in the
webroot as it helps me to organize my files and I point the embed and
object code lines to the new location of the swf file.

The only files I use from the bin filder is the swf, the .js files and
the files within the deeplinking but I do not use the swf ith the
- -debug or -profile


stephen50232 wrote:
> Hi,
>
> I always create my Flex apps using the ColdFusion remoting project in
> Flex builder, then I put the in my wwwroot folder on my dev machine,
> and everything works fine.
>
> now when I try to deploy them to another server I always get errors
> (CFCs not found, java.lang.NullPointerExceptions), so I have a couple
> of questions about setting up CF based flex applications.
>
> 1. Does all the config files that come with Flex have to be the same
> on my live server as they are on my dev machine?
>
> 2. If so can I copy the config files from my dev machine to my live
> server?
>
> 3. Do all CF/Flex apps have to be under Inetpub\wwwroot\ so that the
> CFCs can be found?
>
> 4. Do I have to copy over all the code for my application or just the
> files in the bin folder?
>
> 5. Do I need to create mappings in CFAdministrator for my CFCs?
>
> What I looking to do is get a standard way I can build and deploy my
> Flex applications, so I don't get these same problems everytime I
> create a new Flex app and deploy it to the server.
>
> Thanks
>
> Stephen
>
>

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.4 (MingW32)
Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iQEVAwUBRxfNn3njLHMPlkANAQJ7Kgf/SJMIO5YImD0plOFSyrru7ACtGoSE3FTF
l5bQX0ouRbHuEWC/KXydL44kmncmWY430XfoPVdOG7hMH79gXqpaCSUdgdyskR4r
SvyXzlQ+b6R1U6L8P4PSb7eGyNqrCpClRnqlHCB/RqQ8c3pex1LSXLbVsBYFFj4e
q0u0nA2/98hWCUyjmw2lAdWEZVta5yqU0OvVTsDCO4bqf97ygce3hXQcrS2FIKKO
YrVBcykwlmdyEGwkTM+8cMIqwzucbru+y4W6MK7z+MulEykNOngDj99g/GMWvE9m
5nXxGT7baEa64woPv4KKKDBVaNUP51iFYndlxp6Cf8d1F1whMZnGkw==
=+pIv
-END PGP SIGNATURE-


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



[flexcoders] Flex eSeminar Series: Video, PHP, Java, Big Payoffs (weekly on Tuedays)

2007-10-18 Thread greg h
fyi ...

Adobe runs (on an on-going basis), eSeminar series.

There currently is a Flex eSeminar series running.  This email is an FYI
regarding the four remaining topics in the current Flex eSeminar series.

The remaining topics (and dates) are:

* Flex Video Integration  (Tue, Oct 23, 2007)
* Flex for the PHP Developers  (Tue, Oct 30, 2007)
* Flex for the Java Developers  (Tue, Nov 6, 2007)
* Rich Internet Applications – The Big Payoffs  (Tue, Nov 13, 2007 &
Tue, Dec 4, 2007)

For details for all of the sessions above, and to register, see the
following page:
http://www.adobe.com/cfusion/event/index.cfm?event=detail&id=462539

Happy Flexing :-)

g


Re: [flexcoders] Re: Unknown destination 'EmployeeServiceRO [SOLVED]

2007-10-18 Thread Greg Morphis
Thanks guys for the help.. I believe I have everything working now.. I think
the problem was connected to my other post "Address in use"


On 10/18/07, Greg Morphis <[EMAIL PROTECTED]> wrote:
>
> I've checked the services-config.xml file and I have the level=Debug and
> Endpoint.* in there...
>
> 
> 
> 
> [Flex] 
> true
> true
> false
> false
> 
> 
> Endpoint.*
> Service.*
> Configuration
> 
> 
> 
>
> This is what I see in the console in regards to Endpoint...
> [Flex] 10/18/2007 09:07: 09.248 Starting Adobe Flex Data Services 2
> Enterprise
> [Flex] 10/18/2007 09:07:09.248 Adobe Flex Data Services Build: 155539
> [Flex] 10/18/2007 09:07:09.435 Endpoint my-amf created with security: None
> at URI: http://{ server.name}:{server.port}/{context.root
> }/messagebroker/amf
> [Flex] 10/18/2007 09:07:09.435 Endpoint my-polling-amf created with
> security: None
> at URI: http://{ server.name}:{server.port}/{context.root
> }/messagebroker/amfpolling
> [Flex] 10/18/2007 09:07:09.435 Endpoint my-http created with security:
> None
> at URI: http://{server.name}:{server.port }/{context.root
> }/messagebroker/http
> [Flex] 10/18/2007 09:07:09.435 Endpoint my-secure-amf created with
> security: None
> at URI: 
> https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure
>
> [Flex] 10/18/2007 09:07:09.498 Endpoint my-rtmp created with security:
> None
> at URI: rtmp://{server.name}:2038
> [Flex] 10/18/2007 09:07:09.498 Endpoint my-secure-http created with
> security: None
> at URI: https://{server.name}:9100/{context.root}/messagebroker/httpsecure
> [Flex] 10/18/2007 09:07:10.140 RTMP-Server listening on port:2038
>
>
> I log in, I get nothing in the console but still see this error
> [FaultEvent fault=[RPC Fault faultString="[MessagingError message='Unknown
> destination 'EmployeeServiceRO'.']" faultCode="InvokeFailed"
> faultDetail="Couldn't establish a connection to 'EmployeeServiceRO'"]
> messageId="395B4A39-05C2-B5EE-6E7E-B37436E1A204" type="fault" bubbles=false
> cancelable=true eventPhase=2]
>
> This is in the onFault of the LoginCommand.as file.
>
> I added the TraceTarget to the index.mxml file,
>
>  includeCategory="true" includeLevel="true">
> 
> 
> mx.messaging.*
> 
> 
> 
> 0
> 
>
> But where should I see this information? (The console is the same)
>
> I apologize but I did not understand this " The last thing I'll mention
> quickly just to be sure you is that if you are using HTTP based channels,
> the player is using the same HTTP session on the server as any jsp files
> running in that same web application."
>
> And no, things don't work with pre-authenticated session..  The
> /seurity/index.jsp  works and displays which role you log in as, but if I
> backed up and removed the security/index.jsp I'd get the same error.
> Thanks for the help guys..
>
>
>
>
>
>
>
>
>
>
>
>
>
> On 10/17/07, Jeff Vroom <[EMAIL PROTECTED] > wrote:
> >
> >  I'm not sure what is going on but one good way to diagnose these
> > problems is to turn on the debug logging on the client and server.  In this
> > case, since it seems to be a problem with the basic connections, you should
> > use the "Endpoint.*" target on the server.  In WEB-INF/flex/services-
> > config.xml, find level=  change that to Debug and make sure Endpoint.*
> > is in the targets below.
> >
> >
> >
> > On the client, I'd also turn on .
> >
> >
> >
> > The other thing I find that is helpful is to look at the configuration
> > which is getting compiled into your SWF.  When you compile your app, you
> > point it at the server's configuration and it copies a subset of that config
> > into the variable:
> >
> >
> >
> > mx.messaging.config.ServerConfig.xml
> >
> >
> >
> > you can print that out at startup (actually, this is done automatically
> > by mx:TraceTarget).
> >
> >
> >
> > The last thing I'll mention quickly just to be sure you is that if you
> > are using HTTP based channels, the player is using the same HTTP session on
> > the server as any jsp files running in that same web application.  It sounds
> > like things may work when you are dealing with a pre-authenticated session
> > but fail when the session is not in place.  It is relatively common that
> > people will put a security filter into the web.xml file to enforce
> > security.  If one of these filters runs before the MessageBrokerServlet
> > (also in web.xml) it may prevent flex from contacting the server in the
> > case where the filter aborts or redirects the request because the
> > authentication has failed.
> >
> >
> >
> > Jeff
> >
> >
> >  --
> >
> > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of
> > *Greg Morphis
> > *Sent:* Wednesday, October 17, 20

Re: [flexcoders] Re: problems access a Flex/CF site via a URL

2007-10-18 Thread Muzak

>> default ColdFusion destination
> 
> We remove that from our production servers because it allows the execution of 
> any CFC.

I guess that makes sense if you have dedicated hosting, not so when you have to 
deal with a shared hosting environment.

> 
>> Is it documented somewhere that a services-config.xml file is required
>> locally (at compile time) 
> 
> Probably.
> The docs for the -service mxmlc argument might help.
> 

Looked high and low, googled... nothing..

>> and on the server (and that they have to have 
>> matching destinations)?
> 
> Again, I've not checked, but it must be in the docs somewhere.
> 

It's not..

regards,
Muzak



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Re: Address in use error? [SOLVED]

2007-10-18 Thread Greg Morphis
This is solved

On 10/18/07, Greg Morphis <[EMAIL PROTECTED]> wrote:
> I changed the port from 2038 to 2039 in the services-config.xml and
> rebooted my computer, getting same error..
>
>  class="mx.messaging.channels.RTMPChannel">
>  class="flex.messaging.endpoints.RTMPEndpoint"/>
> 
> 20
> 100K
> 100K
> 
> 
> 
>
>
> On 10/18/07, Greg Morphis <[EMAIL PROTECTED]> wrote:
> > I deleted the project I was getting a Fault error on (see other post
> > for more information).
> > I uninstalled and reinstalled FDS2.0.1, I checked the project back out from 
> > CVS.
> > When I load the program I get
> > [Flex] 10/18/2007 12:26:51.938 RTMP-Server failed to start up:
> > java.net.BindException: Address already in use: bind
> > Exception in thread "RTMP-Server"
> > flex.messaging.endpoints.rtmp.RTMPException: The RTMP server has
> > encountered a fatal exception starting up: Address already in use:
> > bind
> > at 
> > flex.messaging.endpoints.rtmp.BaseNIORTMPServer.run(BaseNIORTMPServer.java:310)
> > at java.lang.Thread.run(Unknown Source)
> >
> > How do I correct this error? Thanks
> >
>


RE: [flexcoders] Is there any way to access java applet in AIR?

2007-10-18 Thread Samuel R. Neff

Unless there have been some recent changes, the AIR HTML component only
supports Flash Player and PDF embedded content.  No java applets or activex
controls or any other plugins.

Sam 


---
We're Hiring! Seeking a passionate developer to join our team building Flex
based products. Position is in the Washington D.C. metro area. If interested
contact [EMAIL PROTECTED]
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of michniu
Sent: Thursday, October 18, 2007 3:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is there any way to access java applet in AIR?

Hi  Gurus,

I have to access applet in my  Applcation. Is that possible if I use 
AIR HTML Component?

thanks in advance

Mike



[flexcoders] Is there any way to access java applet in AIR?

2007-10-18 Thread michniu
Hi  Gurus,

I have to access applet in my  Applcation. Is that possible if I use 
AIR HTML Component?

thanks in advance

Mike



RE: [flexcoders] List Component: Working with Collapsed and Expanded ItemRenderer

2007-10-18 Thread Jurgen Beck

Makes sense, Alex. Thanks!

I also found an entry in the Flex Bug system after I posted on the  
list. So, this is for documentation for others to see:


http://bugs.adobe.com/jira/browse/SDK-12343

In it was a great reference to an article you wrote:

http://blogs.adobe.com/aharui/2007/03/ 
thinking_about_item_renderers_1.html


On Oct 18, 2007, at 1:47 PM, Alex Harui wrote:



Renderers are recycled.  Only as many renderers that you can see  
are created regardless of how many items in your data provider.   
So, one renderer can end up having to render various items in the  
dataprovider.  As such, all aspects of its visuals must be driven  
by the .data object including which state it is in.




From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Jurgen Beck

Sent: Thursday, October 18, 2007 11:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] List Component: Working with Collapsed and  
Expanded ItemRenderer




I am experiencing something mildly strange with the List component
when using a custom item renderer that has two states, a collapsed
state and an expanded state.

When I have one or more item renderers in the expanded state, the
List component eventually will display the vertical scrollbar. Here
is the strange part:

When using the scrollbar to scroll through the list, the original
expanded item renderers that would normally disappear with their
expanded state from the visual range of the list get collapsed and
new list items that have not been expanded do so in their place.

As I am not forcing this behavior my thinking is that the List
component is either missing a property setting to prevent this
behavior, or this may be either a bug, or simply by design.

Anyone with some more info on this?

Thanks,

Jurgen








[flexcoders] Unable to use the source code -- Exchanging Complex Data with Back-End Systems

2007-10-18 Thread vkc_nair
http://www.adobe.com/devnet/flex/articles/complex_data.html

Trying to download and use the sample code(complexdata.zip) from the 
above site.

Getting the message Invalid archive. If any of you have a valid zip 
file please help.

Thanks
Vimal



RE: [flexcoders] String concat in MXML (with using @Resource)

2007-10-18 Thread Alex Harui
Binding is the only way to "declaratively" set up expressions that get
evaluated.

 

You can use script as well:

 





 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kramus0
Sent: Thursday, October 18, 2007 2:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] String concat in MXML (with using @Resource)

 

Hi all,

I have a simple question regarding text values in mxml files. Is it
possible to concat string values in a mxml text or label property?

So something like this:



I know that it doesn't work because it uses it as a hole string and
the single strings are not concatenated at all.

But it works if I use data binding instead



Are there any other possibilities for string concatenation?

I even would like to know if there is any possibility to use string
concatenation using the @Resource directive. Because here even data
binding doesn't work and I don't want to use ResourceManager etc. just
to add a simple colon to the resource string for instance. 

So maybe there is something that works.
Thank for your help.

Markus

 



[flexcoders] Rounded scroll bar flex skin ala mac style ?

2007-10-18 Thread Rick Schmitty
Has anyone had any luck with a completely rounded scroll bar skin?  It
seems no matter what I do with the scale nine lines that things get
stretched out into a missle tip instead of the ball tip I'm expecting


RE: [flexcoders] Drag Multiple items with the dragManager

2007-10-18 Thread Alex Harui
I would think you could hide the dragInitiator when you call dotDrag and
show it when you get a dragComplete event.

 

The dragImage you hand to doDrag can be a Canvas with the multiple items
positioned appropriately.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of joshuagatcke
Sent: Thursday, October 18, 2007 7:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Drag Multiple items with the dragManager

 

Does anyone know how I can send multiple items to dragManager.doDrag()?
I am not 
using a list based control/container, and I have manually added drag and
drop support to 
the items I want to drag/drop to. I want to select multiple items then
send an array of 
those items to the dragManager to drag multiple items at once.

I am also trying to figure out how to hide the dragInitiator item while
i am dragging the 
item so it looks like the item is being dragged live, not a copy of the
item. I am using a 
copy of the dragInitiators Bitmap data for the dragProxy, I also tried
to use the 
dragInitiator as the dragProxy, but cannot find a way to get the item to
re-appear after a 
drop. I tried setting the visibility of the dragInitiator to false when
the mouseMove event 
fires, then returning it back to visible = true when the item is
dropped, but this seems 
flaky at best. 

To sum it up, I just want it to look like I am dragging an item or
multiple items across the 
screen. I cannot resort to using the simple start/end drag() methods and
mouse events 
because these items will also be able to be dropped on drop targets. 

The drag Manager seems awesome, I just wish I knew how to take advantage
of it a bit 
more. I have read all the documentation several times and still do not
know how to do 
these things. I tried looking at the list based controls to see how they
drag multiple items 
etc, to no avail. 

Thanks in advance for any tips/advice/help. 

 



RE: [flexcoders] stylesheet issue crashing app

2007-10-18 Thread Alex Harui
That's not what the stack trace shows.  Is it possible that you are
compiling LoginManager as your app class in your project?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robert Cuadra
Sent: Tuesday, October 16, 2007 10:26 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] stylesheet issue crashing app

 

Yes, I am using mx:Application. The code pasted is from an external
class called LoginManager. It gets instantiated on the creationComplete
event from the main app.

---
Robert Cuadra
Cuadra Development
WEB: http://www.cuadradevelopment.com 

AIM: [EMAIL PROTECTED]  
TEL: 310.574.2501
EMAIL: [EMAIL PROTECTED]
 
---
 



Alex Harui wrote: 

Are you using an mx:Application as the top tag in your app?  It looks
like you may not be and initialization is out of order.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Robert Cuadra
Sent: Tuesday, October 16, 2007 5:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] stylesheet issue crashing app

 

using Flex3 beta2.

I have this in my .css file:

.loginBoxLabel {
color: #FF;
font-size: 12;
text-align: right;
font-family: Verdana;
}

And this in a class which inherits from Panel:

unLabel = new Label();
unLabel.styleName = 'loginBoxLabel';
unLabel.text = 'Username:';
this.addChild(unLabel);

This causes an exception which crashes the app. The culprit would appear

to be the fontFamily, because if I add this line before addChild:

unLabel.setStyle('fontFamily', 'Verdana');

It works fine. Anyone have any idea why this is happening?

Also, in both cases calling "trace('style: 
'+unLabel.getStyle('fontFamily'));", which is what causes it to fail at 
UIComponent.as:8769, returns undefined.

Here is the stack trace:

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
at 
mx.core::UIComponent/getStyle()[E:\dev\flex_3_beta2\sdk\frameworks\proje
cts\framework\src\mx\core\UIComponent.as:7476] 

at 
mx.core::UIComponent/mx.core:UIComponent::createInFontContext()[E:\dev\f
lex_3_beta2\sdk\frameworks\projects\framework\src\mx\core\UIComponent.as
:8769] 

at 
mx.controls::Label/http://www.adobe.com/2006/flex/mx/internal::createTex
tField 
()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\controls
\Label.as:1365] 

at 
mx.controls::Label/mx.controls:Label::createChildren()[E:\dev\flex_3_bet
a2\sdk\frameworks\projects\framework\src\mx\controls\Label.as:1185] 

at 
mx.core::UIComponent/initialize()[E:\dev\flex_3_beta2\sdk\frameworks\pro
jects\framework\src\mx\core\UIComponent.as:5144] 

at 
mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAd
ded 
()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\core\UIC
omponent.as:5041] 

at 
mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdde
d 
()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\core\Con
tainer.as:3334] 

at 
mx.core::Container/addChildAt()[E:\dev\flex_3_beta2\sdk\frameworks\proje
cts\framework\src\mx\core\Container.as:2258] 

at 
mx.core::Container/addChild()[E:\dev\flex_3_beta2\sdk\frameworks\project
s\framework\src\mx\core\Container.as:2188] 

at 
classes.core.managers::LoginManager/classes.core.managers:LoginManager::
createLayout()[/Users/Robert/Documents/Flex 
Builder 3/CMS2/classes/core/managers/LoginManager.as:61]
at classes.core.managers::LoginManager()[/Users/Robert/Documents/Flex 
Builder 3/CMS2/classes/core/managers/LoginManager.as:45]
at classes.core.managers::LoginManager$cinit()
at global$init()[/Users/Robert/Documents/Flex Builder 
3/CMS2/classes/core/managers/LoginManager.as:15]
at CMS2()[/Users/Robert/Documents/Flex Builder 3/CMS2/CMS2.mxml:10]
at _CMS2_mx_managers_SystemManager/create()
at 
mx.managers::SystemManager/mx.managers:SystemManager::initializeTopLevel
Window()[E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\ma
nagers\SystemManager.as:2428] 

at 
mx.managers::SystemManager/mx.managers:SystemManager::docFrameHandler()[
E:\dev\flex_3_beta2\sdk\frameworks\projects\framework\src\mx\managers\Sy
stemManager.as:2320] 

Thanks.

-- 
---
Robert Cuadra
Cuadra Development
WEB: http://www.cuadradevelopment.com 

AIM: [EMAIL PROTECTED]
 
TEL: 310.574.2501
EMAIL: [EMAIL PROTECTED]
 
---

 



RE: [flexcoders] List Component: Working with Collapsed and Expanded ItemRenderer

2007-10-18 Thread Alex Harui
Renderers are recycled.  Only as many renderers that you can see are
created regardless of how many items in your data provider.  So, one
renderer can end up having to render various items in the dataprovider.
As such, all aspects of its visuals must be driven by the .data object
including which state it is in.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jurgen Beck
Sent: Thursday, October 18, 2007 11:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] List Component: Working with Collapsed and
Expanded ItemRenderer

 

I am experiencing something mildly strange with the List component 
when using a custom item renderer that has two states, a collapsed 
state and an expanded state.

When I have one or more item renderers in the expanded state, the 
List component eventually will display the vertical scrollbar. Here 
is the strange part:

When using the scrollbar to scroll through the list, the original 
expanded item renderers that would normally disappear with their 
expanded state from the visual range of the list get collapsed and 
new list items that have not been expanded do so in their place.

As I am not forcing this behavior my thinking is that the List 
component is either missing a property setting to prevent this 
behavior, or this may be either a bug, or simply by design.

Anyone with some more info on this?

Thanks,

Jurgen

 



Re: [flexcoders] SOT: CF LDAP

2007-10-18 Thread Giles Roadnight
Thanks for the reply, I have it working now. One of the parameters was
different to the parameters we have on the on the other servers, I changed
it and it worked. I don't know why it worked before though!

On 10/18/07, Douglas Knudsen <[EMAIL PROTECTED]> wrote:
>
>   yup, though could be somethign else.  If your LDAP server requires SSL
> connection only, you need to install the cert into the JVM.  This cert has
> NOTHING to do with your domain name, its a cert for communication between
> the server software and your LDAP server.  So, should be easy to copy this
> cert from your old working server to the new one and install it.  Sorry, I
> have no URL to give you, but a search on Adobes site should turn up a
> article speaking to how to do this.
>
> Also, I suggest posting this sort of question on CF-Talk at
> houesoffusion.com.
>
> cheers!
>
> DK
>
> On 10/18/07, Giles Roadnight <[EMAIL PROTECTED]> wrote:
> >
> >   Hi All
> >
> > Some of the code I have inherited contains a CFLDAP tag in it that
> > retrieves data about users that's used in a cfc.
> >
> > We've just moved the server to a new domain and don't as yet have a
> > valid certificate for the new domain.
> >
> > The code that used to work fine to get the LDAP info now doesn't work.
> > I get a "Connection to LDAP Server failed" Error.
> >
> > Would this be because of the invalid SSL certificate?
> >
> > Any other suggestions about what I should look at?
> >
> > Thanks
> >
> > Giles
> >
> >
>
>
> --
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>  
>



-- 
Giles Roadnight
http://giles.roadnight.name


[flexcoders] Re: Address in use error?

2007-10-18 Thread Greg Morphis
I changed the port from 2038 to 2039 in the services-config.xml and
rebooted my computer, getting same error..




20
100K
100K





On 10/18/07, Greg Morphis <[EMAIL PROTECTED]> wrote:
> I deleted the project I was getting a Fault error on (see other post
> for more information).
> I uninstalled and reinstalled FDS2.0.1, I checked the project back out from 
> CVS.
> When I load the program I get
> [Flex] 10/18/2007 12:26:51.938 RTMP-Server failed to start up:
> java.net.BindException: Address already in use: bind
> Exception in thread "RTMP-Server"
> flex.messaging.endpoints.rtmp.RTMPException: The RTMP server has
> encountered a fatal exception starting up: Address already in use:
> bind
> at 
> flex.messaging.endpoints.rtmp.BaseNIORTMPServer.run(BaseNIORTMPServer.java:310)
> at java.lang.Thread.run(Unknown Source)
>
> How do I correct this error? Thanks
>


[flexcoders] List Component: Working with Collapsed and Expanded ItemRenderer

2007-10-18 Thread Jurgen Beck
I am experiencing something mildly strange with the List component  
when using a custom item renderer that has two states, a collapsed  
state and an expanded state.

When I have one or more item renderers in the expanded state, the  
List component eventually will display the vertical scrollbar. Here  
is the strange part:

When using the scrollbar to scroll through the list, the original  
expanded item renderers that would normally disappear with their  
expanded state from the visual range of the list get collapsed and  
new list items that have not been expanded do so in their place.

As I am not forcing this behavior my thinking is that the List  
component is either missing a property setting to prevent this  
behavior, or this may be either a bug, or simply by design.

Anyone with some more info on this?

Thanks,

Jurgen


[flexcoders] Address in use error?

2007-10-18 Thread Greg Morphis
I deleted the project I was getting a Fault error on (see other post
for more information).
I uninstalled and reinstalled FDS2.0.1, I checked the project back out from CVS.
When I load the program I get
[Flex] 10/18/2007 12:26:51.938 RTMP-Server failed to start up:
java.net.BindException: Address already in use: bind
Exception in thread "RTMP-Server"
flex.messaging.endpoints.rtmp.RTMPException: The RTMP server has
encountered a fatal exception starting up: Address already in use:
bind
at 
flex.messaging.endpoints.rtmp.BaseNIORTMPServer.run(BaseNIORTMPServer.java:310)
at java.lang.Thread.run(Unknown Source)

How do I correct this error? Thanks


[flexcoders] Re: Framework Caching not working

2007-10-18 Thread Darrell Loverin
>Just one more question about flash player, why adobe don't put flex
framework inside Flash Player? It will make Flex be amazing plataform
even for small websites and app, confroting ajax in your best vantage
on flex, the size of files without any first huge loading.

It would make the download size of the Flash Player larger. Not all 
Flash applications are Flex applications so the Framework is only 
downloaded and cached when needed.


--- In flexcoders@yahoogroups.com, "danielvlopes" <[EMAIL PROTECTED]> 
wrote:
>
> Many thanks Darrell, now i uderstand why getting error.
> And -static-rsls=false keep my build.xml much more clean and easy 
to
> read, and avoid configuration problems.
> Thanks again.
> 
> Just one more question about flash player, why adobe don't put flex
> framework inside Flash Player? It will make Flex be amazing 
plataform
> even for small websites and app, confroting ajax in your best 
vantage
> on flex, the size of files without any first huge loading.
> 
> Here i paste my build.xml file content for some day anyone had same
> questions:
> 
> 
> 
> 
> 
>   
>   
>   
> 
>   
>failifexecutionfails="no">
>   
>   
>
> 
>failifexecutionfails="no">
>   
>   
>failifexecutionfails="no">
>   
>   
>failifexecutionfails="no">
>   
>   
>failifexecutionfails="no">
>   
>   
>failifexecutionfails="no">
>   
>   
>failifexecutionfails="no">
>   
>   
>  
>
> 
> 
> 
>  
> --- In flexcoders@yahoogroups.com, "Darrell Loverin"
>  wrote:
> >
> > I clipped this output from entering "mxmlc -help list details" 
at 
> > the command line:
> > 
> > -runtime-shared-library-path [path-element] [rsl-url] [policy-
file-
> > url] [rsl-url
> > ] [policy-file-url]
> > alias -rslp
> >  (repeatable)
> > 
> > The first argument is a path to a swc. You supplied C:\3.0.0
> > \frameworks\rsls\framework_3.0.183453.swz which is incorrect. 
This 
> > file is an RSL.
> > The second argument is an URL to the RSL: You supplied nothing 
which 
> > is why you got the error that an "rsl-url" is required.
> > 
> > The easiest why to try out the framework RSLs is to use the Beta 
> > Flex 3 flex-config.xml and add static-rsls=false to the command 
> > line. This will use the preconfigured "runtime-shared-library-
path" 
> > options setup in flex-config.xml. The preconfigured settings 
assume 
> > you will copy framework_3.0.183453.swz and 
framework_3.0.183453.swf 
> > from your sdk's framework RSLs directory to the same directory 
where 
> > your application is deployed.
> > 
> > 
> > -Darrell
> > 
> > --- In flexcoders@yahoogroups.com, "danielvlopes" 
 
> > wrote:
> > >
> > > Hello Darrell, i trying to do this:
> > > -runtime-shared-library-path=C:\3.0.0
> > 
\frameworks\rsls\framework_3.0.183453.swz,,framework_3.0.183453.swf
> > > -target-player=9.0.60
> > > 
> > > like you said, but i getting error:
> > > command line: Error: configuration variable
> > > 'runtime-shared-library-path' requires a value for 'rsl-url'
> > > 
> > > --- In flexcoders@yahoogroups.com, "Darrell Loverin"
> > >  wrote:
> > > >
> > > > Yes, that is a correct way of using a swz (signed by Adobe) 
RSL. 
> > The 
> > > > first URL is framework_3.0.183453.swz. Since there is no 
path, 
> > it 
> > > > means you are deploying framework_3.0.183453.swz in the same 
> > > > directory as your application. As was noted in a previous 
post, 
> > the 
> > > > rsls are located in the frameworks/rsls subdirectory of the 
SDK. 
> > The 
> > > > next parameter is the policy file URL which you have left 
blank 
> > > > since a policy file not needed to read 
framework_3.0.183453.swz. 
> > The 
> > > > next URL, framework_3.0.183453.swf, is the failover URL in 
case 
> > > > there is a problem reading framework_3.0.183453.swz. One 
problem 
> > > > could be the player trying to load framework_3.0.183453.swz 
is 
> > not 
> > > > version 9.0.60 or greater. If that is the case then 
> > > > framework_3.0.183453.swz will be skipped and 
> > > > framework_3.0.183453.swf will be downloaded.
> > > > 
> > > > Since you have specified an unsigned swf RSL as a failover 
for 
> > the 
> > > > swz RSL, you don't need the -target-player option, but it is 
not 
> > > > hurting anything.
> > > > 
> > > > What -target-player=9.0.60 does is tell the compiler that 
you 
> > are 
> > > > going to require player version 9.0.60 or higher in your 
html 
> > > > wrapper. This will stop the compiler from complaining if you 
> > specify 
> > > > a swz RSL without a swf RSL as a failover.
> > > > 
> > > > 
> > > > -Darrell
> > > > 
> > > > 
> > > > 
> > > > --- In flexcoders@yahoogroups.com

RE: [flexcoders] Method for Currently focussed Component

2007-10-18 Thread Alex Harui
I hope his answer is focusmgr.getfocus

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Thursday, October 18, 2007 7:43 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Method for Currently focussed Component

 

Tell us, please.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peeyush Tuli
Sent: Thursday, October 18, 2007 9:31 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Method for Currently focussed Component

 

I got the solution.

 

Regards,

Peeyush Tuli

MetaDesign Solutions

 

- Original Message - 

From: Peeyush Tuli   

To: flexcoders@yahoogroups.com
  

Sent: Thursday, October 18, 2007 6:40 PM

Subject: [flexcoders] Method for Currently focussed Component

 

Hi,

 

Is there a way to determine at the application level, the child
UI Component  having the current focus ?

 

Regards,
Peeyush Tuli
MetaDesignSolutions

 



RE: [flexcoders] dataTipFunction position in datagrid

2007-10-18 Thread Alex Harui
Try tooltipshow in a custom renderer

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hammer995
Sent: Thursday, October 18, 2007 8:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dataTipFunction position in datagrid

 

I have the following:



The fullAcctName returns a string.

Unfortunately, the string is displayed right over the cell you are
hovering over to get the tooltip. Is there a way to give it an offset
so it doesn't block the cell?

Thanks!

 



[flexcoders] Re: Flex is becoming unviable

2007-10-18 Thread danielvlopes
I'm sure i will note rebuild the project, i'm realy like flex and
adobe products, but i will waiting some months and the final release
to use flex in small websites and app.(When more user has dowloaded
framework :-))

Only reason i prefer rsl inside player is minimize initial dowloadn time.

But i think Hank had reason in some aspect.

If we look on general internet ambient, most user had broadband and
fast internet on other places of world, here in Brazil 70% of users
had broadband internet connection and we (when developing for brasil)
allways must remind this. And not good idea put framework inside
player when 500kb is nothing when use fast connections.

Thanks, bye.

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Monday 15 Oct 2007, [EMAIL PROTECTED] wrote:
> > Everything works fine (ignoring the 500kb framework file it is
> > necessary for users to access the site.)
> 
> With the .60 player and Flex 3, that can be cached across any Flex
web sites.
> 
> > 200kb or 130kb (not really small but acceptable). But now, with beta 2
> > simple files came to 400kb.
> 
> 
> Read the release notes. Esp. the bit about 'export release version'.
> 
> > I becoming thinking i waste my time learning flex and waste the money
> > of my client testing flex in your app, I am already thinking about
> > redo the whole project in ruby on rails and ajax.
> 
> Dube ! No, just no :-)
> 
> -- 
> Tom Chiverton. Are you a great Flex programmer, who knows Cairngorm,
and has 
> done some ColdFusion work ? Would you like to work for a top 30 law
firm in 
> Manchester, UK ? Are not an agency ? If yes, send email !
> 
> 
> 
> 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 St James's Court Brown Street Manchester M2 2JF.
 A list of members is available for inspection at the registered
office.  Any reference to a partner in relation to Halliwells LLP
means a member of Halliwells LLP.  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 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] Re: Problems do make framework caching work

2007-10-18 Thread danielvlopes
I fix this with Darrell Loverin and Alex Harui help in this link 
http://tech.groups.yahoo.com/group/flexcoders/message/91096

--- In flexcoders@yahoogroups.com, "danielvlopes" <[EMAIL PROTECTED]>
wrote:
>
> Hello Alex, i try upload the swf's files generated and everything
> still white and nothing happen, when i compile em builder em export
> release everything work fine and framework caching to.
> 
> This is the content of file you ask in last email:
>   
> package
> {
> 
> import flash.text.Font;
> import flash.text.TextFormat;
> import flash.system.ApplicationDomain;
> import flash.utils.getDefinitionByName;
> import mx.core.IFlexModule;
> import mx.core.IFlexModuleFactory;
> 
> import mx.managers.SystemManager;
> 
> [ResourceBundle("collections")]
> [ResourceBundle("containers")]
> [ResourceBundle("controls")]
> [ResourceBundle("core")]
> [ResourceBundle("effects")]
> [ResourceBundle("logging")]
> [ResourceBundle("skins")]
> [ResourceBundle("styles")]
> public class _PainelAdmApp_mx_managers_SystemManager
> extends mx.managers.SystemManager
> implements IFlexModuleFactory
> {
> // Cause the CrossDomainRSLItem class to be linked into this
> application.
> import mx.core.CrossDomainRSLItem; CrossDomainRSLItem;
> 
> public function _PainelAdmApp_mx_managers_SystemManager()
> {
> 
> super();
> }
> 
> override public function create(... params):Object
> {
> if (params.length > 0 && !(params[0] is String))
> return super.create.apply(this, params);
> 
> var mainClassName:String = params.length == 0 ? "PainelAdmApp"
> : String(params[0]);
> var mainClass:Class = Class(getDefinitionByName(mainClassName));
> if (!mainClass)
> return null;
> 
> var instance:Object = new mainClass();
> if (instance is IFlexModule)
> (IFlexModule(instance)).moduleFactory = this;
> return instance;
> }
> 
> overridepublic function info():Object
> {
> return {
> cdRsls:
>
[{"rsls":["C:\3.0.0\frameworks\rsls\framework_3.0.183453.swz","framework_3.0.183453.swf"],
> "policyFiles":["",""]
>
,"digests":["f6547415eaac8c840d212c23795d22d7883914c373dd504af1ded18611bc2e5a","f6547415eaac8c840d212c23795d22d7883914c373dd504af1ded18611bc2e5a"],
> "types":["SHA-256","SHA-256"],
> "isSigned":[true,false]
> }]
> ,
> compiledLocales: [ "en_US" ],
> compiledResourceBundleNames: [ "collections",
> "containers", "controls", "core", "effects", "logging", "messaging",
> "skins", "styles" ],
> creationComplete: "initApp()",
> currentDomain: ApplicationDomain.currentDomain,
> height: "1000",
> layout: "absolute",
> mainClassName: "PainelAdmApp",
> mixins: [ "_PainelAdmApp_FlexInit",
> "_richTextEditorTextAreaStyleStyle", "_alertButtonStyleStyle",
> "_SWFLoaderStyle", "_textAreaVScrollBarStyleStyle",
> "_headerDateTextStyle", "_globalStyle", "_ListBaseStyle",
> "_todayStyleStyle", "_windowStylesStyle", "_TileListStyle",
> "_ApplicationStyle", "_ToolTipStyle", "_CursorManagerStyle",
> "_opaquePanelStyle", "_errorTipStyle", "_dateFieldPopupStyle",
> "_dataGridStylesStyle", "_popUpMenuStyle",
> "_headerDragProxyStyleStyle", "_activeTabStyleStyle",
> "_DragManagerStyle", "_ContainerStyle", "_windowStatusStyle",
> "_ScrollBarStyle", "_swatchPanelTextFieldStyle",
> "_textAreaHScrollBarStyleStyle", "_plainStyle",
> "_activeButtonStyleStyle", "_advancedDataGridStylesStyle",
> "_comboDropdownStyle", "_ButtonStyle", "_weekDayStyleStyle",
> "_linkButtonStyleStyle", "_PainelAdmAppWatcherSetupUtil",
> "_com_BtnPainelWatcherSetupUtil" ],
> pageTitle: "Brasil Mining Site",
> width: "550"
> }
> }
> }
> 
> }
> 
> 
> 
> 
> 
> 
> Thanks again.
>




[flexcoders] Re: Framework Caching not working

2007-10-18 Thread danielvlopes
Many thanks Darrell, now i uderstand why getting error.
And -static-rsls=false keep my build.xml much more clean and easy to
read, and avoid configuration problems.
Thanks again.

Just one more question about flash player, why adobe don't put flex
framework inside Flash Player? It will make Flex be amazing plataform
even for small websites and app, confroting ajax in your best vantage
on flex, the size of files without any first huge loading.

Here i paste my build.xml file content for some day anyone had same
questions:













 



















   
   
  


 
--- In flexcoders@yahoogroups.com, "Darrell Loverin"
<[EMAIL PROTECTED]> wrote:
>
> I clipped this output from entering "mxmlc -help list details" at 
> the command line:
> 
> -runtime-shared-library-path [path-element] [rsl-url] [policy-file-
> url] [rsl-url
> ] [policy-file-url]
> alias -rslp
>  (repeatable)
> 
> The first argument is a path to a swc. You supplied C:\3.0.0
> \frameworks\rsls\framework_3.0.183453.swz which is incorrect. This 
> file is an RSL.
> The second argument is an URL to the RSL: You supplied nothing which 
> is why you got the error that an "rsl-url" is required.
> 
> The easiest why to try out the framework RSLs is to use the Beta 
> Flex 3 flex-config.xml and add static-rsls=false to the command 
> line. This will use the preconfigured "runtime-shared-library-path" 
> options setup in flex-config.xml. The preconfigured settings assume 
> you will copy framework_3.0.183453.swz and framework_3.0.183453.swf 
> from your sdk's framework RSLs directory to the same directory where 
> your application is deployed.
> 
> 
> -Darrell
> 
> --- In flexcoders@yahoogroups.com, "danielvlopes"  
> wrote:
> >
> > Hello Darrell, i trying to do this:
> > -runtime-shared-library-path=C:\3.0.0
> \frameworks\rsls\framework_3.0.183453.swz,,framework_3.0.183453.swf
> > -target-player=9.0.60
> > 
> > like you said, but i getting error:
> > command line: Error: configuration variable
> > 'runtime-shared-library-path' requires a value for 'rsl-url'
> > 
> > --- In flexcoders@yahoogroups.com, "Darrell Loverin"
> >  wrote:
> > >
> > > Yes, that is a correct way of using a swz (signed by Adobe) RSL. 
> The 
> > > first URL is framework_3.0.183453.swz. Since there is no path, 
> it 
> > > means you are deploying framework_3.0.183453.swz in the same 
> > > directory as your application. As was noted in a previous post, 
> the 
> > > rsls are located in the frameworks/rsls subdirectory of the SDK. 
> The 
> > > next parameter is the policy file URL which you have left blank 
> > > since a policy file not needed to read framework_3.0.183453.swz. 
> The 
> > > next URL, framework_3.0.183453.swf, is the failover URL in case 
> > > there is a problem reading framework_3.0.183453.swz. One problem 
> > > could be the player trying to load framework_3.0.183453.swz is 
> not 
> > > version 9.0.60 or greater. If that is the case then 
> > > framework_3.0.183453.swz will be skipped and 
> > > framework_3.0.183453.swf will be downloaded.
> > > 
> > > Since you have specified an unsigned swf RSL as a failover for 
> the 
> > > swz RSL, you don't need the -target-player option, but it is not 
> > > hurting anything.
> > > 
> > > What -target-player=9.0.60 does is tell the compiler that you 
> are 
> > > going to require player version 9.0.60 or higher in your html 
> > > wrapper. This will stop the compiler from complaining if you 
> specify 
> > > a swz RSL without a swf RSL as a failover.
> > > 
> > > 
> > > -Darrell
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "danielvlopes" 
>  
> > > wrote:
> > > >
> > > > Hello Alex,
> > > > 
> > > > Let me understand... the right way is using swz?
> > > > 
> > > > Like this?
> > > >  > > failonerror="false"
> > > > failifexecutionfails="no">
> > > > 
> > > > 
> > > >  
> > > > 
> > > > Why i`m use ANT the .swf and .swz of framework is not 
> generated?
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "Alex Harui"  
> wrote:
> > > > >
> > > > > I think the rsl line is supposed to look like this:
> > > > >  
> > > > > -runtime-shared-library-
> > > path=C:\moxie\frameworks\libs\framework.swc,fram
> > > > > ework_3.0.183453.swz,,framework_3.0.183453.swf
> > > > >  
> > > > > This signifies the use of a digital signature for the rsl 
> > > which "turns
> > > > > on" the cross-domain rsl feature and requests that the rsl, 
> if 
> > > the
> > > > > signat

[flexcoders] questions about Flex and deploying on servers

2007-10-18 Thread stephen50232
Hi,

I always create my Flex apps using the ColdFusion remoting project in
Flex builder, then I put the in my wwwroot folder on my dev machine,
and everything works fine.

now when I try to deploy them to another server I always get errors
(CFCs not found, java.lang.NullPointerExceptions), so I have a couple
of questions about setting up CF based flex applications.

1. Does all the config files that come with Flex have to be the same
on my live server as they are on my dev machine?

2. If so can I copy the config files from my dev machine to my live
server?

3. Do all CF/Flex apps have to be under Inetpub\wwwroot\ so that the
CFCs can be found?

4. Do I have to copy over all the code for my application or just the
files in the bin folder?

5. Do I need to create mappings in CFAdministrator for my CFCs?

What I looking to do is get a standard way I can build and deploy my
Flex applications, so I don't get these same problems everytime I
create a new Flex app and deploy it to the server.

Thanks

Stephen



RE: [flexcoders] FLEX2 - Adding license parameters

2007-10-18 Thread Stephane De Jonckheere
Hello again,

I still have the problem.

 

When installing FB2 and registering it, it asks for the FB serial number
and we can input the charting one. If I do that, Flex app compiled with
FB doesn't have the watermark.

 

For deployment purpose, I use an ANT script that build pre-configured
version of our web application.

I'm using Flex Ant Task (but I also tried a home made mxmlc task) with
FLEX_HOME pointing at the same framework. License.properties file is
correctly set for FDS and CHARTING. I also add licensing parameters to
the mxmlc task. But produced SWF is still having the watermark.

 

What am I doing wrong?

I read that I might need to recompile the Charting component. How do I
do that? There is no explanation.

I mean, the charts.swc file has a specific structure, do I have to build
it by hand?

 

Thanks in advance,

Stephane

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stephane De Jonckheere
Sent: 13 septembre 2007 12:18
To: flexcoders@yahoogroups.com
Subject: [flexcoders] [FLEX-ANT] Adding license parameters

 

Hello,

I try to use Flex Ant Task to create a production version with flex
charting and fds.

 

Even if I put the license parameters in the license.properties of the
framework, mxmlc is not generating a version that uses the licenses.

I add the following parameters in the MXMLC task:



I also tried something like:



charting

serialnumberhere



 

But it's rejected by the ant program.

 

Does anybody knows the syntax to use with the license tag?

 

Thanks in advance

 




This email and any attachments transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you are not the intended recipient, any disclosure,
copying, use, or distribution of the information included in this
message and any attachments is strictly prohibited.

If you have received this email in error please notify the system
manager at [EMAIL PROTECTED] or by reply e-mail and immediately and
permanently delete this message and any attachments. Thank you.

 




 

 



This email and any files transmitted with it contain confidential information 
and are intended solely for the use of the individual or entity to whom they 
are addressed. If you are not the intended recipient, you are hereby notified 
that any disclosure, copying, use, or distribution of the information included 
in this message and any attachments is strictly prohibited. If you have 
received this email in error please notify the system manager at [EMAIL 
PROTECTED] or by reply email and immediately and permanently delete this 
message and any attachments. Email transmission cannot be guaranteed to be 
secure or error-free and may be susceptible to data corruption, delay, 
interception, unauthorised amendment, or contain viruses. The sender therefore 
does not accept liability for any errors, omissions or other such consequences 
which may arise as a result of this email transmission. 




[flexcoders] Re: Flex app security on IIS

2007-10-18 Thread carl_steinhilber
Thanks Paul, that's GREAT information.
If URL-rewriting is "a pain" and only works "in some cases"... I'm not
really sold on it, especially since I believe it would take an act of
congress for our IT folk to set it up on the server.

Sending a token seems to me to be a much more manageable idea, since I
could set it all up myself and I'd be in charge of my own destiny.

But I am a little confused. You mention having another request to grab
a token. How does *that* request get authenticated? And once the token
is acquired, doesn't it need to be sent in the upload request in a
specific header to establish that it's authenticated? How is that
possible?

Any further insight would be greatly appreciated.

Thanks again,
-Carl


--- In flexcoders@yahoogroups.com, Paul deCoursey <[EMAIL PROTECTED]> wrote:
>
> This is a bug that I have reported before.  The upload request does not 
> share the session with the other requests on the system.  ie, cookies 
> are not sent that have not been set by any other upload requests.  In 
> some cases I've been able to use URL-Rewriting to share the session,
but 
> it's a pain.  My solution has been to allow unsecured uploads by 
> supplying a token to the request.  What I do it have another request 
> that is on the authenticated session request a token, we use a UUID 
> generated by the server. We pass that in as a parameter on the upload 
> request and that server side handler will then map that request to the 
> correct session.  We use tokens because we can expire them after a 
> single use.  We had trouble with url-rewriting because by default all 
> the servers we were deploying on did not have that enabled by default 
> and some clients just didn't want to support that.
> 
> Really url-rewriting for session management should do it for you.
> 
> Paul
> 
> 
> carl_steinhilber wrote:
> > I have a Flex2 app that sits on a secure intranet running IIS.
> > One of the functions uploads a file from client-side to the server.
> > I create the URLRequest to an .asp page receiver, set up params, and
> > execute a .upload on a FileReference using that URLRequest.
> >
> > But for some reason, even though I've authenticated against the server
> > to access the app, I get a second authentication challenge/response
> > when I hit the upload button.
> >
> > I've added a cross-domain.xml with 
> >
> >   
> >
> > even though I don't think I should have to since the .asp page is on
> > the exact same domain as the app. I've even modified the index
> > template for the Flex project to use allowScriptAccess="always". But I
> > still get this second IIS login prompt. 
> >
> > If I authenticate again via this second dialog, the upload executes
> > properly, so I know the logic and architecture is correct.
> >
> > Is there a way to pass the user's authenticated info with the
> > URLRequest/FileReference.upload()? I've poured through the docs and
> > can't find anything. Or is there something else I'm missing?
> >
> >
> > Thanks in advance,
> > -Carl
> >
>




Re: [flexcoders] Flex 2 Framework Caching?

2007-10-18 Thread Daniel Freiman
Yeah, my question was opperating on the assumption that something will go
wrong.  Because in my experience no matter how good framework devs are, it
seems like upgrades always cause problems for someone's code (In other
words, I'm worried about that 0.1 percent you mentioned that will need
work).  And this time my code definitely has the potential to be that code.
I haven't played with Flex 3 much yet, so maybe my app will work perfectly
in Flex 3.  If not, I'm not looking forward to bug fixing my code base for
Flex 3 (a pain which would be roughly related to the size of the codebase).
Call if paranoia if you want.  I guess I'll find out when I get there...or
Adobe could decide to sign a Flex 2.0.1 framework RSL :)

- Dan Freiman

On 10/18/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:
>
> On Thursday 18 Oct 2007, [EMAIL PROTECTED] wrote:
> > I know the Flex 3 sdk will be required for framework caching, but Flex
> > Builder 3 can compile Flex 2 code.  If I chose this option will there a
> > digitally signed release of the Flex 2 framework.
>
> No, only Adobe can sign RSLs, and I haven't seen any indication they'll do
> so
> for a Flex 2 framework.
>
> > upgrade my code to work with the Flex 3 framework just to gain this
> > functionality.
>
> As far as I can tell, 99.9% of applications need no work to go from Flex 2
> to
> 3.
>
> > Also, it seems to me that developers with larger projects
> > will have more incentive to create framework caching projects, but will
> > also have the hardest time upgrading their project from flex 2 to 3
> because
> > of their large code base.
>
> You change one option in Builders properties (or add a few arguments to
> mxmlc), and it's done.
> How is this hard, or dependant on the size of the code base ?
>
> --
> Tom Chiverton. Are you a great Flex programmer, who knows Cairngorm, and
> has
> done some ColdFusion work ? Would you like to work for a top 30 law firm
> in
> Manchester, UK ? Are not an agency ? If yes, send email !
>
> 
>
> 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 St James's Court Brown Street Manchester M2 2JF.  A list of members is
> available for inspection at the registered office.  Any reference to a
> partner in relation to Halliwells LLP means a member of Halliwells
> LLP.  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 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


[flexcoders] Re: String concat in MXML (with using @Resource)

2007-10-18 Thread droponrcll
--- In flexcoders@yahoogroups.com, "kramus0" <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> 
> I have a simple question regarding text values in mxml files. Is it
> possible to concat string values in a mxml text or label property?
> 
> So something like this:
> 
> 
> 
> I know that it doesn't work because it uses it as a hole string and
> the single strings are not concatenated at all.
> 
> But it works if I use data binding instead
> 
> 
> 
> Are there any other possibilities for string concatenation?
> 
> I even would like to know if there is any possibility to use string
> concatenation using the @Resource directive. Because here even data
> binding doesn't work and I don't want to use ResourceManager etc. 
just
> to add a simple colon to the resource string for instance. 

I suspect



would actually give you 

BoundValueVarContents + AnotherBoundValueVarContents

on the screen (i.e. you'll see the plus on the screen).

But for what you want, you may want to try:



HTH;

Amy



Re: [flexcoders] Flex 2 Framework Caching?

2007-10-18 Thread Tom Chiverton
On Thursday 18 Oct 2007, [EMAIL PROTECTED] wrote:
> I know the Flex 3 sdk will be required for framework caching, but Flex
> Builder 3 can compile Flex 2 code.  If I chose this option will there a
> digitally signed release of the Flex 2 framework. 

No, only Adobe can sign RSLs, and I haven't seen any indication they'll do so 
for a Flex 2 framework.

> upgrade my code to work with the Flex 3 framework just to gain this
> functionality. 

As far as I can tell, 99.9% of applications need no work to go from Flex 2 to 
3.

> Also, it seems to me that developers with larger projects 
> will have more incentive to create framework caching projects, but will
> also have the hardest time upgrading their project from flex 2 to 3 because
> of their large code base.

You change one option in Builders properties (or add a few arguments to 
mxmlc), and it's done. 
How is this hard, or dependant on the size of the code base ?

-- 
Tom Chiverton. Are you a great Flex programmer, who knows Cairngorm, and has 
done some ColdFusion work ? Would you like to work for a top 30 law firm in 
Manchester, UK ? Are not an agency ? If yes, send email !



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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  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 8008.

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


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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] dataTipFunction position in datagrid

2007-10-18 Thread hammer995
I have the following:



The fullAcctName returns a string.

Unfortunately, the string is displayed right over the cell you are
hovering over to get the tooltip.  Is there a way to give it an offset
so it doesn't block the cell?

Thanks!



RE: [flexcoders] Looking for horizontal sliding list/dialog component (like iPhone UI)

2007-10-18 Thread Joan Lafferty
Try using a ViewStack  that use WipeRight and WipeLeft effects when
hiding and showing a new selectedIndex. This should be a starting point.

 

Joan

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of andiboarder
Sent: Thursday, October 18, 2007 9:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Looking for horizontal sliding list/dialog
component (like iPhone UI)

 

Hi!

I am looking for a Flex component, which behaves much like the iPhone
navigation Interface. 
I want to create a multi level dialog/list which slides from left to
right. Somewhat like the 
flexlib's horizontal accordion, but without the headers. I am relatively
new to Flex and have 
no experience with transitions and animations, otherwise, I think, such
a component would 
be not very difficult to create.

Is there some component like this out there, or do you know a good
tutorial how to create 
such a component?

Tanks in advance,
Andi

 



[flexcoders] Re: DateField FlexEvent.ENTER Event?

2007-10-18 Thread rkettrey
I got it working.  The final solution is:

1. override focusInHandler leave defaultButtonEnabled = true
2. when the drop down (date picker in this case) is shown, set 
defaultButtonEnabled = false when it is shown, true otherwise

Just my opinion, but I think this should have been the implementation 
for ComboBase to begin with.  The only reason I can see wanting to 
disable the defaut button is so that when a drop down (date picker or 
list) is displayed, ENTER works against  that drop down.  Otherwise, 
ENTER should cause default button processing.  Anyway my change makes 
it work this way now.

--- In flexcoders@yahoogroups.com, "rkettrey" <[EMAIL PROTECTED]> wrote:
>
> Thanks for the reply, it got me going in the right direction.  
> Instead of my original code, I simply overrode DataField's 
> focusInHandler (actually implemented in ComboBase) and changed the 
> line:
> 
> fm.defaultButtonEnabled = false;
> 
> to
> 
> fm.defaultButtonEnabled = true;
> 
> Now pressing ENTER in the DateField works, with one caveat.  When 
the 
> date picker is up, ENTER should only make the picker close.  This 
> case is being checked currently in ComboBase.keyDownHandler, and I 
> was expecting the existing call in that function to 
> event.stopPropogation (after checking the picker is up and closing 
> it) would stop the ENTER key from being process by the focus sub-
> system.  It does not apparently.  I also tried overriding it and 
> changing it to event.stopImmediatePropogation for the heck of it, 
but 
> it does the same thing.
> 
> What is going on here and any ideas how I can make it eat the event 
> from the focusManager point of view when the picker is up?
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > defaultButtonEnabled also need to be changed.
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of rkettrey
> > Sent: Wednesday, October 17, 2007 1:24 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] DateField FlexEvent.ENTER Event?
> > 
> >  
> > 
> > TextInput controls will broadcast the FlexEvent.ENTER event when 
> the 
> > enter key is pressed to simulate the default button being pressed 
> for a 
> > form.
> > 
> > I'd like this same thing to happen on my DateFields. I know that 
> > DateField wants to handle the enter key to do its parsing and 
> closing 
> > of the "drop down" (inherits from ComboBase for the date picker), 
> which 
> > is fine. If it is only handling parsing, though, I would like the 
> > control to broadcast the enter event.
> > 
> > After looking at what the TextInput does, I overrode the 
> keyDownHandler 
> > function in DateField where it handles the ENTER key. At the end 
of 
> > the ENTER key handling scope I added:
> > 
> > dispatchEvent(new FlexEvent(FlexEvent.ENTER));
> > 
> > Everything compiles and it appears to broadcast the event. 
However, 
> > the default button handling does not occur.
> > 
> > Any thoughts?
> >
>




[flexcoders] Drag Multiple items with the dragManager

2007-10-18 Thread joshuagatcke
Does anyone know how I can send multiple items to dragManager.doDrag()? I am 
not 
using a list based control/container, and I have manually added drag and drop 
support to 
the items I want to drag/drop to. I want to select multiple items then send an 
array of 
those items to the dragManager to drag multiple items at once.

I am also trying to figure out how to hide the dragInitiator item while i am 
dragging the 
item so it looks like the item is being dragged live, not a copy of the item. I 
am using a 
copy of the dragInitiators Bitmap data for the dragProxy, I also tried to use 
the 
dragInitiator as the dragProxy, but cannot find a way to get the item to 
re-appear after a 
drop. I tried setting the visibility of the dragInitiator to false when the 
mouseMove event 
fires, then returning it back to visible = true when the item is dropped, but 
this seems 
flaky at best. 

To sum it up, I just want it to look like I am dragging an item or multiple 
items across the 
screen. I cannot resort to using the simple start/end drag() methods and mouse 
events 
because these items will also be able to be dropped on drop targets. 

The drag Manager seems awesome, I just wish I knew how to take advantage of it 
a bit 
more. I have read all the documentation several times and still do not know how 
to do 
these things. I tried looking at the list based controls to see how they drag 
multiple items 
etc, to no avail. 

Thanks in advance for any tips/advice/help. 



Re: [flexcoders] Re: problems access a Flex/CF site via a URL

2007-10-18 Thread Tom Chiverton
On Thursday 18 Oct 2007, [EMAIL PROTECTED] wrote:
> default ColdFusion destination

We remove that from our production servers because it allows the execution of 
any CFC.

> Is it documented somewhere that a services-config.xml file is required
> locally (at compile time) 

Probably.
The docs for the -service mxmlc argument might help.

> and on the server (and that they have to have 
> matching destinations)?

Again, I've not checked, but it must be in the docs somewhere.

-- 
Tom Chiverton. Are you a great Flex programmer, who knows Cairngorm, and has 
done some ColdFusion work ? Would you like to work for a top 30 law firm in 
Manchester, UK ? Are not an agency ? If yes, send email !



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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  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 8008.

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


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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


RE: [flexcoders] Method for Currently focussed Component

2007-10-18 Thread Tracy Spratt
Tell us, please.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peeyush Tuli
Sent: Thursday, October 18, 2007 9:31 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Method for Currently focussed Component

 

I got the solution.

 

Regards,

Peeyush Tuli

MetaDesign Solutions

 

- Original Message - 

From: Peeyush Tuli   

To: flexcoders@yahoogroups.com
  

Sent: Thursday, October 18, 2007 6:40 PM

Subject: [flexcoders] Method for Currently focussed Component

 

Hi,

 

Is there a way to determine at the application level, the child
UI Component  having the current focus ?

 

Regards,
Peeyush Tuli
MetaDesignSolutions

 



[flexcoders] Flex 2 Framework Caching?

2007-10-18 Thread Daniel Freiman
I know the Flex 3 sdk will be required for framework caching, but Flex
Builder 3 can compile Flex 2 code.  If I chose this option will there a
digitally signed release of the Flex 2 framework.  I'd rather not have to
upgrade my code to work with the Flex 3 framework just to gain this
functionality.  Also, it seems to me that developers with larger projects
will have more incentive to create framework caching projects, but will also
have the hardest time upgrading their project from flex 2 to 3 because of
their large code base.

- Dan Freiman


Re: [flexcoders] Re: Unknown destination 'EmployeeServiceRO

2007-10-18 Thread Greg Morphis
I've checked the services-config.xml file and I have the level=Debug and
Endpoint.* in there...




[Flex] 
true
true
false
false


Endpoint.*
Service.*
Configuration




This is what I see in the console in regards to Endpoint...
[Flex] 10/18/2007 09:07:09.248 Starting Adobe Flex Data Services 2
Enterprise
[Flex] 10/18/2007 09:07:09.248 Adobe Flex Data Services Build: 155539
[Flex] 10/18/2007 09:07:09.435 Endpoint my-amf created with security: None
at URI: http://{server.name}:{server.port}/{context.root}/messagebroker/amf
[Flex] 10/18/2007 09:07:09.435 Endpoint my-polling-amf created with
security: None
at URI: http://{server.name}:{server.port}/{context.root
}/messagebroker/amfpolling
[Flex] 10/18/2007 09:07:09.435 Endpoint my-http created with security: None
at URI: http://{server.name}:{server.port}/{context.root}/messagebroker/http
[Flex] 10/18/2007 09:07:09.435 Endpoint my-secure-amf created with security:
None
at URI: https://{server.name}:{server.port}/{context.root
}/messagebroker/amfsecure
[Flex] 10/18/2007 09:07:09.498 Endpoint my-rtmp created with security: None
at URI: rtmp://{server.name}:2038
[Flex] 10/18/2007 09:07:09.498 Endpoint my-secure-http created with
security: None
at URI: https://{server.name}:9100/{context.root}/messagebroker/httpsecure
[Flex] 10/18/2007 09:07:10.140 RTMP-Server listening on port:2038


I log in, I get nothing in the console but still see this error
[FaultEvent fault=[RPC Fault faultString="[MessagingError message='Unknown
destination 'EmployeeServiceRO'.']" faultCode="InvokeFailed"
faultDetail="Couldn't establish a connection to 'EmployeeServiceRO'"]
messageId="395B4A39-05C2-B5EE-6E7E-B37436E1A204" type="fault" bubbles=false
cancelable=true eventPhase=2]

This is in the onFault of the LoginCommand.as file.

I added the TraceTarget to the index.mxml file,




mx.messaging.*



0


But where should I see this information? (The console is the same)

I apologize but I did not understand this "The last thing I'll mention
quickly just to be sure you is that if you are using HTTP based channels,
the player is using the same HTTP session on the server as any jsp files
running in that same web application."

And no, things don't work with pre-authenticated session..  The
/seurity/index.jsp  works and displays which role you log in as, but if I
backed up and removed the security/index.jsp I'd get the same error.
Thanks for the help guys..













On 10/17/07, Jeff Vroom <[EMAIL PROTECTED]> wrote:
>
>  I'm not sure what is going on but one good way to diagnose these problems
> is to turn on the debug logging on the client and server.  In this case,
> since it seems to be a problem with the basic connections, you should use
> the "Endpoint.*" target on the server.  In WEB-INF/flex/services-
> config.xml, find level=  change that to Debug and make sure Endpoint.* is
> in the targets below.
>
>
>
> On the client, I'd also turn on .
>
>
>
> The other thing I find that is helpful is to look at the configuration
> which is getting compiled into your SWF.  When you compile your app, you
> point it at the server's configuration and it copies a subset of that config
> into the variable:
>
>
>
> mx.messaging.config.ServerConfig.xml
>
>
>
> you can print that out at startup (actually, this is done automatically by
> mx:TraceTarget).
>
>
>
> The last thing I'll mention quickly just to be sure you is that if you are
> using HTTP based channels, the player is using the same HTTP session on the
> server as any jsp files running in that same web application.  It sounds
> like things may work when you are dealing with a pre-authenticated session
> but fail when the session is not in place.  It is relatively common that
> people will put a security filter into the web.xml file to enforce
> security.  If one of these filters runs before the MessageBrokerServlet
> (also in web.xml) it may prevent flex from contacting the server in the
> case where the filter aborts or redirects the request because the
> authentication has failed.
>
>
>
> Jeff
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Greg Morphis
> *Sent:* Wednesday, October 17, 2007 9:43 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Re: Unknown destination 'EmployeeServiceRO
>
>
>
> Still havent found anything with this. One thing I didnt mention yesterday
> is that there is a folder with a security check..
> Just a simple check...
>
>
> security test for app
> <%
>   if ( request.getUserPrincipal() != null) {
> %>
> Your user principal name is
> <%= request.getUserPrincipal().getName() %>
> <%
>   } else {
> %>
> No user principal could be identified.

[flexcoders] Re: Problem with IE6 and SWF losing focus of input fields...

2007-10-18 Thread Dan G. Switzer, II
Just to clear up any possible confusion, the problem involves HTML
input fields (although it could be affecting other things as well.)

-Dan

--- In flexcoders@yahoogroups.com, "Dan G. Switzer, II" <[EMAIL PROTECTED]>
wrote:
>
> A user recently reported a problem that I've never observed.
> 
> We have a Flex SWF embedded into our HTML application that displays a
> series of charts.
> 
> In IE6 if you go to another window and come back to IE6 and your
> cursor was placed in a text field, the focus is lost. This seems to
> happen for any HTML page that contains a SWF.
> 
> You can verify this issue by going to Adobe.com and placing the cursor
> in the "Search" box at the top of the page. Now if you ALT+TAB away
> and ALT+TAB back to the IE6 window, you'll see the cursor is no longer
> in the input field. If you run the same test on Google.com, you'll
> notice the cursor stays put.
> 
> While this is a corner case, it's affecting some of our clients
> because the bounce back and forth frequently between our web app and
> their e-mail clients. So, now on any page with a SWF embedded, it's
> forcing them to replace their cursor--which they never used to have
to do.
> 
> More on my blog:
> http://blog.pengoworks.com/blogger/index.cfm?action=blog:606
> 
> Any ideas on how I might fix this issue?
> 
> I tried placing the SWF in an IFRAME--to see if that changed the
> behavior. I've also messed around with Window object to see if there
> was an event I could find which would dictate when the Window
> lost/received focus, but there's nothing that tells me exclusively
> when the window is activated again (the focus event doesn't work well
> because it's triggered for lots of in-page operations.)
> 
> Thanks!
> Dan
>




Re: [flexcoders] Dragging image from TileList - the dragProxy "steals" the original image!

2007-10-18 Thread bjorn -
jon - thanks for the tip, I'll try it :)

Your reason makes sense (the image not being copied) - but the thing I don't
understand is that I haven't implemented any drag code at all (so it's all
handled by flex) and it works if I specify the url and not the Bitmap
content.




On 18/10/2007, Jon Bradley <[EMAIL PROTECTED]> wrote:
>
>
>  On Oct 18, 2007, at 9:09 AM, bjorn - wrote:
>
>  I've got this problem where I have images in a TileList and when I start
> do drag an image the image disappears (goes black) in the TileList. I can
> still see the image in the drag proxy though. When I release the drag I
> don't see the image anymore (until I drag it again, and I will see the image
> in the drag proxy image).
>
>
>
> Hmm... that sounds like you are not assigning the drag proxy right. It
> almost sounds as though you are assigning the image in the TileList itself
> as the initiator and proxy?
>
>
> Did you cast it to a new image and then using that new image as the proxy?
>
>
> Event in the main tag for the itemRenderer:
>
>
> mouseMove="dragIt(event)"
>
>
> Then the following:
>
>
> private function dragIt(event:MouseEvent):void {
> var dragInitiator:Image = Image(event.currentTarget.image);
> var ds:DragSource = new DragSource();
> ds.addData(data.source, data.type );
> var imageProxy:Image = new Image();
> imageProxy.source = dragInitiator.source;
> imageProxy.width = dragInitiator.width;
> imageProxy.height = dragInitiator.height;
> DragManager.doDrag(dragInitiator, ds, event, imageProxy);
> }
>
>
> That should create a new image that you use at the proxy and shouldn't
> touch your existing one in any way. Alternately, you can use a Bitmap.
>
>
> just a thought.
>
>
> good luck,
>
>
> jon
>
> 
>



-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


Re: [flexcoders] SOT: CF LDAP

2007-10-18 Thread Douglas Knudsen
yup, though could be somethign else.  If your LDAP server requires SSL
connection only, you need to install the cert into the JVM.  This cert has
NOTHING to do with your domain name, its a cert for communication between
the server software and your LDAP server.  So, should be easy to copy this
cert from your old working server to the new one and install it.  Sorry, I
have no URL to give you, but a search on Adobes site should turn up a
article speaking to how to do this.

Also, I suggest posting this sort of question on CF-Talk at
houesoffusion.com.

cheers!

DK

On 10/18/07, Giles Roadnight <[EMAIL PROTECTED]> wrote:
>
>   Hi All
>
> Some of the code I have inherited contains a CFLDAP tag in it that
> retrieves data about users that's used in a cfc.
>
> We've just moved the server to a new domain and don't as yet have a
> valid certificate for the new domain.
>
> The code that used to work fine to get the LDAP info now doesn't work.
> I get a "Connection to LDAP Server failed" Error.
>
> Would this be because of the invalid SSL certificate?
>
> Any other suggestions about what I should look at?
>
> Thanks
>
> Giles
>
>  
>



-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


RE: [flexcoders] LCDS/Hibernate DataServices Issue

2007-10-18 Thread Dimitrios Gianninas
Hi,
 
I use LCDS, but I dont have the data hierarchy you are mentioning here. But in 
order to help u debug the issue you might want to turn on debugging while 
developing to see what Flex is doing on the client and server-side, here is how 
to do that:
 
- on client side, add the following statement somewhere in your root MXML file: 
  ... this will log to your client flashlog.txt file
- on the server-side in the services-config.xml file, set the log level to 
"Debug" and make sure the EndPoint.* and Message.* are set
 
That way you will be able to see what data is going back and forth and if on 
the client side Flex is noticing the change to your object.
 
Also who many destinations have u configured? only one for collectionA? or one 
for each collection?
I think you may need to do some kind of refresh ont he server-side once an 
object in collectionA is committed, look at the employee/company in the LCDS 
samples.
 
Dimitrios Gianninas
Development Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joshua 
Garnett
Sent: Thursday, October 18, 2007 9:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LCDS/Hibernate DataServices Issue



Hello,

We've recently encountered a problem on a project I'm working on.  We are using 
the Data Management Services to managed all of our persisted objects.  It 
connects to our database via a customized Hibernate assembler.  The issue we 
are seeing is that we have a series of collections that point to each other and 
the references aren't being maintained properly throughout the system. 

Example:

Each item in collectiona, has two properties collectionb and collectionc.
The items in collectionc have a reference to an item in collectionb.

var itemB:Object = collectionb.getItemAt(0); 
var refItemB:object = collectionc.getItemAt(0).referenceToB;
itemB.id == refItemB.id

If at this point I make a change to itemB the corresponding object refItemB is 
not changed.  They are identical objects on the server and should always be the 
same on the client.  I can refresh my client and the differences in the objects 
are still present.  It is not until I close the session and re-login that 
refItemB is updated properly. 

Any thoughts on what we might be doing wrong or need to adjust?  Thanks,


--Josh











 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



Re: [flexcoders] Re: problems access a Flex/CF site via a URL

2007-10-18 Thread Muzak
So far I've only used the default ColdFusion destination and I guess that's why 
it always works ;-)

Is it documented somewhere that a services-config.xml file is required locally 
(at compile time) and on the server (and that they 
have to have matching destinations)?

regards,
Muzak

- Original Message - 
From: "Tom Chiverton" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, October 18, 2007 1:34 PM
Subject: Re: [flexcoders] Re: problems access a Flex/CF site via a URL


> On Thursday 18 Oct 2007, [EMAIL PROTECTED] wrote:
>> You don't need a config file on your server.
>
> You do if it's ColdFusion.
> The destination names, for instance, must match what you compiled against.
>
>> 2.01, but changes to the services-config.xml file weren't picked up by
>> FlexBuilder, unless you 'touched' the project properties.
>
> Or do a clean build.
>



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

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

<*> Your email settings:
Individual Email | Traditional

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

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

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

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


RE: [flexcoders] Re: Open Source Java Remoting : Mapping complex Structure

2007-10-18 Thread Paramjit Jolly
We tried & evaluate granite services ..that is for on the fly compilation we
don't need it ..as well as that's not much mature ..

So ..we are using Flex compile at design time & open source java remoting ..

 

Thanks & Regards

Jolly

Life Fitness - A Division of Brunswick Corporation



 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tomeuchre
Sent: Thursday, October 18, 2007 9:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Open Source Java Remoting : Mapping complex
Structure

 

--- In flexcoders@yahoogroups.com  ,
"Paramjit Jolly" 
<[EMAIL PROTECTED]> wrote:
>
> 
> 
> Hi All,
> 
> I am using open source java remoting to get data from server in AMF.
> 
> 
> 
> My structure is complex data structure having ArrayCollection with 
again
> complex structure in it.
> 
> 

Have you tried to use Granite instead of openAMF?

 



Re: [flexcoders] Re: Non-english characters

2007-10-18 Thread Oliver Wiemer
Sorry i'm new here.
What ist your problem?
I use german characters. No Problems in Flex or by Linux.

Olli

malaschitz schrieb:
>
> The same problem with Linux, Flex 2 and newest Flash Player. Did you
> find any solution ??
>
>  



[flexcoders] LCDS/Hibernate DataServices Issue

2007-10-18 Thread Joshua Garnett
Hello,

We've recently encountered a problem on a project I'm working on.  We are
using the Data Management Services to managed all of our persisted objects.
It connects to our database via a customized Hibernate assembler.  The issue
we are seeing is that we have a series of collections that point to each
other and the references aren't being maintained properly throughout the
system.

Example:

Each item in collectiona, has two properties collectionb and collectionc.
The items in collectionc have a reference to an item in collectionb.

var itemB:Object = collectionb.getItemAt(0);
var refItemB:object = collectionc.getItemAt(0).referenceToB;
itemB.id == refItemB.id

If at this point I make a change to itemB the corresponding object refItemB
is not changed.  They are identical objects on the server and should always
be the same on the client.  I can refresh my client and the differences in
the objects are still present.  It is not until I close the session and
re-login that refItemB is updated properly.

Any thoughts on what we might be doing wrong or need to adjust?  Thanks,


--Josh


RE: [flexcoders] Re: Error using LCDS, DataStore not initialized

2007-10-18 Thread Dimitrios Gianninas
on the server-side, when your server starts up, it will log the version of LCDS 
you are using. So check your server specific log, where all the System.out 
statements get logged into.
 
Dimitrios Gianninas
Development Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ravi 
Varma PM
Sent: Thursday, October 18, 2007 3:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Error using LCDS, DataStore not initialized



I think I have LCDS 2.51 and still getting the same error.
"Error: DataStore is not initialized. Operation failed."

How do I check the version of LCDS I am running?

Thanks,
Ravi 

--- In flexcoders@yahoogroups.com  , 
Javier de la Torre <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> 
> I am working in a project using LCDS and I get this error from time 
> to time in the flex app. I dont manage to see where the problem is 
> and how is related to my code. Googling the error does not return any 
> result. Any idea of what is going on?
> 
> Thanks in advance.
> 
> Javier.
> 
> ---
> Error: DataStore is not initialized. Operation failed.
> at mx.data::DataStore/::checkInitialized()
> at mx.data::DataStore/get http://www.adobe.com/2006/flex/mx/ 
>   
> internal::messageCache()
> at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/ 
>   
> internal::getItemIdentifier()
> at mx.data::Metadata/http://www.adobe.com/2006/flex/mx/ 
>   
> internal::getReferencedIdsForAssoc()
> at mx.data::Metadata/http://www.adobe.com/2006/flex/mx/ 
>   
> internal::getReferencedIds()
> at mx.data::Metadata/configureItem()
> at mx.data::DataList/http://www.adobe.com/2006/flex/mx/ 
>   
> internal::processSequence()
> at mx.data::DataList/http://www.adobe.com/2006/flex/mx/ 
>   
> internal::processSequenceResult()
> at ::DataListRequestResponder/result()
> at mx.rpc::AsyncRequest/acknowledge()
> at ::NetConnectionMessageResponder/NetConnectionChannel.as 
> $33:NetConnectionMessageResponder::resultHandler()
> at mx.messaging::MessageResponder/result()
> 
> 
> If I get to debug this I get an even more criptic error message (at 
> least I have learnt that the code name for flex rc was borneo):
> 
> Error: DataStore is not initialized. Operation failed.
> at mx.data::DataStore/mx.data:DataStore::checkInitialized()[C:\dev 
> \enterprise_borneo_rc\frameworks\mx\data\DataStore.as:2523]
> at mx.data::DataStore/get
> http://www.adobe.com/2006/flex/mx/internal::messageCache 
>  ()[C:\dev 
> \enterprise_borneo_rc\frameworks\mx\data\DataStore.as:833]
> at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/ 
>   
> internal::getItemIdentifier()[C:\dev\enterprise_borneo_rc\frameworks 
> \mx\data\ConcreteDataService.as:2124]
> at mx.data::Metadata/http://www.adobe.com/2006/flex/mx/ 
>   
> internal::getReferencedIdsForAssoc()[C:\dev\enterprise_borneo_rc 
> \frameworks\mx\data\Metadata.as:956]
> at mx.data::Metadata/http://www.adobe.com/2006/flex/mx/ 
>   
> internal::getReferencedIds()[C:\dev\enterprise_borneo_rc\frameworks\mx 
> \data\Metadata.as:856]
> at mx.data::Metadata/configureItem()[C:\dev\enterprise_borneo_rc 
> \frameworks\mx\data\Metadata.as:195]
> at mx.data::DataList/http://www.adobe.com/2006/flex/mx/ 
>   
> internal::processSequence()[C:\dev\enterprise_borneo_rc\frameworks\mx 
> \data\DataList.as:1620]
> at mx.data::DataList/http://www.adobe.com/2006/flex/mx/ 
>   
> internal::processSequenceResult()[C:\dev\enterprise_borneo_rc 
> \frameworks\mx\data\DataList.as:1791]
> at ConcreteDataService.as$143::DataListRequestResponder/result()[C: 
> \dev\enterprise_borneo_rc\frameworks\mx\data\ConcreteDataService.as: 
> 5699]
> at mx.rpc::AsyncRequest/acknowledge()[E:\dev\flex_201_borneo\sdk 
> \frameworks\mx\rpc\AsyncRequest.as:81]
> at NetConnectionChannel.as$33::NetConnectionMessageResponder/ 
> NetConnectionChannel.as 
> $33:NetConnectionMessageResponder::resultHandler()[E:\dev 
> \flex_201_borneo\sdk\frameworks\mx\messaging\channels 
> \NetConnectionChannel.as:427]
> at mx.messaging::MessageResponder/result()[E:\dev\flex_201_borneo\sdk 
> \frameworks\mx\messaging\MessageResponder.as:202]
>



 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
a

Re: [flexcoders] Method for Currently focussed Component

2007-10-18 Thread Peeyush Tuli
I got the solution.

Regards,
Peeyush Tuli
MetaDesign Solutions

  - Original Message - 
  From: Peeyush Tuli 
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, October 18, 2007 6:40 PM
  Subject: [flexcoders] Method for Currently focussed Component



  Hi,

  Is there a way to determine at the application level, the child UI Component  
having the current focus ?

  Regards,
  Peeyush Tuli
  MetaDesignSolutions

   

Re: [flexcoders] Dragging image from TileList - the dragProxy "steals" the original image!

2007-10-18 Thread Jon Bradley


On Oct 18, 2007, at 9:09 AM, bjorn - wrote:

I've got this problem where I have images in a TileList and when I  
start do drag an image the image disappears (goes black) in the  
TileList. I can still see the image in the drag proxy though. When  
I release the drag I don't see the image anymore (until I drag it  
again, and I will see the image in the drag proxy image).


Hmm... that sounds like you are not assigning the drag proxy right.  
It almost sounds as though you are assigning the image in the  
TileList itself as the initiator and proxy?


Did you cast it to a new image and then using that new image as the  
proxy?


Event in the main tag for the itemRenderer:

mouseMove="dragIt(event)"

Then the following:

private function dragIt(event:MouseEvent):void {
var dragInitiator:Image = Image(event.currentTarget.image);
var ds:DragSource = new DragSource();
ds.addData(data.source, data.type );
var imageProxy:Image = new Image();
imageProxy.source = dragInitiator.source;
imageProxy.width = dragInitiator.width;
imageProxy.height = dragInitiator.height;
DragManager.doDrag(dragInitiator, ds, event, imageProxy);
}

That should create a new image that you use at the proxy and  
shouldn't touch your existing one in any way. Alternately, you can  
use a Bitmap.


just a thought.

good luck,

jon

[flexcoders] Re: Open Source Java Remoting : Mapping complex Structure

2007-10-18 Thread tomeuchre
--- In flexcoders@yahoogroups.com, "Paramjit Jolly" 
<[EMAIL PROTECTED]> wrote:
>
>  
> 
> Hi All,
> 
>   I am using open source java remoting to get data from server in AMF.
> 
>  
> 
> My structure is complex data structure having ArrayCollection with 
again
> complex structure in it.
> 
>  

Have you tried to use Granite instead of openAMF?



[flexcoders] Method for Currently focussed Component

2007-10-18 Thread Peeyush Tuli
Hi,

Is there a way to determine at the application level, the child UI Component  
having the current focus ?

Regards,
Peeyush Tuli
MetaDesignSolutions

[flexcoders] Dragging image from TileList - the dragProxy "steals" the original image!

2007-10-18 Thread bjorn -
I've got this problem where I have images in a TileList and when I start do
drag an image the image disappears (goes black) in the TileList. I can still
see the image in the drag proxy though. When I release the drag I don't see
the image anymore (until I drag it again, and I will see the image in the
drag proxy image).

The TileList has an itemRenderer which contains an  - the data.image is an object which I set.

If I set the data.image to an url everything works, but when I use a Loader
and set the data.image to the content (Bitmap) I experience the behaviour
described above.

Can anyone think of a reason this would happen??

- Bjørn

btw - sorry for the tabloid title, hehe ;-)

-- 


http://www.juicability.com - flex blog
http://www.43min.com - funny movies


[flexcoders] Getting snap shots of images from FLV?

2007-10-18 Thread Faren
Does anyone know of a program which can do a batch of flv's and take a
snap shot of each of them from set points in the flv? I know you can
use setplay head time but this seems to be taking up a lot of
bandwidth for the amount of videos we have. I've noticed YouTube uses
images to display a video before it has been clicked on.

Any help would be much appreciated, thanks!



[flexcoders] Looking for horizontal sliding list/dialog component (like iPhone UI)

2007-10-18 Thread andiboarder
Hi!

I am looking for a Flex component, which behaves much like the iPhone 
navigation Interface. 
I want to create a multi level dialog/list which slides from left to right. 
Somewhat like the 
flexlib's horizontal accordion, but without the headers. I am relatively new to 
Flex and have 
no experience with transitions and animations, otherwise, I think, such a 
component would 
be not very difficult to create.

Is there some component like this out there, or do you know a good tutorial how 
to create 
such a component?

Tanks in advance,
Andi



[flexcoders] Re: DateField FlexEvent.ENTER Event?

2007-10-18 Thread rkettrey
Thanks for the reply, it got me going in the right direction.  
Instead of my original code, I simply overrode DataField's 
focusInHandler (actually implemented in ComboBase) and changed the 
line:

fm.defaultButtonEnabled = false;

to

fm.defaultButtonEnabled = true;

Now pressing ENTER in the DateField works, with one caveat.  When the 
date picker is up, ENTER should only make the picker close.  This 
case is being checked currently in ComboBase.keyDownHandler, and I 
was expecting the existing call in that function to 
event.stopPropogation (after checking the picker is up and closing 
it) would stop the ENTER key from being process by the focus sub-
system.  It does not apparently.  I also tried overriding it and 
changing it to event.stopImmediatePropogation for the heck of it, but 
it does the same thing.

What is going on here and any ideas how I can make it eat the event 
from the focusManager point of view when the picker is up?

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> defaultButtonEnabled also need to be changed.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of rkettrey
> Sent: Wednesday, October 17, 2007 1:24 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] DateField FlexEvent.ENTER Event?
> 
>  
> 
> TextInput controls will broadcast the FlexEvent.ENTER event when 
the 
> enter key is pressed to simulate the default button being pressed 
for a 
> form.
> 
> I'd like this same thing to happen on my DateFields. I know that 
> DateField wants to handle the enter key to do its parsing and 
closing 
> of the "drop down" (inherits from ComboBase for the date picker), 
which 
> is fine. If it is only handling parsing, though, I would like the 
> control to broadcast the enter event.
> 
> After looking at what the TextInput does, I overrode the 
keyDownHandler 
> function in DateField where it handles the ENTER key. At the end of 
> the ENTER key handling scope I added:
> 
> dispatchEvent(new FlexEvent(FlexEvent.ENTER));
> 
> Everything compiles and it appears to broadcast the event. However, 
> the default button handling does not occur.
> 
> Any thoughts?
>




[flexcoders] Re: Mock objects in AS3

2007-10-18 Thread dave_defusion
Bjorn,

I have been looking at this (as I would like a mocking framework for
Flex too) this evening and I've had no luck either.

The the registerClassAlias() does add the alias to a given class I
can't then get anything to accept it as being of that type
- I'm not sure what the alias is, but dumping the describeType()
results shows it as an alias property on the type and not as an
implementsInterface node, which is what we need.

I may not have been fully understood what registerClassAlias though.

But it looks (ok, it's late and I'm tired so it may just be that which
is causing my negativity) as if trying to get a class to implement an
interface (or at least appear to implement an interface) dynamically
at run time is a futile effort.

Any thoughts?

-D


--- In flexcoders@yahoogroups.com, Bjorn Schultheiss
<[EMAIL PROTECTED]> wrote:
>
> try add
> flash.net.registerClassAlias( "attempt.TestInterface", TestInterface );
> prior to your cast attempt.
> 
> 
> regards,
> 
> Bjorn
> 
> 
> On 17/10/2007, at 1:06 PM, aduston1976 wrote:
> 
> > lus I see a number of places on the web where the idea is mentioned,
> > e.g. http://www.herrodius.com/blog/?m=200704 . However I cannot find
> > any mock frameworks for AS3.
> >
> > This evening I spent some time trying to mock one up on my own (ok,
> > sorry for the pun!) but I ran into troubles. Is anyone interested in
> > thinking about this problem with me?
> >
> > Here is what I did during my 20 minutes of playing:
> >
> > Define an interface:
> >
> > public interface TestInterface
> > {
> > function setSomething(something : String) : void;
> > }
> >
> > Run the following code:
> >
> > public function flexmock() {
> > var i : TestInterface;
> > var c : Class =
> > flash.utils.getDefinitionByName("attempt.TestInterface") as Class;
> > var desc : XML = flash.utils.describeType(c);
> > var str : String = desc.toString();
> > var a : Object = new Object();
> > a["setSomething"] = function(something : String) : void {
> > trace(something); };
> > // will fail on the following line, since a does not implement
> > TestInterface.
> > i = TestInterface(a);
> > i.setSomething("blah");
> > }
> >
> > AS3 doesn't support duck typing like Ruby, and I believe there is no
> > way to get an object in memory that implements the TestInterface
> > interface that my other objects can use as a mock.
> >
> > Any thoughts about this? Am I doomed to use elbow grease or code
> > generation to create these things?
> >
> > BTW, this message is also posted on the ActionScript 3 FlexUnit
> > Library forum in Google Groups. Hopefully that isn't some kind of
> > forum faux pas.
> >
> > Thank you for any comments,
> > Adam
> >
> >
> >
>




[flexcoders] Re: Flex Remoting Options - Any Opinions?

2007-10-18 Thread tomeuchre
PS - I did something that Granite didn't think was possible (or at 
least very easy to do):

I got Granite Data Services working with Flex making remote AMF3/rpc 
calls to a JSF Web Application. There were numerous potential issues 
involved in this (faces context, phases, lifecycle), but I was able to 
do it with native GDS, native Flex and no changes to any existing code 
in my (massive) JSF Web applications. I simply had to add a single java 
class to my web app and some changes to my web.xml.

I am working on a project hard right now, but will post the HOW-TO 
notes here when I have a chance.

Since Granite works with pojo, Spring, EJB, and now JSF applications, I 
can't imagine why someone would be willing to pay that much money for 
LCDS. Great performance also.

Tom




[flexcoders] scale 9, quick question

2007-10-18 Thread aaron smith
I've got an image I used scale9 on.. i used pretty much this example:

http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&file=0976.html

When I set the height the width is changing as well. Can it resize just the
height?. Possible?


[flexcoders] Re: Error using LCDS, DataStore not initialized

2007-10-18 Thread Ravi Varma PM
I think I have LCDS 2.51 and still getting the same error.
"Error: DataStore is not initialized. Operation failed."

How do I check the version of LCDS I am running?

Thanks,
Ravi 


--- In flexcoders@yahoogroups.com, Javier de la Torre <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> 
> I am working in a project using LCDS and I get this error from time  
> to time in the flex app. I dont manage to see where the problem is  
> and how is related to my code. Googling the error does not return any  
> result. Any idea of what is going on?
> 
> Thanks in advance.
> 
> Javier.
> 
> ---
> Error: DataStore is not initialized. Operation failed.
>   at mx.data::DataStore/::checkInitialized()
>   at mx.data::DataStore/get http://www.adobe.com/2006/flex/mx/ 
> internal::messageCache()
>   at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/ 
> internal::getItemIdentifier()
>   at mx.data::Metadata/http://www.adobe.com/2006/flex/mx/ 
> internal::getReferencedIdsForAssoc()
>   at mx.data::Metadata/http://www.adobe.com/2006/flex/mx/ 
> internal::getReferencedIds()
>   at mx.data::Metadata/configureItem()
>   at mx.data::DataList/http://www.adobe.com/2006/flex/mx/ 
> internal::processSequence()
>   at mx.data::DataList/http://www.adobe.com/2006/flex/mx/ 
> internal::processSequenceResult()
>   at ::DataListRequestResponder/result()
>   at mx.rpc::AsyncRequest/acknowledge()
>   at ::NetConnectionMessageResponder/NetConnectionChannel.as 
> $33:NetConnectionMessageResponder::resultHandler()
>   at mx.messaging::MessageResponder/result()
> 
> 
> If I get to debug this I get an even more criptic error message (at  
> least I have learnt that the code name for flex rc was borneo):
> 
> Error: DataStore is not initialized. Operation failed.
>   at mx.data::DataStore/mx.data:DataStore::checkInitialized()[C:\dev 
> \enterprise_borneo_rc\frameworks\mx\data\DataStore.as:2523]
>   at mx.data::DataStore/get
> http://www.adobe.com/2006/flex/mx/internal::messageCache()[C:\dev 
> \enterprise_borneo_rc\frameworks\mx\data\DataStore.as:833]
>   at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/ 
> internal::getItemIdentifier()[C:\dev\enterprise_borneo_rc\frameworks 
> \mx\data\ConcreteDataService.as:2124]
>   at mx.data::Metadata/http://www.adobe.com/2006/flex/mx/ 
> internal::getReferencedIdsForAssoc()[C:\dev\enterprise_borneo_rc 
> \frameworks\mx\data\Metadata.as:956]
>   at mx.data::Metadata/http://www.adobe.com/2006/flex/mx/ 
> internal::getReferencedIds()[C:\dev\enterprise_borneo_rc\frameworks\mx 
> \data\Metadata.as:856]
>   at mx.data::Metadata/configureItem()[C:\dev\enterprise_borneo_rc 
> \frameworks\mx\data\Metadata.as:195]
>   at mx.data::DataList/http://www.adobe.com/2006/flex/mx/ 
> internal::processSequence()[C:\dev\enterprise_borneo_rc\frameworks\mx 
> \data\DataList.as:1620]
>   at mx.data::DataList/http://www.adobe.com/2006/flex/mx/ 
> internal::processSequenceResult()[C:\dev\enterprise_borneo_rc 
> \frameworks\mx\data\DataList.as:1791]
>   at ConcreteDataService.as$143::DataListRequestResponder/result()[C: 
> \dev\enterprise_borneo_rc\frameworks\mx\data\ConcreteDataService.as: 
> 5699]
>   at mx.rpc::AsyncRequest/acknowledge()[E:\dev\flex_201_borneo\sdk 
> \frameworks\mx\rpc\AsyncRequest.as:81]
>   at NetConnectionChannel.as$33::NetConnectionMessageResponder/ 
> NetConnectionChannel.as 
> $33:NetConnectionMessageResponder::resultHandler()[E:\dev 
> \flex_201_borneo\sdk\frameworks\mx\messaging\channels 
> \NetConnectionChannel.as:427]
>   at mx.messaging::MessageResponder/result()[E:\dev\flex_201_borneo\sdk 
> \frameworks\mx\messaging\MessageResponder.as:202]
>




[flexcoders] Re: Error using LCDS, DataStore not initialized

2007-10-18 Thread Ravi Varma PM
I think I have LCDS 2.51 and still getting the same error.
"Error: DataStore is not initialized. Operation failed."

How do I check the version of LCDS I am running?

Thanks,
Ravi 

--- In flexcoders@yahoogroups.com, "João Ribeiro Junior"
<[EMAIL PROTECTED]> wrote:
>
> Update to LCDS 2.51 bug fixed.
> 
> João Ribeiro Junior
> 
> 2007/8/15, Javier de la Torre <[EMAIL PROTECTED]>:
> >
> >   Hi all,
> >
> > I am working in a project using LCDS and I get this error from time to
> > time in the flex app. I dont manage to see where the problem is
and how is
> > related to my code. Googling the error does not return any result.
Any idea
> > of what is going on?
> >
> > Thanks in advance.
> >
> > Javier.
> >
> > ---
> > Error: DataStore is not initialized. Operation failed.
> > at mx.data::DataStore/::checkInitialized()
> > at mx.data::DataStore/get
> >
http://www.adobe.com/2006/flex/mx/internal::messageCache(
> > )
> > at mx.data::ConcreteDataService/
> >
http://www.adobe.com/2006/flex/mx/internal::getItemIdentifier(
> > )
> > at mx.data::Metadata/
> >
http://www.adobe.com/2006/flex/mx/internal::getReferencedIdsForAssoc(
> > )
> > at mx.data::Metadata/
> >
http://www.adobe.com/2006/flex/mx/internal::getReferencedIds(
> > )
> > at mx.data::Metadata/configureItem()
> > at mx.data::DataList/
> >
http://www.adobe.com/2006/flex/mx/internal::processSequence(
> > )
> > at mx.data::DataList/
> >
http://www.adobe.com/2006/flex/mx/internal::processSequenceResult(
> > )
> > at ::DataListRequestResponder/result()
> > at mx.rpc::AsyncRequest/acknowledge()
> > at
> >
::NetConnectionMessageResponder/NetConnectionChannel.as$33:NetConnectionMessageResponder::resultHandler()
> > at mx.messaging::MessageResponder/result()
> > 
> >
> > If I get to debug this I get an even more criptic error message
(at least
> > I have learnt that the code name for flex rc was borneo):
> >
> > Error: DataStore is not initialized. Operation failed.
> > at mx.data::DataStore/mx.data:DataStore::checkInitialized
> > ()[C:\dev\enterprise_borneo_rc\frameworks\mx\data\DataStore.as:2523]
> > at mx.data::DataStore/get
> >
> >
http://www.adobe.com/2006/flex/mx/internal::messageCache()[C:\dev\enterprise_borneo_rc\frameworks\mx\data\DataStore.as:833]
> > at mx.data::ConcreteDataService/
> >
http://www.adobe.com/2006/flex/mx/internal::getItemIdentifier()[C:\dev\enterprise_borneo_rc\frameworks\mx\data\ConcreteDataService.as:2124]
> > at mx.data::Metadata/
> >
http://www.adobe.com/2006/flex/mx/internal::getReferencedIdsForAssoc()[C:\dev\enterprise_borneo_rc\frameworks\mx\data\Metadata.as:956]
> > at mx.data::Metadata/
> >
http://www.adobe.com/2006/flex/mx/internal::getReferencedIds()[C:\dev\enterprise_borneo_rc\frameworks\mx\data\Metadata.as:856]
> > at mx.data::Metadata/configureItem
> > ()[C:\dev\enterprise_borneo_rc\frameworks\mx\data\Metadata.as:195]
> > at mx.data::DataList/
> >
http://www.adobe.com/2006/flex/mx/internal::processSequence()[C:\dev\enterprise_borneo_rc\frameworks\mx\data\DataList.as:1620]
> > at mx.data::DataList/
> >
http://www.adobe.com/2006/flex/mx/internal::processSequenceResult()[C:\dev\enterprise_borneo_rc\frameworks\mx\data\DataList.as:1791]
> > at ConcreteDataService.as$143::DataListRequestResponder/result
> >
()[C:\dev\enterprise_borneo_rc\frameworks\mx\data\ConcreteDataService.as:5699]
> > at mx.rpc::AsyncRequest/acknowledge
> > ()[E:\dev\flex_201_borneo\sdk\frameworks\mx\rpc\AsyncRequest.as:81]
> > at
> >
NetConnectionChannel.as$33::NetConnectionMessageResponder/NetConnectionChannel.as$33:NetConnectionMessageResponder::resultHandler
> >
()[E:\dev\flex_201_borneo\sdk\frameworks\mx\messaging\channels\NetConnectionCha
> > nnel.as:427]
> > 

[flexcoders] accessing .NET SOAP Service that uses byref parameters...

2007-10-18 Thread flxkid
I have to work with a .NET based webservice that has parameters that
are passed byref.  Is there a way to deal with this in Flex?

You can access the wsdl here:

http://univac.hallmarkins.net/ConneXion/ConneXion.asmx?wsdl

I will need to access many methods this way, although the first is
especially difficult as it needs to be passed an array of objects
byref that gets filled.  Of course byref in SOAP is more parameter
clobbering than anything AFAIK.

Any ideas if this will be doable via flex?

Thanx,

OLIVER






  1   2   >