Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-10 Thread Dennis Falling
Do you mean the CSS from the framework?  Because the only applicable css
I've seen is:

LinkButton
{
/*disabledIcon: null; */
disabledSkin: ClassReference(null);
/*downIcon: null; */
downSkin: ClassReference(null);
/*overIcon: null; */
overSkin: ClassReference(null);
paddingLeft: 7;
paddingRight: 7;
/*selectedDisabledIcon: null; */
selectedDisabledSkin: ClassReference(null);
/*selectedDownIcon: null; */
selectedDownSkin: ClassReference(null);
/*selectedOverIcon: null; */
selectedOverSkin: ClassReference(null);
/*selectedUpIcon: null; */
selectedUpSkin: ClassReference(null);
skin: ClassReference("mx.skins.halo.LinkButtonSkin");
/*upIcon: null; */
upSkin: ClassReference(null);
}

Setting my over skin to ClassReference(null) makes it appear (I think) like
a normal button, while using ClassReference("mx.skins.halo.LinkButtonSkin")
will make it behave like a typical LinkButton does when moused over.  Again
though, it currently looks great and behaves the way I want it to.  Is there
a reason for me to not do it just with an alpha image?

Thanks


On Thu, Jul 10, 2008 at 7:09 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>Copy the LinkButton CSS and assign whatever was in upSkin to overSkin
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Dennis Falling
> *Sent:* Thursday, July 10, 2008 4:13 PM
>
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Re: Trick button into rendering
> mouseover/mouseout states
>
>
>
> So no way that's purely CSS? Is there a reason for me to not use my current
> hack (invisible PNG skins)?  Visually and functionally it's what I want.
>
>
>
> On Jul 10, 2008, at 5:30 PM, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
>   Maybe setStyle("overSkin", getStyle("upSkin"))
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Dennis Falling
> *Sent:* Thursday, July 10, 2008 12:52 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Re: Trick button into rendering
> mouseover/mouseout states
>
>
>
> I don't know of a way to give a link button a transparent mouse over
> background.
>
> On Jul 7, 2008, at 2:11 PM, "nathanpdaniel" <[EMAIL PROTECTED]> wrote:
>
>  I'm not sure but what's the difference between a link button and what
> you're trying to accomplish? It seems to me what you're looking for
> would be easily accomplished with a little CSS & the LinkButton
> component rather than reskinning the Button component.
>
> --- In flexcoders@yahoogroups.com , "Alex
> Harui" <[EMAIL PROTECTED]> wrote:
> >
> > Interesting. It should work because the icon and text is not a
> child of
> > the skin. Maybe I don't understand what he wants or what you tried.
> >
> >
> >
> > 
> >
> > From: [EMAIL PROTECTED] 
> > 
> ups.com 
> [mailto:[EMAIL PROTECTED] 
> 
> ups.com ] On
> > Behalf Of Tim Hoff
> > Sent: Monday, July 07, 2008 10:02 AM
> > To: [EMAIL PROTECTED] 
> > 
> ups.com 
> > Subject: [flexcoders] Re: Trick button into rendering
> mouseover/mouseout
> > states
> >
> >
> >
> >
> > Doesn't work if you want to keep the button icons visible. Wouldn't
> > this also affect embedded fonts?
> >
> > -TH
> >
> > --- In [EMAIL PROTECTED] 
> > 
> ups.com  < 
> mailto:flexcoders
> %
> 40yahoogroups.com>
> > , "Alex Harui"  wrote:
> > >
> > > Skin the way you normally do, but set the alpha=0
> > >
> > >
> > >
> > > 
> > >
> > > From: [EMAIL PROTECTED] 
> > > 
> ups.com  < 
> mailto:flexcoders
> %
> 40yahoogroups.com>
> > [mailto:[EMAIL PROTECTED] 
> > 
> ups.com  < 
> mailto:flexcoders
> %
> 40yahoogroups.com>
> > ]
> > On
> > > Behalf Of Dennis Falling
> > > Sent: Sunday, July 06, 2008 12:43 PM
> > > To: [EMAIL PROTECTED] 
> > > 
> ups.com  < 
> mailto:flexcoders
> %
> 40yahoogroups.com>
> > > Subject: Re: [flexcoders] Trick button into rendering
> > mouseover/mouseout
> > > states
> > >
> > >
> > >
> > > Over an alpha background though just setting their colors won't
> do it.
> > > I've done skins, but when I want a skin with basically nothing
> > visible,
> > > would that be any different from what I've made?
> > >
> > > On Sat, Jul 5, 2008 at 7:25 PM, Alan ultraky@
> > > < mailto:ultraky @ > wrote:
> > >
> > > Could you just set the btn color and border to the same color as
> your
> > > background? Also, have you tried the Photoshop btn skin scripts.
> Makes
> > > it real easy to change the btnin fact, id use that...
> > >
> > >
> > >
> > > There's a demo on adobe.com to use it, but its so easy you dont
> really
> > > even need it.
> > >
> > >
> > >
> > > 
> https://www.
> adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins

[flexcoders] testing JS using AIR

2008-07-10 Thread yigit boyar
hi all,
i work for a web2.0 company. We have a system composed of flex & ajax. 
Flex and javascript talks using the FAbridge and external interface.

We want to make a mass stress testing for the system but there is no way 
to test JS&Flex using many firefox windows,
and what we want to test JS clients under stress. (basically we use flex 
for FMS and XMPP+jingle connection gateway, we need to see whether
clients are robust when they start to talk many other)

One thing came to my mind, since AIR can run JS code, we may try pushing 
all system inside an AIR application and run there (create the test
clients as AIR applications).
But since I've never coded JS in AIR, I'm not comfortable whether moving 
the browser codes will be ok or not. (we also use
prototype.js library). Has anyone tried running browser js codes inside 
AIR's browser ?

So may I get some comments about this approach? Is that worth to try?

any ideas or help is appreciate.

thanks,

yigit


[flexcoders] Re: Nirvanix API & Air examples?

2008-07-10 Thread barryruffner
--- In flexcoders@yahoogroups.com, "deba2304" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Has anyone used the Nirvanix API (similar to amazon S3) with Flex/Air
> to upload and download files?. Any example code to help out a new Flex
> 3 user would be great.
> 
> Thanks.
>

You can find a very simple example of an MP3 Player that uses Nirvanix
to list the files in a folder and stream a selected mp3 to play it on
the Nirvanix developer site.  While its not a Flex example it should
be very helpful.

You can find it at:
http://developer.nirvanix.com/files/folders/adobe_air/entry16.aspx

Please feel free to drop me a message if you need any more help with this.

Regards,
   Barry R. (Nirvanix Customer Advocate)



[flexcoders] Re: Converting String to hiberarchy path ?

2008-07-10 Thread flexawesome
right, I was just curious about this..,

thanks for your solution. 

--- In flexcoders@yahoogroups.com, Maciek Sakrejda <[EMAIL PROTECTED]> 
wrote:
>
> You probably should try another approach to the problem--that 
kind of
> property manipulation is hairy. That said, you could do something 
like
> 
> (not tested, since it's a bad idea to do it this way anyway)
> 
> var currObj:Object = obj; // object that you want to apply this 
chain to
> var propArray:Array = apps.split('.');
> propArray.forEach(function(item:*, index:int, array:Array):void {
> currObj = currObj[item];
> });
> 
> trace(currObj.name); // should be the name as in your example
> 
> Again, this is a bad idea--you should consider another approach that
> doesn't involve this kind of reference. It's usually hard to debug, 
hard
> to follow when reading the code, and prone to subtle errors (e.g., 
if
> you rename one of the components but neglect to change the String).
> 
> -- 
> Maciek Sakrejda
> Truviso, Inc.
> http://www.truviso.com
> 
> -Original Message-
> From: flexawesome <[EMAIL PROTECTED]>
> Reply-To: flexcoders@yahoogroups.com
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Converting String to hiberarchy path ?
> Date: Fri, 11 Jul 2008 02:15:59 -
> 
> hhuummI have tried that...it didn't work
> 
> Error Msg
> 
> ReferenceError: Error #1069: Property myPanel.myButton not found on 
> testapp and there is no default value.
> 
> --- In flexcoders@yahoogroups.com, Sherif Abdou  wrote:
> >
> > I think you can do this[apps].name; 
> > 
> > 
> > 
> > - Original Message 
> > From: flexawesome 
> > To: flexcoders@yahoogroups.com
> > Sent: Thursday, July 10, 2008 8:45:03 PM
> > Subject: [flexcoders] Converting String to hiberarchy path ?
> > 
> > 
> > I was curious if I am able to convert a String to hiberarchy path
> > 
> > for example: I am able to retrieve the button info. by 
> > myPanel.myButton. name
> > 
> > what about I have a String: var apps:String 
= "myPanel.myButton" , 
> is 
> > it possible to convert the String back to REAL hiberarchy path 
that 
> > allows me to use => myPanel.myButton. name?
> > 
> > Cheers
> > 
> >  sample application code 
> > 
> > 
> > 
> > 
> >
>




Re: [flexcoders] Re: Converting String to hiberarchy path ?

2008-07-10 Thread Maciek Sakrejda
You probably should try another approach to the problem--that kind of
property manipulation is hairy. That said, you could do something like

(not tested, since it's a bad idea to do it this way anyway)

var currObj:Object = obj; // object that you want to apply this chain to
var propArray:Array = apps.split('.');
propArray.forEach(function(item:*, index:int, array:Array):void {
currObj = currObj[item];
});

trace(currObj.name); // should be the name as in your example

Again, this is a bad idea--you should consider another approach that
doesn't involve this kind of reference. It's usually hard to debug, hard
to follow when reading the code, and prone to subtle errors (e.g., if
you rename one of the components but neglect to change the String).

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: flexawesome <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Converting String to hiberarchy path ?
Date: Fri, 11 Jul 2008 02:15:59 -

hhuummI have tried that...it didn't work

Error Msg

ReferenceError: Error #1069: Property myPanel.myButton not found on 
testapp and there is no default value.

--- In flexcoders@yahoogroups.com, Sherif Abdou <[EMAIL PROTECTED]> wrote:
>
> I think you can do this[apps].name; 
> 
> 
> 
> - Original Message 
> From: flexawesome <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Thursday, July 10, 2008 8:45:03 PM
> Subject: [flexcoders] Converting String to hiberarchy path ?
> 
> 
> I was curious if I am able to convert a String to hiberarchy path
> 
> for example: I am able to retrieve the button info. by 
> myPanel.myButton. name
> 
> what about I have a String: var apps:String = "myPanel.myButton" , 
is 
> it possible to convert the String back to REAL hiberarchy path that 
> allows me to use => myPanel.myButton. name?
> 
> Cheers
> 
>  sample application code 
> 
> 
> 
> 
>




 




[flexcoders] Re: Getting at itemRenderers from list

2008-07-10 Thread Amy
--- In flexcoders@yahoogroups.com, "djhatrick" <[EMAIL PROTECTED]> wrote:
>
> what trick is there, other than an event to get at the itemRenderers
> in a list?  I need them... I thought of dispatching events back, but
> man, that seems really cheesy..
> 
> Any suggestions?
>
What are you trying to accomplish?  If you're debugging, you can look 
at the list's rendererArray property.

HTH;

Amy



[flexcoders] Re: Converting String to hiberarchy path ?

2008-07-10 Thread flexawesome
hhuummI have tried that...it didn't work


Error Msg

ReferenceError: Error #1069: Property myPanel.myButton not found on 
testapp and there is no default value.




--- In flexcoders@yahoogroups.com, Sherif Abdou <[EMAIL PROTECTED]> wrote:
>
> I think you can do this[apps].name; 
> 
> 
> 
> - Original Message 
> From: flexawesome <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Thursday, July 10, 2008 8:45:03 PM
> Subject: [flexcoders] Converting String to hiberarchy path ?
> 
> 
> I was curious if I am able to convert a String to hiberarchy path
> 
> for example: I am able to retrieve the button info. by 
> myPanel.myButton. name
> 
> what about I have a String: var apps:String = "myPanel.myButton" , 
is 
> it possible to convert the String back to REAL hiberarchy path that 
> allows me to use => myPanel.myButton. name?
> 
> Cheers
> 
>  sample application code 
> 
> 
> 
> 
>




[flexcoders] Nirvanix API & Air examples?

2008-07-10 Thread deba2304
Hi,

Has anyone used the Nirvanix API (similar to amazon S3) with Flex/Air
to upload and download files?. Any example code to help out a new Flex
3 user would be great.

Thanks.



Re: [flexcoders] Converting String to hiberarchy path ?

2008-07-10 Thread Sherif Abdou
I think you can do this[apps].name; 



- Original Message 
From: flexawesome <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, July 10, 2008 8:45:03 PM
Subject: [flexcoders] Converting String to hiberarchy path ?


I was curious if I am able to convert a String to hiberarchy path

for example: I am able to retrieve the button info. by 
myPanel.myButton. name

what about I have a String: var apps:String = "myPanel.myButton" , is 
it possible to convert the String back to REAL hiberarchy path that 
allows me to use => myPanel.myButton. name?

Cheers

 sample application code 








  

[flexcoders] Converting String to hiberarchy path ?

2008-07-10 Thread flexawesome
I was curious if I am able to convert a String to hiberarchy path

for example: I am able to retrieve the button info. by 
myPanel.myButton.name

what about I have a String: var apps:String = "myPanel.myButton", is 
it possible to convert the String back to REAL hiberarchy path that 
allows me to use => myPanel.myButton.name?

Cheers


 sample application code 

   

   









[flexcoders] Re: Launching Flex Builder Help

2008-07-10 Thread Amy
--- In flexcoders@yahoogroups.com, "Stephen Gilson" <[EMAIL PROTECTED]> 
wrote:
>
> Not really - the help requires an internal web server that is part of
> Eclipse.
>  
> However, all of the help content is available online on livedocs at:
> http://livedocs.adobe.com/flex/3/html/

Yes, but with the built in help I can limit my search results to zoom 
in on what I am looking for.  The LiveDocs search searches the world.  
A lot of the time I go through the built-in help to get to the LiveDocs 
page I am looking for if I want to post a link to something, because it 
is MUCH faster even counting the time it takes to launch FB3.

Thanks, though.

-Amy



[flexcoders] Re: Component ClickEvent weirdness

2008-07-10 Thread Amy
--- In flexcoders@yahoogroups.com, "Jason" <[EMAIL PROTECTED]> wrote:
>
> and if it helps any, this is what the custom event class looks like:
> 
> package com.venice.event 
> {
>   import flash.events.Event;
>   
>   /**
>   * ...
>   * @author Jason Merrill
>   */
>   public class HelpEvent extends Event
>   {
>   
>   public static var HELP_INITIALIZED:String 
> = "help_initialized";
>   public static var HELP_TERMINATED:String 
> = "help_terminated";
>   public static var HELP_TOPIC_CHANGED:String 
> = "help_topic_changed";
>   
>   public function HelpEvent(type:String, 
> bubbles:Boolean=false, cancelable:Boolean=false) 
>   {
>   super(type, bubbles, cancelable);
>   }
>   
>   }
>   
> }
>
Hi, Jason;

Not sure if this relates to your error, but I think you have to 
override the clone() method for custom events.

HTH;

Amy



[flexcoders] Issue executing Debug in Flex Builder 3 as Eclipse Plugin with PHP

2008-07-10 Thread danielholmes85
Having an issue with Debug for Flex projects in eclipse. When i debug
my project I get a popup asking if i want to debug it with one of the
following options:

Run on Server
PHP Script
PHP Web Page

I have PDT installed. I'm positive there's a setting somewhere to
always debug the flex project as a flex application; but i can't find
it. I have another installation of eclipse with the flex builder and
PDT plugins at work and it doesn't have this issue but i don't
remember changing any settings (It may be relevant to mention that i
share the work projects with users who have the standalone version of
flex builder which may do the setting by default).

Thanks for any help you can give,

Daniel



[flexcoders] Getting at itemRenderers from list

2008-07-10 Thread djhatrick
what trick is there, other than an event to get at the itemRenderers
in a list?  I need them... I thought of dispatching events back, but
man, that seems really cheesy..

Any suggestions?



RE: [flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-10 Thread Alex Harui
Copy the LinkButton CSS and assign whatever was in upSkin to overSkin

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dennis Falling
Sent: Thursday, July 10, 2008 4:13 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Trick button into rendering
mouseover/mouseout states

 

So no way that's purely CSS? Is there a reason for me to not use my
current hack (invisible PNG skins)?  Visually and functionally it's what
I want.

 

On Jul 10, 2008, at 5:30 PM, "Alex Harui" <[EMAIL PROTECTED]
 > wrote:

Maybe setStyle("overSkin", getStyle("upSkin"))

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis Falling
Sent: Thursday, July 10, 2008 12:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Trick button into rendering
mouseover/mouseout states

 

I don't know of a way to give a link button a transparent mouse
over background.

On Jul 7, 2008, at 2:11 PM, "nathanpdaniel" <[EMAIL PROTECTED]
 > wrote:





I'm not sure but what's the difference between a link
button and what 
you're trying to accomplish? It seems to me what you're
looking for 
would be easily accomplished with a little CSS & the
LinkButton 
component rather than reskinning the Button component. 

--- In flexcoders@yahoogroups.com
 , "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Interesting. It should work because the icon and text
is not a 
child of
> the skin. Maybe I don't understand what he wants or
what you tried.
> 
> 
> 
> 
> 
> From: [EMAIL PROTECTED]

 ups.com
  
[mailto:[EMAIL PROTECTED]

 ups.com
 ] On
> Behalf Of Tim Hoff
> Sent: Monday, July 07, 2008 10:02 AM
> To: [EMAIL PROTECTED]

 ups.com
 
> Subject: [flexcoders] Re: Trick button into rendering 
mouseover/mouseout
> states
> 
> 
> 
> 
> Doesn't work if you want to keep the button icons
visible. Wouldn't
> this also affect embedded fonts?
> 
> -TH
> 
> --- In [EMAIL PROTECTED]

 ups.com
  < 
mailto:flexcoders%
40yahoogroups.com>
> , "Alex Harui"  wrote:
> >
> > Skin the way you normally do, but set the alpha=0
> >
> >
> >
> > 
> >
> > From: [EMAIL PROTECTED]

 ups.com
  < 
mailto:flexcoders%
40yahoogroups.com>
> [mailto:[EMAIL PROTECTED]

 ups.com
  < 
mailto:flexcoders%
40yahoogroups.com>
> ]
> On
> > Behalf Of Dennis Falling
> > Sent: Sunday, July 06, 2008 12:43 PM
> > To: [EMAIL PROTECTED]

 ups.com
  < 
mailto:flexcoders%
40yahoogroups.com> 
> > Subject: Re: [flexcoders] Trick button into
rendering
> mouseover/mouseout
> > states
> >
> >
> >
> > Over an alpha background though just setting their
colors won't 
do it.
> > I've done skins, but when I want a skin with
basically nothing
> visible,
> > would that be any different from what I've made?
> >
> > On Sat, Jul 5, 2008 at 7:25 PM, Alan ultraky@

[flexcoders] Re: Putting returned xml data into ArrayCollection using Cairngorm framwork (Command Class/Delegate Class/IResponder)

2008-07-10 Thread sdl1326
Makes sense, thank you for the assistance.

So, the steps suggested by yourself and others in this thread are
ultimately a better/preferred way to work with and handle xml data
when it's retrieved from an http service?


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> If you are going to do this, make an ArrayCollection, you should build a
> class(value object, VO) with strongly typed public properties.
> 
>  
> 
> In the loop, "new" that class, then assign the xml node property values
> to the appropriate value object properties.  Push that VO onto a
> temporary array.  When the loop is done, wrap the array in an
> ArrayCollection.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of sdl1326
> Sent: Thursday, July 10, 2008 6:25 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Putting returned xml data into ArrayCollection
> using Cairngorm framwork (Command Class/Delegate Class/IResponder)
> 
>  
> 
> Ok, thanks.
> 
> So, looking at the original xml file ( below) if I want to add both
> the name and url (data) to the array collection, is this the most
> efficient way to accomplish this?
> 
> var xmlResult:XML = new XML(event.result);
> xmlImages_ac = new ArrayCollection();
> 
> // push XML to ArrayCollection
> for each(var item:XML in xmlResult.image){
> var obj:Object = new Object()
> obj.url = [EMAIL PROTECTED];
> obj.name = [EMAIL PROTECTED];
> xmlImages_ac.addItem(obj);
> }
> 
> TIA
> 
> --- In flexcoders@yahoogroups.com 
> , "Josh McDonald"  wrote:
> >
> > That's right, because when you trace the ArrayCollection it converts
> its
> > children to String, and your nodes have no inner text, so they
> toString() as
> > "".
> > 
> > Instead of "addItem(item)", try "addItem([EMAIL PROTECTED])"
> > 
> > -Josh
> > 
> > On Fri, Jul 11, 2008 at 6:57 AM, sdl1326  wrote:
> > 
> > > Tracy, thanks for the very detailed reply. I changed the
> resultFormat=
> > > 'e4x'. So, I want to put the xml data into an arraycollection and am
> > > trying the following code:
> > >
> > > var xmlResult:XML = new XML(event.result);
> > >
> > > xmlImages_ac = new ArrayCollection();
> > >
> > > // push XML to ArrayCollection
> > > for each(var item:XML in xmlResult.image){
> > >
> > > xmlImages_ac.addItem(item);
> > > }
> > >
> > > trace('xmlImages_ac - ' + xmlImages_ac)
> > >
> > > For whatever reason, I can not seem to get this to work as it simply
> > > traces out:
> > >
> > > xmlImages_ac - 
> > >
> > > Can you point to where I am getting tripped up?
> > >
> > > Thanks for the assistance.
> > >
> > > --- In flexcoders@yahoogroups.com
>  , "Tracy Spratt"  wrote:
> > > >
> > > > You have found one reason not to use resultFormat="object". 
> That result
> > > > format causes flex to convert your result data, which is xml, into
> a
> > > > tree of dynamic objects. You have no control over this
> process(, and it
> > > > has some issues, particularly that values that look like
> numbers are
> > > > converted to numbers) and it is even hard to predict. It is
> also hard
> > > > to debug, though you can use ObjUtil.toString() to see the
> contents.
> > > >
> > > >
> > > >
> > > > What is happening in your case is the "images" node becomes an
> object
> > > > containing an Array or "image" nodes. So this expression:
> > > >
> > > > result.images.image returns an Array, which you can directly
> wrap in an
> > > > ArrayCollection. I would not expect the direct assignment to
> work like
> > > > you show it, and doing it that way hides what is really
> happening. This
> > > > is more clear:
> > > >
> > > > var aResult:Array = ResultEvent( data ).result.images.image;
> > > >
> > > > trace(aResult.length); //is this what you expect
> > > >
> > > > var acImages:ArrayCollection = new ArrayCollection(aResult);
> > > >
> > > >
> > > >
> > > > Since an Array is an object, Josh's suggestion to use a for..in
> loop
> > > > would work also.
> > > >
> > > >
> > > >
> > > > I advise using resultFormat="e4x". This leaves your result data
> as XML,
> > > > so you can do:
> > > >
> > > > var xmlResult:XML = XML(ResultEvent( data ).result);
> > > >
> > > > trace(xmlResult.toXMLSTring()); //you will see your xml,
> unchanged.
> > > >
> > > >
> > > >
> > > > Now, you can use the xml directly, or use XMLList, or
> XMLListCollection,
> > > > or combinations of the three.
> > > >
> > > >
> > > >
> > > > Or, if you want, you can convert your xml, or parts thereof, into
> > > > ArrayCollections.
> > > >
> > > >
> > > >
> > > > Tracy
> > > >
> > > >
> > > >
> > > > 
> > > >
> > > > From: flexcoders@yahoogroups.com
>  
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > > > Behalf Of sdl1326
> > > > Sent: Thursday, July 10, 2008 12:16 PM
> > > > To: fle

Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-10 Thread Dennis Falling
So no way that's purely CSS? Is there a reason for me to not use my  
current hack (invisible PNG skins)?  Visually and functionally it's  
what I want.



On Jul 10, 2008, at 5:30 PM, "Alex Harui" <[EMAIL PROTECTED]> wrote:


Maybe setStyle(“overSkin”, getStyle(“upSkin”))



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
On Behalf Of Dennis Falling

Sent: Thursday, July 10, 2008 12:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Trick button into rendering mouseover/ 
mouseout states




I don't know of a way to give a link button a transparent mouse over  
background.


On Jul 7, 2008, at 2:11 PM, "nathanpdaniel" <[EMAIL PROTECTED]>  
wrote:



I'm not sure but what's the difference between a link button and what
you're trying to accomplish? It seems to me what you're looking for
would be easily accomplished with a little CSS & the LinkButton
component rather than reskinning the Button component.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Interesting. It should work because the icon and text is not a
child of
> the skin. Maybe I don't understand what he wants or what you tried.
>
>
>
> 
>
> From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> Behalf Of Tim Hoff
> Sent: Monday, July 07, 2008 10:02 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Trick button into rendering
mouseover/mouseout
> states
>
>
>
>
> Doesn't work if you want to keep the button icons visible. Wouldn't
> this also affect embedded fonts?
>
> -TH
>
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > Skin the way you normally do, but set the alpha=0
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ]
> On
> > Behalf Of Dennis Falling
> > Sent: Sunday, July 06, 2008 12:43 PM
> > To: flexcoders@yahoogroups.com 
> > Subject: Re: [flexcoders] Trick button into rendering
> mouseover/mouseout
> > states
> >
> >
> >
> > Over an alpha background though just setting their colors won't
do it.
> > I've done skins, but when I want a skin with basically nothing
> visible,
> > would that be any different from what I've made?
> >
> > On Sat, Jul 5, 2008 at 7:25 PM, Alan ultraky@
> >  wrote:
> >
> > Could you just set the btn color and border to the same color as
your
> > background? Also, have you tried the Photoshop btn skin scripts.
Makes
> > it real easy to change the btnin fact, id use that...
> >
> >
> >
> > There's a demo on adobe.com to use it, but its so easy you dont
really
> > even need it.
> >
> >
> >
> > https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex% 
5Fskins

> 
> >   >
> >
> >
> >
> > Alan
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Jul 5, 2008, at 8:19 PM, Dennis Falling wrote:
> >
> >
> >
> >
> >
> > What's the best way to create a border-less button? I'm trying to
pull
> > it off with flexlib's enhanced button skin but it appears to be
> ignoring
> > the font-family I set. Basically I just want a button that has
text
> and
> > an icon and these will change color on mouseover. No
> border/backgrounds
> > should ever be visible.
> >
> > http://dl.getdropbox.com/u/15760/replay.png
> 
> >   >
> >
>








[flexcoders] RTMP and Spring Security(Acegi) Issues

2008-07-10 Thread Geoffrey
I'm wondering if anyone out there has implemented LiveCycle Data
Services using Spring Security as their security layer?

I'm having issues with RTMP communications between server/client,
meaning I'm not getting any.  I've modified our existing Java delegate
to ast as the Assembler for a managed collection.  When the
Assembler's fill() method gets called, it tries to retrieve the
desired information from our Service class.  I get an
AuthenticationCredentialsNotFoundException as seen below:


org.acegisecurity.AuthenticationCredentialsNotFoundException: An
Authentication object was not found in the SecurityContext
at
org.acegisecurity.intercept.AbstractSecurityInterceptor.credentialsNotFound(AbstractSecurityInterceptor.java:339)
at
org.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:254)
at
org.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:63)
at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at
org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:630)
...


I think it's because the HTTPFlexSession is authenticated, but the
RTMPFlexSession operates outside the context.  I don't know how to
make it authenticated, or to authenticate the client so that all
sessions have valid credentials.

Any suggestions would be appreciated.

~Geoff



RE: [flexcoders] Customizing TreeItemRenderer

2008-07-10 Thread Tracy Spratt
I have an example on www.cflex.net   that is
pretty good, not too complex, not braindead simple, that uses good
practice and shows overriding commitProperties and updateDisplayList.
It draws lines between sibling nodes. Wish I could claim it all as my
work.

 

http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
D=575

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Troy Gilbert
Sent: Thursday, July 10, 2008 5:30 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Customizing TreeItemRenderer

 

So, is TreeItemRenderer really that much of a black art? Has no one
done any interesting modifications of that component? Maybe a good
indicator that it's a hard to customize component?

Maybe this would be a good opportunity for a solid Adobe tut on the
subject...

Troy.

 



RE: [flexcoders] Re: Putting returned xml data into ArrayCollection using Cairngorm framwork (Command Class/Delegate Class/IResponder)

2008-07-10 Thread Tracy Spratt
If you are going to do this, make an ArrayCollection, you should build a
class(value object, VO) with strongly typed public properties.

 

In the loop, "new" that class, then assign the xml node property values
to the appropriate value object properties.  Push that VO onto a
temporary array.  When the loop is done, wrap the array in an
ArrayCollection.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sdl1326
Sent: Thursday, July 10, 2008 6:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Putting returned xml data into ArrayCollection
using Cairngorm framwork (Command Class/Delegate Class/IResponder)

 

Ok, thanks.

So, looking at the original xml file ( below) if I want to add both
the name and url (data) to the array collection, is this the most
efficient way to accomplish this?

var xmlResult:XML = new XML(event.result);
xmlImages_ac = new ArrayCollection();

// push XML to ArrayCollection
for each(var item:XML in xmlResult.image){
var obj:Object = new Object()
obj.url = [EMAIL PROTECTED];
obj.name = [EMAIL PROTECTED];
xmlImages_ac.addItem(obj);
}

TIA

--- In flexcoders@yahoogroups.com 
, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> That's right, because when you trace the ArrayCollection it converts
its
> children to String, and your nodes have no inner text, so they
toString() as
> "".
> 
> Instead of "addItem(item)", try "addItem([EMAIL PROTECTED])"
> 
> -Josh
> 
> On Fri, Jul 11, 2008 at 6:57 AM, sdl1326 <[EMAIL PROTECTED]> wrote:
> 
> > Tracy, thanks for the very detailed reply. I changed the
resultFormat=
> > 'e4x'. So, I want to put the xml data into an arraycollection and am
> > trying the following code:
> >
> > var xmlResult:XML = new XML(event.result);
> >
> > xmlImages_ac = new ArrayCollection();
> >
> > // push XML to ArrayCollection
> > for each(var item:XML in xmlResult.image){
> >
> > xmlImages_ac.addItem(item);
> > }
> >
> > trace('xmlImages_ac - ' + xmlImages_ac)
> >
> > For whatever reason, I can not seem to get this to work as it simply
> > traces out:
> >
> > xmlImages_ac - 
> >
> > Can you point to where I am getting tripped up?
> >
> > Thanks for the assistance.
> >
> > --- In flexcoders@yahoogroups.com
 , "Tracy Spratt"  wrote:
> > >
> > > You have found one reason not to use resultFormat="object". 
That result
> > > format causes flex to convert your result data, which is xml, into
a
> > > tree of dynamic objects. You have no control over this
process(, and it
> > > has some issues, particularly that values that look like
numbers are
> > > converted to numbers) and it is even hard to predict. It is
also hard
> > > to debug, though you can use ObjUtil.toString() to see the
contents.
> > >
> > >
> > >
> > > What is happening in your case is the "images" node becomes an
object
> > > containing an Array or "image" nodes. So this expression:
> > >
> > > result.images.image returns an Array, which you can directly
wrap in an
> > > ArrayCollection. I would not expect the direct assignment to
work like
> > > you show it, and doing it that way hides what is really
happening. This
> > > is more clear:
> > >
> > > var aResult:Array = ResultEvent( data ).result.images.image;
> > >
> > > trace(aResult.length); //is this what you expect
> > >
> > > var acImages:ArrayCollection = new ArrayCollection(aResult);
> > >
> > >
> > >
> > > Since an Array is an object, Josh's suggestion to use a for..in
loop
> > > would work also.
> > >
> > >
> > >
> > > I advise using resultFormat="e4x". This leaves your result data
as XML,
> > > so you can do:
> > >
> > > var xmlResult:XML = XML(ResultEvent( data ).result);
> > >
> > > trace(xmlResult.toXMLSTring()); //you will see your xml,
unchanged.
> > >
> > >
> > >
> > > Now, you can use the xml directly, or use XMLList, or
XMLListCollection,
> > > or combinations of the three.
> > >
> > >
> > >
> > > Or, if you want, you can convert your xml, or parts thereof, into
> > > ArrayCollections.
> > >
> > >
> > >
> > > Tracy
> > >
> > >
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com
 
[mailto:flexcoders@yahoogroups.com 
] On
> > > Behalf Of sdl1326
> > > Sent: Thursday, July 10, 2008 12:16 PM
> > > To: flexcoders@yahoogroups.com
 
> > > Subject: [flexcoders] Re: Putting returned xml data into
ArrayCollection
> > > using Cairngorm framwork (Command Class/Delegate Class/IResponder)
> > >
> > >
> > >
> > > Here's a sample xml that's getting loaded in via http service:
> > >
> > > 
> > > http://www.cnn.com
 
 > "/>
> > > http://www.usatoday.com
 
> > >  > " />
> > > http://www.msnbc.com
 
> > > 

[flexcoders] Re: TextInputs - no cursor

2008-07-10 Thread markgoldin_2000
Yes, running it as a stand alone app. works fine, but in the way I am 
using this code it does not work properly. I have a cursor for the 
SKU field only. I cannot imagine that there is an error in this code. 
All text fields are declared in exactly same way. Strange.

--- In flexcoders@yahoogroups.com, "Sid Maskit" <[EMAIL PROTECTED]> wrote:
>
> I have been noticing extra spaces in a lot of posts. I'm suspecting
> this is a feature of Yahoo groups, or maybe just of the Yahoo mail
> reader that I am using to read the group. Anyway, here is the 
flex/web
> version I used (perhaps with a whole bunch of extra spaces inserted 
by
> the time you see it):
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute">
>  verticalScrollPolicy="off"
> height="128" verticalCenter= "true" horizontalCenter= "true"
> horizontalScrollPolicy="off" >
>  borderThickness= "2"
> backgroundColor= "#DD" paddingTop=" 0"
> borderStyle= "solid"
> top="0"
> left="0"
> height="100% " width="100%" >
>  paddingLeft= "-38">
> 
> 
> 
>  paddingLeft= "4" color="#00" >
> 
> 
> 
> 
> 
> 
> 
>  color="#00" />
> 
> 
> 
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "markgoldin_2000"
>  wrote:
> >
> > My code does not have "/ >" anywhere as far as I can see.
> > Can you please post your code as well?
> > 
> > Thanks
> > 
> > --- In flexcoders@yahoogroups.com, "Sid Maskit"  wrote:
> > >
> > > After copying and pasting your code, I initially got error 
messages
> > > for things like "/ >" where there cannot be a space between the 
two
> > > characters. However, once I fixed all of those, it seemed to 
work 
> > fine
> > > in terms of being able to type into each of the text input 
fields. I
> > > got the same results whether using a flex app in the browser, 
or an
> > > air app. I'm not sure where to go from here. Are you sure you 
are 
> > not
> > > getting any compiler errors?
> > > 
> > > --- In flexcoders@yahoogroups.com, "markgoldin_2000"
> > >  wrote:
> > > >
> > > > I have this simple form:
> > > > 
> > > > http://www.adobe.com/2006/mxml"; 
width="150" 
> > > > verticalScrollPolicy="off"
> > > > height="128" verticalCenter="true" 
horizontalCenter="true" 
> > > > horizontalScrollPolicy="off">
> > > >   > > > borderThickness="2"
> > > > backgroundColor="#DD" paddingTop="0" 
> > > > borderStyle="solid"
> > > > top="0" 
> > > > left="0" 
> > > > height="100%" width="100%">
> > > > > > > paddingLeft="-38"> 
> > > > > color="#00"/>
> > > > 
> > > > 
> > > > > > > paddingLeft="4" color="#00">
> > > > 
> > > > 
> > > >  > paddingLeft="-
> > > > 38">
> > > > 
> > > > 
> > > > 
> > > >  > paddingLeft="-
> > > > 38"> 
> > > > > > > color="#00"/>
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > The only TextInput field that actually accepts input is SKU.
> > > > What kind of problem am I having here?
> > > > 
> > > > Thanks
> > > >
> > >
> >
>




[flexcoders] Cairngorm login

2008-07-10 Thread abdiel.ferreira
Someone used in the session screencast login (using cairngorm) by
author David tucker?

I'm having difficulties in implementing the session created when the
user accesses with username and password.

The method getSessionUser () returns true or false.

If true returns the welcome screen or false returns to the login screen.

package br.com.anfer.manager.business {

import br.com.anfer.manager.vo.LoginVO; 
import com.adobe.cairngorm.business.ServiceLocator; 
import mx.rpc.IResponder;
import mx.rpc.events.ResultEvent;   

public class LoginDelegate {

private var responder:IResponder;
private var service:Object;

public function LoginDelegate( responder:IResponder ) {
this.responder = responder;
this.service = 
ServiceLocator.getInstance().getRemoteObject(
"ServiceID" );
}

public function getAutenticarByUser( loginAttempt:LoginVO 
):void {
var call:Object = service.loadAutenticarByUser( 
loginAttempt );
call.addResponder( responder );
}

public function getSessionUser():void {
var call:Object = service.loadSessionUser();
call.addResponder( responder );
}   
}
}



RE: [flexcoders] Datagrid Column resize problem

2008-07-10 Thread Alex Harui
If horizontalScrollPolicy="off", if you get too small, even resize=false
columns will get resized.  If you allow horizontalScrolling, you should
be able to mix

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Parkash
Sent: Thursday, July 10, 2008 3:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid Column resize problem

 

Is it possible to set up a datagrid with columns of absolute width AND
columns of relative width?

I have a datagrid that will resize with the browser window and some
columns widths can be resized by the user, but the itemRenderer buttons
need to always be the same width(resizable='false').

i have tried various combinations of attacking this problem from
manually resizing the columns on the DataGrid resize event, to binding
the column widths to a function, but nothing seems to work well.

am i missing something simple? any tips/suggestions/ideas out there?

i can post some samples of failed attempts if requested. 

 

 



RE: [flexcoders] Flex components to Flash CS3

2008-07-10 Thread Alex Harui
It is usually easier to go the other way

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Balaji
Sent: Thursday, July 10, 2008 1:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex components to Flash CS3

 

Hi All
I had created one small component in Flex, and builded with SWC format,
I need to call that SWC component to the Flash CS3.
Let me know how to do this,,
or send me the link to how to do this application
Regards
Balaji

 



RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????

2008-07-10 Thread Alex Harui
If you re-dispatch events, you must propertly implement clone().

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: Thursday, July 10, 2008 9:00 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to
SystemManager - WHY?

 

Thanks Alex - that does it.   I noticed some interesting behavior in all
this - if my custom event did not have its own clone method override I'd
get a type coercion error when dispatching the custom event from the CB
when using event metadata. But now I've got it working right. 

 

Jeff

 

 -Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, July 10, 2008 12:59 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to
SystemManager - WHY?

In my coding, the renderers dispatch off their owner, which is
the list.

 

The CB simply adds listeners for whatever event it is interested
in.  Best time to do that is probably the OPEN event.  CB currently
listens for CHANGE.  So in my app there'd only be one level of listening
(CB listens to dropdown) since the renderers dispatch off of the
dropdown.

 

-Alex

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff
Sent: Wednesday, July 09, 2008 4:38 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events
only go to SystemManager - WHY?

 

Thanks Alex! How do you control what events the CB is listening
for from it's list? It would seem there are two levels of listening
required herre  - one by the List and another by the CB.  I'm definitely
in search of the best practices way to approach this sort of problem.

 

Jeff

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Wednesday, July 09, 2008 6:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events
only go to SystemManager - WHY?

It wasn't clear whether your renderer was dispatching
the event or the entire dropdown.  Yes, you may need two levels of
owner..  A renderer in the dropdown doesn't have any clue it is working
for a combobox and you just have to wire it up correctly.

 

Personally, I'm not a fan of using bubbling to pass
events.  IMHO, bubbling is designed for cases where you cannot know the
relationship (something internal got clicked, scrolled or added).
Everything else should be handled without bubbling.  The CB listens for
events from the dropdown already.  If I were doing custom work, any
additional event would be dispatched from the dropdown and listened to
from the CB.  Lots of folks seem to love bubbling, but I think it is a
bad practice when you already have a defined relationship.

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff
Sent: Wednesday, July 09, 2008 11:22 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox ItemRenderer Custom
Events only go to SystemManager - WHY?

 

Seriously Alex, 

 

I have been tearing my hair out over this.  When I trace
owner from within my itemRenderer I get "List496" or something like
that. If I use owner.dispatchEvent(myCustomEventInstance,true), and
listen on the ComboBox, nothing is transmitted.

 

At this point I'm glad I've got something that will
work, i.e., using SystemManager, but I want to know if there's something
I'm doing wrong that requires this approach, because it seems to break
the chain of responsibility.  Shouldn't a combo box be able to relay
events from its list?

 

Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Wednesday, July 09, 2008 1:47 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox ItemRenderer
Custom Events only go to SystemManager - WHY?

Popups have to float over "everything" so they
are parented by SM and not the CB or the app.   If you dispatch the
event off the "owner" it will go to the CB and bubble up from there

 





From: flexcode

RE: [flexcoders] flex components in pure as3 app - possible?

2008-07-10 Thread Alex Harui
Flex components must live inside an Application.  You can subclass
Application and get everything to work via AS3, but it's a lot of work,
and you won't save any SWF size

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jack_freud
Sent: Thursday, July 10, 2008 10:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] flex components in pure as3 app - possible?

 

Is it absurd to try to code a simple app in pure as3 that uses flex
components like Button and Scrollbar?

I've been trying and ran into problems with a bug in the Flex
framework having to do with resources
(http://bugs.adobe.com/jira/browse/SDK-12205
 ), used Rob Jellinghaus's
workaround, and came up with this simple code, below.

The sprite will draw itself, but the button does not show up.

Could anyone tell me if there's something basic I'm not understanding,
or am I making a simple dumb mistake?

Thanks!
Jack

package {
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.system.ApplicationDomain;

import mx.containers.Canvas;
import mx.controls.Button;
import mx.controls.Label;
import mx.core.Singleton;

public class ShellAS3 extends Sprite
{

public function ShellAS3()
{

var resourceManagerImpl:Object =
flash.system.ApplicationDomain.currentDomain.getDefinition("mx.resources
::ResourceManagerImpl");

Singleton.registerClass("mx.resources::IResourceManager",Class(resourceM
anagerImpl));

init();
}
private function init():void{

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

var ball:Sprite = new Sprite();
addChild(ball);
ball.x = 20;
ball.y = 100;
ball.graphics.beginFill(0xff);
ball.graphics.drawCircle(0,0,40);
ball.graphics.endFill();

var bt:Button = new Button();
bt.x = 200;
bt.y = 200;
bt.width=100;
bt.height = 20;
bt.label = "Click";
addChild(bt);

}
}
}

 



RE: [flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-10 Thread Alex Harui
Maybe setStyle("overSkin", getStyle("upSkin"))

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dennis Falling
Sent: Thursday, July 10, 2008 12:52 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Trick button into rendering
mouseover/mouseout states

 

I don't know of a way to give a link button a transparent mouse over
background.

On Jul 7, 2008, at 2:11 PM, "nathanpdaniel" <[EMAIL PROTECTED]
 > wrote:

I'm not sure but what's the difference between a link button and
what 
you're trying to accomplish? It seems to me what you're looking
for 
would be easily accomplished with a little CSS & the LinkButton 
component rather than reskinning the Button component. 

--- In flexcoders@yahoogroups.com
 , "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Interesting. It should work because the icon and text is not a

child of
> the skin. Maybe I don't understand what he wants or what you
tried.
> 
> 
> 
> 
> 
> From: [EMAIL PROTECTED]
 ups.com
  
[mailto:[EMAIL PROTECTED]
 ups.com
 ] On
> Behalf Of Tim Hoff
> Sent: Monday, July 07, 2008 10:02 AM
> To: [EMAIL PROTECTED] 
ups.com  
> Subject: [flexcoders] Re: Trick button into rendering 
mouseover/mouseout
> states
> 
> 
> 
> 
> Doesn't work if you want to keep the button icons visible.
Wouldn't
> this also affect embedded fonts?
> 
> -TH
> 
> --- In [EMAIL PROTECTED]
 ups.com
  
> , "Alex Harui"  wrote:
> >
> > Skin the way you normally do, but set the alpha=0
> >
> >
> >
> > 
> >
> > From: [EMAIL PROTECTED]
 ups.com
  
> [mailto:[EMAIL PROTECTED]
 ups.com
  
> ]
> On
> > Behalf Of Dennis Falling
> > Sent: Sunday, July 06, 2008 12:43 PM
> > To: [EMAIL PROTECTED]
 ups.com
   
> > Subject: Re: [flexcoders] Trick button into rendering
> mouseover/mouseout
> > states
> >
> >
> >
> > Over an alpha background though just setting their colors
won't 
do it.
> > I've done skins, but when I want a skin with basically
nothing
> visible,
> > would that be any different from what I've made?
> >
> > On Sat, Jul 5, 2008 at 7:25 PM, Alan ultraky@
> >  wrote:
> >
> > Could you just set the btn color and border to the same
color as 
your
> > background? Also, have you tried the Photoshop btn skin
scripts. 
Makes
> > it real easy to change the btnin fact, id use that...
> >
> >
> >
> > There's a demo on adobe.com to use it, but its so easy you
dont 
really
> > even need it.
> >
> >
> >
> >

https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins
 
> <

https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%
 
5Fskins> 
> > <

https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%
 
5Fskins
> <

https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%
 
5Fskins> >
> >
> >
> >
> > Alan
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Jul 5, 2008, at 8:19 PM, Dennis Falling wrote:
> >

[flexcoders] Re: Putting returned xml data into ArrayCollection using Cairngorm framwork (Command Class/Delegate Class/IResponder)

2008-07-10 Thread sdl1326
Ok, thanks.

So, looking at the original xml file ( below) if I want to add both
the name and url (data) to the array collection, is this the most
efficient way to accomplish this?

 var xmlResult:XML = new XML(event.result);
 xmlImages_ac = new ArrayCollection();

 // push XML to ArrayCollection
 for each(var item:XML in xmlResult.image){
var obj:Object = new Object()
obj.url = [EMAIL PROTECTED];
obj.name = [EMAIL PROTECTED];
xmlImages_ac.addItem(obj);
 }

TIA

--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> That's right, because when you trace the ArrayCollection it converts its
> children to String, and your nodes have no inner text, so they
toString() as
> "".
> 
> Instead of "addItem(item)", try "addItem([EMAIL PROTECTED])"
> 
> -Josh
> 
> On Fri, Jul 11, 2008 at 6:57 AM, sdl1326 <[EMAIL PROTECTED]> wrote:
> 
> > Tracy, thanks for the very detailed reply. I changed the resultFormat=
> > 'e4x'. So, I want to put the xml data into an arraycollection and am
> > trying the following code:
> >
> >var xmlResult:XML = new XML(event.result);
> >
> >xmlImages_ac = new ArrayCollection();
> >
> >// push XML to ArrayCollection
> >for each(var item:XML in xmlResult.image){
> >
> >  xmlImages_ac.addItem(item);
> >}
> >
> >trace('xmlImages_ac - ' + xmlImages_ac)
> >
> > For whatever reason, I can not seem to get this to work as it simply
> > traces out:
> >
> >  xmlImages_ac - 
> >
> > Can you point to where I am getting tripped up?
> >
> > Thanks for the assistance.
> >
> > --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> > >
> > > You have found one reason not to use resultFormat="object". 
That result
> > > format causes flex to convert your result data, which is xml, into a
> > > tree of dynamic objects.  You have no control over this
process(, and it
> > > has some issues, particularly that  values that look like
numbers are
> > > converted to numbers) and it is even hard to predict.  It is
also hard
> > > to debug, though you can use ObjUtil.toString() to see the contents.
> > >
> > >
> > >
> > > What is happening in your case is the "images" node becomes an
object
> > > containing an Array or "image" nodes.  So this expression:
> > >
> > > result.images.image returns an Array, which you can directly
wrap in an
> > > ArrayCollection.  I would not expect the direct assignment to
work like
> > > you show it, and doing it that way hides what is really
happening.  This
> > > is more clear:
> > >
> > > var aResult:Array = ResultEvent( data ).result.images.image;
> > >
> > > trace(aResult.length); //is this what you expect
> > >
> > > var acImages:ArrayCollection = new ArrayCollection(aResult);
> > >
> > >
> > >
> > > Since an Array is an object, Josh's suggestion to use a for..in loop
> > > would work also.
> > >
> > >
> > >
> > > I advise using resultFormat="e4x".  This leaves your result data
as XML,
> > > so you can do:
> > >
> > > var xmlResult:XML = XML(ResultEvent( data ).result);
> > >
> > > trace(xmlResult.toXMLSTring());  //you will see your xml, unchanged.
> > >
> > >
> > >
> > > Now, you can use the xml directly, or use XMLList, or
XMLListCollection,
> > > or combinations of the three.
> > >
> > >
> > >
> > > Or, if you want, you can convert your xml, or parts thereof, into
> > > ArrayCollections.
> > >
> > >
> > >
> > > Tracy
> > >
> > >
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > > Behalf Of sdl1326
> > > Sent: Thursday, July 10, 2008 12:16 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Re: Putting returned xml data into
ArrayCollection
> > > using Cairngorm framwork (Command Class/Delegate Class/IResponder)
> > >
> > >
> > >
> > > Here's a sample xml that's getting loaded in via http service:
> > >
> > > 
> > > http://www.cnn.com
 "/>
> > > http://www.usatoday.com
> > >  " />
> > > http://www.msnbc.com
> > >  " />
> > > http://www.digg.com

> > > " />
> > > http://www.google.com
> > >  " />
> > > 
> > >
> > > If I change the code in the result handler to:
> > >
> > > var ac:ArrayCollection = ResultEvent( data ).result.images.image
> > >
> > > Then I have no issues putting it directly into an array collection.
> > > It's only when I remove the (.image) and have the following:
> > >
> > > var ac:ArrayCollection = ResultEvent( data ).result.images
> > >
> > > Is when I get the coercion error. Is there any reason why I
shouldn't
> > > continue to put the data in an array collection via the 1st method?
> > >
> > > TIA
> > >
> > > --- In flexcoders@yahoogroups.com
 > >
> > > , "Josh McDonald"  wrote:
> > > >
> > > > Yo

[flexcoders] Re: TextInputs - no cursor

2008-07-10 Thread nathanpdaniel
Are you by chance reskinning the TextInput control?  I had a similar
issue tied to that...

--- In flexcoders@yahoogroups.com, "Sid Maskit" <[EMAIL PROTECTED]> wrote:
>
> I have been noticing extra spaces in a lot of posts. I'm suspecting
> this is a feature of Yahoo groups, or maybe just of the Yahoo mail
> reader that I am using to read the group. Anyway, here is the flex/web
> version I used (perhaps with a whole bunch of extra spaces inserted by
> the time you see it):
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute">
>  verticalScrollPolicy="off"
> height="128" verticalCenter= "true" horizontalCenter= "true"
> horizontalScrollPolicy="off" >
>  borderThickness= "2"
> backgroundColor= "#DD" paddingTop=" 0"
> borderStyle= "solid"
> top="0"
> left="0"
> height="100% " width="100%" >
>  paddingLeft= "-38">
> 
> 
> 
>  paddingLeft= "4" color="#00" >
> 
> 
> 
> 
> 
> 
> 
>  color="#00" />
> 
> 
> 
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "markgoldin_2000"
>  wrote:
> >
> > My code does not have "/ >" anywhere as far as I can see.
> > Can you please post your code as well?
> > 
> > Thanks
> > 
> > --- In flexcoders@yahoogroups.com, "Sid Maskit"  wrote:
> > >
> > > After copying and pasting your code, I initially got error messages
> > > for things like "/ >" where there cannot be a space between the two
> > > characters. However, once I fixed all of those, it seemed to work 
> > fine
> > > in terms of being able to type into each of the text input fields. I
> > > got the same results whether using a flex app in the browser, or an
> > > air app. I'm not sure where to go from here. Are you sure you are 
> > not
> > > getting any compiler errors?
> > > 
> > > --- In flexcoders@yahoogroups.com, "markgoldin_2000"
> > >  wrote:
> > > >
> > > > I have this simple form:
> > > > 
> > > > http://www.adobe.com/2006/mxml"; width="150" 
> > > > verticalScrollPolicy="off"
> > > > height="128" verticalCenter="true" horizontalCenter="true" 
> > > > horizontalScrollPolicy="off">
> > > >   > > > borderThickness="2"
> > > > backgroundColor="#DD" paddingTop="0" 
> > > > borderStyle="solid"
> > > > top="0" 
> > > > left="0" 
> > > > height="100%" width="100%">
> > > > > > > paddingLeft="-38"> 
> > > > > color="#00"/>
> > > > 
> > > > 
> > > > > > > paddingLeft="4" color="#00">
> > > > 
> > > > 
> > > >  > paddingLeft="-
> > > > 38">
> > > > 
> > > > 
> > > > 
> > > >  > paddingLeft="-
> > > > 38"> 
> > > > > > > color="#00"/>
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > The only TextInput field that actually accepts input is SKU.
> > > > What kind of problem am I having here?
> > > > 
> > > > Thanks
> > > >
> > >
> >
>




[flexcoders] Re: Component ClickEvent weirdness

2008-07-10 Thread Jason
--- In flexcoders@yahoogroups.com, "Jason" <[EMAIL PROTECTED]> wrote:
>
> 
> 
> _venice.addEventListener(HelpEvent.HELP_INITIALIZED, 
onHelpInitialized);
> 
> Where _venice is a reference to the main MXML application.  Works 
fine 
> with MouseEvent.CLICK FWIW.
>

Hey, that helped me track it down, the listener was fine, it was the 
onHelpInitialized that had the problem it was still listening for a 
mouse event and not a Help event.  Thanks - it's working now...

Jason




Re: [flexcoders] Re: Putting returned xml data into ArrayCollection using Cairngorm framwork (Command Class/Delegate Class/IResponder)

2008-07-10 Thread Josh McDonald
That's right, because when you trace the ArrayCollection it converts its
children to String, and your nodes have no inner text, so they toString() as
"".

Instead of "addItem(item)", try "addItem([EMAIL PROTECTED])"

-Josh

On Fri, Jul 11, 2008 at 6:57 AM, sdl1326 <[EMAIL PROTECTED]> wrote:

> Tracy, thanks for the very detailed reply. I changed the resultFormat=
> 'e4x'. So, I want to put the xml data into an arraycollection and am
> trying the following code:
>
>var xmlResult:XML = new XML(event.result);
>
>xmlImages_ac = new ArrayCollection();
>
>// push XML to ArrayCollection
>for each(var item:XML in xmlResult.image){
>
>  xmlImages_ac.addItem(item);
>}
>
>trace('xmlImages_ac - ' + xmlImages_ac)
>
> For whatever reason, I can not seem to get this to work as it simply
> traces out:
>
>  xmlImages_ac - 
>
> Can you point to where I am getting tripped up?
>
> Thanks for the assistance.
>
> --- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
> >
> > You have found one reason not to use resultFormat="object".  That result
> > format causes flex to convert your result data, which is xml, into a
> > tree of dynamic objects.  You have no control over this process(, and it
> > has some issues, particularly that  values that look like numbers are
> > converted to numbers) and it is even hard to predict.  It is also hard
> > to debug, though you can use ObjUtil.toString() to see the contents.
> >
> >
> >
> > What is happening in your case is the "images" node becomes an object
> > containing an Array or "image" nodes.  So this expression:
> >
> > result.images.image returns an Array, which you can directly wrap in an
> > ArrayCollection.  I would not expect the direct assignment to work like
> > you show it, and doing it that way hides what is really happening.  This
> > is more clear:
> >
> > var aResult:Array = ResultEvent( data ).result.images.image;
> >
> > trace(aResult.length); //is this what you expect
> >
> > var acImages:ArrayCollection = new ArrayCollection(aResult);
> >
> >
> >
> > Since an Array is an object, Josh's suggestion to use a for..in loop
> > would work also.
> >
> >
> >
> > I advise using resultFormat="e4x".  This leaves your result data as XML,
> > so you can do:
> >
> > var xmlResult:XML = XML(ResultEvent( data ).result);
> >
> > trace(xmlResult.toXMLSTring());  //you will see your xml, unchanged.
> >
> >
> >
> > Now, you can use the xml directly, or use XMLList, or XMLListCollection,
> > or combinations of the three.
> >
> >
> >
> > Or, if you want, you can convert your xml, or parts thereof, into
> > ArrayCollections.
> >
> >
> >
> > Tracy
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> > Behalf Of sdl1326
> > Sent: Thursday, July 10, 2008 12:16 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Putting returned xml data into ArrayCollection
> > using Cairngorm framwork (Command Class/Delegate Class/IResponder)
> >
> >
> >
> > Here's a sample xml that's getting loaded in via http service:
> >
> > 
> > http://www.cnn.com  "/>
> > http://www.usatoday.com
> >  " />
> > http://www.msnbc.com
> >  " />
> > http://www.digg.com 
> > " />
> > http://www.google.com
> >  " />
> > 
> >
> > If I change the code in the result handler to:
> >
> > var ac:ArrayCollection = ResultEvent( data ).result.images.image
> >
> > Then I have no issues putting it directly into an array collection.
> > It's only when I remove the (.image) and have the following:
> >
> > var ac:ArrayCollection = ResultEvent( data ).result.images
> >
> > Is when I get the coercion error. Is there any reason why I shouldn't
> > continue to put the data in an array collection via the 1st method?
> >
> > TIA
> >
> > --- In flexcoders@yahoogroups.com 
> >  >
> > , "Josh McDonald"  wrote:
> > >
> > > You're getting an ObjectProxy because you're using the "object" result
> > > format. To convert to ArrayCollection:
> > >
> > > var myArray:Array = [];
> > > for each (var img:* in result.images)
> > > {
> > > myArray.pish(img);
> > > }
> > >
> > > myCollection = new ArrayCollection(myArray);
> > >
> > > -Josh
> > >
> > > On Thu, Jul 10, 2008 at 1:31 PM, sdl1326  wrote:
> > >
> > > > Thanks for the assistance.
> > > >
> > > > I have left the resultformat blank (feel free to share why I
> > shouldn't
> > > > do this as I am always looking for best practices/advice).
> > However,in
> > > > previous projects, I have taken the return data from an http service
> > > > and immediately put it in an arraycollection in the resulthandler. I
> > > > just assumed the same could be done here when using Cairngorm, but
> > > > apparently something isn't correct. I tried your sugg

[flexcoders] Re: Component ClickEvent weirdness

2008-07-10 Thread Jason


_venice.addEventListener(HelpEvent.HELP_INITIALIZED, onHelpInitialized);

Where _venice is a reference to the main MXML application.  Works fine 
with MouseEvent.CLICK FWIW.





[flexcoders] Flash Player 10 and RTMFP

2008-07-10 Thread Steve Mathews
I was reading this FAQ located here:
http://download.macromedia.com/pub/labs/flashplayer10/flashplayer10_rtmfp_faq_070208.pdf

Something doesn't click for me. It lists three examples of what
"solutions" can be built, one of which is multi-player games. But near
the bottom under limitations it states "It only enables communication
from the voice and video devices native on your computer (e.g.
microphone and web-cam)".

So does this imply that "multi-player games" really means voice/video
chat on top of a regular (i.e. socket connected) multi-player game? If
so then I am not nearly excited for the tech as I was. :(


[flexcoders] Cairngorm login

2008-07-10 Thread abdiel.ferreira
Someone used in the session screencast login (using cairngorm) by
author David tucker?

I'm having difficulties in implementing the session created when the
user accesses with username and password.

The method getSessionUser () returns true or false.

If true returns the welcome screen or false returns to the login screen.

package br.com.anfer.manager.business {

import br.com.anfer.manager.vo.LoginVO; 
import com.adobe.cairngorm.business.ServiceLocator; 
import mx.rpc.IResponder;
import mx.rpc.events.ResultEvent;   

public class LoginDelegate {

private var responder:IResponder;
private var service:Object;

public function LoginDelegate( responder:IResponder ) {
this.responder = responder;
this.service = 
ServiceLocator.getInstance().getRemoteObject(
"ServiceID" );
}

public function getAutenticarByUser( loginAttempt:LoginVO 
):void {
var call:Object = service.loadAutenticarByUser( 
loginAttempt );
call.addResponder( responder );
}

public function getSessionUser():void {
var call:Object = service.loadSessionUser();
call.addResponder( responder );
}   
}
}



[flexcoders] Re: TextInputs - no cursor

2008-07-10 Thread Sid Maskit
I have been noticing extra spaces in a lot of posts. I'm suspecting
this is a feature of Yahoo groups, or maybe just of the Yahoo mail
reader that I am using to read the group. Anyway, here is the flex/web
version I used (perhaps with a whole bunch of extra spaces inserted by
the time you see it):


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























--- In flexcoders@yahoogroups.com, "markgoldin_2000"
<[EMAIL PROTECTED]> wrote:
>
> My code does not have "/ >" anywhere as far as I can see.
> Can you please post your code as well?
> 
> Thanks
> 
> --- In flexcoders@yahoogroups.com, "Sid Maskit"  wrote:
> >
> > After copying and pasting your code, I initially got error messages
> > for things like "/ >" where there cannot be a space between the two
> > characters. However, once I fixed all of those, it seemed to work 
> fine
> > in terms of being able to type into each of the text input fields. I
> > got the same results whether using a flex app in the browser, or an
> > air app. I'm not sure where to go from here. Are you sure you are 
> not
> > getting any compiler errors?
> > 
> > --- In flexcoders@yahoogroups.com, "markgoldin_2000"
> >  wrote:
> > >
> > > I have this simple form:
> > > 
> > > http://www.adobe.com/2006/mxml"; width="150" 
> > > verticalScrollPolicy="off"
> > >   height="128" verticalCenter="true" horizontalCenter="true" 
> > > horizontalScrollPolicy="off">
> > > > > borderThickness="2"
> > > backgroundColor="#DD" paddingTop="0" 
> > > borderStyle="solid"
> > > top="0" 
> > > left="0" 
> > > height="100%" width="100%">
> > >   > > paddingLeft="-38"> 
> > > color="#00"/>
> > > 
> > > 
> > >   > > paddingLeft="4" color="#00">
> > > 
> > > 
> > >  paddingLeft="-
> > > 38">
> > > 
> > > 
> > > 
> > >  paddingLeft="-
> > > 38"> 
> > > > > color="#00"/>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > The only TextInput field that actually accepts input is SKU.
> > > What kind of problem am I having here?
> > > 
> > > Thanks
> > >
> >
>




[flexcoders]

2008-07-10 Thread ron_lepine
Is there an actionscript equivalent for 

bindProperty requies and object and property for the target. I don't 
want to have to set each individual field. I saw some documentation for 
mx.data.bind but that seems to not be included in flex 3. 

Thanks in advance,

Ron



Re: [flexcoders] Customizing TreeItemRenderer

2008-07-10 Thread Troy Gilbert
So, is TreeItemRenderer really that much of a black art? Has no one
done any interesting modifications of that component? Maybe a good
indicator that it's a hard to customize component?

Maybe this would be a good opportunity for a solid Adobe tut on the subject...

Troy.


[flexcoders] Re: Component ClickEvent weirdness

2008-07-10 Thread Sid Maskit
Given that your compiler error concerns converting a HelpEvent to a
MouseEvent,my guess would be that the problem is that the listener
which is receiving your HelpEvent event expects to receive a
MouseEvent. This is a piece of code which you have not yet shown us:
i.e. the listener function for the HelpEvent.

--- In flexcoders@yahoogroups.com, "Jason" <[EMAIL PROTECTED]> wrote:
>
> So I have a simple component which is a help button, (the component 
> is mainly just an image.) I wrote a custom event (extends Event) for 
> use all over my app when a help event occurs, like a request to 
> launch help.  I want to just dispatch this custom event when my 
> custom help button is clicked, so this is my setup:
> 
> in the script tag:
> 
>import myPackage.blahblahblah.event.HelpEvent;
> 
>private function onHelpClicked():void
>{
>   dispatchEvent(new HelpEvent(HelpEvent.HELP_INITIALIZED, true));
>}
> 
> then later in the MXML:
> 
> 
> 
> But the problem is, I get a runtime error when the component is 
> clicked, "Type Coercion failed: cannot convert 
> com.venice.event::[EMAIL PROTECTED] to flash.events.MouseEvent."
> 
> If I don't dispatch my custom event, it runs fine.
> 
> Why and how can I fix this?  I just want to dispatch a custom event 
> when the component is clicked on.
> 
> Also, one thing I have never understood about mixing MXML and 
> Actionscript, is why, when you assign a method to run when something 
> is clicked on, you don't do this:
> 
> 
>
> 
> 
> 
> Why don't you put in (event:MouseEvent) as an argument for that 
> method like you do with other handlers in Actionscript, but not when 
> the method is called from MXML?
> 
> Thanks
> 
> Jason
>




[flexcoders] PopUpButton and States Problem

2008-07-10 Thread Simon Bailey

Hi all,

Just a behavior that is perplexing and maybe someone could shed a  
light to the true core of the matter.  I have a PopUpButton which on  
itemClick changes to a different state, the following is thrown:


Error #1009: Cannot access a property or method of a null object  
reference


I debugged and realised that this is down to the fact that the  
PopUpButton is actually not present in the new state, the null object  
is thrown when the PopUpButton Class tries to reference the _popUp  
instance.  So the instance is not present in the new state but why  
should that be throwing an error?  A closer look seemed to reveal that  
when I click the PopUpButton it runs my declared method and also fires  
a close event that results in running a method displayPopUp to show/ 
hide the popup menu, I guess timing is an issue here cos obviously  
that popup is no longer there for it to hide ( the point here the  
error is thrown - Line 772).


My way around this is to use the callLater() method for changing the  
state and this solves it fine.  However, I am unsure if this should be  
an issue in the first place.  Has anyone else discovered issues with  
navigation and states and is this an expected behavior?



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

















Cheers,

Simon


[flexcoders] Re: Putting returned xml data into ArrayCollection using Cairngorm framwork (Command Class/Delegate Class/IResponder)

2008-07-10 Thread sdl1326
Tracy, thanks for the very detailed reply. I changed the resultFormat=
'e4x'. So, I want to put the xml data into an arraycollection and am
trying the following code:

var xmlResult:XML = new XML(event.result);

xmlImages_ac = new ArrayCollection();

// push XML to ArrayCollection
for each(var item:XML in xmlResult.image){
   
  xmlImages_ac.addItem(item);
}

trace('xmlImages_ac - ' + xmlImages_ac)

For whatever reason, I can not seem to get this to work as it simply
traces out:

  xmlImages_ac - 

Can you point to where I am getting tripped up?

Thanks for the assistance.

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> You have found one reason not to use resultFormat="object".  That result
> format causes flex to convert your result data, which is xml, into a
> tree of dynamic objects.  You have no control over this process(, and it
> has some issues, particularly that  values that look like numbers are
> converted to numbers) and it is even hard to predict.  It is also hard
> to debug, though you can use ObjUtil.toString() to see the contents.  
> 
>  
> 
> What is happening in your case is the "images" node becomes an object
> containing an Array or "image" nodes.  So this expression:
> 
> result.images.image returns an Array, which you can directly wrap in an
> ArrayCollection.  I would not expect the direct assignment to work like
> you show it, and doing it that way hides what is really happening.  This
> is more clear:
> 
> var aResult:Array = ResultEvent( data ).result.images.image;
> 
> trace(aResult.length); //is this what you expect
> 
> var acImages:ArrayCollection = new ArrayCollection(aResult);
> 
>  
> 
> Since an Array is an object, Josh's suggestion to use a for..in loop
> would work also.
> 
>  
> 
> I advise using resultFormat="e4x".  This leaves your result data as XML,
> so you can do:
> 
> var xmlResult:XML = XML(ResultEvent( data ).result);
> 
> trace(xmlResult.toXMLSTring());  //you will see your xml, unchanged.
> 
>  
> 
> Now, you can use the xml directly, or use XMLList, or XMLListCollection,
> or combinations of the three.
> 
>  
> 
> Or, if you want, you can convert your xml, or parts thereof, into
> ArrayCollections.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of sdl1326
> Sent: Thursday, July 10, 2008 12:16 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Putting returned xml data into ArrayCollection
> using Cairngorm framwork (Command Class/Delegate Class/IResponder)
> 
>  
> 
> Here's a sample xml that's getting loaded in via http service:
> 
> 
> http://www.cnn.com  "/>
> http://www.usatoday.com
>  " />
> http://www.msnbc.com
>  " />
> http://www.digg.com 
> " />
> http://www.google.com
>  " />
> 
> 
> If I change the code in the result handler to:
> 
> var ac:ArrayCollection = ResultEvent( data ).result.images.image
> 
> Then I have no issues putting it directly into an array collection.
> It's only when I remove the (.image) and have the following:
> 
> var ac:ArrayCollection = ResultEvent( data ).result.images
> 
> Is when I get the coercion error. Is there any reason why I shouldn't
> continue to put the data in an array collection via the 1st method?
> 
> TIA
> 
> --- In flexcoders@yahoogroups.com 
> , "Josh McDonald"  wrote:
> >
> > You're getting an ObjectProxy because you're using the "object" result
> > format. To convert to ArrayCollection:
> > 
> > var myArray:Array = [];
> > for each (var img:* in result.images)
> > {
> > myArray.pish(img);
> > }
> > 
> > myCollection = new ArrayCollection(myArray);
> > 
> > -Josh
> > 
> > On Thu, Jul 10, 2008 at 1:31 PM, sdl1326  wrote:
> > 
> > > Thanks for the assistance.
> > >
> > > I have left the resultformat blank (feel free to share why I
> shouldn't
> > > do this as I am always looking for best practices/advice).
> However,in
> > > previous projects, I have taken the return data from an http service
> > > and immediately put it in an arraycollection in the resulthandler. I
> > > just assumed the same could be done here when using Cairngorm, but
> > > apparently something isn't correct. I tried your suggestion below
> and
> > > am still receiving an error:
> > >
> > > TypeError: Error #1034: Type Coercion failed: cannot convert
> > > mx.utils::[EMAIL PROTECTED] to Array.
> > >
> > > Thanks in advance.
> > >
> > >
> > >
> > 
> > -- 
> > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> > 
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: josh@
> >
>




[flexcoders] Re: TextInputs - no cursor

2008-07-10 Thread markgoldin_2000
My code does not have "/ >" anywhere as far as I can see.
Can you please post your code as well?

Thanks

--- In flexcoders@yahoogroups.com, "Sid Maskit" <[EMAIL PROTECTED]> wrote:
>
> After copying and pasting your code, I initially got error messages
> for things like "/ >" where there cannot be a space between the two
> characters. However, once I fixed all of those, it seemed to work 
fine
> in terms of being able to type into each of the text input fields. I
> got the same results whether using a flex app in the browser, or an
> air app. I'm not sure where to go from here. Are you sure you are 
not
> getting any compiler errors?
> 
> --- In flexcoders@yahoogroups.com, "markgoldin_2000"
>  wrote:
> >
> > I have this simple form:
> > 
> > http://www.adobe.com/2006/mxml"; width="150" 
> > verticalScrollPolicy="off"
> > height="128" verticalCenter="true" horizontalCenter="true" 
> > horizontalScrollPolicy="off">
> >   > borderThickness="2"
> > backgroundColor="#DD" paddingTop="0" 
> > borderStyle="solid"
> > top="0" 
> > left="0" 
> > height="100%" width="100%">
> > > paddingLeft="-38"> 
> >
> > 
> > 
> > > paddingLeft="4" color="#00">
> > 
> > 
> > 
> > 
> > 
> > 
> >  
> > > color="#00"/>
> > 
> > 
> > 
> > 
> > 
> > The only TextInput field that actually accepts input is SKU.
> > What kind of problem am I having here?
> > 
> > Thanks
> >
>




[flexcoders] Re: Tilelist, ItemRenderer not refreshing when updating dataProvider

2008-07-10 Thread Amy
--- In flexcoders@yahoogroups.com, "calisza" <[EMAIL PROTECTED]> wrote:
>
> The dataProvider is a property of a Cairngorm VO.
> So, I have a productVO, of which images is a property (Array), so the
> dataProvider is product.VO - the thing is, the dataProvider IS being
> updated, its just the display that's not being displayed. As soon as I
> select another product, and then switch back to the product in
> question, or if I scroll up and then down in the TileList itself, the
> newly uploaded image appears.

Did you refresh it?



[flexcoders] Re: Component ClickEvent weirdness

2008-07-10 Thread Jason
and if it helps any, this is what the custom event class looks like:

package com.venice.event 
{
import flash.events.Event;

/**
* ...
* @author Jason Merrill
*/
public class HelpEvent extends Event
{

public static var HELP_INITIALIZED:String 
= "help_initialized";
public static var HELP_TERMINATED:String 
= "help_terminated";
public static var HELP_TOPIC_CHANGED:String 
= "help_topic_changed";

public function HelpEvent(type:String, 
bubbles:Boolean=false, cancelable:Boolean=false) 
{
super(type, bubbles, cancelable);
}

}

}



[flexcoders] Re: TextInputs - no cursor

2008-07-10 Thread Sid Maskit
After copying and pasting your code, I initially got error messages
for things like "/ >" where there cannot be a space between the two
characters. However, once I fixed all of those, it seemed to work fine
in terms of being able to type into each of the text input fields. I
got the same results whether using a flex app in the browser, or an
air app. I'm not sure where to go from here. Are you sure you are not
getting any compiler errors?

--- In flexcoders@yahoogroups.com, "markgoldin_2000"
<[EMAIL PROTECTED]> wrote:
>
> I have this simple form:
> 
> http://www.adobe.com/2006/mxml"; width="150" 
> verticalScrollPolicy="off"
>   height="128" verticalCenter="true" horizontalCenter="true" 
> horizontalScrollPolicy="off">
> borderThickness="2"
> backgroundColor="#DD" paddingTop="0" 
> borderStyle="solid"
> top="0" 
> left="0" 
> height="100%" width="100%">
>   paddingLeft="-38"> 
>
> 
> 
>   paddingLeft="4" color="#00">
> 
> 
> 
> 
> 
> 
>  
> color="#00"/>
> 
> 
> 
> 
> 
> The only TextInput field that actually accepts input is SKU.
> What kind of problem am I having here?
> 
> Thanks
>




[flexcoders] Multiple File Uploads... question

2008-07-10 Thread jason_graves2003
I'm trying to figure out the "best" Flex/Air solution for uploading
multiple files via drag & drop.

I understand the overall concept on how to do this via the front-end,
but what's the most efficient way for handling the files on the
back-end?  

We're running CF8, and I'd really like to get away from using cffile
to receive each file.  I've seen bulk uploaders out there that seem to
push files faster.  

Can anyone point me in the right direction?



[flexcoders] Re: Component ClickEvent weirdness

2008-07-10 Thread Jason
--- In flexcoders@yahoogroups.com, "valdhor" <[EMAIL PROTECTED]> wrote:
>
> When you click a button, you generate a mouseEvent, so your function
> should look like...
> 
> private function onHelpClicked(event:MouseEvent):void
> 
> and your button should take this into account...
> 
> 
> 
> event is one of those keywords that Flex automatically understands.


Thanks but still have the same error.  

in the script tag:

   import com.venice.event.HelpEvent;

   private function onHelpClicked(event:MouseEvent):void
   {
  dispatchEvent(new HelpEvent(HelpEvent.HELP_INITIALIZED, true));
   }

in the MXML:

   

Any other ideas?  I even pared down the component to a very simple 
one:


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

Jason





[flexcoders] Re: Component ClickEvent weirdness

2008-07-10 Thread valdhor
When you click a button, you generate a mouseEvent, so your function
should look like...

private function onHelpClicked(event:MouseEvent):void

and your button should take this into account...



event is one of those keywords that Flex automatically understands.

Another way (perhaps) is this...






--- In flexcoders@yahoogroups.com, "Jason" <[EMAIL PROTECTED]> wrote:
>
> So I have a simple component which is a help button, (the component 
> is mainly just an image.) I wrote a custom event (extends Event) for 
> use all over my app when a help event occurs, like a request to 
> launch help.  I want to just dispatch this custom event when my 
> custom help button is clicked, so this is my setup:
> 
> in the script tag:
> 
>import myPackage.blahblahblah.event.HelpEvent;
> 
>private function onHelpClicked():void
>{
>   dispatchEvent(new HelpEvent(HelpEvent.HELP_INITIALIZED, true));
>}
> 
> then later in the MXML:
> 
> 
> 
> But the problem is, I get a runtime error when the component is 
> clicked, "Type Coercion failed: cannot convert 
> com.venice.event::[EMAIL PROTECTED] to flash.events.MouseEvent."
> 
> If I don't dispatch my custom event, it runs fine.
> 
> Why and how can I fix this?  I just want to dispatch a custom event 
> when the component is clicked on.
> 
> Also, one thing I have never understood about mixing MXML and 
> Actionscript, is why, when you assign a method to run when something 
> is clicked on, you don't do this:
> 
> 
>
> 
> 
> 
> Why don't you put in (event:MouseEvent) as an argument for that 
> method like you do with other handlers in Actionscript, but not when 
> the method is called from MXML?
> 
> Thanks
> 
> Jason
>




RE: [flexcoders] Launching Flex Builder Help

2008-07-10 Thread Stephen Gilson
Not really - the help requires an internal web server that is part of
Eclipse.
 
However, all of the help content is available online on livedocs at:
http://livedocs.adobe.com/flex/3/html/
 
Stephen



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Thursday, July 10, 2008 2:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Launching Flex Builder Help



Is there any way to launch the Help for Flex Builder without opening 
Flex Builder itself?

TIA;

Amy



 


[flexcoders] Re: Launching Flex Builder Help

2008-07-10 Thread valdhor
I don't think so.

It looks like the help is an eclipse plugin that uses a java front
end. The actual help files (HTML) are in a zipped archive. You can
find them at...

C:\Program Files\Adobe\Flex Builder
3\plugins\com.adobe.flexbuilder.help_3.0.194161\doc.zip



--- In flexcoders@yahoogroups.com, "Amy" <[EMAIL PROTECTED]> wrote:
>
> Is there any way to launch the Help for Flex Builder without opening 
> Flex Builder itself?
> 
> TIA;
> 
> Amy
>




[flexcoders] Re: Tilelist, ItemRenderer not refreshing when updating dataProvider

2008-07-10 Thread calisza
Ok excellent, changing from Array to ArrayCollection has solved the
problem. Lesson learned :)

thanks for the help.

--- In flexcoders@yahoogroups.com, "calisza" <[EMAIL PROTECTED]> wrote:
>
> I've been wondering about that and am in the process of testing this.
> Will let you know what happens :).
> 
> Just noticed a typo in my previous post - should read product.images
> and not product.VO
> 
> 
> --- In flexcoders@yahoogroups.com, "jack_freud"  wrote:
> >
> > Could it be that you need to use an ArrayCollection rather than an
> > array? I think binding to Array only shows changes if the array itself
> > is replaced, not its items.
> > 
> > Jack
> > 
> > --- In flexcoders@yahoogroups.com, "calisza"  wrote:
> > >
> > > The dataProvider is a property of a Cairngorm VO.
> > > So, I have a productVO, of which images is a property (Array),
so the
> > > dataProvider is product.VO - the thing is, the dataProvider IS being
> > > updated, its just the display that's not being displayed. As
soon as I
> > > select another product, and then switch back to the product in
> > > question, or if I scroll up and then down in the TileList
itself, the
> > > newly uploaded image appears.
> > > 
> > > thanks,
> > > Barry
> > > 
> > > --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> > > >
> > > > Are you using the dataPrvoider API to update the dataProvider? 
> > What is
> > > > the dataProvider?
> > > > 
> > > > Tracy
> > > > 
> > > >  
> > > > 
> > > > 
> > > > 
> > > > From: flexcoders@yahoogroups.com
> > [mailto:[EMAIL PROTECTED] On
> > > > Behalf Of calisza
> > > > Sent: Thursday, July 10, 2008 2:56 PM
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] Tilelist, ItemRenderer not refreshing when
> > > > updating dataProvider
> > > > 
> > > >  
> > > > 
> > > > I have the following scenario,
> > > > 
> > > > I have a tilelist displaying images, each of which is being
created
> > > > via a custom ItemRenderer.
> > > > 
> > > > So far so good. 
> > > > 
> > > > Now, I have an upload button, which when clicked, pops-up a
> > > > TitleWindow and allows the user to add files for upload. They
click
> > > > upload and everything works perfectly, files get sent to server,
> file
> > > > gets saved and server sends back an XML response which I then
use to
> > > > update the TileList ItemRenderers dataProvider. In other words,
> a new
> > > > image gets appended to the dataProvider array.
> > > > 
> > > > Now this all works perfectly except for the following : The new
> image
> > > > is not displayed inside the TileList - at least not right away. As
> > > > soon as I scroll the TileList the new image appears. So what this
> > > > means is that the new image is only displayed when the TileList
> or the
> > > > screen is refreshed - however, I cannot find any way of doing this
> > > > programatically.
> > > > 
> > > > I've tried using "super.commitProperties()" to no avail,
unless I'm
> > > > calling it from the wrong place - currently calling it from a
method
> > > > within my upload titleWindow.
> > > > 
> > > > I've done all the usual searching, reading etc but I've come up
> blank.
> > > > Is there a way around this I'm just not seeing ? Any pointers
in the
> > > > right direction would be greatly appreciated.
> > > > 
> > > > thanks.
> > > >
> > >
> >
>




[flexcoders] Component ClickEvent weirdness

2008-07-10 Thread Jason
So I have a simple component which is a help button, (the component 
is mainly just an image.) I wrote a custom event (extends Event) for 
use all over my app when a help event occurs, like a request to 
launch help.  I want to just dispatch this custom event when my 
custom help button is clicked, so this is my setup:

in the script tag:

   import myPackage.blahblahblah.event.HelpEvent;

   private function onHelpClicked():void
   {
  dispatchEvent(new HelpEvent(HelpEvent.HELP_INITIALIZED, true));
   }

then later in the MXML:



But the problem is, I get a runtime error when the component is 
clicked, "Type Coercion failed: cannot convert 
com.venice.event::[EMAIL PROTECTED] to flash.events.MouseEvent."

If I don't dispatch my custom event, it runs fine.

Why and how can I fix this?  I just want to dispatch a custom event 
when the component is clicked on.

Also, one thing I have never understood about mixing MXML and 
Actionscript, is why, when you assign a method to run when something 
is clicked on, you don't do this:


   



Why don't you put in (event:MouseEvent) as an argument for that 
method like you do with other handlers in Actionscript, but not when 
the method is called from MXML?

Thanks

Jason
  



[flexcoders] Re: how can I get the Java Session 's data from Flex cilent side

2008-07-10 Thread meteatamel
Expose a Java method that gets this info and your Flex application can
use a RemoteObject to call that method. 

-Mete

--- In flexcoders@yahoogroups.com, Ray Zhang <[EMAIL PROTECTED]> wrote:
>
> Our system uses java/jsp to do the login  function, but I want to
get the login user 's information at the
>  Flex side ,how can I realize it?
> Can anyone give me some advice?
> thank u !
>




Re: [flexcoders] Re: AdvancedDataGridRendererProvider.renderer

2008-07-10 Thread Brandon Krakowsky
Thanks Amy.  I'll check this out!


- Original Message 
From: Amy <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, July 10, 2008 11:58:54 AM
Subject: [flexcoders] Re: AdvancedDataGridRendererProvider.renderer


--- In [EMAIL PROTECTED] ups.com, Brandon Krakowsky  
wrote:
>
> Thanks Amy.  This helped.  It actually ends up looking like this:
> iconRendererProvide r.renderer = new ClassFactory( myClass);
> 
> The other issue I'm having is displaying images since 
AdvancedDataGridIte mRenderer extends UITextField.  Do I have to extend 
AdvancedDataGridGro upItemRenderer in order to display images?  The 
DataGrid component doesn't seem to have this option at all.

This may help:

http://flexdiary. blogspot. com/2008/ 06/musings- on-advanceddatag rid-part-
2.html

HTH;

Amy




  

[flexcoders] Re: Tilelist, ItemRenderer not refreshing when updating dataProvider

2008-07-10 Thread calisza
I've been wondering about that and am in the process of testing this.
Will let you know what happens :).

Just noticed a typo in my previous post - should read product.images
and not product.VO


--- In flexcoders@yahoogroups.com, "jack_freud" <[EMAIL PROTECTED]> wrote:
>
> Could it be that you need to use an ArrayCollection rather than an
> array? I think binding to Array only shows changes if the array itself
> is replaced, not its items.
> 
> Jack
> 
> --- In flexcoders@yahoogroups.com, "calisza"  wrote:
> >
> > The dataProvider is a property of a Cairngorm VO.
> > So, I have a productVO, of which images is a property (Array), so the
> > dataProvider is product.VO - the thing is, the dataProvider IS being
> > updated, its just the display that's not being displayed. As soon as I
> > select another product, and then switch back to the product in
> > question, or if I scroll up and then down in the TileList itself, the
> > newly uploaded image appears.
> > 
> > thanks,
> > Barry
> > 
> > --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> > >
> > > Are you using the dataPrvoider API to update the dataProvider? 
> What is
> > > the dataProvider?
> > > 
> > > Tracy
> > > 
> > >  
> > > 
> > > 
> > > 
> > > From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> > > Behalf Of calisza
> > > Sent: Thursday, July 10, 2008 2:56 PM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Tilelist, ItemRenderer not refreshing when
> > > updating dataProvider
> > > 
> > >  
> > > 
> > > I have the following scenario,
> > > 
> > > I have a tilelist displaying images, each of which is being created
> > > via a custom ItemRenderer.
> > > 
> > > So far so good. 
> > > 
> > > Now, I have an upload button, which when clicked, pops-up a
> > > TitleWindow and allows the user to add files for upload. They click
> > > upload and everything works perfectly, files get sent to server,
file
> > > gets saved and server sends back an XML response which I then use to
> > > update the TileList ItemRenderers dataProvider. In other words,
a new
> > > image gets appended to the dataProvider array.
> > > 
> > > Now this all works perfectly except for the following : The new
image
> > > is not displayed inside the TileList - at least not right away. As
> > > soon as I scroll the TileList the new image appears. So what this
> > > means is that the new image is only displayed when the TileList
or the
> > > screen is refreshed - however, I cannot find any way of doing this
> > > programatically.
> > > 
> > > I've tried using "super.commitProperties()" to no avail, unless I'm
> > > calling it from the wrong place - currently calling it from a method
> > > within my upload titleWindow.
> > > 
> > > I've done all the usual searching, reading etc but I've come up
blank.
> > > Is there a way around this I'm just not seeing ? Any pointers in the
> > > right direction would be greatly appreciated.
> > > 
> > > thanks.
> > >
> >
>




[flexcoders] Re: Tilelist, ItemRenderer not refreshing when updating dataProvider

2008-07-10 Thread jack_freud
Could it be that you need to use an ArrayCollection rather than an
array? I think binding to Array only shows changes if the array itself
is replaced, not its items.

Jack

--- In flexcoders@yahoogroups.com, "calisza" <[EMAIL PROTECTED]> wrote:
>
> The dataProvider is a property of a Cairngorm VO.
> So, I have a productVO, of which images is a property (Array), so the
> dataProvider is product.VO - the thing is, the dataProvider IS being
> updated, its just the display that's not being displayed. As soon as I
> select another product, and then switch back to the product in
> question, or if I scroll up and then down in the TileList itself, the
> newly uploaded image appears.
> 
> thanks,
> Barry
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > Are you using the dataPrvoider API to update the dataProvider? 
What is
> > the dataProvider?
> > 
> > Tracy
> > 
> >  
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > Behalf Of calisza
> > Sent: Thursday, July 10, 2008 2:56 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Tilelist, ItemRenderer not refreshing when
> > updating dataProvider
> > 
> >  
> > 
> > I have the following scenario,
> > 
> > I have a tilelist displaying images, each of which is being created
> > via a custom ItemRenderer.
> > 
> > So far so good. 
> > 
> > Now, I have an upload button, which when clicked, pops-up a
> > TitleWindow and allows the user to add files for upload. They click
> > upload and everything works perfectly, files get sent to server, file
> > gets saved and server sends back an XML response which I then use to
> > update the TileList ItemRenderers dataProvider. In other words, a new
> > image gets appended to the dataProvider array.
> > 
> > Now this all works perfectly except for the following : The new image
> > is not displayed inside the TileList - at least not right away. As
> > soon as I scroll the TileList the new image appears. So what this
> > means is that the new image is only displayed when the TileList or the
> > screen is refreshed - however, I cannot find any way of doing this
> > programatically.
> > 
> > I've tried using "super.commitProperties()" to no avail, unless I'm
> > calling it from the wrong place - currently calling it from a method
> > within my upload titleWindow.
> > 
> > I've done all the usual searching, reading etc but I've come up blank.
> > Is there a way around this I'm just not seeing ? Any pointers in the
> > right direction would be greatly appreciated.
> > 
> > thanks.
> >
>




[flexcoders] Re: Copied project gives security sandbox violation

2008-07-10 Thread valdhor
Yes, I right clicked on the project and Copy'ed. Then I right clicked
in the project panel and Paste'd. Flex Builder asks you then for a new
name which I gave it and it duly creates a new project.

I tried importing the project and it does exactly the same thing.

The only workaround I have at the moment is adding the output folder
to the Global Security Settings Panel
(http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html).
The strange thing is that this is the ONLY entry in this panel - All
other projects are still working fine without that entry.


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> So you did a manual copy, paste, did you copy the entire project folder?
> Then how did you get it into Flex Builder?  
> 
>  
> 
> When I copy a project, I use the File, Import.  This seems to work fine.
> Try that.
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of valdhor
> Sent: Thursday, July 10, 2008 2:11 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Copied project gives security sandbox
> violation
> 
>  
> 
> All this does is change the sandbox to local-with-filesystem.
> 
> This is no use to me as I need access to remoteobjects on the server.
> 
> --- In flexcoders@yahoogroups.com 
> , "sdl1326"  wrote:
> >
> > I had this issue when copying a project. Try the following:
> > 
> > -locale en_US -use-network=false
> > 
> > It worked for me.
> > 
> > 
> > --- In flexcoders@yahoogroups.com
>  , "valdhor"  wrote:
> > >
> > > No, the compiler options are the same for both projects (-locale
> en_US
> > > -services "services-config.xml").
> > > 
> > > Adding -use-network=true to the compiler options makes no
> difference.
> > > 
> > > Any other ideas? Anyone else?
> > > 
> > > 
> > > 
> > > BTW. I am re-reading the Adobe documents on policy files...
> > >
> >
> http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.htm
> l
>  ml> 
> > >
> >
> http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_
> update.html#policy_file
>  _update.html#policy_file> 
> > > 
> > > and Security Sandbox...
> > >
> >
> http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_04.
> html
>  .html> 
> > > 
> > > --- In flexcoders@yahoogroups.com
>  , Jon Bradley  wrote:
> > > >
> > > > 
> > > > On Jul 10, 2008, at 8:36 AM, valdhor wrote:
> > > > 
> > > > > Once this was complete and compiled it gives me a security
> sandbox
> > > > > violation for every remote call. Cleaning the project has no
> effect.
> > > > 
> > > > Did you per chance modify the compiler options for the first
> project?
> > > > 
> > > > I might've seen this before, but make sure that the new project
> you 
> > > > created has the additional compiler option "-use-network=true".
> > > > 
> > > > Just a stab in the dark
> > > > 
> > > > good luck,
> > > > 
> > > > jon
> > > >
> > >
> >
>




Re: [flexcoders] Re: Trick button into rendering mouseover/mouseout states

2008-07-10 Thread Dennis Falling
I don't know of a way to give a link button a transparent mouse over  
background.


On Jul 7, 2008, at 2:11 PM, "nathanpdaniel" <[EMAIL PROTECTED]> wrote:


I'm not sure but what's the difference between a link button and what
you're trying to accomplish? It seems to me what you're looking for
would be easily accomplished with a little CSS & the LinkButton
component rather than reskinning the Button component.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Interesting. It should work because the icon and text is not a
child of
> the skin. Maybe I don't understand what he wants or what you tried.
>
>
>
> 
>
> From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> Behalf Of Tim Hoff
> Sent: Monday, July 07, 2008 10:02 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Trick button into rendering
mouseover/mouseout
> states
>
>
>
>
> Doesn't work if you want to keep the button icons visible. Wouldn't
> this also affect embedded fonts?
>
> -TH
>
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > Skin the way you normally do, but set the alpha=0
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com 
> ]
> On
> > Behalf Of Dennis Falling
> > Sent: Sunday, July 06, 2008 12:43 PM
> > To: flexcoders@yahoogroups.com 
> > Subject: Re: [flexcoders] Trick button into rendering
> mouseover/mouseout
> > states
> >
> >
> >
> > Over an alpha background though just setting their colors won't
do it.
> > I've done skins, but when I want a skin with basically nothing
> visible,
> > would that be any different from what I've made?
> >
> > On Sat, Jul 5, 2008 at 7:25 PM, Alan ultraky@
> >  wrote:
> >
> > Could you just set the btn color and border to the same color as
your
> > background? Also, have you tried the Photoshop btn skin scripts.
Makes
> > it real easy to change the btnin fact, id use that...
> >
> >
> >
> > There's a demo on adobe.com to use it, but its so easy you dont
really
> > even need it.
> >
> >
> >
> > https://www.adobe.com/cfusion/entitlement/index.cfm?e=flex%5Fskins
> 
> >   >
> >
> >
> >
> > Alan
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Jul 5, 2008, at 8:19 PM, Dennis Falling wrote:
> >
> >
> >
> >
> >
> > What's the best way to create a border-less button? I'm trying to
pull
> > it off with flexlib's enhanced button skin but it appears to be
> ignoring
> > the font-family I set. Basically I just want a button that has
text
> and
> > an icon and these will change color on mouseover. No
> border/backgrounds
> > should ever be visible.
> >
> > http://dl.getdropbox.com/u/15760/replay.png
> 
> >   >
> >
>





[flexcoders] Re: Setting Up a Global Constants File

2008-07-10 Thread Sid Maskit
I believe that using singletons is the traditional design pattern way
to do this although I have seen some people arguing that singletons
conflict with unit testing. I don't know enough to comment on that debate.

I would suggest using a getter for your instance so that, at least,
your call could be SingletonClass.instance.myConstant which, at least
to my eye, is a bit easier to read.

Sorry not to be more helpful, but hope that helps somewhat.

Sid

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I would advise against one big global constants file.  Generally not an
> OOP thing to do.
> 
>  
> 
> I would use static consts on classes.  Look at any mx.events.* class to
> see
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of edlueze
> Sent: Wednesday, July 09, 2008 4:42 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Setting Up a Global Constants File
> 
>  
> 
> I'm trying to fill a file full of global constants that will be used
> by all the other ActionScript files in my project. If I create an
> ActionScript file and start filling it with constants then when I try
> and reference that file from several others I run into the error "A
> file found in a source-path can not have more than one externally
> visible definition". On the other hand, I could create a singleton
> class but then a reference to a simple global constant becomes long
> and unreadable: for example "SingletonClass.getInstance().myConstant".
> 
> What's the best practice in this situation?
> 
> Thanks!
>




[flexcoders] Re: Tilelist, ItemRenderer not refreshing when updating dataProvider

2008-07-10 Thread calisza
The dataProvider is a property of a Cairngorm VO.
So, I have a productVO, of which images is a property (Array), so the
dataProvider is product.VO - the thing is, the dataProvider IS being
updated, its just the display that's not being displayed. As soon as I
select another product, and then switch back to the product in
question, or if I scroll up and then down in the TileList itself, the
newly uploaded image appears.

thanks,
Barry

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Are you using the dataPrvoider API to update the dataProvider?  What is
> the dataProvider?
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of calisza
> Sent: Thursday, July 10, 2008 2:56 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Tilelist, ItemRenderer not refreshing when
> updating dataProvider
> 
>  
> 
> I have the following scenario,
> 
> I have a tilelist displaying images, each of which is being created
> via a custom ItemRenderer.
> 
> So far so good. 
> 
> Now, I have an upload button, which when clicked, pops-up a
> TitleWindow and allows the user to add files for upload. They click
> upload and everything works perfectly, files get sent to server, file
> gets saved and server sends back an XML response which I then use to
> update the TileList ItemRenderers dataProvider. In other words, a new
> image gets appended to the dataProvider array.
> 
> Now this all works perfectly except for the following : The new image
> is not displayed inside the TileList - at least not right away. As
> soon as I scroll the TileList the new image appears. So what this
> means is that the new image is only displayed when the TileList or the
> screen is refreshed - however, I cannot find any way of doing this
> programatically.
> 
> I've tried using "super.commitProperties()" to no avail, unless I'm
> calling it from the wrong place - currently calling it from a method
> within my upload titleWindow.
> 
> I've done all the usual searching, reading etc but I've come up blank.
> Is there a way around this I'm just not seeing ? Any pointers in the
> right direction would be greatly appreciated.
> 
> thanks.
>




[flexcoders] TextInputs - no cursor

2008-07-10 Thread markgoldin_2000
I have this simple form:

http://www.adobe.com/2006/mxml"; width="150" 
verticalScrollPolicy="off"
height="128" verticalCenter="true" horizontalCenter="true" 
horizontalScrollPolicy="off">
 

   


   






 
   





The only TextInput field that actually accepts input is SKU.
What kind of problem am I having here?

Thanks



RE: [flexcoders] Tilelist, ItemRenderer not refreshing when updating dataProvider

2008-07-10 Thread Tracy Spratt
Are you using the dataPrvoider API to update the dataProvider?  What is
the dataProvider?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of calisza
Sent: Thursday, July 10, 2008 2:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tilelist, ItemRenderer not refreshing when
updating dataProvider

 

I have the following scenario,

I have a tilelist displaying images, each of which is being created
via a custom ItemRenderer.

So far so good. 

Now, I have an upload button, which when clicked, pops-up a
TitleWindow and allows the user to add files for upload. They click
upload and everything works perfectly, files get sent to server, file
gets saved and server sends back an XML response which I then use to
update the TileList ItemRenderers dataProvider. In other words, a new
image gets appended to the dataProvider array.

Now this all works perfectly except for the following : The new image
is not displayed inside the TileList - at least not right away. As
soon as I scroll the TileList the new image appears. So what this
means is that the new image is only displayed when the TileList or the
screen is refreshed - however, I cannot find any way of doing this
programatically.

I've tried using "super.commitProperties()" to no avail, unless I'm
calling it from the wrong place - currently calling it from a method
within my upload titleWindow.

I've done all the usual searching, reading etc but I've come up blank.
Is there a way around this I'm just not seeing ? Any pointers in the
right direction would be greatly appreciated.

thanks.

 



[flexcoders] Tilelist, ItemRenderer not refreshing when updating dataProvider

2008-07-10 Thread calisza
I have the following scenario,

I have a tilelist displaying images, each of which is being created
via a custom ItemRenderer.

So far so good. 

Now, I have an upload button, which when clicked, pops-up a
TitleWindow and allows the user to add files for upload. They click
upload and everything works perfectly, files get sent to server, file
gets saved and server sends back an XML response which I then use to
update the TileList ItemRenderers dataProvider. In other words, a new
image gets appended to the dataProvider array.

Now this all works perfectly except for the following : The new image
is not displayed inside the TileList - at least not right away. As
soon as I scroll the TileList the new image appears. So what this
means is that the new image is only displayed when the TileList or the
screen is refreshed - however, I cannot find any way of doing this
programatically.

I've tried using "super.commitProperties()" to no avail, unless I'm
calling it from the wrong place - currently calling it from a method
within my upload titleWindow.

I've done all the usual searching, reading etc but I've come up blank.
Is there a way around this I'm just not seeing ? Any pointers in the
right direction would be greatly appreciated.

thanks.



[flexcoders] Re: Putting returned xml data into ArrayCollection using Cairngorm framwork (Command Class/Delegate Class/IResponder)

2008-07-10 Thread sdl1326
Here's a sample xml that's getting loaded in via http service:


http://www.cnn.com"/>
http://www.usatoday.com"; />
http://www.msnbc.com"; />
http://www.digg.com"; />
http://www.google.com"; />


If I change the code in the result handler to:

var ac:ArrayCollection = ResultEvent( data ).result.images.image

Then I have no issues putting it directly into an array collection.
It's only when I remove the (.image) and have the following:

var ac:ArrayCollection = ResultEvent( data ).result.images

Is when I get the coercion error. Is there any reason why I shouldn't
continue to put the data in an array collection via the 1st method?

TIA

--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> You're getting an ObjectProxy because you're using the "object" result
> format. To convert to ArrayCollection:
> 
> var myArray:Array = [];
> for each (var img:* in result.images)
> {
> myArray.pish(img);
> }
> 
> myCollection = new ArrayCollection(myArray);
> 
> -Josh
> 
> On Thu, Jul 10, 2008 at 1:31 PM, sdl1326 <[EMAIL PROTECTED]> wrote:
> 
> > Thanks for the assistance.
> >
> > I have left the resultformat blank (feel free to share why I shouldn't
> > do this as I am always looking for best practices/advice). However,in
> > previous projects, I have taken the return data from an http service
> > and immediately put it in an arraycollection in the resulthandler. I
> > just assumed the same could be done here when using Cairngorm, but
> > apparently something isn't correct. I tried your suggestion below and
> > am still receiving an error:
> >
> > TypeError: Error #1034: Type Coercion failed: cannot convert
> > mx.utils::[EMAIL PROTECTED] to Array.
> >
> > Thanks in advance.
> >
> >
> >
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




RE: [flexcoders] Component creation - Data Binding

2008-07-10 Thread Tracy Spratt
Sounds like the deferred instantiation behavior of Accordion and other
nav components.  Search the archives/google for that term and for
"creationPolicy"

 

To establish if that is the issue, for testing purposes only, set
creationPolicy="all" on the accordion.  If that fixes it, reverse that
and study up on the right way to fix it.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ron_mori
Sent: Thursday, July 10, 2008 2:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Component creation - Data Binding

 

Think: master-detail implemented in an Accordion container.

When user either selects an item from a dataGrid listing -OR- 
User clicks a link to initiate a new item -

ActionScript code then..
1. A SelectItem var in a detail form is set to either
a. the selectedItem from the dataGrid 
b. new Item is created
2. The accordion pane containing the item detail form is selected. 

My question is about (I think) data binding and component creation
timing. The problem is that when the detail form is displayed THE
FIRST TIME ONLY, all the editable fields are blank, while the display
only fields (bound to the same selectItem) are displayed correctly.

What am I missing here?

thanks in advance

 



[flexcoders] Component creation - Data Binding

2008-07-10 Thread ron_mori
Think: master-detail implemented in an Accordion container.

When user either selects an item from a dataGrid listing -OR- 
User clicks a link to initiate a new item -

ActionScript code then..
1. A SelectItem var in a detail form is set to either
  a. the selectedItem from the dataGrid 
  b. new Item is created
2. The accordion pane containing the item detail form is selected.  

My question is about (I think) data binding and component creation
timing.  The problem is that when the detail form is displayed THE
FIRST TIME ONLY, all the editable fields are blank, while the display
only fields (bound to the same selectItem) are displayed correctly.

What am I missing here?

thanks in advance



RE: [flexcoders] Re: Copied project gives security sandbox violation

2008-07-10 Thread Tracy Spratt
So you did a manual copy, paste, did you copy the entire project folder?
Then how did you get it into Flex Builder?  

 

When I copy a project, I use the File, Import.  This seems to work fine.
Try that.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of valdhor
Sent: Thursday, July 10, 2008 2:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Copied project gives security sandbox
violation

 

All this does is change the sandbox to local-with-filesystem.

This is no use to me as I need access to remoteobjects on the server.

--- In flexcoders@yahoogroups.com 
, "sdl1326" <[EMAIL PROTECTED]> wrote:
>
> I had this issue when copying a project. Try the following:
> 
> -locale en_US -use-network=false
> 
> It worked for me.
> 
> 
> --- In flexcoders@yahoogroups.com
 , "valdhor"  wrote:
> >
> > No, the compiler options are the same for both projects (-locale
en_US
> > -services "services-config.xml").
> > 
> > Adding -use-network=true to the compiler options makes no
difference.
> > 
> > Any other ideas? Anyone else?
> > 
> > 
> > 
> > BTW. I am re-reading the Adobe documents on policy files...
> >
>
http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.htm
l
 
> >
>
http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_
update.html#policy_file
 
> > 
> > and Security Sandbox...
> >
>
http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_04.
html
 
> > 
> > --- In flexcoders@yahoogroups.com
 , Jon Bradley  wrote:
> > >
> > > 
> > > On Jul 10, 2008, at 8:36 AM, valdhor wrote:
> > > 
> > > > Once this was complete and compiled it gives me a security
sandbox
> > > > violation for every remote call. Cleaning the project has no
effect.
> > > 
> > > Did you per chance modify the compiler options for the first
project?
> > > 
> > > I might've seen this before, but make sure that the new project
you 
> > > created has the additional compiler option "-use-network=true".
> > > 
> > > Just a stab in the dark
> > > 
> > > good luck,
> > > 
> > > jon
> > >
> >
>

 



[flexcoders] Launching Flex Builder Help

2008-07-10 Thread Amy
Is there any way to launch the Help for Flex Builder without opening 
Flex Builder itself?

TIA;

Amy



[flexcoders] Re: [Flex Builder 3 Bug] Module Loader

2008-07-10 Thread cox.blair
This does appear to be a bug. Checked online, nothing I'm doing is out
of the ordinary. Adobe lists examples very close to what I'm doing
except my module connects to a db -
http://livedocs.adobe.com/flex/3/html/help.html?content=modular_5.html

I went through the preferences and changed some settings, the one that
may have made the difference is telling Flex Builder to use the
internal browser (default setting). Closed FB and re-opened,
everything appears to be functioning normally. I don't get a preview
of the module in the parent application, but that is fine with me.




[flexcoders] Re: Copied project gives security sandbox violation

2008-07-10 Thread valdhor
Nope - no FlashVar's. Just a standard wrapper.


--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Are you passing in any paths via flashvars in the wrapper?  If so, did
> you adjust them?
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of valdhor
> Sent: Thursday, July 10, 2008 11:00 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Copied project gives security sandbox
> violation
> 
>  
> 
> No, the compiler options are the same for both projects (-locale en_US
> -services "services-config.xml").
> 
> Adding -use-network=true to the compiler options makes no difference.
> 
> Any other ideas? Anyone else?
> 
> BTW. I am re-reading the Adobe documents on policy files...
> http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.htm
> l
>  ml> 
> http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_
> update.html#policy_file
>  _update.html#policy_file> 
> 
> and Security Sandbox...
> http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_04.
> html
>  .html> 
> 
> --- In flexcoders@yahoogroups.com 
> , Jon Bradley  wrote:
> >
> > 
> > On Jul 10, 2008, at 8:36 AM, valdhor wrote:
> > 
> > > Once this was complete and compiled it gives me a security sandbox
> > > violation for every remote call. Cleaning the project has no effect.
> > 
> > Did you per chance modify the compiler options for the first project?
> > 
> > I might've seen this before, but make sure that the new project you 
> > created has the additional compiler option "-use-network=true".
> > 
> > Just a stab in the dark
> > 
> > good luck,
> > 
> > jon
> >
>




[flexcoders] Re: Copied project gives security sandbox violation

2008-07-10 Thread valdhor
All this does is change the sandbox to local-with-filesystem.

This is no use to me as I need access to remoteobjects on the server.


--- In flexcoders@yahoogroups.com, "sdl1326" <[EMAIL PROTECTED]> wrote:
>
> I had this issue when copying a project. Try the following:
> 
> -locale en_US -use-network=false
> 
> It worked for me.
> 
> 
> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> >
> > No, the compiler options are the same for both projects (-locale en_US
> > -services "services-config.xml").
> > 
> > Adding -use-network=true to the compiler options makes no difference.
> > 
> > Any other ideas? Anyone else?
> > 
> > 
> > 
> > BTW. I am re-reading the Adobe documents on policy files...
> >
>
http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html
> >
>
http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_update.html#policy_file
> > 
> > and Security Sandbox...
> >
>
http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_04.html
> > 
> > --- In flexcoders@yahoogroups.com, Jon Bradley  wrote:
> > >
> > > 
> > > On Jul 10, 2008, at 8:36 AM, valdhor wrote:
> > > 
> > > > Once this was complete and compiled it gives me a security sandbox
> > > > violation for every remote call. Cleaning the project has no
effect.
> > > 
> > > Did you per chance modify the compiler options for the first
project?
> > > 
> > > I might've seen this before, but make sure that the new project
you  
> > > created has the additional compiler option "-use-network=true".
> > > 
> > > Just a stab in the dark
> > > 
> > > good luck,
> > > 
> > > jon
> > >
> >
>




RE: [flexcoders] Refresh issues

2008-07-10 Thread Tracy Spratt
If history is enabled, then the back button should work.  I personally
have never used this.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott
Sent: Thursday, July 10, 2008 12:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Refresh issues

 

Ok, it kind of makes sense that I lose where I am at in my flex
application if I hit F5, but I'd like to find a way around it...

 

I'm starting on my first CF/Flex3 application.  My first task that I
just completed is the login routine which works beautifully using
CFLogin.  

 

If I hit F5 (or refresh) in my browser the application starts back to
square zero again looking for username/password.  Is there a way to
manage states and get the user back to where they were if they were to
hit F5? (or backspace/page back for that matter).

 

TIA!

 



[flexcoders] Re: Help with Module Loader [Flex Builder 3 Bug?]

2008-07-10 Thread cox.blair
I place the module loader inside an according navigator, but I tried
it inside tab navigator and got the same result.

How do I tell display view to ignore doing anything with the swf file?




[flexcoders] Re: Copied project gives security sandbox violation

2008-07-10 Thread sdl1326
I had this issue when copying a project. Try the following:

-locale en_US -use-network=false

It worked for me.


--- In flexcoders@yahoogroups.com, "valdhor" <[EMAIL PROTECTED]> wrote:
>
> No, the compiler options are the same for both projects (-locale en_US
> -services "services-config.xml").
> 
> Adding -use-network=true to the compiler options makes no difference.
> 
> Any other ideas? Anyone else?
> 
> 
> 
> BTW. I am re-reading the Adobe documents on policy files...
>
http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html
>
http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_update.html#policy_file
> 
> and Security Sandbox...
>
http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_04.html
> 
> --- In flexcoders@yahoogroups.com, Jon Bradley  wrote:
> >
> > 
> > On Jul 10, 2008, at 8:36 AM, valdhor wrote:
> > 
> > > Once this was complete and compiled it gives me a security sandbox
> > > violation for every remote call. Cleaning the project has no effect.
> > 
> > Did you per chance modify the compiler options for the first project?
> > 
> > I might've seen this before, but make sure that the new project you  
> > created has the additional compiler option "-use-network=true".
> > 
> > Just a stab in the dark
> > 
> > good luck,
> > 
> > jon
> >
>




RE: [flexcoders] Re: Putting returned xml data into ArrayCollection using Cairngorm framwork (Command Class/Delegate Class/IResponder)

2008-07-10 Thread Tracy Spratt
You have found one reason not to use resultFormat="object".  That result
format causes flex to convert your result data, which is xml, into a
tree of dynamic objects.  You have no control over this process(, and it
has some issues, particularly that  values that look like numbers are
converted to numbers) and it is even hard to predict.  It is also hard
to debug, though you can use ObjUtil.toString() to see the contents.  

 

What is happening in your case is the "images" node becomes an object
containing an Array or "image" nodes.  So this expression:

result.images.image returns an Array, which you can directly wrap in an
ArrayCollection.  I would not expect the direct assignment to work like
you show it, and doing it that way hides what is really happening.  This
is more clear:

var aResult:Array = ResultEvent( data ).result.images.image;

trace(aResult.length); //is this what you expect

var acImages:ArrayCollection = new ArrayCollection(aResult);

 

Since an Array is an object, Josh's suggestion to use a for..in loop
would work also.

 

I advise using resultFormat="e4x".  This leaves your result data as XML,
so you can do:

var xmlResult:XML = XML(ResultEvent( data ).result);

trace(xmlResult.toXMLSTring());  //you will see your xml, unchanged.

 

Now, you can use the xml directly, or use XMLList, or XMLListCollection,
or combinations of the three.

 

Or, if you want, you can convert your xml, or parts thereof, into
ArrayCollections.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sdl1326
Sent: Thursday, July 10, 2008 12:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Putting returned xml data into ArrayCollection
using Cairngorm framwork (Command Class/Delegate Class/IResponder)

 

Here's a sample xml that's getting loaded in via http service:


http://www.cnn.com  "/>
http://www.usatoday.com
 " />
http://www.msnbc.com
 " />
http://www.digg.com 
" />
http://www.google.com
 " />


If I change the code in the result handler to:

var ac:ArrayCollection = ResultEvent( data ).result.images.image

Then I have no issues putting it directly into an array collection.
It's only when I remove the (.image) and have the following:

var ac:ArrayCollection = ResultEvent( data ).result.images

Is when I get the coercion error. Is there any reason why I shouldn't
continue to put the data in an array collection via the 1st method?

TIA

--- In flexcoders@yahoogroups.com 
, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> You're getting an ObjectProxy because you're using the "object" result
> format. To convert to ArrayCollection:
> 
> var myArray:Array = [];
> for each (var img:* in result.images)
> {
> myArray.pish(img);
> }
> 
> myCollection = new ArrayCollection(myArray);
> 
> -Josh
> 
> On Thu, Jul 10, 2008 at 1:31 PM, sdl1326 <[EMAIL PROTECTED]> wrote:
> 
> > Thanks for the assistance.
> >
> > I have left the resultformat blank (feel free to share why I
shouldn't
> > do this as I am always looking for best practices/advice).
However,in
> > previous projects, I have taken the return data from an http service
> > and immediately put it in an arraycollection in the resulthandler. I
> > just assumed the same could be done here when using Cairngorm, but
> > apparently something isn't correct. I tried your suggestion below
and
> > am still receiving an error:
> >
> > TypeError: Error #1034: Type Coercion failed: cannot convert
> > mx.utils::[EMAIL PROTECTED] to Array.
> >
> > Thanks in advance.
> >
> >
> >
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>

 



[flexcoders] flex components in pure as3 app - possible?

2008-07-10 Thread jack_freud
Is it absurd to try to code a simple app in pure as3 that uses flex
components like Button and Scrollbar?

I've been trying and ran into problems with a bug in the Flex
framework having to do with resources
(http://bugs.adobe.com/jira/browse/SDK-12205), used Rob Jellinghaus's
workaround, and came up with this simple code, below.

The sprite will draw itself, but the button does not show up.

Could anyone tell me if there's something basic I'm not understanding,
or am I making a simple dumb mistake?

Thanks!
Jack

package {
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.system.ApplicationDomain;
   
import mx.containers.Canvas;
import mx.controls.Button;
import mx.controls.Label;
import mx.core.Singleton;
   
public class ShellAS3 extends Sprite
{
   
public function ShellAS3()
{

var resourceManagerImpl:Object =
flash.system.ApplicationDomain.currentDomain.getDefinition("mx.resources::ResourceManagerImpl");
   
Singleton.registerClass("mx.resources::IResourceManager",Class(resourceManagerImpl));
   
init();
}
private function init():void{
   
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

var ball:Sprite = new Sprite();
addChild(ball);
ball.x = 20;
ball.y = 100;
ball.graphics.beginFill(0xff);
ball.graphics.drawCircle(0,0,40);
ball.graphics.endFill();

   
var bt:Button = new Button();
bt.x = 200;
bt.y = 200;
bt.width=100;
bt.height = 20;
bt.label = "Click";
addChild(bt);

}
}
}





[flexcoders] Help with Module Loader [Flex Builder 3 Bug?]

2008-07-10 Thread cox.blair
I have a module which contains a datagrid that connects to the
database. It works, no issues. The problem comes when the Flex Builder
3 in design mode access the swf reference in the module loader and
displays a popup saying there is an http access error, obviously
because the design view cannot access the php routines, so displays
the connection popup. 

The problem is it does not go away and renders design view useless.

Has anyone encountered this? Do you know how to correct it? To
replicate, create an application from a database and move the
generated mxml contents to a module. Close Flex and reopen - the error
will now appear.

Thanks,



RE: [flexcoders] Re: Copied project gives security sandbox violation

2008-07-10 Thread Tracy Spratt
Are you passing in any paths via flashvars in the wrapper?  If so, did
you adjust them?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of valdhor
Sent: Thursday, July 10, 2008 11:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Copied project gives security sandbox
violation

 

No, the compiler options are the same for both projects (-locale en_US
-services "services-config.xml").

Adding -use-network=true to the compiler options makes no difference.

Any other ideas? Anyone else?

BTW. I am re-reading the Adobe documents on policy files...
http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.htm
l
 
http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_
update.html#policy_file
 

and Security Sandbox...
http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_04.
html
 

--- In flexcoders@yahoogroups.com 
, Jon Bradley <[EMAIL PROTECTED]> wrote:
>
> 
> On Jul 10, 2008, at 8:36 AM, valdhor wrote:
> 
> > Once this was complete and compiled it gives me a security sandbox
> > violation for every remote call. Cleaning the project has no effect.
> 
> Did you per chance modify the compiler options for the first project?
> 
> I might've seen this before, but make sure that the new project you 
> created has the additional compiler option "-use-network=true".
> 
> Just a stab in the dark
> 
> good luck,
> 
> jon
>

 



[flexcoders] Re: Cairngorm concepts

2008-07-10 Thread oscar.12321
Thanks Jon, your comments are very helpful to me.

- Oscar

--- In flexcoders@yahoogroups.com, Jon Bradley <[EMAIL PROTECTED]> wrote:
>
> 
> On Jul 10, 2008, at 11:33 AM, oscar.12321 wrote:
> 
> > I seems to me that commands are not user gestures, nor clicks or
> > backend queries. The only posible explanation to me is as use cases
> > are abstract (What kind of things can the the user do?) so there is no
> > a fixed rule.
> 
> In my experience, use cases are more appropriately tied to events,  
> not commands.
> 
> > In essence a methodology to identify commands could be:
> > 1. Try to hold the view state in the view.
> 
> Yea, but that's not necessarily always the case. Consider the states  
> Logged in/out. Those two states are application level and are  
> something that typically would be stored in the application model  
> locator.
> 
> Remember, state can be global (application) or micro (mini mvc, or mv  
> only). You might have a portion of your application that works on,  
> say, a selected item, such as selecting an item and modifying it's  
> properties before adding it to a cart. This situation doesn't need a  
> selected item in the main application model.
> 
> There are applications that, for example, might be geared toward  
> working on a collection of elements and all views and portions of the  
> application need to bind to that (not a storefront-type app).
> 
> Let's say you write an image editing application. The selected image  
> that is being edited would be stored in the application model because  
> everything in the application aside from selecting the image to edit  
> performs operations on this selected image.
> 
> Here you'd have the global 'selectedImage' property in the model that  
> views bind to, but then the view collections themselves may have a  
> local copy of that to work on (for undo/redo functionality, for  
> example).
> 
> > 2. Determine the use cases, and make a command for each one.
> 
> Not all the time. Some use cases are such that they kick off a chain  
> of events. For sake of argument, let's say 'addToCartEvent' has three  
> other events that need to occur before the final 'addToCartCommand"  
> is executed. Lots of things can happen in a use case life cycle.
> 
> > 3. Any backend query is also a command.
> 
> Not necessarily either. It may be a single command with a collection  
> of delegates.
> 
> > 4. If you need to update the model from the view, don't do it
> > directly. You have discovered a new command an probably a use case.
> 
> That I do agree with. I never have my views modify the model  
> directly. That's generally frowned upon (though I'm sure there are  
> limited situations where this might be beneficial).
> 
> just my 0.02.
> 
> good luck with your experimentations with the framework.
> 
> cheers,
> 
> jon
>




Re: [flexcoders] Re: Cairngorm concepts

2008-07-10 Thread Jon Bradley


On Jul 10, 2008, at 11:33 AM, oscar.12321 wrote:


I seems to me that commands are not user gestures, nor clicks or
backend queries. The only posible explanation to me is as use cases
are abstract (What kind of things can the the user do?) so there is no
a fixed rule.


In my experience, use cases are more appropriately tied to events,  
not commands.



In essence a methodology to identify commands could be:
1. Try to hold the view state in the view.


Yea, but that's not necessarily always the case. Consider the states  
Logged in/out. Those two states are application level and are  
something that typically would be stored in the application model  
locator.


Remember, state can be global (application) or micro (mini mvc, or mv  
only). You might have a portion of your application that works on,  
say, a selected item, such as selecting an item and modifying it's  
properties before adding it to a cart. This situation doesn't need a  
selected item in the main application model.


There are applications that, for example, might be geared toward  
working on a collection of elements and all views and portions of the  
application need to bind to that (not a storefront-type app).


Let's say you write an image editing application. The selected image  
that is being edited would be stored in the application model because  
everything in the application aside from selecting the image to edit  
performs operations on this selected image.


Here you'd have the global 'selectedImage' property in the model that  
views bind to, but then the view collections themselves may have a  
local copy of that to work on (for undo/redo functionality, for  
example).



2. Determine the use cases, and make a command for each one.


Not all the time. Some use cases are such that they kick off a chain  
of events. For sake of argument, let's say 'addToCartEvent' has three  
other events that need to occur before the final 'addToCartCommand"  
is executed. Lots of things can happen in a use case life cycle.



3. Any backend query is also a command.


Not necessarily either. It may be a single command with a collection  
of delegates.



4. If you need to update the model from the view, don't do it
directly. You have discovered a new command an probably a use case.


That I do agree with. I never have my views modify the model  
directly. That's generally frowned upon (though I'm sure there are  
limited situations where this might be beneficial).


just my 0.02.

good luck with your experimentations with the framework.

cheers,

jon

RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to SystemManager - WHY?????

2008-07-10 Thread Battershall, Jeff
Thanks Alex - that does it.   I noticed some interesting behavior in all
this - if my custom event did not have its own clone method override I'd
get a type coercion error when dispatching the custom event from the CB
when using event metadata. But now I've got it working right. 
 
Jeff
 
 -Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, July 10, 2008 12:59 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events only go to
SystemManager - WHY?



In my coding, the renderers dispatch off their owner, which is
the list.

 

The CB simply adds listeners for whatever event it is interested
in.  Best time to do that is probably the OPEN event.  CB currently
listens for CHANGE.  So in my app there'd only be one level of listening
(CB listens to dropdown) since the renderers dispatch off of the
dropdown.

 

-Alex

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff
Sent: Wednesday, July 09, 2008 4:38 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events
only go to SystemManager - WHY?

 

Thanks Alex! How do you control what events the CB is listening
for from it's list? It would seem there are two levels of listening
required herre  - one by the List and another by the CB.  I'm definitely
in search of the best practices way to approach this sort of problem.

 

Jeff

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Wednesday, July 09, 2008 6:00 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox ItemRenderer Custom Events
only go to SystemManager - WHY?

It wasn't clear whether your renderer was dispatching
the event or the entire dropdown.  Yes, you may need two levels of
owner..  A renderer in the dropdown doesn't have any clue it is working
for a combobox and you just have to wire it up correctly.

 

Personally, I'm not a fan of using bubbling to pass
events.  IMHO, bubbling is designed for cases where you cannot know the
relationship (something internal got clicked, scrolled or added).
Everything else should be handled without bubbling.  The CB listens for
events from the dropdown already.  If I were doing custom work, any
additional event would be dispatched from the dropdown and listened to
from the CB.  Lots of folks seem to love bubbling, but I think it is a
bad practice when you already have a defined relationship.

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff
Sent: Wednesday, July 09, 2008 11:22 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox ItemRenderer Custom
Events only go to SystemManager - WHY?

 

Seriously Alex, 

 

I have been tearing my hair out over this.  When I trace
owner from within my itemRenderer I get "List496" or something like
that. If I use owner.dispatchEvent(myCustomEventInstance,true), and
listen on the ComboBox, nothing is transmitted.

 

At this point I'm glad I've got something that will
work, i.e., using SystemManager, but I want to know if there's something
I'm doing wrong that requires this approach, because it seems to break
the chain of responsibility.  Shouldn't a combo box be able to relay
events from its list?

 

Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Wednesday, July 09, 2008 1:47 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ComboBox ItemRenderer
Custom Events only go to SystemManager - WHY?

Popups have to float over "everything" so they
are parented by SM and not the CB or the app.   If you dispatch the
event off the "owner" it will go to the CB and bubble up from there

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Battershall, Jeff
Sent: Wednesday, July 09, 2008 10:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox ItemRenderer
Custom Events only go to SystemManager - WHY?

 

I

[flexcoders] Re: AdvancedDataGridRendererProvider.renderer

2008-07-10 Thread Amy
--- In flexcoders@yahoogroups.com, Brandon Krakowsky <[EMAIL PROTECTED]> 
wrote:
>
> Thanks Amy.  This helped.  It actually ends up looking like this:
> iconRendererProvider.renderer = new ClassFactory(myClass);
> 
> The other issue I'm having is displaying images since 
AdvancedDataGridItemRenderer extends UITextField.  Do I have to extend 
AdvancedDataGridGroupItemRenderer in order to display images?  The 
DataGrid component doesn't seem to have this option at all.

This may help:

http://flexdiary.blogspot.com/2008/06/musings-on-advanceddatagrid-part-
2.html

HTH;

Amy



Re: [flexcoders] Re: AdvancedDataGridRendererProvider.renderer

2008-07-10 Thread Brandon Krakowsky
Thanks Amy.  This helped.  It actually ends up looking like this:
iconRendererProvider.renderer = new ClassFactory(myClass);

The other issue I'm having is displaying images since 
AdvancedDataGridItemRenderer extends UITextField.  Do I have to extend 
AdvancedDataGridGroupItemRenderer in order to display images?  The DataGrid 
component doesn't seem to have this option at all.

Thanks again,
Brandon


- Original Message 
From: Amy <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 9, 2008 7:43:56 PM
Subject: [flexcoders] Re: AdvancedDataGridRendererProvider.renderer


--- In [EMAIL PROTECTED] ups.com, Brandon Krakowsky  
wrote:
>
> I'm trying to set the "renderer" property of an 
AdvancedDataGridRen dererProvider in AS.
> 
> var iconRendererProvide r:AdvancedDataGr idRendererProvid er = new 
AdvancedDataGridRen dererProvider;
> iconRendererProvide r.columnIndex = 0;
> iconRendererProvide r.columnSpan = 1;
> iconRendererProvide r.dataField = "icon";
> iconRendererProvide r.renderer = myClass;
> 
> myClass extends AdvancedDataGridIte mRenderer and overrides the data 
function.
> 
> Here's the error I get:
> 1067: Implicit coercion of a value of type Class to an unrelated 
type mx.core:IFactory.
> 
> I can't seem to figure out how to specify the class.

>From the error, you probably need something more like this:

var iconRendererProvide r = new ClassFactory
(AdvancedDataGridRe ndererProvider) ;

iconRendererProvide r.properties = {columnIndex: 0, columnSpan:1, 
dataField:'icon' , renderer:com. yourorg.views. myClass}

The help for AdvanceDataGridItem Renderer doesn't appear to exist on 
my system, so sorry if this misses the mark.

HTH;

Amy




  

[flexcoders] Re: Cairngorm concepts

2008-07-10 Thread oscar.12321
Thanks a lot for your response.

I continue inserting comments in your message bellow... please let me
know your thoughts.

--- In flexcoders@yahoogroups.com, "Daniel Gold" <[EMAIL PROTECTED]> wrote:
>
> Cairngorm as a framework is pretty loose in that it allows you to
shortcut
> parts that may not feel right to you, and you can subclass and of
the pieces
> to expand on the implementation. The Universal Mind extension is a good
> example of this:
> 
> http://code.google.com/p/flexcairngorm/
> 

I know UM and, sure, i will use it because i dont allways need a
centralized model. I prefer to get a callback to the view with the
result. UM allows this and much more.

> There have been quite a few threads on flexcoders about Cairngorm
and MVC
> and everyone's personal(and sometimes evangelical) beliefs.
> 

In my case its not a belief question. In fact i am a software advisor
and i have been playing with Cairgorn last feew weeks. I must be able
to explain clearly to the development team the concepts behind
Cairngorm, and when to use a command or not, for example.

> Personally, I don't normally store view state in the model like the
store
> does with its "selectedItem".  I think where you may be losing the
concept
> of events/commands is with server side vs client side changes.
Usually an
> event is dispatched and a command is triggered when a data operation
occurse
> such as a find or a save that will invoke the "backend". That doesn't
> necessarily mean the server as you could be writing an AIR
application that
> communicates with the local SQLLite database, but the application
doesn't
> care down to the delegate layer that will route the data to the correct
> "backend", whatever service that may be. In the store example the
> selectedItem is only useful for views so the views modify and bind
to that
> variable on the model. I usually try to leave that kind of view only
data
> out of the model and pass it around in the application where necessary
> instead.

Yes, its a posibility that i have already considered. But in the store
sample they have the "AddProductToShoppingCartCommand"
"FilterProductsCommand", for example. None of them use the backend.

I seems to me that commands are not user gestures, nor clicks or
backend queries. The only posible explanation to me is as use cases
are abstract (What kind of things can the the user do?) so there is no
a fixed rule.

I think is a weak flavour of the command pattern, so is of useness for
things like undo, etc. I this is the case, the there is no need to
follow the rules strictly.

In essence a methodology to identify commands could be:
1. Try to hold the view state in the view.
2. Determine the use cases, and make a command for each one.
3. Any backend query is also a command.
4. If you need to update the model from the view, don't do it
directly. You have discovered a new command an probably a use case.

> 
> It sounds like you understand most of the concepts but just take
exception
> to certain parts of the framework, which is fine. Use it however you see
> fit, if you're at odds with a framework then it's not going to be a
pleasant
> development experience.
> 

Yes, i am only trying to implement a methodology and best practices.
Later each programmer will use some shortcuts when needed, for sure.

> As far as your question about the get commands, most of the time you
will
> see separate events and commands for each set of 'domain' objects
you deal
> with. Sometimes there is a need to load a ton of data up front, and you
> could have an init function that fires all of the appropraite get
commands.
> Most of the time it's probably better to delay getting certain pieces of
> data until the user navigates to that section of the app. The

Yes, i agree. This is the idea. But, do you think it's ok to call two
or more delegates in one single command to retrieve several pieces of
data from the server before entering some view, or should i create
diferent commands?. I prefer the second option, for reusability
reasons, but then we arrive to the command sequencing problem. The
SequenceCommand provided by Cairngorm is a horrible solution.

> event=command=server request is just part of the MVC pattern and
keeps some
> nice separation so you dont have one monolithic event and command
requesting
> and parsing all of the data. Keep in mind one of the biggest pros of
using a
> framework is maintenance. If you're having a problem with your
products list
> not loading correctly, you'll know to look in the chaing of the
> GetProductsEvent, GetProductsCommand, and ProductDelegate rather than
> digging through thousands of lines in a single command.

Yes, this is a good reason to adopt it.

> 
> On Thu, Jul 10, 2008 at 9:10 AM, oscar.12321 <[EMAIL PROTECTED]> wrote:
> 
> >   Yes. I know this diagram and, as i said, i have been browsing and
> > reading all over Internet, including forums, articles, tutorials, etc.
> >
> > My questions remain unsolved. For example, i see no arrows fro

[flexcoders] Generate dynamic flash using other flash app?

2008-07-10 Thread mariovandeneynde
Greetings!

I was wondering:

Imagine having a swf or fla with a dynamic textfield.

is it possible to build an application that

1) opens the swf or fla
2) fills in the dynamic textfield
3) regenerates the swf so that in the new swf, the textfield is filled in.

Is this possible

if so...how :) 



Re: [flexcoders] Embedded XML

2008-07-10 Thread Christophe Jolif
Hi David,

The following:

   

Should do the trick?

David Gironella wrote:
> Anybody have an example how to embed an XML, and read it on XML object?
> 
>  
> 
> Thanks.
> 
>  
> 
> Giro
> 
> 


-- 
Christophe



[flexcoders] Re: Copied project gives security sandbox violation

2008-07-10 Thread valdhor
No, the compiler options are the same for both projects (-locale en_US
-services "services-config.xml").

Adding -use-network=true to the compiler options makes no difference.

Any other ideas? Anyone else?



BTW. I am re-reading the Adobe documents on policy files...
http://www.adobe.com/devnet/flashplayer/articles/socket_policy_files.html
http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_update.html#policy_file

and Security Sandbox...
http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_04.html

--- In flexcoders@yahoogroups.com, Jon Bradley <[EMAIL PROTECTED]> wrote:
>
> 
> On Jul 10, 2008, at 8:36 AM, valdhor wrote:
> 
> > Once this was complete and compiled it gives me a security sandbox
> > violation for every remote call. Cleaning the project has no effect.
> 
> Did you per chance modify the compiler options for the first project?
> 
> I might've seen this before, but make sure that the new project you  
> created has the additional compiler option "-use-network=true".
> 
> Just a stab in the dark
> 
> good luck,
> 
> jon
>




Re: [flexcoders] Flex & SEO

2008-07-10 Thread Cole Joplin
I recommend reading AdvancED Flex Applifcation Development 
(http://www.amazon.com/AdvancED-Flex-Application-Development-Building/dp/1590598962/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1202745879&sr=8-1).
 Chapter 17 is all about about SEO and Flex, and has some great details. I 
strongly recommend using the Sitemaps Protocol for any website needing SEO, and 
they explain how to do this in Flex.

-- Cole


--- On Thu, 7/10/08, litesh_b321 <[EMAIL PROTECTED]> wrote:

> From: litesh_b321 <[EMAIL PROTECTED]>
> Subject: [flexcoders] Flex  & SEO
> To: flexcoders@yahoogroups.com
> Date: Thursday, July 10, 2008, 5:52 AM
> hi guys,
> how we can get index of google  for a web site which is
> developed in
> adobe flex?
> Is there any special technique to optimise the search
> engine for flex
> developed web site?
> ThanX 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> Groups Links
> 
> 
> 

  


Re: [flexcoders] Re: Cairngorm concepts

2008-07-10 Thread Daniel Gold
Cairngorm as a framework is pretty loose in that it allows you to shortcut
parts that may not feel right to you, and you can subclass and of the pieces
to expand on the implementation. The Universal Mind extension is a good
example of this:

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

There have been quite a few threads on flexcoders about Cairngorm and MVC
and everyone's personal(and sometimes evangelical) beliefs.

Personally, I don't normally store view state in the model like the store
does with its "selectedItem".  I think where you may be losing the concept
of events/commands is with server side vs client side changes. Usually an
event is dispatched and a command is triggered when a data operation occurse
such as a find or a save that will invoke the "backend". That doesn't
necessarily mean the server as you could be writing an AIR application that
communicates with the local SQLLite database, but the application doesn't
care down to the delegate layer that will route the data to the correct
"backend", whatever service that may be. In the store example the
selectedItem is only useful for views so the views modify and bind to that
variable on the model. I usually try to leave that kind of view only data
out of the model and pass it around in the application where necessary
instead.

It sounds like you understand most of the concepts but just take exception
to certain parts of the framework, which is fine. Use it however you see
fit, if you're at odds with a framework then it's not going to be a pleasant
development experience.

As far as your question about the get commands, most of the time you will
see separate events and commands for each set of 'domain' objects you deal
with. Sometimes there is a need to load a ton of data up front, and you
could have an init function that fires all of the appropraite get commands.
Most of the time it's probably better to delay getting certain pieces of
data until the user navigates to that section of the app. The
event=command=server request is just part of the MVC pattern and keeps some
nice separation so you dont have one monolithic event and command requesting
and parsing all of the data. Keep in mind one of the biggest pros of using a
framework is maintenance. If you're having a problem with your products list
not loading correctly, you'll know to look in the chaing of the
GetProductsEvent, GetProductsCommand, and ProductDelegate rather than
digging through thousands of lines in a single command.

On Thu, Jul 10, 2008 at 9:10 AM, oscar.12321 <[EMAIL PROTECTED]> wrote:

>   Yes. I know this diagram and, as i said, i have been browsing and
> reading all over Internet, including forums, articles, tutorials, etc.
>
> My questions remain unsolved. For example, i see no arrows from view
> to model like the Cairgorm Store sample does.
>
> Anyway, thank you.
>
> --- In flexcoders@yahoogroups.com , "Douglas
> Knudsen"
>
> <[EMAIL PROTECTED]> wrote:
> >
> > have a go at this
> > http://www.cairngormdocs.org/tools/CairngormDiagramExplorer.swf
> >
> > DK
> >
> > On Thu, Jul 10, 2008 at 7:37 AM, oscar.12321 <[EMAIL PROTECTED]> wrote:
> > > I have the past few days reading about Cairngorm and, at all, i don't
> > > understand the concept behind de events and commands.
> > >
> > > The people says that a event-command pair corresponds to a user
> > > gesture or system event: clicks, app init, etc. But when i browse the
> > > Cairngorm store app i found things like these:
> > >
> > > - Command modifies the model and the model notifies the view throw
> > > bindings: this seems logic to me.
> > >
> > > - Selecting a product in the view directly changes the
> > > model.selectedItem: where is the command?. What we have here is a user
> > > gesture and a model update without Cairngorm event or command.
> > >
> > > - Retrieving the products with a GetProductsCommand: what kind of
> > > event+command is this?. The system event shold be appInit or the like,
> > > and then usually you need to retrieve many things, not only products.
> > > Why server request = command?
> > >
> > > - Finally, the checkout process is divided in a sequence of commands.
> > > The user gesture is checkout, but the app uses serveral commands.
> > >
> > > This has no sense for me. I think the theory was right, but when
> > > applied is twisted to match the framework limitations.
> > >
> > > This is suposed to be the mother of the samples (an the only one, i
> > > think).
> > >
> > > Could any one clarify me when to use a command an how to explain the
> > > concept to other people?
> > >
> > > Thanks
> > >
> > > - Oscar
> > >
> > >
> >
> >
> >
> > --
> > Douglas Knudsen
> > http://www.cubicleman.com
> > this is my signature, like it?
> >
>
>  
>


[flexcoders] Re: Cairngorm concepts

2008-07-10 Thread oscar.12321
Yes. I know this diagram and, as i said, i have been browsing and
reading all over Internet, including forums, articles, tutorials, etc.

My questions remain unsolved. For example, i see no arrows from view
to model like the Cairgorm Store sample does.

Anyway, thank you.

--- In flexcoders@yahoogroups.com, "Douglas Knudsen"
<[EMAIL PROTECTED]> wrote:
>
> have a go at this
> http://www.cairngormdocs.org/tools/CairngormDiagramExplorer.swf
> 
> DK
> 
> On Thu, Jul 10, 2008 at 7:37 AM, oscar.12321 <[EMAIL PROTECTED]> wrote:
> > I have the past few days reading about Cairngorm and, at all, i don't
> > understand the concept behind de events and commands.
> >
> > The people says that a event-command pair corresponds to a user
> > gesture or system event: clicks, app init, etc. But when i browse the
> > Cairngorm store app i found things like these:
> >
> > - Command modifies the model and the model notifies the view throw
> > bindings: this seems logic to me.
> >
> > - Selecting a product in the view directly changes the
> > model.selectedItem: where is the command?. What we have here is a user
> > gesture and a model update without Cairngorm event or command.
> >
> > - Retrieving the products with a GetProductsCommand: what kind of
> > event+command is this?. The system event shold be appInit or the like,
> > and then usually you need to retrieve many things, not only products.
> > Why server request = command?
> >
> > - Finally, the checkout process is divided in a sequence of commands.
> > The user gesture is checkout, but the app uses serveral commands.
> >
> > This has no sense for me. I think the theory was right, but when
> > applied is twisted to match the framework limitations.
> >
> > This is suposed to be the mother of the samples (an the only one, i
> > think).
> >
> > Could any one clarify me when to use a command an how to explain the
> > concept to other people?
> >
> > Thanks
> >
> > - Oscar
> >
> > 
> 
> 
> 
> -- 
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>




Re: [flexcoders] Cairngorm concepts

2008-07-10 Thread shaun
Douglas Knudsen wrote:
> have a go at this
> http://www.cairngormdocs.org/tools/CairngormDiagramExplorer.swf
> 

Very nice indeed.

  - shaun


Re: [flexcoders] Cairngorm concepts

2008-07-10 Thread Douglas Knudsen
have a go at this
http://www.cairngormdocs.org/tools/CairngormDiagramExplorer.swf

DK

On Thu, Jul 10, 2008 at 7:37 AM, oscar.12321 <[EMAIL PROTECTED]> wrote:
> I have the past few days reading about Cairngorm and, at all, i don't
> understand the concept behind de events and commands.
>
> The people says that a event-command pair corresponds to a user
> gesture or system event: clicks, app init, etc. But when i browse the
> Cairngorm store app i found things like these:
>
> - Command modifies the model and the model notifies the view throw
> bindings: this seems logic to me.
>
> - Selecting a product in the view directly changes the
> model.selectedItem: where is the command?. What we have here is a user
> gesture and a model update without Cairngorm event or command.
>
> - Retrieving the products with a GetProductsCommand: what kind of
> event+command is this?. The system event shold be appInit or the like,
> and then usually you need to retrieve many things, not only products.
> Why server request = command?
>
> - Finally, the checkout process is divided in a sequence of commands.
> The user gesture is checkout, but the app uses serveral commands.
>
> This has no sense for me. I think the theory was right, but when
> applied is twisted to match the framework limitations.
>
> This is suposed to be the mother of the samples (an the only one, i
> think).
>
> Could any one clarify me when to use a command an how to explain the
> concept to other people?
>
> Thanks
>
> - Oscar
>
> 



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


[flexcoders] Re: TextInput Reskin = runtime Error! ??

2008-07-10 Thread valdhor
We will need to see what assets.css looks like before we can venture
an opinion.


--- In flexcoders@yahoogroups.com, "nathanpdaniel" <[EMAIL PROTECTED]> wrote:
>
> 
> I'm working on an app that's been reskinned.  When I use a TextInput
> inside an Accordian, it causes the app to act "funny".   I've posted a
> simple example which causes the negative result.  Running the
> application WITHOUT a skin (as it is) works as desired.  When I add
>  to the code and rerun - I get the
> error!  The error would be the equivalent of clicking a TextInput to
> give it focus.  Upon doing so, focus is shifted elsewhere (away from the
> TextInput).  When this happens, you can't ever edit the TextInput.  Any
> ideas?
> 
> a simplified source:
> 
> 
> 
>   
> 
>
> 
> 
> 
>
> 
>   
> 
> 
>




[flexcoders] Re: Newbie Nested Remote Object Question

2008-07-10 Thread valdhor
Yes, basically this is how it is done. You create a class on your
server and one in ActionScript. You tell the ActionScript class what
to map to on the remote end (The RemoteClass). Now Flex knows when it
receives that kind of object via AMF to cast it to the local class.

I have not seen a code generation tool as yet. Hey, maybe you could
write one and release it to the community ;-}


--- In flexcoders@yahoogroups.com, "kroghadam" <[EMAIL PROTECTED]> wrote:
>
> Yay, I got something working. I added in a couple actionscript classes
> that map to my java classes...somehow. One is as follows:
> 
> package
> {
>   [RemoteClass(alias="test.summary")]
> 
>   [Bindable]
>   public class Summary {
>   public var clientName:String = "";
>   public var budget:int;
> 
>   public function Summary() {
>   }
>   }
> }
> 
> This works, now I can cast the properties that I get in the way you
> said. Is this the only way of doing it? And if it is, is there a code
> generation tool that will create these .as files automatically?
> 
> 
> -Adam
> 
> --- In flexcoders@yahoogroups.com, "kroghadam"  wrote:
> >
> > Sorry I am really new to flex, I'm not sure what you mean by value
> > objects. The three classes I gave are Java Classes that are
> > essentially a facade to further backend persistence code.
> > 
> > I remote directly to the ProjectList.java class and return an array of
> > Projects. I cannot do what you suggested in actionscript as I only
> > have the java objects that i am remoting to, and cannot reference
those.
> > I am beginning to think I am doing something seriously wrong as I only
> > have one remote object, and am trying to access java objects contained
> > in it. Do I need to have some kind of mapping of action script objects
> > as well?
> > Any articles and tutorials about accessing java objects would be a
> > great help to.
> > 
> > Thanks for your patience,
> > 
> > Adam
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> > >
> > > Caveat: I use PHP with WebORB but I have done a lot of C++ in the
> past.
> > > 
> > > So, to get this straight, you have a value object with a
property that
> > > contains another value object, right? Try...
> > > 
> > > (project.summary as Summary).budget
> > > 
> > > or
> > > 
> > > Summary(project.summary).budget
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "kroghadam"  wrote:
> > > >
> > > > Perhaps I should provide a little more detail on my problem,
> here are
> > > > three stripped down java classes I am using,
> > > > 
> > > > 
> > > > public class Project {
> > > >   private String name;
> > > >   private Summary summary;
> > > > 
> > > >   public Project(){
> > > >   }
> > > > 
> > > >   ...usual get/set methods
> > > > 
> > > > }
> > > > 
> > > > public class Summary {
> > > >   private String clientName;
> > > >   private int budget;
> > > > 
> > > >   public Summary(){
> > > >   }
> > > > 
> > > >   ...usual get/set methods
> > > > }
> > > > 
> > > > public ProjectList {
> > > >   private ArrayList projects;
> > > > 
> > > >   public ProjectList(){
> > > >   }
> > > > 
> > > >   public Project[] getProjects() {
> > > > buildProjects();
> > > > return projects.toArray(new Project[0]);
> > > >   }
> > > > 
> > > >   public void buildProjects() {
> > > > Project project;
> > > > Summary summary;
> > > > projects = new ArrayList();
> > > > for(int i = 0; i<10;i++) {
> > > >   project = new Project();
> > > >   project.setName("Name"+i);
> > > >   summary = new Summary();
> > > >   summary.setBudget(1);
> > > >   summary.setClientName("Client"+i);
> > > >   project.setSummary(summary);
> > > >   projects.add(projects);
> > > > }
> > > > }
> > > > 
> > > > Within my flex code I use a remote object to the ProjectList and
> bind
> > > > an ArrayCollection to the return value of getProjects(). I
then pass
> > > > the Project elements of this array to a component to display its
> > > values. 
> > > > This is where my problem comes in. I can display the name of the
> > > > project fine in the component by just using {project.name} but I
> have
> > > > no idea how to access my Summary object to get its data. 
> > > > I thought I could just do {project.summary.budget} but that
doesn't
> > > > display anything. 
> > > > I really hope someone can help me solve this problem as I'v been
> stuck
> > > > on it for some time now. 
> > > > 
> > > > Thanks again,
> > > > 
> > > > -Adam
> > > > --Flex Newbie
> > > > 
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "kroghadam"  wrote:
> > > > >
> > > > > Hi everybody, I am really enjoying my first look into flex! 
> > > > > Unfortunately I have ran into a problem with remote objects to
> java
> > > > > classes that have compositions of objects in them. In other
> words my
> > > > > class has an instance variable that is another object whose
data i
>

Re: [flexcoders] Copied project gives security sandbox violation

2008-07-10 Thread Jon Bradley


On Jul 10, 2008, at 8:36 AM, valdhor wrote:


Once this was complete and compiled it gives me a security sandbox
violation for every remote call. Cleaning the project has no effect.


Did you per chance modify the compiler options for the first project?

I might've seen this before, but make sure that the new project you  
created has the additional compiler option "-use-network=true".


Just a stab in the dark

good luck,

jon



[flexcoders] Re: Air and Blazeds?

2008-07-10 Thread stephen.smithstone
To get an AIR app to communicate with remote blasze server you need to
specify the endpoint on the remote object to go to the gateway of the
blazeds / LCDS






like that replace ip:port of the tomcat server and the application is
the java application where which contains blazeds



[flexcoders] Re: As3Crypto - Can't read RSA Public Key

2008-07-10 Thread Jim Boone
Alright, I think the mystery is solved.  I did indeed download the 
latest source created a Flex project and imported the source 
directory of that project into the project where my test file was.  
Unfortunately, I forgot to REMOVE the downloaded swc file from the 
lib directory so FB picked up the old library and not the new code. 

So in summury, simply download the latest as3crypto source code and 
compile it with AS3, otherwise, you may have issues.

Jim

--- In flexcoders@yahoogroups.com, "Jim Boone" <[EMAIL PROTECTED]> wrote:
>
> Interesting enough, I was able to make it work as well on another
> machine.  I checked out the latest code from Subversion and copied 
the
> code into a Flex library project then referenced the new library 
swc.
> Everything worked as expected! I will try to use the library swc on
> my other machine to see if it continues to work there. 
> 
> For what it is worth, the checked-out code would not compile in 
AS3. 
> There are many places in the code with int.MAX_VALUE is used as a
> default parameter in a method call.  This must have been OK with 
AS2
> but AS3 chokes.  You will need to replace these variables with the
> actual numbers.
> 
> e.g.
> 
> public function
> bmpString(size:int=int.MAX_VALUE,size2:int=0):BMPStringType {
>   return new BMPStringType(size, size2);
> }
> 
> Thanks for your help Nick.
> 
> Jim
> 
> --- In flexcoders@yahoogroups.com, "Uber_Nick"  
wrote:
> >
> > Hi Jim,
> > 
> > I copied your code into a project and pulled in the latest 
As3Crypto
> > source.  Your project compiled and worked as expected.  I was 
unable
> > to replicate the error, and would assume it's an environment 
issue.
> > 
> > -Nick Matelli
> > 
> > --- In flexcoders@yahoogroups.com, "Jim Boone"  wrote:
> > >
> > > Hi,
> > > 
> > > I posted this on the As3Crypto discussion list but there is 
very
> > > little activity there.  Maybe someone in this group has 
encrypted
> > > something using an RSA public key that they might share.
> > > 
> > > I am trying to read a RSA public key so I can encrypt data in 
my
> > > application. I assembled a test app just to learn how the 
library
> > > works. Unfortunately, I didn't get very far. I get the 
message "I DONT
> > > KNOW HOW TO HANDLE DER stuff of TYPE 1" when I try to run the
> > > following code. I have downloaded the latest source from trunk 
but I
> > > still get the error. I generated the private and public keys 
using
> > > openssl as shown below:
> > > 
> > > openssl genrsa -out private.pem 1024
> > > openssl rsa -in private.pem -pubout -out public.pem
> > > 
> > > Any clue what is happening here?
> > > 
> > > 
> > > http://www.adobe.com/2006/mxml";
> > > layout="absolute" creationComplete="init()">
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > ~~~ Error ~~
> > > 
> > > I DONT KNOW HOW TO HANDLE DER stuff of TYPE 1
> > > Error: Error #2030: End of file was encountered.
> > > at flash.utils::ByteArray/readBytes()
> > > at
> > > com.hurlant.util.der::DER$/parse()[C:\flex\crypto_1.3
\com\hurlant
> > > \util\der\DER.as:134]
> > > at com.hurlant.util.der::PEM$/readRSAPublicKey()
[C:\flex
> > > \crypto_1.3\com\hurlant\util\der\PEM.as:84]
> > > at
> > > Test/init()
[C:\flex\workspaces\smtoolsPrototype\Test\src\Test.mxml:
> > > 28]
> > > 
> > > ~Jim
> > >
> >
>




[flexcoders] Re: Convert Text to Bitmap using ActionScript-3 .

2008-07-10 Thread Joy
Hey, thanks a lot. To elaborate on what's suggested, the solution I
got was:

var tf:TextField = new TextField();
tf.text = "bitmap text";

var myBitmapData:BitmapData = new BitmapData(80, 20);
myBitmapData.draw(tf);
var bmp:Bitmap = new Bitmap(myBitmapData);
this.addChild(bmp);

Thinks this will help others, who wanna know more about the same. 
Regards
   Joy

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Readup on BitmapData.draw() and PNGEncoder
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Joy
> Sent: Wednesday, July 09, 2008 6:47 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Convert Text to Bitmap using ActionScript-3 .
> 
>  
> 
> Hi
> I wanted to know is there a way, where we can take a Text, and
> convert it to an image-object (PNG) using ActionScript-3. Basically, I
> wanted the typed-in text to be converted to an Image. I want to do the
> same as breaking-text ie.CTRL+B (in Flash), in ActionScript-3.
> 
> Thanks in advance
> enJOY
>




[flexcoders] Flex components to Flash CS3

2008-07-10 Thread Balaji
Hi All
I had created one small component in Flex, and builded with SWC format,
I need to call that SWC component to the Flash CS3.
Let me know how to do this,,
or send me the link to how to do this application
Regards
Balaji



[flexcoders] Cairngorm concepts

2008-07-10 Thread oscar.12321
I have the past few days reading about Cairngorm and, at all, i don't
understand the concept behind de events and commands.

The people says that a event-command pair corresponds to a user
gesture or system event: clicks, app init, etc. But when i browse the
Cairngorm store app i found things like these:

- Command modifies the model and the model notifies the view throw
bindings: this seems logic to me.

- Selecting a product in the view directly changes the
model.selectedItem: where is the command?. What we have here is a user
gesture and a model update without Cairngorm event or command.

- Retrieving the products with a GetProductsCommand: what kind of
event+command is this?. The system event shold be appInit or the like,
and then usually you need to retrieve many things, not only products.
Why server request = command?

- Finally, the checkout process is divided in a sequence of commands.
The user gesture is checkout, but the app uses serveral commands.

This has no sense for me. I think the theory was right, but when
applied is twisted to match the framework limitations.

This is suposed to be the mother of the samples (an the only one, i
think).

Could any one clarify me when to use a command an how to explain the
concept to other people?

Thanks

- Oscar





[flexcoders] Copied project gives security sandbox violation

2008-07-10 Thread valdhor
I have a completed project that is working fine. As a shortcut to
building a new project I thought I would copy and paste the entire
project and give it a new name.

Once this was complete and compiled it gives me a security sandbox
violation for every remote call. Cleaning the project has no effect.

There is a crossdomain.xml file on the affected server and it looks
like this:


http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>

  


  


Why would the old project work and the copied one not? What can I do
to fix this?



  1   2   >