RE: [flexcoders] E4X in Flex 2.0, part 1: Reading XML

2005-05-17 Thread Tolulope Olonade










HOW DO I JOIN THE FLEX.NET ALPHA/BETA TEST
GROUP? J

 

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Barnes
Sent: Wednesday, May 18, 2005 5:13
AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] E4X in
Flex 2.0, part 1: Reading XML



 

heheheheheheh thats funny.

I had to do a double take and thought "am i
reading the right list here or..."

Nice work ;)


On 5/18/05, Hans Omli <[EMAIL PROTECTED]>
wrote:
>  
> I don't suppose we'll be reading part 2 of
this email via FlexCoders then. 
> ;-)
>  
>  
>  From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
> Behalf Of Gordon Smith
> Sent: Tuesday, May 17, 2005 5:15 PM
> To: 'flexcoders@yahoogroups.com'
> Subject: RE: [flexcoders] E4X in Flex 2.0,
part 1: Reading XML
> 
>  
>  
> Oops... I meant to send this to an internal
group, not to flexcoders. Enjoy
> the information, but, for now, don't expect
this level of detail about our
> future plans. Of course, we do want your
feedback on features for the next
> release, and we'll be sharing more plans with
you in the future, as we get
> closer to the next release. 
>   
> Sorry, 
> Gordon 
>  
>  
> -Original Message-
> From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
> Behalf Of Gordon Smith
> Sent: Tuesday, May 17, 2005 4:54 PM
> To: 'flexcoders@yahoogroups.com'
> Subject: [flexcoders] E4X in Flex 2.0, part
1: Reading XML
> 
>  
>  
>  
> 
> As you may have gathered, we've been spending
a lot of time lately
> leveraging the new features of the Flash
Player in the new Flex application
> model. Naturally, you'll also be able to
leverage those same new features,
> so we thought we'd start giving you a run
down of what's new. Of course we
> don't have beta software for you to play with
yet, so for now, we'll provide
> a lot of detail so you can evaluate these new
features and give guidance for
> us. 
> 
>   
> 
> XML manipulation in Flex 2.0 is going to get
a lot more powerful, as well as
> faster. By the time that Flex 2.0 ships, the
Flash Player will support E4X
> ("ECMAScript for XML"), a set of
programming language extensions adding
> native XML support to ECMAScript. The player
team is busy implementing
> Standard ECMA-357 as described in
> http://www.ecma-international.org/publications/standards/Ecma-357.htm.
>  
> 
>   
>  
> 
> Here's how the spec describes what this
feature offers: "E4X adds native XML
> datatypes to the ECMAScript language, extends
the semantics of familiar
> ECMAScript operators for manipulating XML
objects and adds a small set of
> new operators for common XML operations, such
as searching and filtering. It
> also adds support for XML literals,
namespaces, qualified names and other
> mechanisms to facilitate XML
processing." 
>  
> 
>   
>  
> 
> Lets take a look at a few examples of how you
can read XML data using E4X. 
>  
> 
>   
>  
> 
> As in the current player, you'll be able to
create variables of type XML by
> parsing a String. But XML literals will now
be supported as well: 
>  
> 
>   
>  
> 
> var employees:XML =
>

>

>

>

>
11 Main St.
>
San Francisco
>
CA
>
98765
>

>

>

>

>

>
99 Broad St.
>
Newton
>
MA
>
01234
>

>

>
; 
>  
> 
>   
>  
> 
> Instead of using DOM-style APIs like
firstChild, nextSibling, etc., with E4X
> you just "dot down" to grab the
node you want. Multiple nodes are indexable
> with [n], similar to the elements of an
Array: 
>  
> 
>   
>  
> 
> trace(employees.employee[0].address.zip);

>  
> 
> --- 
>  
> 
> 98765 
>  
> 
>   
>  
> 
> To grab an attribute, you just use the .@
operator: 
>  
> 
>   
>  
> 
>
trace([EMAIL PROTECTED]);
> --- 
>  
>  
> 
> 789-789-7890 
>  
> 
>   
>  
> 
> If you don't pick out a particular node, you
get all of them, as an
> indexable list: 
>  
> 
>   
>  
> 
>
trace(employees.employee.name); 
>  
> 
> --- 
>  
> 
>  
>  
> 
>  
>  
> 
>   
>  
> 
> (And note that nodes even toString()
themselves into formatted XML!) 
>  
> 
>   
>  
>  
> 
> A handy double-dot operator lets you omit the
"path" down into the XML
> _expression_, so you could shorten the previous
three examples to 
>  
> 
>   
>  
> 
>
trace(employees..zip[0]); 
>  
>  
> 
>
trace([EMAIL PROTECTED]); 
>  
>  
> 
>
trace(employees..name); 
>  
> 
>   
> 
> You can use a * wildcard to get a list of
multiple nodes or attributes with
> various names, and the resulting list is
indexable: 
>  
> 
>   
>  
> 
>
trace(employees.employee[0].address.*); 
>  
> 
> --- 
>  
> 
> 11 Main St.

>  
> 
> San Francisco

>  

RE: [flexcoders] Available Backend Frameworks

2005-05-17 Thread Devers, Ilya





missing many.
 
read up on the serverside.com
 
JDO, EJB, spring, etc.
 


From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of dave
buhlerSent: Wednesday, May 18, 2005 4:28 AMTo:
flexcoders@yahoogroups.comSubject: [flexcoders] Available Backend
Frameworks
What are the backend frameworks that are available?

  Tartan
  Hibernate
  ColdSpring Am I missing any?







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.









This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient,  you are not authorized to read, print, retain, copy, disseminate,  distribute, or use this message or any part thereof. If you receive this  message in error, please notify the sender immediately and delete all  copies of this message.



Re: [flexcoders] SynergyFLEX Framework Presentation.

2005-05-17 Thread Will Sargent
Scott Barnes wrote:
> For those who have emailed me asking for the latest build, i've
> uploaded a "public" preview / alpha build of the framework via my blog
> tonight.
> 
> URL: http://www.mossyblog.com/archives/473.cfm
> 
> Feedback welcomed.

What is the rationale for SynergyFLEX?  How does it compare to other 
frameworks, such as Crainborn?  What are some advantages of SynergyFLEX?

I read the entries at

http://www.mossyblog.com/archives/451.cfm

and

http://www.mossyblog.com/archives/434.cfm

but I don't know enough about Flex to be able to evaluate the advantages 
and disadvantages of your approach.  At what point does a framework like 
this become overkill?

Will.


 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] RemoteObject source="" bug?

2005-05-17 Thread Scott Barnes
Robin Hilliard asked a nice question regarding this last night, in
that will this get around whitelist security? or is it stored
elsewhere and acts as a filter before allowing remote calls to be
made?



On 5/18/05, Matt Chotin <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> Yeah, RemoteObject requires the classname to be set at compile-time in the
> tag, no binding allowed.  That's a bug that it didn't raise a compiler
> error.  In 2.0 we're trying to allow a lot more runtime tweaking of all of
> our services including RemoteObject to allow things like this. 
> 
>   
> 
> Matt 
> 
>   
>  
>  
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Scott Barnes
>  Sent: Monday, May 16, 2005 10:50 PM
>  To: flexcoders@yahoogroups.com
>  Subject: [flexcoders] RemoteObject source="" bug? 
>  
> 
>   
> 
> Indy @ Straker noticed today that you can't use
>  source="{binding.to.a.obj.value}" in mx:RemoteObject?
>  
>  In that it appears it ignores the fact that the curly braces are there
>  and simply takes it as string value ..
>  
>  ie:
>  call "{binding.to.a.obj.value}.doMethod()"  is the invocation attempt via
> Debug.
>  
>  I did find a a work-around in that you could do:
>  
>  function initRemoteObjectService() {
>  
>  // tricks the flex compiler.
>  serviceID['__serviceName'] = binding.to.a.obj.value;
>  
>  }
>  
>  but seems dodge ? is it a bug or was that meant to be the case in
>  terms of assigning dynamic values to the source attribute.
>  
>  
>  -- 
>  Regards,
>  Scott Barnes
>  http://www.mossyblog.com
>  http://www.flexcoder.com (Coming Soon)
>  
>  
>  
>  Yahoo! Groups Links
>  
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Explaining Flex Log In and User Role Functionality to Java Developers

2005-05-17 Thread dave buhler



The lesson here is:

Don't copy copy the address bar for liveDocs. Copy the page URL within the frameset. 

Also, when using setCredentials or passing over any login and password, you can use some type of hashing/encryption.

http://livedocs.macromedia.com/flex/15/flex_docs_en/0885.htm#wp126636

'You can also assign access restrictions to entire applications or to any 
resource, such as Java classes, using the security-constraint and 
web-resource-collection elements in the web.xml file. For more 
information on using web application authentication, see your application 
server's documentation.'



Small Tidbits:
http://livedocs.macromedia.com/flex/15/flex_docs_en/0898.htm#wp123937
http://livedocs.macromedia.com/flex/15/flex_docs_en/0886.htm#wp123215
http://livedocs.macromedia.com/flex/15/flex_docs_en/0887.htm#wp124216



On 5/18/05, Leif Wells <[EMAIL PROTECTED]> wrote:



Dave, thanks for replying.

The link you provided for the livedocs takes me to a page about
containers. Since that is not the point we were discussing, I can only
imagine that something is wrong with that link. ;-)  (either that
or Gmail is misinterpreting the link)

If you could provide the topic of that link it would be very helpful! Thanks!On 5/17/05, dave buhler <
[EMAIL PROTECTED]
> wrote:More info here: 

http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href=""

  








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Explaining Flex Log In and User Role Functionality to Java Developers

2005-05-17 Thread Leif Wells



Dave, thanks for replying.

The link you provided for the livedocs takes me to a page about
containers. Since that is not the point we were discussing, I can only
imagine that something is wrong with that link. ;-)  (either that
or Gmail is misinterpreting the link)

If you could provide the topic of that link it would be very helpful! Thanks!On 5/17/05, dave buhler <[EMAIL PROTECTED]
> wrote:More info here: 
http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href=""

  








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Explaining Flex Log In and User Role Functionality to Java Developers

2005-05-17 Thread Scott Barnes
Like Dave said, you could use setCredentials over the pipe to access
remote methods, but for those who are
anti-letting-client-side-have-username-password-stored-locally you
can still leveridge existing session scope compliance.

In that, you can make your backend handle its security model
transparent to FLEX. One case is you could provide an api that asks
the server a question before allowing them to continue..

eg:

var doLogin:Boolean = remoteService.isAuthenticated()

if(!doLogin) {
// show login screen.
}

and...

var isAllowed:Boolean = remoteService.canDeleteRowInGrid(obj.gridID)

if(isAllowed) {
// perform business logic
} else {
// perform exception logic.
}

Obviously thats a really verbose/plain ol simple example of the
concept, but what i'm hinting at is you can leave that "stuff' to
server-side. As with FLEX  you are treated the same as a normal HTML
page (cookies, session scopes etc).

On 5/18/05, dave buhler <[EMAIL PROTECTED]> wrote:
>  Hi Leif,
>  
>  I had presented a similar question a few days ago regarding Flex and CF7
> which runs on j2EE.
>  
>  I can share with you what I know, but I am also looking to learn more about
> security with Remoting, myself.
>  
>  You should be able to attach setCredentials to your Remote Call. I know
> setCredentials is configurable with CFLogin, which compiled down to Java on
> J2ee.
>  
>  Searching the Macromedia site for CFLogin and setCredentials should yield
> some additional information. Also, from my recollection, you will want to
> check permissions on each request before passing back data. Within Flex, you
> could check permissions on the result to see if permissions have changed.
>  
>  More info here:
> http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href=0282.htm
>  
>  Also, the carbonFive project will have more information in depth for
> remoting and Java:
>  
> http://carbonfive.sourceforge.net/flashgatekeeper/api/com/carbonfive/flashgateway/security/package-summary.html
>  
>  Dave
> 
>  
>  
>  
>  
> 
> On 5/17/05, Leif Wells <[EMAIL PROTECTED]> wrote:
> > Here's the deal. I have a client putting together a (fairly large) Flex
> application; actually the company that I work for is putting together the
> Flex portion and the client and another vendor is putting together the J2EE
> back-end. 
> > 
> > So they come to me and say "How are we handling logging in a user. Are we
> using cookies?" 
> > 
> > What we've done in the past with Flash (sorry. I know that's a dirty word
> here) is have the user log in and have the server pass back a user object
> that contains (among other things) a role. If the server doesn't pass the
> user object, then they get the login screen again. If the user is logged in,
> they see screens/forms per what level their role is set. The security on
> this new application is going to need to be a bit more strict.
> > 
> > My problem is this: I am NOT a full-time J2EE developer and the people who
> are asking these questions are very experienced J2EE developers. Every time
> I attempt to explain to them how we should handle user log in I appearently
> am not using the correct words. Can someone either point me to a document
> that explains how user log in would normally would be handled with Flex in a
> J2EE environment? Or give it to me is easy to understand language so I can
> relieve these guys' (and my) stress? Is there a best practice for handling
> user login in a secure application?
> > 
> > Also, they threw me a curve today: "How do we handle it if a user's role
> is demoted or promoted in the middle of a session? Can we immediately change
> what they see on-screen? Or can we immediately have them log off?"  Any
> thoughts?
> > 
> > 
> > Leif
> > http://www.leifwells.com
> > 
> > 
>  Yahoo! Groups Links
> > 
> > 
> > To visit your group on the web, go to:
> > http://groups.yahoo.com/group/flexcoders/
> >   
> > To unsubscribe from this group, send an email to:
> > [EMAIL PROTECTED] 
> >   
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
>  
>  
>  Yahoo! Groups Links
>  
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] E4X in Flex 2.0, part 1: Reading XML

2005-05-17 Thread Scott Barnes
heheheheheheh thats funny.

I had to do a double take and thought "am i reading the right list here or..."

Nice work ;)


On 5/18/05, Hans Omli <[EMAIL PROTECTED]> wrote:
>  
> I don't suppose we'll be reading part 2 of this email via FlexCoders then. 
> ;-)
>  
>  
>  From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Gordon Smith
> Sent: Tuesday, May 17, 2005 5:15 PM
> To: 'flexcoders@yahoogroups.com'
> Subject: RE: [flexcoders] E4X in Flex 2.0, part 1: Reading XML
> 
>  
>  
> Oops... I meant to send this to an internal group, not to flexcoders. Enjoy
> the information, but, for now, don't expect this level of detail about our
> future plans. Of course, we do want your feedback on features for the next
> release, and we'll be sharing more plans with you in the future, as we get
> closer to the next release. 
>   
> Sorry, 
> Gordon 
>  
>  
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Gordon Smith
> Sent: Tuesday, May 17, 2005 4:54 PM
> To: 'flexcoders@yahoogroups.com'
> Subject: [flexcoders] E4X in Flex 2.0, part 1: Reading XML
> 
>  
>  
>  
> 
> As you may have gathered, we've been spending a lot of time lately
> leveraging the new features of the Flash Player in the new Flex application
> model. Naturally, you'll also be able to leverage those same new features,
> so we thought we'd start giving you a run down of what's new. Of course we
> don't have beta software for you to play with yet, so for now, we'll provide
> a lot of detail so you can evaluate these new features and give guidance for
> us. 
> 
>   
> 
> XML manipulation in Flex 2.0 is going to get a lot more powerful, as well as
> faster. By the time that Flex 2.0 ships, the Flash Player will support E4X
> ("ECMAScript for XML"), a set of programming language extensions adding
> native XML support to ECMAScript. The player team is busy implementing
> Standard ECMA-357 as described in
> http://www.ecma-international.org/publications/standards/Ecma-357.htm.
>  
> 
>   
>  
> 
> Here's how the spec describes what this feature offers: "E4X adds native XML
> datatypes to the ECMAScript language, extends the semantics of familiar
> ECMAScript operators for manipulating XML objects and adds a small set of
> new operators for common XML operations, such as searching and filtering. It
> also adds support for XML literals, namespaces, qualified names and other
> mechanisms to facilitate XML processing." 
>  
> 
>   
>  
> 
> Lets take a look at a few examples of how you can read XML data using E4X. 
>  
> 
>   
>  
> 
> As in the current player, you'll be able to create variables of type XML by
> parsing a String. But XML literals will now be supported as well: 
>  
> 
>   
>  
> 
> var employees:XML =
> 
> 
> 
> 
> 11 Main St.
> San Francisco
> CA
> 98765
> 
> 
> 
> 
> 
> 99 Broad St.
> Newton
> MA
> 01234
> 
> 
> ; 
>  
> 
>   
>  
> 
> Instead of using DOM-style APIs like firstChild, nextSibling, etc., with E4X
> you just "dot down" to grab the node you want. Multiple nodes are indexable
> with [n], similar to the elements of an Array: 
>  
> 
>   
>  
> 
> trace(employees.employee[0].address.zip); 
>  
> 
> --- 
>  
> 
> 98765 
>  
> 
>   
>  
> 
> To grab an attribute, you just use the .@ operator: 
>  
> 
>   
>  
> 
> trace([EMAIL PROTECTED]);
> --- 
>  
>  
> 
> 789-789-7890 
>  
> 
>   
>  
> 
> If you don't pick out a particular node, you get all of them, as an
> indexable list: 
>  
> 
>   
>  
> 
> trace(employees.employee.name); 
>  
> 
> --- 
>  
> 
>  
>  
> 
>  
>  
> 
>   
>  
> 
> (And note that nodes even toString() themselves into formatted XML!) 
>  
> 
>   
>  
>  
> 
> A handy double-dot operator lets you omit the "path" down into the XML
> expression, so you could shorten the previous three examples to 
>  
> 
>   
>  
> 
> trace(employees..zip[0]); 
>  
>  
> 
> trace([EMAIL PROTECTED]); 
>  
>  
> 
> trace(employees..name); 
>  
> 
>   
> 
> You can use a * wildcard to get a list of multiple nodes or attributes with
> various names, and the resulting list is indexable: 
>  
> 
>   
>  
> 
> trace(employees.employee[0].address.*); 
>  
> 
> --- 
>  
> 
> 11 Main St. 
>  
> 
> San Francisco 
>  
> 
> CA 
>  
> 
> 98765 
>  
> 
> trace([EMAIL PROTECTED]);
> --- 
>  
> 
> Doe 
>  
> 
>   
>  
> 
> You don't have to hard-code the identifiers for the nodes or attributes...
> they can themselves be variables: 
>  
>  
>  
> 
>   
>  
> 
> var whichNode:String = "zip";
> trace(employees.employee[0].address[

Re: [flexcoders] E4X in Flex 2.0, part 1: Reading XML

2005-05-17 Thread Jeff Steiner
That is flat out increadible.

I can't wait!

Jeff
http://www.flexauthority.com

- Original Message - 
From: "Jeff Beeman" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 17, 2005 5:04 PM
Subject: RE: [flexcoders] E4X in Flex 2.0, part 1: Reading XML


This is very exciting!  I'm especially excited about the double-dot and
wildcard operators.  Thanks for this update, as it'll help with planning
for future projects.  Keep 'em coming!

 

 

/**
* Jeff Beeman
**/

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Gordon Smith
Sent: Tuesday, May 17, 2005 4:54 PM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] E4X in Flex 2.0, part 1: Reading XML

 

As you may have gathered, we've been spending a lot of time lately
leveraging the new features of the Flash Player in the new Flex
application model. Naturally, you'll also be able to leverage those same
new features, so we thought we'd start giving you a run down of what's
new. Of course we don't have beta software for you to play with yet, so
for now, we'll provide a lot of detail so you can evaluate these new
features and give guidance for us.

 

XML manipulation in Flex 2.0 is going to get a lot more powerful, as
well as faster. By the time that Flex 2.0 ships, the Flash Player will
support E4X ("ECMAScript for XML"), a set of programming language
extensions adding native XML support to ECMAScript. The player team is
busy implementing Standard ECMA-357 as described in
http://www.ecma-international.org/publications/standards/Ecma-357.htm.

 

Here's how the spec describes what this feature offers: "E4X adds native
XML datatypes to the ECMAScript language, extends the semantics of
familiar ECMAScript operators for manipulating XML objects and adds a
small set of new operators for common XML operations, such as searching
and filtering. It also adds support for XML literals, namespaces,
qualified names and other mechanisms to facilitate XML processing."

 

Lets take a look at a few examples of how you can read XML data using
E4X.

 

As in the current player, you'll be able to create variables of type XML
by parsing a String. But XML literals will now be supported as well:

 

var employees:XML =




11 Main St.
San Francisco
CA
98765





99 Broad St.
Newton
MA
01234


;

 

Instead of using DOM-style APIs like firstChild, nextSibling, etc., with
E4X you just "dot down" to grab the node you want. Multiple nodes are
indexable with [n], similar to the elements of an Array:

 

trace(employees.employee[0].address.zip);

---

98765

 

To grab an attribute, you just use the .@ operator:

 

trace([EMAIL PROTECTED]);
---

789-789-7890

 

If you don't pick out a particular node, you get all of them, as an
indexable list:

 

trace(employees.employee.name);

---





 

(And note that nodes even toString() themselves into formatted XML!)

 

A handy double-dot operator lets you omit the "path" down into the XML
expression, so you could shorten the previous three examples to

 

trace(employees..zip[0]);

trace([EMAIL PROTECTED]  ]);

trace(employees..name);

 

You can use a * wildcard to get a list of multiple nodes or attributes
with various names, and the resulting list is indexable:

 

trace(employees.employee[0].address.*);

---

11 Main St.

San Francisco

CA

98765

trace([EMAIL PROTECTED]);
---

Doe

 

You don't have to hard-code the identifiers for the nodes or
attributes... they can themselves be variables:

 

var whichNode:String = "zip";
trace(employees.employee[0].address[whichNode]);

---

98765

 

var whichAttribute:String = "ssn";
trace([EMAIL PROTECTED]);
---

789-789-7890

 

A new for-each loop lets you loop over multiple nodes or attributes:

 

for each (var ssn:XML in [EMAIL PROTECTED]  )

{

trace(ssn);

}

---

123-123-1234
789-789-7890

 

Most powerful of all, E4X supports "predicate filtering" using the
syntax .(condition), which lets you pick out nodes or attributes that
meet a condition you specify using a Boolean expression. For example,
you can pick out the employee with a particular social security number
like this, and get her state:

 

var ssnToFind:String = "789-789-7890";
trace(employees.employee.(@ssn == ssnToFind)..state);
---

MA

 

Instead of using a simple conditional operator like ==, you can also
write a complicated predicate filtering function to pick out the dat

RE: [flexcoders] Explaining Flex Log In and User Role Functionali ty to Java Developers

2005-05-17 Thread Matt Chotin










Do you have a copy of the Developing Rich
Clients book?  The Integration Tier section (primarily chapters 20 and 21)
would probably help you out.   The docs talk about setting up your
J2EE server with authentication support here: http://livedocs.macromedia.com/flex/15/flex_docs_en/0760.htm.
 You can also point your developers here: http://livedocs.macromedia.com/flex/15/flex_docs_en/2247.htm
to learn about ways the RemoteObject can get access to the session information
including user roles.

 

I don’t have any explicit examples of login, I think
we have some example code in the docs but I don’t have any code right
now.  

 

As far as your apps noticing when the user’s role is
changed, it certainly won’t come automatically.  You could have your
Flex app occasionally check with a RemoteObject if the role is still valid, but
just like HTML it won’t be immediate.

 

Hope this can get you in the right direction,

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Leif Wells
Sent: Tuesday, May 17, 2005 8:10
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Explaining
Flex Log In and User Role Functionality to Java Developers



 

Here's the deal. I have a client putting together a (fairly large) Flex
application; actually the company that I work for is putting together the Flex
portion and the client and another vendor is putting together the J2EE
back-end. 

So they come to me and say "How are we handling logging in a user. Are we
using cookies?" 

What we've done in the past with Flash (sorry. I know that's a dirty word here)
is have the user log in and have the server pass back a user object that
contains (among other things) a role. If the server doesn't pass the user
object, then they get the login screen again. If the user is logged in, they
see screens/forms per what level their role is set. The security on this new
application is going to need to be a bit more strict.

My problem is this: I am NOT a full-time J2EE developer and the people who are
asking these questions are very experienced J2EE developers. Every time I
attempt to explain to them how we should handle user log in I appearently am
not using the correct words. Can someone either point me to a document that
explains how user log in would normally would be handled with Flex in a J2EE
environment? Or give it to me is easy to understand language so I can relieve
these guys' (and my) stress? Is there a best practice for handling user login
in a secure application?

Also, they threw me a curve today: "How do we handle it if a user's role
is demoted or promoted in the middle of a session? Can we immediately change
what they see on-screen? Or can we immediately have them log off?" 
Any thoughts?


Leif
http://www.leifwells.com












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












Re: [flexcoders] Announcing Flex Style Explorer

2005-05-17 Thread JesterXL
That's awesome!  Thanks for the link.

- Original Message - 
From: "Jae Hess" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 17, 2005 10:26 PM
Subject: [flexcoders] Announcing Flex Style Explorer


Not sure if you have heard the news:

Announcing Flex Style Explorer

http://www.markme.com/mc/archives/007740.cfm



 
Yahoo! Groups Links



 



 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Explaining Flex Log In and User Role Functionality to Java Developers

2005-05-17 Thread dave buhler



Hi Leif,

I had presented a similar question a few days ago regarding Flex and CF7 which runs on j2EE.

I can share with you what I know, but I am also looking to learn more about security with Remoting, myself.

You should be able to attach setCredentials to your Remote Call. I know
setCredentials is configurable with CFLogin, which compiled down to
Java on J2ee.

Searching the Macromedia site for CFLogin and setCredentials should
yield some additional information. Also, from my recollection, you will
want to check permissions on each request before passing back data.
Within Flex, you could check permissions on the result to see if
permissions have changed.

More info here: http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href=""


Also, the carbonFive project will have more information in depth for remoting and Java:

http://carbonfive.sourceforge.net/flashgatekeeper/api/com/carbonfive/flashgateway/security/package-summary.html


Dave



On 5/17/05, Leif Wells <[EMAIL PROTECTED]> wrote:



Here's the deal. I have a client putting together a (fairly large) Flex
application; actually the company that I work for is putting together
the Flex portion and the client and another vendor is putting together
the J2EE back-end. 

So they come to me and say "How are we handling logging in a user. Are we using cookies?" 

What we've done in the past with Flash (sorry. I know that's a dirty
word here) is have the user log in and have the server pass back a user
object that contains (among other things) a role. If the server doesn't
pass the user object, then they get the login screen again. If the user
is logged in, they see screens/forms per what level their role is set.
The security on this new application is going to need to be a bit more
strict.

My problem is this: I am NOT a full-time J2EE developer and the people
who are asking these questions are very experienced J2EE developers.
Every time I attempt to explain to them how we should handle user log
in I appearently am not using the correct words. Can someone either
point me to a document that explains how user log in would normally
would be handled with Flex in a J2EE environment? Or give it to me is
easy to understand language so I can relieve these guys' (and my)
stress? Is there a best practice for handling user login in a secure
application?

Also, they threw me a curve today: "How do we handle it if a user's
role is demoted or promoted in the middle of a session? Can we
immediately change what they see on-screen? Or can we immediately have
them log off?"  Any thoughts?


Leif
http://www.leifwells.com








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Explaining Flex Log In and User Role Functionality to Java Developers

2005-05-17 Thread Leif Wells



Here's the deal. I have a client putting together a (fairly large) Flex
application; actually the company that I work for is putting together
the Flex portion and the client and another vendor is putting together
the J2EE back-end. 

So they come to me and say "How are we handling logging in a user. Are we using cookies?" 

What we've done in the past with Flash (sorry. I know that's a dirty
word here) is have the user log in and have the server pass back a user
object that contains (among other things) a role. If the server doesn't
pass the user object, then they get the login screen again. If the user
is logged in, they see screens/forms per what level their role is set.
The security on this new application is going to need to be a bit more
strict.

My problem is this: I am NOT a full-time J2EE developer and the people
who are asking these questions are very experienced J2EE developers.
Every time I attempt to explain to them how we should handle user log
in I appearently am not using the correct words. Can someone either
point me to a document that explains how user log in would normally
would be handled with Flex in a J2EE environment? Or give it to me is
easy to understand language so I can relieve these guys' (and my)
stress? Is there a best practice for handling user login in a secure
application?

Also, they threw me a curve today: "How do we handle it if a user's
role is demoted or promoted in the middle of a session? Can we
immediately change what they see on-screen? Or can we immediately have
them log off?"  Any thoughts?


Leif
http://www.leifwells.com








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Announcing Flex Style Explorer

2005-05-17 Thread Jeff Tapper
very nice!

At 10:26 PM 5/17/2005, you wrote:
>Not sure if you have heard the news:
>
>Announcing Flex Style Explorer
>
>http://www.markme.com/mc/archives/007740.cfm
>
>
>
>--
>Yahoo! Groups Links
>* To visit your group on the web, go to:
>* 
> http://groups.yahoo.com/group/flexcoders/
>  
>
>*
>* To unsubscribe from this group, send an email to:
>* 
> [EMAIL PROTECTED] 
>
>*
>* Your use of Yahoo! Groups is subject to the 
> Yahoo! Terms of Service.



 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] E4X in Flex 2.0, part 1: Reading XML

2005-05-17 Thread Hans Omli
Title: Message





I don't suppose we'll be reading part 2 of this email via 
FlexCoders then.  ;-)


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Gordon 
SmithSent: Tuesday, May 17, 2005 5:15 PMTo: 
'flexcoders@yahoogroups.com'Subject: RE: [flexcoders] E4X in Flex 
2.0, part 1: Reading XML

Oops... I meant to send this to an internal group, not to flexcoders. 
Enjoy the information, but, for now, don't expect this level of detail about our 
future plans. Of course, we do want your feedback on features for the next 
release, and we'll be sharing more plans with you in the future, as we get 
closer to the next release.
 
Sorry,
Gordon

  
  -Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
  Gordon SmithSent: Tuesday, May 17, 2005 4:54 PMTo: 
  'flexcoders@yahoogroups.com'Subject: [flexcoders] E4X in Flex 2.0, 
  part 1: Reading XML
  
  
  As 
  you may have gathered, we've been spending a lot of 
  time lately leveraging the new features of the Flash Player in the new Flex 
  application model. Naturally, you'll also be able to leverage those same new 
  features, so we thought we'd start giving you a run down of what's new. Of 
  course we don't have beta software for you to play with yet, so for now, we'll 
  provide a lot of detail so you can evaluate these new features and give 
  guidance for us.
   
  XML 
  manipulation in Flex 2.0 is going to get a lot more powerful, as well as 
  faster. By the time that Flex 2.0 ships, the Flash Player will support 
  E4X ("ECMAScript for XML"), a set of programming language extensions adding 
  native XML support to ECMAScript. The player team is busy implementing 
  Standard ECMA-357 as described in http://www.ecma-international.org/publications/standards/Ecma-357.htm.
  
   
  
  Here's how the spec describes 
  what this feature offers: "E4X adds native XML datatypes to the 
  ECMAScript language, extends the semantics of familiar ECMAScript operators 
  for manipulating XML objects and adds a small set of new operators for common 
  XML operations, such as searching and filtering. It also adds support for XML 
  literals, namespaces, qualified names and other mechanisms to facilitate XML 
  processing."
  
   
  
  Lets take a look at a few examples 
  of how you can read XML data using E4X.
  
   
  
  As in the current player, you'll 
  be able to create variables of type XML by parsing a String. But XML literals 
  will now be supported as well:
  
   
  
      var 
  employees:XML =    
      
      
      
      
  11 Main 
  St.    
  San 
  Francisco    
  CA    
  98765    
      
      
      
      
      
  99 Broad 
  St.    
  Newton    
  MA    
  01234    
      
      
  ;
  
   
  
  Instead of using DOM-style APIs 
  like firstChild, nextSibling, etc., with E4X you just "dot down" to grab the 
  node you want. Multiple nodes are indexable with [n], similar to the 
  elements of an Array:
  
   
  
      
  trace(employees.employee[0].address.zip);
  
      
  ---
  
      
  98765
  
   
  
  To grab an attribute, you 
  just use the .@ operator:
  
   
  
      
  trace([EMAIL PROTECTED]);    
  ---
  
  
      
  789-789-7890
  
   
  
  If you don't pick out a particular 
  node, you get all of them, as an indexable list:
  
   
  
      
  trace(employees.employee.name);
  
      
  ---
  
      
  
      
  
   
  
  (And note that nodes even 
  toString() themselves into formatted XML!)
  
   
  
  
  A handy double-dot operator lets 
  you omit the "path" down into the XML _expression_, so you could shorten the 
  previous three examples to
  
   
  
      
  trace(employees..zip[0]);
  
  
      
  trace([EMAIL PROTECTED]]);
  
  
      
  trace(employees..name);
  
   
  You can use a * wildcard 
  to get a list of multiple nodes or attributes with various names, and the 
  resulting list is indexable:
  
   
  
      
  trace(employees.employee[0].address.*);
  
      
  ---
  
      
  11 Main St.
  
      
  San Francisco
  
      
  CA
  
      
  98765
  
      
  trace([EMAIL PROTECTED]);    
  ---
  
      
  Doe
  
   
  
  You don't have to hard-code the 
  identifiers for the nodes or attributes... they can themselves be 
  variables:
  
  
  
   
  
      var 
  whichNode:String = "zip";    
  trace(employees.employee[0].address[whichNode]);
  
      
  ---
  
      
  98765
  
   
  
  
      var 
  whichAttribute:String = "ssn";    
  trace([EMAIL PROTECTED]);    
  ---
  
      
  789-789-7890
  
   
  
  A new for-each loop lets you 
  loop over multiple nodes or attributes:
  
   
  
      for each (var 
  ssn:XML in [EMAIL PROTECTED])
  
      
  {
  
      
  trace(ssn);
  
      
  }
  
      

[flexcoders] Available Backend Frameworks

2005-05-17 Thread dave buhler



What are the backend frameworks that are available?


TartanHibernateColdSpring


Am I missing any?








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Announcing Flex Style Explorer

2005-05-17 Thread Jae Hess
Not sure if you have heard the news:

Announcing Flex Style Explorer

http://www.markme.com/mc/archives/007740.cfm



 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] RemoteObject source="" bug?

2005-05-17 Thread Matt Chotin










Yeah, RemoteObject requires the classname
to be set at compile-time in the tag, no binding allowed.  That’s a bug
that it didn’t raise a compiler error.  In 2.0 we’re trying to
allow a lot more runtime tweaking of all of our services including RemoteObject
to allow things like this.

 

Matt

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott
 Barnes
Sent: Monday, May 16, 2005 10:50
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RemoteObject
source="" bug?



 

Indy @ Straker noticed today that you can't use
source="{binding.to.a.obj.value}" in
mx:RemoteObject?

In that it appears it ignores the fact that the
curly braces are there
and simply takes it as string value ..

ie:
call "{binding.to.a.obj.value}.doMethod()" 
is the invocation attempt via Debug.

I did find a a work-around in that you could do:

function initRemoteObjectService() {

// tricks the flex compiler.
serviceID['__serviceName'] =
binding.to.a.obj.value;

}

but seems dodge ? is it a bug or was that meant to
be the case in
terms of assigning dynamic values to the source
attribute.


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com
(Coming Soon)












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












Re: [flexcoders] Re: DataGrid.labelFunction

2005-05-17 Thread JesterXL
Thank you very much; after testing it works like a charm.

However, I must take this opportunity to urge Macromedia to release the Flex 
component classes for Flex 2.0.  I could have spent 2 hours effectively 
debugging my problem, perhaps less, rather than flailing and flying blind.

- Original Message - 
From: "alex_harui" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 17, 2005 9:38 PM
Subject: [flexcoders] Re: DataGrid.labelFunction


The DataGrid has a labelFunction property that it inherits from its
base classes, but it does not use it.  Instead each column has a
labelFunction property that you want to set.



 
Yahoo! Groups Links

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

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

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




[flexcoders] Re: combobox selectedIndex

2005-05-17 Thread alex_harui
The code snippet worked fine for me if the intervals property is an 
array of strings.  Is it possible you are initializing intervals from a 
web service call?  If so, you have a timing problem in that the 
selected index was set long before the data arrived (actually it 
thought it had zero rows of data).  In such a case you should reset the 
selected index when the data arrives.





 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Displaying dynamic HTML file in a Flex Window

2005-05-17 Thread Dimitrios Gianninas





Hi,
 
There is no current component 
that allows you to display HTML from a particular URL (like an IFRAME in HTML). 

 
You will have design the site 
in such a way that hopefully once the user arrives the Flex UI, he/she uses 
the UI to do some work and doesn't go back  'n' forth constantly and thus 
have the Flex UI re-load every time.
 
Dimitrios "Jimmy" Gianninas
RIA Developer
Optimal Payments Inc.
 


From: Brett Palmer 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, May 17, 2005 6:39 PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
Displaying dynamic HTML file in a Flex Window
We have a Flex application that needs to integrate with a third 
partyweb (JSP) application.  We would prefer displaying the HTML pages 
fromthe third party application in a child Flex windows (like a 
dialogbox) to make the applications appear as one.  Is there a 
Flexcomponent that can display an HTML page from another web 
application?The applications reside on the same server so this should 
not breakany browser security policies.Thanks in advance for 
your 
help.Brett

AVIS IMPORTANTWARNING Les informations contenues dans le present document et ses pieces jointes sont strictement confidentielles et reservees a l'usage de la (des) personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, distribution, copie, ou autre utilisation de ces informations est strictement prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur et detruire ce document sans en faire de copie sous quelque forme. The information contained in this document and attachments is confidential and intended only for the person(s) named above. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution, or any other use of the information is strictly prohibited. If you have received this document by mistake, please notify the sender immediately and destroy this document and attachments without making any copy of any kind.









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Re: DataGrid.labelFunction

2005-05-17 Thread alex_harui
The DataGrid has a labelFunction property that it inherits from its 
base classes, but it does not use it.  Instead each column has a 
labelFunction property that you want to set.




 
Yahoo! Groups Links

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

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

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




[flexcoders] Re: Custom Component Help

2005-05-17 Thread alex_harui
I could be wrong, but I think you are trying to specify data for a 
component in xml.  The only way I know to do this is to specify a 
property of type XML then assign it and pick it apart.  Here's a mini-
example:

Test.MXML









alexButton.as

class alexButton extends Button
{
function init()
{
super.init();
label = "foo";
}

var __data:XML;

function get xmlData():XML
{
return __data;
}

function set xmlData(data:XML)
{
__data = data;
invalidateProperties();
}

function commitProperties()
{
if (__data)
{
trace("setting label for " + this + " " + 
__data.firstChild.nodeName);
label = __data.firstChild.attributes.name;
}
}

}

In theory you could drop your entire XML structure where my  is and then write more code in commitProperties to 
initialize the component.




 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Hibernate 3

2005-05-17 Thread Dimitrios Gianninas





Haven't done it yet... been 
using Hibernate 2.1.8 for now in the integration layer with Flex as the 
presentation layer. It shouldn't be any different. What problem are you 
experiencing?
 
Dimitrios "Jimmy" Gianninas
RIA Developer
Optimal Payments Inc.
 


From: Rich Tretola [mailto:[EMAIL PROTECTED] 
Sent: Monday, May 16, 2005 12:19 PMTo: 
flexcoders@yahoogroups.comSubject: [flexcoders] Hibernate 
3
Has anyone been able to get data using Hibernate 3 
?Rich







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] Cairngorm 0.99

2005-05-17 Thread Dimitrios Gianninas





Hi,
 
You must add the appropriate 
entry for the cairngorm-manifest.xml in the flex-config.xml (portion in red 
below):
 
 http://www.macromedia.com/2003/mxml">    
/WEB-INF/flex/mxml-manifest.xml
 http://www.iterationtwo.com/cairngorm>    
/WEB-INF/flex/cairngorm-manifest.xml
 
This probably explains the 
error meesage.
 
Dimitrios "Jimmy" Gianninas
RIA Developer
Optimal Payments Inc.
 


From: Sean McKibben 
[mailto:[EMAIL PROTECTED] Sent: Tuesday, May 17, 2005 6:25 
PMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] 
Cairngorm 0.99
I'm having some trouble getting my Services.mxml to work with .99.

I keep getting errors like:
Error /com/cadpo/shared/business/Services.mxml:4
Namespace http://www.iterationtwo.com/cairngorm 
has not been associated with component manifest.


Error /com/cadpo/shared/business/Services.mxml:4
No type for element "http://www.iterationtwo.com/cairngorm:ServiceLocator"


Error /com/cadpo/shared/business/Services.mxml:4
Unexpected root element "http://www.iterationtwo.com/cairngorm:ServiceLocator" 
does not extend MovieClip

I put the cairngorm-manifest.xml into the WEB-INF/flex 
directory, but it still doesn't want to eat it.
Here is the first part of my Services.mxml:

http://www.macromedia.com/2003/mxml" 

   xmlns:cairngorm="http://www.iterationtwo.com/cairngorm">
  
...

Is the xmlns:cairngorm="http://www.iterationtwo.com/cairngorm" 
attribute correct? I copied it out of one of the sample apps included in 
.99.

Any ideas?

Thanks,
Sean McKibben







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] E4X in Flex 2.0, part 1: Reading XML

2005-05-17 Thread Gordon Smith
OK, OK. Next time I'll try to leak something that will get me fired.
Somebody on the list can give me a job as a Flex developer.

- Gordon


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of James Ward
Sent: Tuesday, May 17, 2005 5:24 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] E4X in Flex 2.0, part 1: Reading XML


ROFL!  Come on Gordon!  If you are going to accidentally leak info, can
you make it a bit juicier?  ;)  Maybe something about some super-secret
project or the Adobe buyout or Flex 2 release dates.  This is good info,
but not *that* exciting!

Still laughing...  :)

-James


On Tue, 2005-05-17 at 17:15 -0700, Gordon Smith wrote:
> Oops... I meant to send this to an internal group, not to flexcoders.
> Enjoy the information, but, for now, don't expect this level of detail
> about our future plans. Of course, we do want your feedback on
> features for the next release, and we'll be sharing more plans with
> you in the future, as we get closer to the next release.
>  
> Sorry,
> Gordon
> -Original Message-
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith
> Sent: Tuesday, May 17, 2005 4:54 PM
> To: 'flexcoders@yahoogroups.com'
> Subject: [flexcoders] E4X in Flex 2.0, part 1: Reading XML
> 
> 
> As you may have gathered, we've been spending a lot of time
> lately leveraging the new features of the Flash Player in the
> new Flex application model. Naturally, you'll also be able to
> leverage those same new features, so we thought we'd start
> giving you a run down of what's new. Of course we don't have
> beta software for you to play with yet, so for now, we'll
> provide a lot of detail so you can evaluate these new features
> and give guidance for us.
> 
>  
> 
> XML manipulation in Flex 2.0 is going to get a lot more
> powerful, as well as faster. By the time that Flex 2.0 ships,
> the Flash Player will support E4X ("ECMAScript for XML"), a
> set of programming language extensions adding native XML
> support to ECMAScript. The player team is busy implementing
> Standard ECMA-357 as described in
>
http://www.ecma-international.org/publications/standards/Ecma-357.htm.
> 
> 
>  
> 
> 
> Here's how the spec describes what this feature offers: "E4X
> adds native XML datatypes to the ECMAScript language, extends
> the semantics of familiar ECMAScript operators for
> manipulating XML objects and adds a small set of new operators
> for common XML operations, such as searching and filtering. It
> also adds support for XML literals, namespaces, qualified
> names and other mechanisms to facilitate XML processing."
> 
> 
>  
> 
> 
> Lets take a look at a few examples of how you can read XML
> data using E4X.
> 
> 
>  
> 
> 
> As in the current player, you'll be able to create variables
> of type XML by parsing a String. But XML literals will now be
> supported as well:
> 
> 
>  
> 
> 
> var employees:XML =
> 
> 
> 
> 
> 11 Main St.
> San Francisco
> CA
> 98765
> 
> 
> 
> 
> 
> 99 Broad St.
> Newton
> MA
> 01234
> 
> 
> ;
> 
> 
>  
> 
> 
> Instead of using DOM-style APIs like firstChild, nextSibling,
> etc., with E4X you just "dot down" to grab the node you
> want. Multiple nodes are indexable with [n], similar to the
> elements of an Array:
> 
> 
>  
> 
> 
> trace(employees.employee[0].address.zip);
> 
> 
> ---
> 
> 
> 98765
> 
> 
>  
> 
> 
> To grab an attribute, you just use the .@ operator:
> 
> 
>  
> 
> 
> trace([EMAIL PROTECTED]);
> ---
> 
> 
> 789-789-7890
> 
> 
>  
> 
> 
> If you don't pick out a particular node, you get all of them,
> as an indexable list:
> 
> 
>  
>  

RE: [flexcoders] E4X in Flex 2.0, part 1: Reading XML

2005-05-17 Thread James Ward
ROFL!  Come on Gordon!  If you are going to accidentally leak info, can
you make it a bit juicier?  ;)  Maybe something about some super-secret
project or the Adobe buyout or Flex 2 release dates.  This is good info,
but not *that* exciting!

Still laughing...  :)

-James


On Tue, 2005-05-17 at 17:15 -0700, Gordon Smith wrote:
> Oops... I meant to send this to an internal group, not to flexcoders.
> Enjoy the information, but, for now, don't expect this level of detail
> about our future plans. Of course, we do want your feedback on
> features for the next release, and we'll be sharing more plans with
> you in the future, as we get closer to the next release.
>  
> Sorry,
> Gordon
> -Original Message-
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith
> Sent: Tuesday, May 17, 2005 4:54 PM
> To: 'flexcoders@yahoogroups.com'
> Subject: [flexcoders] E4X in Flex 2.0, part 1: Reading XML
> 
> 
> As you may have gathered, we've been spending a lot of time
> lately leveraging the new features of the Flash Player in the
> new Flex application model. Naturally, you'll also be able to
> leverage those same new features, so we thought we'd start
> giving you a run down of what's new. Of course we don't have
> beta software for you to play with yet, so for now, we'll
> provide a lot of detail so you can evaluate these new features
> and give guidance for us.
> 
>  
> 
> XML manipulation in Flex 2.0 is going to get a lot more
> powerful, as well as faster. By the time that Flex 2.0 ships,
> the Flash Player will support E4X ("ECMAScript for XML"), a
> set of programming language extensions adding native XML
> support to ECMAScript. The player team is busy implementing
> Standard ECMA-357 as described in
> http://www.ecma-international.org/publications/standards/Ecma-357.htm.
> 
> 
>  
> 
> 
> Here's how the spec describes what this feature offers: "E4X
> adds native XML datatypes to the ECMAScript language, extends
> the semantics of familiar ECMAScript operators for
> manipulating XML objects and adds a small set of new operators
> for common XML operations, such as searching and filtering. It
> also adds support for XML literals, namespaces, qualified
> names and other mechanisms to facilitate XML processing."
> 
> 
>  
> 
> 
> Lets take a look at a few examples of how you can read XML
> data using E4X.
> 
> 
>  
> 
> 
> As in the current player, you'll be able to create variables
> of type XML by parsing a String. But XML literals will now be
> supported as well:
> 
> 
>  
> 
> 
> var employees:XML =
> 
> 
> 
> 
> 11 Main St.
> San Francisco
> CA
> 98765
> 
> 
> 
> 
> 
> 99 Broad St.
> Newton
> MA
> 01234
> 
> 
> ;
> 
> 
>  
> 
> 
> Instead of using DOM-style APIs like firstChild, nextSibling,
> etc., with E4X you just "dot down" to grab the node you
> want. Multiple nodes are indexable with [n], similar to the
> elements of an Array:
> 
> 
>  
> 
> 
> trace(employees.employee[0].address.zip);
> 
> 
> ---
> 
> 
> 98765
> 
> 
>  
> 
> 
> To grab an attribute, you just use the .@ operator:
> 
> 
>  
> 
> 
> trace([EMAIL PROTECTED]);
> ---
> 
> 
> 789-789-7890
> 
> 
>  
> 
> 
> If you don't pick out a particular node, you get all of them,
> as an indexable list:
> 
> 
>  
> 
> 
> trace(employees.employee.name);
> 
> 
> ---
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> (And note that nodes even toString() themselves into formatted
> XML!)
> 
> 
>  
> 
> 

RE: [flexcoders] E4X in Flex 2.0, part 1: Reading XML

2005-05-17 Thread Gordon Smith
Title: Message





Oops... I meant to send this to an internal group, not to flexcoders. 
Enjoy the information, but, for now, don't expect this level of detail about our 
future plans. Of course, we do want your feedback on features for the next 
release, and we'll be sharing more plans with you in the future, as we get 
closer to the next release.
 
Sorry,
Gordon

  
  -Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
  Gordon SmithSent: Tuesday, May 17, 2005 4:54 PMTo: 
  'flexcoders@yahoogroups.com'Subject: [flexcoders] E4X in Flex 2.0, 
  part 1: Reading XML
  
  
  As 
  you may have gathered, we've been spending a lot of 
  time lately leveraging the new features of the Flash Player in the new Flex 
  application model. Naturally, you'll also be able to leverage those same new 
  features, so we thought we'd start giving you a run down of what's new. Of 
  course we don't have beta software for you to play with yet, so for now, we'll 
  provide a lot of detail so you can evaluate these new features and give 
  guidance for us.
   
  XML 
  manipulation in Flex 2.0 is going to get a lot more powerful, as well as 
  faster. By the time that Flex 2.0 ships, the Flash Player will support 
  E4X ("ECMAScript for XML"), a set of programming language extensions adding 
  native XML support to ECMAScript. The player team is busy implementing 
  Standard ECMA-357 as described in http://www.ecma-international.org/publications/standards/Ecma-357.htm.
  
   
  
  Here's how the spec describes 
  what this feature offers: "E4X adds native XML datatypes to the 
  ECMAScript language, extends the semantics of familiar ECMAScript operators 
  for manipulating XML objects and adds a small set of new operators for common 
  XML operations, such as searching and filtering. It also adds support for XML 
  literals, namespaces, qualified names and other mechanisms to facilitate XML 
  processing."
  
   
  
  Lets take a look at a few examples 
  of how you can read XML data using E4X.
  
   
  
  As in the current player, you'll 
  be able to create variables of type XML by parsing a String. But XML literals 
  will now be supported as well:
  
   
  
      var 
  employees:XML =    
      
      
      
      
  11 Main 
  St.    
  San 
  Francisco    
  CA    
  98765    
      
      
      
      
      
  99 Broad 
  St.    
  Newton    
  MA    
  01234    
      
      
  ;
  
   
  
  Instead of using DOM-style APIs 
  like firstChild, nextSibling, etc., with E4X you just "dot down" to grab the 
  node you want. Multiple nodes are indexable with [n], similar to the 
  elements of an Array:
  
   
  
      
  trace(employees.employee[0].address.zip);
  
      
  ---
  
      
  98765
  
   
  
  To grab an attribute, you 
  just use the .@ operator:
  
   
  
      
  trace([EMAIL PROTECTED]);    
  ---
  
  
      
  789-789-7890
  
   
  
  If you don't pick out a particular 
  node, you get all of them, as an indexable list:
  
   
  
      
  trace(employees.employee.name);
  
      
  ---
  
      
  
      
  
   
  
  (And note that nodes even 
  toString() themselves into formatted XML!)
  
   
  
  
  A handy double-dot operator lets 
  you omit the "path" down into the XML _expression_, so you could shorten the 
  previous three examples to
  
   
  
      
  trace(employees..zip[0]);
  
  
      
  trace([EMAIL PROTECTED]]);
  
  
      
  trace(employees..name);
  
   
  You can use a * wildcard 
  to get a list of multiple nodes or attributes with various names, and the 
  resulting list is indexable:
  
   
  
      
  trace(employees.employee[0].address.*);
  
      
  ---
  
      
  11 Main St.
  
      
  San Francisco
  
      
  CA
  
      
  98765
  
      
  trace([EMAIL PROTECTED]);    
  ---
  
      
  Doe
  
   
  
  You don't have to hard-code the 
  identifiers for the nodes or attributes... they can themselves be 
  variables:
  
  
  
   
  
      var 
  whichNode:String = "zip";    
  trace(employees.employee[0].address[whichNode]);
  
      
  ---
  
      
  98765
  
   
  
  
      var 
  whichAttribute:String = "ssn";    
  trace([EMAIL PROTECTED]);    
  ---
  
      
  789-789-7890
  
   
  
  A new for-each loop lets you 
  loop over multiple nodes or attributes:
  
   
  
      for each (var 
  ssn:XML in [EMAIL PROTECTED])
  
      
  {
  
      
  trace(ssn);
  
      
  }
  
      
  ---
  
      
  123-123-1234    789-789-7890
  
   
  
  Most powerful of all, E4X supports 
  "predicate filtering" using the syntax .(condition), which lets you pick 
  out nodes or attributes that meet a condition you specify using a Boolean 
  _expression_. For example, you can pick out the emp

Re: [flexcoders] E4X in Flex 2.0, part 1: Reading XML

2005-05-17 Thread JesterXL
Title: Message





The ability to choose sub-nodes within an XML 
document vs. just the XML document itself for a  is great since 
sometimes I'd like to use the contents of the same document in many places 
through Flex as a data provider.  The same way CSS styles help consildate 
my styles, XML helps consolidate my settings.
 
So, if something like:
 

 
  
  
volume="50"
  pan="0" 
/>

 
dataProvider={myXMLDocument.soundsettings}, whether 
that XMLNode has children, just a bunch of attributes, or is just a single node, 
that'd be great, and really helpful.
 
...of course, the whole:
 
[EMAIL PROTECTED] is just pathetically 
simple I almost feel guilty asking.
 
- Original Message - 
From: Gordon Smith 

To: 'flexcoders@yahoogroups.com' 

Sent: Tuesday, May 17, 2005 7:53 PM
Subject: [flexcoders] E4X in Flex 2.0, part 1: Reading 
XML



As 
you may have gathered, we've been spending a lot of 
time lately leveraging the new features of the Flash Player in the new Flex 
application model. Naturally, you'll also be able to leverage those same new 
features, so we thought we'd start giving you a run down of what's new. Of 
course we don't have beta software for you to play with yet, so for now, we'll 
provide a lot of detail so you can evaluate these new features and give guidance 
for us.
 
XML 
manipulation in Flex 2.0 is going to get a lot more powerful, as well as 
faster. By the time that Flex 2.0 ships, the Flash Player will support E4X 
("ECMAScript for XML"), a set of programming language extensions adding native 
XML support to ECMAScript. The player team is busy implementing Standard ECMA-357 as described in http://www.ecma-international.org/publications/standards/Ecma-357.htm.

 

Here's how the spec describes 
what this feature offers: "E4X adds native XML datatypes to the 
ECMAScript language, extends the semantics of familiar ECMAScript operators for 
manipulating XML objects and adds a small set of new operators for common XML 
operations, such as searching and filtering. It also adds support for XML 
literals, namespaces, qualified names and other mechanisms to facilitate XML 
processing."

 

Lets take a look at a few examples 
of how you can read XML data using E4X.

 

As in the current player, you'll be 
able to create variables of type XML by parsing a String. But XML literals will 
now be supported as well:

 

    var 
employees:XML =    
    
    
    
    
11 Main 
St.    
San 
Francisco    
CA    
98765    
    
    
    
    
    
99 Broad 
St.    
Newton    
MA    
01234    
    
    
;

 

Instead of using DOM-style APIs like 
firstChild, nextSibling, etc., with E4X you just "dot down" to grab the node you 
want. Multiple nodes are indexable with [n], similar to the elements of an 
Array:

 

    
trace(employees.employee[0].address.zip);

    
---

    
98765

 

To grab an attribute, you just 
use the .@ operator:

 

    
trace([EMAIL PROTECTED]);    
---


    
789-789-7890

 

If you don't pick out a particular 
node, you get all of them, as an indexable list:

 

    
trace(employees.employee.name);

    
---

    

    

 

(And note that nodes even 
toString() themselves into formatted XML!)

 


A handy double-dot operator lets you 
omit the "path" down into the XML _expression_, so you could shorten the previous 
three examples to

 

    
trace(employees..zip[0]);


    
trace([EMAIL PROTECTED]]);


    
trace(employees..name);

 
You can use a * wildcard to get 
a list of multiple nodes or attributes with various names, and the resulting 
list is indexable:

 

    
trace(employees.employee[0].address.*);

    
---

    
11 Main St.

    San 
Francisco

    
CA

    
98765

    
trace([EMAIL PROTECTED]);    
---

    
Doe

 

You don't have to hard-code the 
identifiers for the nodes or attributes... they can themselves be 
variables:



 

    var 
whichNode:String = "zip";    
trace(employees.employee[0].address[whichNode]);

    
---

    
98765

 


    var 
whichAttribute:String = "ssn";    
trace([EMAIL PROTECTED]);    
---

    
789-789-7890

 

A new for-each loop lets you 
loop over multiple nodes or attributes:

 

    for each (var 
ssn:XML in [EMAIL PROTECTED])

    
{

    
trace(ssn);

    
}

    
---

    
123-123-1234    789-789-7890

 

Most powerful of all, E4X supports 
"predicate filtering" using the syntax .(condition), which lets you pick 
out nodes or attributes that meet a condition you specify using a Boolean 
_expression_. For example, you can pick out the employee with a particular social 
security number like this, and get her state:

 

    var 
ssnToFind:String = "789-789-7890";    
trace(employees.employee.(@ssn == ssnToFind)..state);    
---

    
MA

 

Instead of using a simple 

RE: [flexcoders] E4X in Flex 2.0, part 1: Reading XML

2005-05-17 Thread Jeff Beeman
Title: Message










This is very exciting!  I’m
especially excited about the double-dot and wildcard operators.  Thanks for
this update, as it’ll help with planning for future projects.  Keep ‘em
coming!

 



 

/**
* Jeff Beeman
**/











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith
Sent: Tuesday, May 17, 2005 4:54
PM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] E4X in Flex
2.0, part 1: Reading XML



 



As you may have gathered, we've been spending a lot of time lately
leveraging the new features of the Flash Player in the new Flex application
model. Naturally, you'll also be able to leverage those same new features, so
we thought we'd start giving you a run down of what's new. Of course we don't
have beta software for you to play with yet, so for now, we'll provide a lot of
detail so you can evaluate these new features and give guidance for us.

 

XML manipulation in Flex 2.0 is going to get a lot more
powerful, as well as faster. By the time that Flex 2.0 ships, the Flash
Player will support E4X ("ECMAScript for XML"), a set of programming
language extensions adding native XML support to ECMAScript. The player
team is busy implementing Standard ECMA-357 as
described in http://www.ecma-international.org/publications/standards/Ecma-357.htm.





 





Here's how the spec describes what this feature
offers: "E4X adds native XML datatypes to the ECMAScript language,
extends the semantics of familiar ECMAScript operators for manipulating XML
objects and adds a small set of new operators for common XML operations, such
as searching and filtering. It also adds support for XML literals, namespaces,
qualified names and other mechanisms to facilitate XML processing."





 





Lets take a look at a few examples of how you can read XML
data using E4X.





 





As in the current player, you'll be able to create variables
of type XML by parsing a String. But XML literals will now be supported as
well:





 





    var employees:XML =
    
    
   

   

   
11 Main St.
   
San Francisco
   
CA
   
98765
   

   

    
   

   

   
99 Broad St.
   
Newton
   
MA
   
01234
   

   

    ;





 





Instead of using DOM-style APIs like firstChild,
nextSibling, etc., with E4X you just "dot down" to grab the node you
want. Multiple nodes are indexable with [n], similar to the elements of an
Array:





 





   
trace(employees.employee[0].address.zip);





    ---





    98765





 





To grab an attribute, you just use the .@ operator:





 





    trace([EMAIL PROTECTED]);
    ---







    789-789-7890





 







If you don't pick out a particular node, you get all of
them, as an indexable list:





 





    trace(employees.employee.name);





    ---





    





    





 





(And note that nodes even toString() themselves into
formatted XML!)





 







A handy double-dot operator lets you omit the
"path" down into the XML _expression_, so you could shorten the
previous three examples to





 





    trace(employees..zip[0]);







    trace([EMAIL PROTECTED]]);







    trace(employees..name);





 



You can use a * wildcard to get a list of multiple
nodes or attributes with various names, and the resulting list is indexable:









 





    trace(employees.employee[0].address.*);





    ---





    11 Main St.





    San Francisco





    CA





    98765





   
trace([EMAIL PROTECTED]);
    ---





    Doe





 





You don't have to hard-code the identifiers for the nodes or
attributes... they can themselves be variables:









 





    var whichNode:String = "zip";
    trace(employees.employee[0].address[whichNode]);



    ---





    98765





 











    var whichAttribute:String =
"ssn";
    trace([EMAIL PROTECTED]);
    ---





    789-789-7890





 





A new for-each loop lets you loop over multiple nodes
or attributes:





 





    for each (var ssn:XML in [EMAIL PROTECTED])





    {





    trace(ssn);





    }





    ---









    123-123-1234
    789-789-7890





 





Most powerful of all, E4X supports "predicate
filtering" using the syntax .(condition), which lets you pick out
nodes or attributes that meet a condition you specify using a Boolean
_expression_. For example, you can pick out the employee with a particular social
security number like this, and get her state:





 





    var ssnToFind:String =
"789-789-7890";
    trace(employees.employee.(@ssn == ssnToFind)..state);
    ---





    MA





 





Instead of using a simple conditional operator like ==, you
can also write a complicated predicate filtering fun

[flexcoders] E4X in Flex 2.0, part 1: Reading XML

2005-05-17 Thread Gordon Smith
Title: Message







As 
you may have gathered, we've been spending a lot of 
time lately leveraging the new features of the Flash Player in the new Flex 
application model. Naturally, you'll also be able to leverage those same new 
features, so we thought we'd start giving you a run down of what's new. Of 
course we don't have beta software for you to play with yet, so for now, we'll 
provide a lot of detail so you can evaluate these new features and give guidance 
for us.
 
XML 
manipulation in Flex 2.0 is going to get a lot more powerful, as well as 
faster. By the time that Flex 2.0 ships, the Flash Player will support E4X 
("ECMAScript for XML"), a set of programming language extensions adding native 
XML support to ECMAScript. The player team is busy implementing Standard ECMA-357 as described in http://www.ecma-international.org/publications/standards/Ecma-357.htm.

 

Here's how the spec describes 
what this feature offers: "E4X adds native XML datatypes to the 
ECMAScript language, extends the semantics of familiar ECMAScript operators for 
manipulating XML objects and adds a small set of new operators for common XML 
operations, such as searching and filtering. It also adds support for XML 
literals, namespaces, qualified names and other mechanisms to facilitate XML 
processing."

 

Lets take a look at a few examples 
of how you can read XML data using E4X.

 

As in the current player, you'll be 
able to create variables of type XML by parsing a String. But XML literals will 
now be supported as well:

 

    var 
employees:XML =    
    
    
    
    
11 Main 
St.    
San 
Francisco    
CA    
98765    
    
    
    
    
    
99 Broad 
St.    
Newton    
MA    
01234    
    
    
;

 

Instead of using DOM-style APIs like 
firstChild, nextSibling, etc., with E4X you just "dot down" to grab the node you 
want. Multiple nodes are indexable with [n], similar to the elements of an 
Array:

 

    
trace(employees.employee[0].address.zip);

    
---

    
98765

 

To grab an attribute, you just 
use the .@ operator:

 

    
trace([EMAIL PROTECTED]);    
---


    
789-789-7890

 

If you don't pick out a particular 
node, you get all of them, as an indexable list:

 

    
trace(employees.employee.name);

    
---

    

    

 

(And note that nodes even 
toString() themselves into formatted XML!)

 


A handy double-dot operator lets you 
omit the "path" down into the XML _expression_, so you could shorten the previous 
three examples to

 

    
trace(employees..zip[0]);


    
trace([EMAIL PROTECTED]]);


    
trace(employees..name);

 
You can use a * wildcard to get 
a list of multiple nodes or attributes with various names, and the resulting 
list is indexable:

 

    
trace(employees.employee[0].address.*);

    
---

    
11 Main St.

    San 
Francisco

    
CA

    
98765

    
trace([EMAIL PROTECTED]);    
---

    
Doe

 

You don't have to hard-code the 
identifiers for the nodes or attributes... they can themselves be 
variables:



 

    var 
whichNode:String = "zip";    
trace(employees.employee[0].address[whichNode]);

    
---

    
98765

 


    var 
whichAttribute:String = "ssn";    
trace([EMAIL PROTECTED]);    
---

    
789-789-7890

 

A new for-each loop lets you 
loop over multiple nodes or attributes:

 

    for each (var 
ssn:XML in [EMAIL PROTECTED])

    
{

    
trace(ssn);

    
}

    
---

    
123-123-1234    789-789-7890

 

Most powerful of all, E4X supports 
"predicate filtering" using the syntax .(condition), which lets you pick 
out nodes or attributes that meet a condition you specify using a Boolean 
_expression_. For example, you can pick out the employee with a particular social 
security number like this, and get her state:

 

    var 
ssnToFind:String = "789-789-7890";    
trace(employees.employee.(@ssn == ssnToFind)..state);    
---

    
MA

 

Instead of using a simple 
conditional operator like ==, you can also write a complicated predicate 
filtering function to pick out the data you need.

 

By the way, 
although none of my examples use XML 
namespaces, E4X has complete support for them.

 

Compared with the current XML 
support in the Flash Player, E4X allows you to write less code and execute 
it faster because more processing can be done at the native speed of 
C++.

 

Since E4X is so powerful, we're 
working to make Flex 2.0 play nicely with it. Components like List, 
ComboBox, and DataGrid will be able to accept E4X expressions like 
employees..name as a dataProvider. The  tag will be able to 
declare an E4X-style XML object in MXML. WebService and HTTPService will be able 
to deliver E4X-style XML objects across the wire, and they'll use the speed of 
E4X to do their own work (such as c

Re: [flexcoders] XML vs Model?

2005-05-17 Thread Scott Barnes
Thanks All! :)

I think XML is the best buy for my situation but will keep the above
opinions in the back of the mind for future use.

On 5/18/05, Indy Nagpal <[EMAIL PROTECTED]> wrote:
> Performance-wise I find that both to be equivalent. But 
> provides a much easier way to access nodes of an xml document (and
> most of the times, the easier, the better!). But I agree with Matt's
> observation that  serves a better dataProvider for the Tree
> control.
> 
> Indy
> 
> On 5/18/05, Tracy Spratt <[EMAIL PROTECTED]> wrote:
> > One of my issues with Model is I had trouble determining how the xml was
> > going to be deserialized into the object.  What happens to attributes?
> > What happens to child nodes and text nodes?
> >
> > Since I was comfortable with xml I mostly stuck with that.  I haven't
> > even needed the available Xpath library yet.  And I hear that improved
> > XML support is on the way.
> > Tracy
> >
> > -Original Message-
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> > Behalf Of Abdul Qabiz
> > Sent: Tuesday, May 17, 2005 6:08 AM
> > To: flexcoders@yahoogroups.com
> > Subject: RE: [flexcoders] XML vs Model?
> >
> > They are similar things IMO. If you specify a source file for XML or
> > Model
> > tag, source (xml)file is compiled into swf. So no loading on runtime but
> > a
> > large initial swf size. P
> >
> > I think, Model should be good at performance because it is simple Object
> > not
> > a XMLNode.
> >
> > Let's see, what other people say...
> >
> > -abdul
> >
> > -Original Message-
> > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> > Behalf Of Scott Barnes
> > Sent: Tuesday, May 17, 2005 12:03 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] XML vs Model?
> >
> > I've got a external source that pulls in XML file (config).
> >
> > Now, I'm having my own internal debate as to which of the two is
> > betterere?
> >
> > I've noticed no real signficant performance gains (via profiler) with
> > using either, the only thing it kind of brings to the table is that
> > you can access a node XYZ levels deep by using property chains
> > (parent.child.infant.siblings).
> >
> > Thats fine, but this will be parsed once-off, and i've found that i've
> > i go the XML route (ie writing my own specific parser, it tends to be
> > less work.
> >
> > (in that i've found that you have nodes in your XML that are using the
> > same name, but can be either 1 or more, you have to test to see if the
> > node in question is an array, otherwise its a literal object and treat
> > it as such - when using model vs childNodes approach via XML (which is
> > always array).
> >
> > What's folks here input on pro's / con's of XML vs Model?
> > --
> > Regards,
> > Scott Barnes
> > http://www.mossyblog.com
> > http://www.flexcoder.com
> >
> > Yahoo! Groups Links
> >
> > Yahoo! Groups Links
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

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

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

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




[flexcoders] Displaying dynamic HTML file in a Flex Window

2005-05-17 Thread Brett Palmer
We have a Flex application that needs to integrate with a third party
web (JSP) application.  We would prefer displaying the HTML pages from
the third party application in a child Flex windows (like a dialog
box) to make the applications appear as one.  Is there a Flex
component that can display an HTML page from another web application?

The applications reside on the same server so this should not break
any browser security policies.


Thanks in advance for your help.


Brett


 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Cairngorm 0.99

2005-05-17 Thread Sean McKibben


I'm having some trouble getting my Services.mxml to work with .99.I keep getting errors like:Error /com/cadpo/shared/business/Services.mxml:4Namespace http://www.iterationtwo.com/cairngorm has not been associated with component manifest.Error /com/cadpo/shared/business/Services.mxml:4No type for element "http://www.iterationtwo.com/cairngorm:ServiceLocator"Error /com/cadpo/shared/business/Services.mxml:4Unexpected root element "http://www.iterationtwo.com/cairngorm:ServiceLocator" does not extend MovieClipI put the cairngorm-manifest.xml into the WEB-INF/flex directory, but it still doesn't want to eat it.Here is the first part of my Services.mxml:http://www.macromedia.com/2003/mxml"    xmlns:cairngorm="http://www.iterationtwo.com/cairngorm">  ...Is the xmlns:cairngorm="http://www.iterationtwo.com/cairngorm" attribute correct? I copied it out of one of the sample apps included in .99.Any ideas?Thanks,Sean McKibben







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.









Re: [flexcoders] XML vs Model?

2005-05-17 Thread Indy Nagpal
Performance-wise I find that both to be equivalent. But 
provides a much easier way to access nodes of an xml document (and
most of the times, the easier, the better!). But I agree with Matt's
observation that  serves a better dataProvider for the Tree
control.

Indy

On 5/18/05, Tracy Spratt <[EMAIL PROTECTED]> wrote:
> One of my issues with Model is I had trouble determining how the xml was
> going to be deserialized into the object.  What happens to attributes?
> What happens to child nodes and text nodes?
> 
> Since I was comfortable with xml I mostly stuck with that.  I haven't
> even needed the available Xpath library yet.  And I hear that improved
> XML support is on the way.
> Tracy
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Abdul Qabiz
> Sent: Tuesday, May 17, 2005 6:08 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] XML vs Model?
> 
> They are similar things IMO. If you specify a source file for XML or
> Model
> tag, source (xml)file is compiled into swf. So no loading on runtime but
> a
> large initial swf size. P
> 
> I think, Model should be good at performance because it is simple Object
> not
> a XMLNode.
> 
> Let's see, what other people say...
> 
> -abdul
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Scott Barnes
> Sent: Tuesday, May 17, 2005 12:03 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] XML vs Model?
> 
> I've got a external source that pulls in XML file (config).
> 
> Now, I'm having my own internal debate as to which of the two is
> betterere?
> 
> I've noticed no real signficant performance gains (via profiler) with
> using either, the only thing it kind of brings to the table is that
> you can access a node XYZ levels deep by using property chains
> (parent.child.infant.siblings).
> 
> Thats fine, but this will be parsed once-off, and i've found that i've
> i go the XML route (ie writing my own specific parser, it tends to be
> less work.
> 
> (in that i've found that you have nodes in your XML that are using the
> same name, but can be either 1 or more, you have to test to see if the
> node in question is an array, otherwise its a literal object and treat
> it as such - when using model vs childNodes approach via XML (which is
> always array).
> 
> What's folks here input on pro's / con's of XML vs Model?
> --
> Regards,
> Scott Barnes
> http://www.mossyblog.com
> http://www.flexcoder.com
> 
> Yahoo! Groups Links
> 
> Yahoo! Groups Links
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
>


 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] DataGrid.labelFunction

2005-05-17 Thread JesterXL





Just a guess looking at the Flash code (if someone 
could confirm in the REAL Flex classes which I haven't got).
 
- it seems mx.controls.listclasses.SelectableRow 
has it's owner property set when it's created to know scope.  This scope is 
used to call labelFunction.
- SelectableRow is the default cellRenderer for 
ScrollSelect list, which DataGrid extends.  SelectableRow creates rows 
using ScrollSelectList by default for the cellRenderer, which he sets the owner to this, the DataGrid
- since the DataGrid's labelFunction property is 
already set, when the SelectableRow is looking for a label, and calls 
labelFunction on the DataGrid, it's really doing: 
theDataGrid.labelFunction(object)
 
Now, since Flex changes this, so for DataGrids you 
also get the columnName, I'm thinking that change might of not been tested 
heavily with DataGrids in ViewStacks.
 
Either that, or I'm missing something horribly 
obvious.
 
Anyone have a 
mx.controls.listclasses.SelectableRow.as file to send me for Flex so I can 
see?
 
 
- Original Message - 
From: JesterXL 
To: flexcoders@yahoogroups.com 
Sent: Tuesday, May 17, 2005 4:57 PM
Subject: Re: [flexcoders] DataGrid.labelFunction

Can someone explain why this doesn't work with the 
labelFunction?
 
http://www.macromedia.com/2003/mxml">     
    
  
    
      
      
    








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] DataGrid.labelFunction

2005-05-17 Thread JesterXL





Can someone explain why this doesn't work with the 
labelFunction?
 
http://www.macromedia.com/2003/mxml">     
    
  
    
      
      
    








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Custom Component Help

2005-05-17 Thread Jason
Hello!

I'm getting started with a custom Flex component (based on 
ComboBox), and running into a bit of difficulty.  

I bought, the "developing rich clients with macromedia flex" book, 
and have to say it comes very close in helping but I'm still stuck.  
BTW thanks Steve & Alistair for writing a great book.

I've developed a previous Flash application that has a custom 
dropdown component which already takes the following XML to 
initialize itself.  (XML generated outside of the Flash 
application), I'd like to take the exact same XML and wrap it into a 
Custom Flex Component, but XML structure below is presenting some 
problems...

One of the issues is that while I can create a class named Prefix to 
match the  tag...The Prefix class cannot take attributes on 
itself, I get an error message if I try, "Property elements may not 
have attributes.".  I would have to have them in another child tag.  
This is somewhat like the Portfolio and Account Objects described on 
page 61 of the book, except my "Account" tag was not embedded in 
a "CurrentAccount" tag.

I understand I could wrap these in either my own tags where the 
attributes would be in another child tag, or  tags, or 
put the whole Component XML in an  tag, but all of these 
require changing my existing XML structure which I don't really want 
to do.

I'm also having trouble with the  tag in a similar fashion.  I 
tried using an instance variable of type object, or string, but that 
won't work, I pretty much need a class for it, but since there is no 
attribute holding it's value, I'm stuck there as well.

Please help!
Thanks,
Jason


   
   myDropdown
   
   b
   


   a
   a
   
   
   
b
b

  










 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] DataGrid.labelFunction

2005-05-17 Thread Jose Lora










Maybe the signature of your function is
not the right one, try using :

 

private function onMyLabelFunction (item , columnName) : String {

 

 









From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Tuesday, May 17, 2005 3:20
PM
To: Flexcoders
Subject: [flexcoders]
DataGrid.labelFunction



 

I cannot get this to work.

I've tried:

my_datagrid.labelFunction = Delegate.create(this,
onMyLabelFunction);
my_datagrid.labelFunction = onMyLabelFunction;

As well as through the attribute in the datagrid
tag:



I can trace out that it's actually setting the
value to a valid function 
through the debugger and me tracing out the values
to a TextArea, but that 
same debugging session shows the actual function
itself never getting run.

I've tried setting the dataProviders right after,
1 frame after, and even 2 
frames after via multiple doLaters.

I've tried setting the ViewStack hosting this
component to to auto 
creationLayout instead of all, and used
childrenCreated to defer the actual 
setup.

Nothing works.

:: whips out gak and unloads a few rounds into
monitor ::

--JesterXL 













Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] TitleWindow show event

2005-05-17 Thread Jeff Beeman










That was far too easy… 

 



 

/**
* Jeff Beeman
**/











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Horn
Sent: Tuesday, May 17, 2005 12:35
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
TitleWindow show event



 

Works like a charm:

 


http://www.macromedia.com/2003/mxml"
    closeButton="true" width="200"
click="this.deletePopUp();"
creationComplete="setMyFocus()">
  
   function setMyFocus() {
form1.setFocus();
   }
  
  
 



 



 



 



 



 







From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt
Sent: Tuesday, May 17, 2005 3:48
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
TitleWindow show event

I'd use creationComplete of the TitleWindow instead.
Tracy

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of Jeff Beeman
Sent: Tuesday, May 17, 2005 2:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TitleWindow show event

I've got a TitleWindow popup that appears when a
button is clicked.
When the window appears, I want to set focus on a
TextInput component
that is in the TitleWindow.  I assume that
the event I'm looking for is
"show" - but it doesn't seem to be
broadcasting that event when the
TitleWindow is popped up.  Does anyone have
advice or examples of events
being used with TitleWindow popups?


/**
* Jeff Beeman
**/




Yahoo! Groups Links




















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












Re: [flexcoders] DataGrid.labelFunction

2005-05-17 Thread JesterXL
This works, but my code in my main app doesn't work... imagine that
alskdjflajdlksfjl kasfdlaksj dfliasjdlifj o asdlfj


http://www.macromedia.com/2003/mxml";
initialize="initApp();">



  

  


  

  

- Original Message - 
From: "JesterXL" <[EMAIL PROTECTED]>
To: "Flexcoders" 
Sent: Tuesday, May 17, 2005 4:19 PM
Subject: [flexcoders] DataGrid.labelFunction


I cannot get this to work.

I've tried:

my_datagrid.labelFunction = Delegate.create(this, onMyLabelFunction);
my_datagrid.labelFunction = onMyLabelFunction;

As well as through the attribute in the datagrid tag:

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

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

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




[flexcoders] DataGrid.labelFunction

2005-05-17 Thread JesterXL
I cannot get this to work.

I've tried:

my_datagrid.labelFunction = Delegate.create(this, onMyLabelFunction);
my_datagrid.labelFunction = onMyLabelFunction;

As well as through the attribute in the datagrid tag:

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

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

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




RE: [flexcoders] Cairngorm 0.99

2005-05-17 Thread Steven Webster





i think you forgot some resources (procust images) at 
the assets/products of the store sample. 
 
We 
didn't forget, we chose not to ship the images  it's in the Installation 
guide how to
copy 
them from 
Flex samples. 

  and 
  the installation guide needs to be fixed regarding the DB path , the default 
  ..\\db\\ in store.cfg is not working.
  (and i have tried all combinations -:-) i had to specify a full path to 
  that . 
It's going to be 
appserver specific; let us know your appserver and appserver paths, and we 
can
suggest a fix.  
You can put an absolute instead of relative URL in store.cfg for HSQLDB if 
you
want 
to.
 
Best,
 
Steven
 



--
Steven WebsterTechnical 
Director
iteration::two[EMAIL PROTECTED]
 
Office:  +44 (0)131 338 
6108Mobile: +44 (0)7977 216 223
 
This e-mail and any associated attachments 
transmitted with it may contain confidential information and must not be copied, 
or disclosed, or used by anyone other than the intended recipient(s). If you are 
not the intended recipient(s) please destroy this e-mail, and any copies of it, 
immediately. Please also note that while software systems have been 
used to try to ensure that this e-mail has been swept for viruses, 
iteration::two do not accept responsibility for any damage or loss caused in 
respect of any viruses transmitted by the e-mail. Please ensure your own checks 
are carried out before any attachments are 
opened.







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] TitleWindow show event

2005-05-17 Thread Matt Horn





Works like a charm:
 
http://www.macromedia.com/2003/mxml"    
closeButton="true" width="200" click="this.deletePopUp();" 
creationComplete="setMyFocus()"> function 
setMyFocus() 
{form1.setFocus();   } 
 
 
 
 

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Tracy 
  SprattSent: Tuesday, May 17, 2005 3:48 PMTo: 
  flexcoders@yahoogroups.comSubject: RE: [flexcoders] TitleWindow 
  show event
  I'd use creationComplete of the TitleWindow 
  instead.Tracy-Original Message-From: 
  flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] OnBehalf Of 
  Jeff BeemanSent: Tuesday, May 17, 2005 2:53 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] TitleWindow show 
  eventI've got a TitleWindow popup that appears when a button is 
  clicked.When the window appears, I want to set focus on a TextInput 
  componentthat is in the TitleWindow.  I assume that the event I'm 
  looking for is"show" - but it doesn't seem to be broadcasting that event 
  when theTitleWindow is popped up.  Does anyone have advice or 
  examples of eventsbeing used with TitleWindow 
  popups?/*** Jeff 
  Beeman**/Yahoo! 
  Groups Links







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] TitleWindow show event

2005-05-17 Thread Tracy Spratt
I'd use creationComplete of the TitleWindow instead.
Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeff Beeman
Sent: Tuesday, May 17, 2005 2:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TitleWindow show event

I've got a TitleWindow popup that appears when a button is clicked.
When the window appears, I want to set focus on a TextInput component
that is in the TitleWindow.  I assume that the event I'm looking for is
"show" - but it doesn't seem to be broadcasting that event when the
TitleWindow is popped up.  Does anyone have advice or examples of events
being used with TitleWindow popups?


/**
* Jeff Beeman
**/



 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Is there a way to schedule something with Flex

2005-05-17 Thread Tracy Spratt










Sure, but you will need to build it.

 

I’d create an associative array
consisting of and id as key/property name, and, as the value, either simple
time number, or an object if you want to store more complex data.

Var oOpSpec:Object = new
Object();

oOpSpec.datetime = scheduledDateTime;

oScheduledOperations[myOperationId]
= oOpSpec;

Then you’d need a conditional
function to check the scheduled time against the current time.

Var oOpSpecCur:Object = oScheduledOperations[myOperationId];

    If
(oOpSpecCur.datetime < dateTimeNow) return true;

The benefit of the associative array is
you won’t have to iterate through and compare keys to access, add or
modify a scheduled item, but you should check for undefined.

Tracy









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, May 17, 2005 1:52
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is there a
way to schedule something with Flex



 



Then have a button only work IF the time that is scheduled
matches the current time?



 










Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Cairngorm 0.99

2005-05-17 Thread Ryan Scott Jones










CHEERS!!!

 

Ryan

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Steven Webster
Sent: Tuesday, May 17, 2005 12:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cairngorm
0.99



 



http://www.iterationtwo.com/open_source_cairngorm.html





 





Any questions, we'll answer them tomorrow ... team
iteration::two are off to the bar :-)





 





We shall have a drink at the bar on behalf of the rest of
the Cairngorm Project Team





as well (in fact, Ilya/Matt/Dirk/Romain/Jimmy, could you let
us know where to send 





our bar bills...?) who also played their ever important
roles in pulling this release





together.





 





Enjoy :)





 





Steven





 





--

Steven Webster
Technical Director



iteration::two





 





This e-mail and any associated attachments
transmitted with it may contain confidential information and must not be
copied, or disclosed, or used by anyone other than the intended recipient(s).
If you are not the intended recipient(s) please destroy this e-mail, and any
copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out before
any attachments are opened.







 



 










Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] TitleWindow show event

2005-05-17 Thread Jeff Beeman
I've got a TitleWindow popup that appears when a button is clicked.
When the window appears, I want to set focus on a TextInput component
that is in the TitleWindow.  I assume that the event I'm looking for is
"show" - but it doesn't seem to be broadcasting that event when the
TitleWindow is popped up.  Does anyone have advice or examples of events
being used with TitleWindow popups?


/**
* Jeff Beeman
**/



 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Cairngorm 0.99

2005-05-17 Thread Stacy Young










Links for both 0.95 and 0.99 are there…

Stace

 

p.s. nice work lads! J

 











From: dave buhler
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 17, 2005 2:20
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]
Cairngorm 0.99



 

The link is for the .95
release.






On 5/17/05, Steven
Webster <[EMAIL PROTECTED]>
wrote:



http://www.iterationtwo.com/open_source_cairngorm.html






 





Any questions, we'll answer them tomorrow ... team
iteration::two are off to the bar :-)





 





We shall have a drink at the bar on behalf of the rest of
the Cairngorm Project Team





as well (in fact, Ilya/Matt/Dirk/Romain/Jimmy, could you let
us know where to send 





our bar bills...?) who also played their ever important
roles in pulling this release





together.





 





Enjoy :)





 





Steven





 





--

Steven Webster
Technical Director



iteration::two





 





This e-mail and any associated attachments
transmitted with it may contain confidential information and must not be
copied, or disclosed, or used by anyone other than the intended recipient(s).
If you are not the intended recipient(s) please destroy this e-mail, and any
copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out before
any attachments are opened.







 



 







Yahoo! Groups Links


 To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
   
 To unsubscribe from this group, send an
 email to:
 [EMAIL PROTECTED] 
   
 Your use of Yahoo! Groups is subject to
 the Yahoo!
 Terms of Service. 











AVIS IMPORTANTWARNING Les informations contenues dans le present document et ses pieces jointes sont strictement confidentielles et reservees a l'usage de la (des) personne(s) a qui il est adresse. Si vous n'etes pas le destinataire, soyez avise que toute divulgation, distribution, copie, ou autre utilisation de ces informations est strictement prohibee. Si vous avez recu ce document par erreur, veuillez s'il vous plait communiquer immediatement avec l'expediteur et detruire ce document sans en faire de copie sous quelque forme. The information contained in this document and attachments is confidential and intended only for the person(s) named above. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution, or any other use of the information is strictly prohibited. If you have received this document by mistake, please notify the sender immediately and destroy this document and attachments without making any copy of any kind.









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Cairngorm 0.99

2005-05-17 Thread Shlomi Cohen





Hi
 
great 
guys , thanks
 
i 
think you forgot some resources (procust images) at the assets/products of the 
store sample.
 
and 
the installation guide needs to be fixed regarding the DB path , the default 
..\\db\\ in store.cfg is not working.
(and i 
have tried all combinations -:-) i had to specify a full path to that 
.
 
Shlomi
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of dave 
buhlerSent: Tuesday, May 17, 2005 21:20To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] Cairngorm 
0.99
The link is for the .95 release.
On 5/17/05, Steven 
Webster <[EMAIL PROTECTED]> 
wrote:

  http://www.iterationtwo.com/open_source_cairngorm.html 
  
   
  Any questions, we'll answer them tomorrow 
  ... team iteration::two are off to the bar :-)
   
  We shall have a drink at the bar on behalf 
  of the rest of the Cairngorm Project Team
  as well (in fact, 
  Ilya/Matt/Dirk/Romain/Jimmy, could you let us know where to send 
  
  our bar bills...?) who also played their 
  ever important roles in pulling this release
  together.
   
  Enjoy :)
   
  Steven
   
  
  
  --
  Steven WebsterTechnical 
  Director
  iteration::two
   
  This e-mail and any associated 
  attachments transmitted with it may contain confidential information and must 
  not be copied, or disclosed, or used by anyone other than the intended 
  recipient(s). If you are not the intended recipient(s) please destroy this 
  e-mail, and any copies of it, immediately. Please also note that 
  while software systems have been used to try to ensure that this e-mail has 
  been swept for viruses, iteration::two do not accept responsibility for any 
  damage or loss caused in respect of any viruses transmitted by the e-mail. 
  Please ensure your own checks are carried out before any attachments are 
  opened.
   
  
  Yahoo! Groups Links
  
To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/  
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]   
Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
Service. __This 
email has been scanned by the MessageLabs Email Security System.For more 
information please visit http://www.messagelabs.com/email 
__

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.











Re: [flexcoders] Cairngorm 0.99

2005-05-17 Thread dave buhler



The link is for the .95 release.

On 5/17/05, Steven Webster <[EMAIL PROTECTED]> wrote:







http://www.iterationtwo.com/open_source_cairngorm.html

 
Any questions, we'll 
answer them tomorrow ... team iteration::two are off to the 
bar :-)
 
We shall have a 
drink at the bar on behalf of the rest of the Cairngorm Project 
Team
as well (in fact, 
Ilya/Matt/Dirk/Romain/Jimmy, could you let us know where to send 

our bar bills...?) 
who also played their ever important roles in pulling this 
release
together.
 
Enjoy 
:)
 
Steven
 


--
Steven WebsterTechnical 
Director
iteration::two
 
This e-mail and any associated attachments 
transmitted with it may contain confidential information and must not be copied, 
or disclosed, or used by anyone other than the intended recipient(s). If you are 
not the intended recipient(s) please destroy this e-mail, and any copies of it, 
immediately. Please also note that while software systems have been 
used to try to ensure that this e-mail has been swept for viruses, 
iteration::two do not accept responsibility for any damage or loss caused in 
respect of any viruses transmitted by the e-mail. Please ensure your own checks 
are carried out before any attachments are 
opened.
 







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Re: cell render problem

2005-05-17 Thread Rajesh Jayabalan
Hi Sree,

 That helped an another solution that I found was to use

combo.dataProvider = parentDocument.clTypeSrv.result.types.type; 

in my setValue method of the cell renderer.

Now my combobox is showing up fine, but it is not selecting any thing
by default and when I select some option and move to a diffent row I
see [object,object] in there. I think this is because the example I am
using does not have a data and a label while mine has

the xml I am using is

 

   
   
   
   
   
   
   
   
   
   



my setValue looks like

function setValue( str : String, item : Object, selection : String ) :
Void
  {
  //combo.dataProvider = parentDocument.clTypeSrv.result.types.type;
if ( item == undefined )
{
  comboLabel.visible = false;
  combo.visible = false;
  return;
}

if ( selection == "normal" || selection == "highlighted" )
{
  comboLabel.text = item[ getDataLabel() ];
  combo.visible = false;
  comboLabel.visible = true;
}
else if ( selection == "selected" )
{
  selectedItem = item;
  
  for( var i = 0; i < combo.dataProvider.length; i++ )
  {
if( combo.dataProvider[i] == item[ getDataLabel() ] )
{
   combo.selectedIndex = i;
   break;
}
  }
  comboLabel.visible = false;
  combo.visible = true;
  combo.setFocus( false );
}
  }

I thought maybe there might be a method getData in the list that I can
use but I don't think there is one.

I am not sure how to more forward

Rajesh J




 
Yahoo! Groups Links

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

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

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




[flexcoders] Is there a way to schedule something with Flex

2005-05-17 Thread nostra72




Then have a button only work IF the time that is scheduled matches the current time?







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Cairngorm 0.99

2005-05-17 Thread David Aden
never mind -- downloading and opening it worked fine, just opening
from within Firefox didn't work.

d

On 5/17/05, David Aden <[EMAIL PROTECTED]> wrote:
> stephen,
> 
> great and thanks!
> 
> One thing before the pub (if you're not already gone) -- could you
> check the release notes PDF -- I'm getting a message that it is
> corrupt and can't be repaired. The install directions are fine.
> 
> ta,
> 
> d
> 
> On 5/17/05, Steven Webster <[EMAIL PROTECTED]> wrote:
> >
> > http://www.iterationtwo.com/open_source_cairngorm.html
> >
> > Any questions, we'll answer them tomorrow ... team iteration::two are off to
> > the bar :-)
> >
> > We shall have a drink at the bar on behalf of the rest of the Cairngorm
> > Project Team
> > as well (in fact, Ilya/Matt/Dirk/Romain/Jimmy, could you let us know where
> > to send
> > our bar bills...?) who also played their ever important roles in pulling
> > this release
> > together.
> >
> > Enjoy :)
> >
> > Steven
> >
> >
> >
> > --
> > Steven Webster
> > Technical Director
> > iteration::two
> >
> > This e-mail and any associated attachments transmitted with it may contain
> > confidential information and must not be copied, or disclosed, or used by
> > anyone other than the intended recipient(s). If you are not the intended
> > recipient(s) please destroy this e-mail, and any copies of it, immediately.
> >
> > Please also note that while software systems have been used to try to ensure
> > that this e-mail has been swept for viruses, iteration::two do not accept
> > responsibility for any damage or loss caused in respect of any viruses
> > transmitted by the e-mail. Please ensure your own checks are carried out
> > before any attachments are opened.
> >
> >  
> >  Yahoo! Groups Links
> >
> >
> > To visit your group on the web, go to:
> > http://groups.yahoo.com/group/flexcoders/
> >
> > To unsubscribe from this group, send an email to:
> > [EMAIL PROTECTED]
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> 
> --
> --
> David Aden
> Webworld Technologies
> 


-- 
--
David Aden
Webworld Technologies


 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Cairngorm 0.99

2005-05-17 Thread David Aden
stephen, 

great and thanks! 

One thing before the pub (if you're not already gone) -- could you
check the release notes PDF -- I'm getting a message that it is
corrupt and can't be repaired. The install directions are fine.

ta, 

d

On 5/17/05, Steven Webster <[EMAIL PROTECTED]> wrote:
>  
> http://www.iterationtwo.com/open_source_cairngorm.html 
>   
> Any questions, we'll answer them tomorrow ... team iteration::two are off to
> the bar :-) 
>   
> We shall have a drink at the bar on behalf of the rest of the Cairngorm
> Project Team 
> as well (in fact, Ilya/Matt/Dirk/Romain/Jimmy, could you let us know where
> to send 
> our bar bills...?) who also played their ever important roles in pulling
> this release 
> together. 
>   
> Enjoy :) 
>   
> Steven 
>   
>  
>  
> -- 
> Steven Webster
> Technical Director 
> iteration::two 
>   
> This e-mail and any associated attachments transmitted with it may contain
> confidential information and must not be copied, or disclosed, or used by
> anyone other than the intended recipient(s). If you are not the intended
> recipient(s) please destroy this e-mail, and any copies of it, immediately.
>  
> Please also note that while software systems have been used to try to ensure
> that this e-mail has been swept for viruses, iteration::two do not accept
> responsibility for any damage or loss caused in respect of any viruses
> transmitted by the e-mail. Please ensure your own checks are carried out
> before any attachments are opened. 
>   
>  
>  Yahoo! Groups Links
>  
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-- 
--
David Aden
Webworld Technologies


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Image not being resized in mx:Image tag

2005-05-17 Thread Tim Blair

> See if this helps:
> http://www.mail-archive.com/flexcoders@yahoogroups.com/msg06839.html

Hmm, stragely that seems to have worked on the live server but not on my
dev server...  How strange?  Anyway, thanks Manish, I shall dig
deeper...

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Serious corruption in Flex-generated SWF

2005-05-17 Thread Tim Blair

> Are you using an event to redraw/reposition elements in the
> containers of the Accordion?

On some of the views that are effected I'm using events to clear out
what's shown, but others are simply displayed.  I'm also having the same
problem with components in a TabNavigator component, so it's not just
the Accordian.

> Yes, actually, I get this behavior every week or so, and it 
> is also with an accordion container and standard VBox and 
> HBoxes.  I don't have any idea what causes it however.  For 
> me, simply refreshing the app corrects the problem so mine is 
> a rendereing issue and not a compile issue.

This is the same thing: a render issue, not compile issue.  Sometimes it
works, sometimes it doesn't but I have no clue what triggers it!

Hmm, this is getting very annoying...

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

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

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




[flexcoders] Cairngorm 0.99

2005-05-17 Thread Steven Webster





http://www.iterationtwo.com/open_source_cairngorm.html
 
Any questions, we'll 
answer them tomorrow ... team iteration::two are off to the 
bar :-)
 
We shall have a 
drink at the bar on behalf of the rest of the Cairngorm Project 
Team
as well (in fact, 
Ilya/Matt/Dirk/Romain/Jimmy, could you let us know where to send 

our bar bills...?) 
who also played their ever important roles in pulling this 
release
together.
 
Enjoy 
:)
 
Steven
 


--
Steven WebsterTechnical 
Director
iteration::two
 
This e-mail and any associated attachments 
transmitted with it may contain confidential information and must not be copied, 
or disclosed, or used by anyone other than the intended recipient(s). If you are 
not the intended recipient(s) please destroy this e-mail, and any copies of it, 
immediately. Please also note that while software systems have been 
used to try to ensure that this e-mail has been swept for viruses, 
iteration::two do not accept responsibility for any damage or loss caused in 
respect of any viruses transmitted by the e-mail. Please ensure your own checks 
are carried out before any attachments are 
opened.
 







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Re: Flex and Google Maps

2005-05-17 Thread Manish Jethani
On 5/17/05, Tracy Spratt <[EMAIL PROTECTED]> wrote:
> I got this to work on flexauthority, but it was extremely slow.

The way to make it fast is to cache the generated JPEGs on the server.
 The GIF-to-JPEG conversion is what takes up most of the time.


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] XML vs Model?

2005-05-17 Thread Tracy Spratt
One of my issues with Model is I had trouble determining how the xml was
going to be deserialized into the object.  What happens to attributes?
What happens to child nodes and text nodes?

Since I was comfortable with xml I mostly stuck with that.  I haven't
even needed the available Xpath library yet.  And I hear that improved
XML support is on the way.
Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Abdul Qabiz
Sent: Tuesday, May 17, 2005 6:08 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] XML vs Model?

They are similar things IMO. If you specify a source file for XML or
Model
tag, source (xml)file is compiled into swf. So no loading on runtime but
a
large initial swf size. P

I think, Model should be good at performance because it is simple Object
not
a XMLNode. 


Let's see, what other people say...


-abdul
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Barnes
Sent: Tuesday, May 17, 2005 12:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML vs Model?

I've got a external source that pulls in XML file (config).

Now, I'm having my own internal debate as to which of the two is
betterere?

I've noticed no real signficant performance gains (via profiler) with
using either, the only thing it kind of brings to the table is that
you can access a node XYZ levels deep by using property chains
(parent.child.infant.siblings).

Thats fine, but this will be parsed once-off, and i've found that i've
i go the XML route (ie writing my own specific parser, it tends to be
less work.

(in that i've found that you have nodes in your XML that are using the
same name, but can be either 1 or more, you have to test to see if the
node in question is an array, otherwise its a literal object and treat
it as such - when using model vs childNodes approach via XML (which is
always array).

What's folks here input on pro's / con's of XML vs Model?
-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com


 
Yahoo! Groups Links



 




 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] help on HTTP service

2005-05-17 Thread Tracy Spratt
Call your JSP from a browser.  You will easily be able to see where the
xml is invalid
Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gaurav verma
Sent: Tuesday, May 17, 2005 2:18 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] help on HTTP service

not able to send data from the mxml to the jsp page 

i want create a page which takes the values like "LOGIN ID" 
and "PASSWORD" to the another JSP page( this pages validates the 
loginid from my database) im using the following code :




http://www.macromedia.com/2003/mxml";>
http://pjainserver:8101/login/loginvalidate.jsp"; >


{username.text}
{password.text}

 

   
   
  
   
   
  
   
   
  
   





this is returning a error " HTTP SERVICE FAULT. A start tag had 
nocorresponding end tag"

note : my LOGINVALIDATE.JSP also contain html tags.

wht to do now




 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Serious corruption in Flex-generated SWF

2005-05-17 Thread Sjors Pals
I got a similar problem a few months ago when i changed the width of a 
h-slider programmatically.
I did try everything but in the end i made 2 sliders with corresponding 
values and instead of resizing i did a show/hide trick.

Will try or i can setup a sample which reproduces it.

Greets,

Sjors



Tracy Spratt wrote:

>Yes, actually, I get this behavior every week or so, and it is also with
>an accordion container and standard VBox and HBoxes.  I don't have any
>idea what causes it however.  For me, simply refreshing the app corrects
>the problem so mine is a rendereing issue and not a compile issue.
>
>Tracy
>
>-Original Message-
>From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
>Behalf Of Tim Blair
>Sent: Tuesday, May 17, 2005 6:58 AM
>To: flexcoders@yahoogroups.com
>Subject: [flexcoders] Serious corruption in Flex-generated SWF
>
>Morning all,
>
>We're having severe issues with components within a Flex-generated SWF
>being displayed corrupt.  The problem is that this doesn't happen all
>the time, and I can't seem to find a reproducable method of "forcing"
>the corruption.
>
>Examples of the sort of thing we're seeing can be seen here:
>http://kryten.rawnet.com/flex/flex-corrupt.html
>
>All corruption occurs at the same time (i.e. when one thing goes, they
>all go), but not all components are affected.  The problem only seems to
>affect components displayed within an accordian, but again not all
>contained components are effected.  If you look at example 1 on the page
>above, the items under "edit existing..." are corrupt, whereas those
>under the "create new..." heading are displayed fine.
>
>Does anyone have any idea what's going on here?  Has anyone seen this
>before?
>
>Thanks,
>
>Tim.
>
>--
>---
>Badpen Tech - CF and web-tech: http://tech.badpen.com/
>---
>RAWNET LTD - independent digital media agency
>"We are big, we are funny and we are clever!"
> New site launched at http://www.rawnet.com/
>---
>This message may contain information which is legally
>privileged and/or confidential.  If you are not the
>intended recipient, you are hereby notified that any
>unauthorised disclosure, copying, distribution or use
>of this information is strictly prohibited. Such
>notification notwithstanding, any comments, opinions,
>information or conclusions expressed in this message
>are those of the originator, not of rawnet limited,
>unless otherwise explicitly and independently indicated
>by an authorised representative of rawnet limited.
>---
>
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>*Yahoo! Groups Links*
>
>* To visit your group on the web, go to:
>  http://groups.yahoo.com/group/flexcoders/
>   
>* To unsubscribe from this group, send an email to:
>  [EMAIL PROTECTED]
>  
>   
>* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
>  . 
>
>
>  
>



 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Re: Flex and Google Maps

2005-05-17 Thread Tracy Spratt
I got this to work on flexauthority, but it was extremely slow.  Are you
sure you gave it enough time?
Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Corey
Sent: Tuesday, May 17, 2005 11:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex and Google Maps

Hi Manish,

Thank you very much for the code.

Corey

--- In flexcoders@yahoogroups.com, Manish Jethani 
<[EMAIL PROTECTED]> wrote:
> On 5/17/05, Corey <[EMAIL PROTECTED]> wrote:
> 
> > Do you know where I can view the code for this flex based google
> > maps?
> 
> http://manish.revise.org/flash/flex/gmap.zip




 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Question about error message

2005-05-17 Thread Tracy Spratt










You often will not find the offending code
in your own source though.  Sometimes it is in the way the flex compiler
generates the underlying AS classes.

 

This has been thoroughly discussed, but
here are a few pointers:


 mxml
 files with large amounts of UI code PLUS moderate amounts of AS code are a
 problem
 Putting
 AS code into a file included with mx:Script source-“” does NOT
 help
 Putting
 AS code in a class helps a lot.
 If
 your app is fairly well “refactored” or modularized already,
 try adding some more code, even if it is bogus.  This can trick the
 flex compiler into breaking your code into smaller bits, thereby avoiding
 the problem.
 Run
 the app with debug=true.  This causes debug code to be added to the
 generated code, and if you can then compile an run, you almost certainly
 have the boundary issue noted above.


 

Tracy

 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Abdul Qabiz
Sent: Tuesday, May 17, 2005 2:07
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Question
about error message



 

Hi,

 

you get this error message when you have more than 32KB code
in a block. For example:

 

if(..)

{

 

    //more than 32 kb code

}

 

 

function foo()

{

    //32 KB code

}



 





 





similarly in other types of blocks..





 





Try to refactor your code... Search the archives of this
list for related discussion...





 





-abdul





 









From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, May 17, 2005 10:26
AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question
about error message

Ok I was writing a rather large mxml file one that is about
62KB, its never given me any problems with the amount of memory before and I
actually removed like about a few hundred lines of code to make the application
smaller. So what has me so confused is why am I getting a message saying its
exceeded the 32K span? 










Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] PrintJob frustrations

2005-05-17 Thread Battershall, Jeff
Using setInterval/clearInterval seems to be a good workaround, unless
someone else has something better.

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: Tuesday, May 17, 2005 11:29 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PrintJob frustrations


I'm trying to print some charts along with a header.  In my app, the
header (a GridRow) is hidden until the print function is called, but for
some reason I CANNOT get the item to show in time to be sent to the
printer.

I tried setting up a separate function to show the header and then have
the actual print function fire when the show event of the GridRow is
fired.  STILL it does not work.

In general, I have to say that my experience with printing in Flex
leaves a great deal to be desired.  As reporting is a vital function in
enterprise contexts, I can only hope that the print implementation is
more refined in future releases.

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Serious corruption in Flex-generated SWF

2005-05-17 Thread Tracy Spratt
Yes, actually, I get this behavior every week or so, and it is also with
an accordion container and standard VBox and HBox.  I don't have any
idea what causes it however.  For me, simply refreshing the app corrects
the problem so mine is a rendering issue and not a compile issue.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Blair
Sent: Tuesday, May 17, 2005 6:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Serious corruption in Flex-generated SWF

Morning all,

We're having severe issues with components within a Flex-generated SWF
being displayed corrupt.  The problem is that this doesn't happen all
the time, and I can't seem to find a reproducable method of "forcing"
the corruption.

Examples of the sort of thing we're seeing can be seen here:
http://kryten.rawnet.com/flex/flex-corrupt.html

All corruption occurs at the same time (i.e. when one thing goes, they
all go), but not all components are affected.  The problem only seems to
affect components displayed within an accordian, but again not all
contained components are effected.  If you look at example 1 on the page
above, the items under "edit existing..." are corrupt, whereas those
under the "create new..." heading are displayed fine.

Does anyone have any idea what's going on here?  Has anyone seen this
before?

Thanks,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Serious corruption in Flex-generated SWF

2005-05-17 Thread Tracy Spratt
And by the way, shouldn't we move this to flexcoders?  This forum is
pretty much defunct.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, May 17, 2005 11:58 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Serious corruption in Flex-generated SWF

Yes, actually, I get this behavior every week or so, and it is also with
an accordion container and standard VBox and HBoxes.  I don't have any
idea what causes it however.  For me, simply refreshing the app corrects
the problem so mine is a rendereing issue and not a compile issue.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Blair
Sent: Tuesday, May 17, 2005 6:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Serious corruption in Flex-generated SWF

Morning all,

We're having severe issues with components within a Flex-generated SWF
being displayed corrupt.  The problem is that this doesn't happen all
the time, and I can't seem to find a reproducable method of "forcing"
the corruption.

Examples of the sort of thing we're seeing can be seen here:
http://kryten.rawnet.com/flex/flex-corrupt.html

All corruption occurs at the same time (i.e. when one thing goes, they
all go), but not all components are affected.  The problem only seems to
affect components displayed within an accordian, but again not all
contained components are effected.  If you look at example 1 on the page
above, the items under "edit existing..." are corrupt, whereas those
under the "create new..." heading are displayed fine.

Does anyone have any idea what's going on here?  Has anyone seen this
before?

Thanks,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links



 





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Serious corruption in Flex-generated SWF

2005-05-17 Thread Tracy Spratt
Yes, actually, I get this behavior every week or so, and it is also with
an accordion container and standard VBox and HBoxes.  I don't have any
idea what causes it however.  For me, simply refreshing the app corrects
the problem so mine is a rendereing issue and not a compile issue.

Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Blair
Sent: Tuesday, May 17, 2005 6:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Serious corruption in Flex-generated SWF

Morning all,

We're having severe issues with components within a Flex-generated SWF
being displayed corrupt.  The problem is that this doesn't happen all
the time, and I can't seem to find a reproducable method of "forcing"
the corruption.

Examples of the sort of thing we're seeing can be seen here:
http://kryten.rawnet.com/flex/flex-corrupt.html

All corruption occurs at the same time (i.e. when one thing goes, they
all go), but not all components are affected.  The problem only seems to
affect components displayed within an accordian, but again not all
contained components are effected.  If you look at example 1 on the page
above, the items under "edit existing..." are corrupt, whereas those
under the "create new..." heading are displayed fine.

Does anyone have any idea what's going on here?  Has anyone seen this
before?

Thanks,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

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

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

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




[flexcoders] PrintJob frustrations

2005-05-17 Thread Battershall, Jeff
I'm trying to print some charts along with a header.  In my app, the
header (a GridRow) is hidden until the print function is called, but for
some reason I CANNOT get the item to show in time to be sent to the
printer.

I tried setting up a separate function to show the header and then have
the actual print function fire when the show event of the GridRow is
fired.  STILL it does not work.

In general, I have to say that my experience with printing in Flex
leaves a great deal to be desired.  As reporting is a vital function in
enterprise contexts, I can only hope that the print implementation is
more refined in future releases.

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


 
Yahoo! Groups Links

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

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

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




[flexcoders] Re: Flex and Google Maps

2005-05-17 Thread Corey
Hi Manish,

Thank you very much for the code.

Corey

--- In flexcoders@yahoogroups.com, Manish Jethani 
<[EMAIL PROTECTED]> wrote:
> On 5/17/05, Corey <[EMAIL PROTECTED]> wrote:
> 
> > Do you know where I can view the code for this flex based google
> > maps?
> 
> http://manish.revise.org/flash/flex/gmap.zip




 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Turn Off Caching in Flex

2005-05-17 Thread Manish Jethani
On 5/17/05, Libby <[EMAIL PROTECTED]> wrote:
> Is there a way to turn off caching in Flex? I have stuff coming up in
> my browser whose objects I deleted two iterations ago : ) Makes it
> hard to do development. The problem occurs in FB as well as Eclipse.

If you load images and such from Flex, then the web browser caches
those.  Unfortunately it can be hard to refresh these sometimes (based
on what I've heard here).  One trick I know is to append a random
string to the end of the image URL.  Do this in ActionScript.  See
this example:
http://www.shockwave-india.com/blog/actionscript/?asfile=skipCache.as


 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] help on HTTP service

2005-05-17 Thread Manish Jethani
On 5/17/05, gaurav verma <[EMAIL PROTECTED]> wrote:

> i want create a page which takes the values like "LOGIN ID"
> and "PASSWORD" to the another JSP page( this pages validates the
> loginid from my database) im using the following code :

[...]

> this is returning a error " HTTP SERVICE FAULT. A start tag had
> nocorresponding end tag"

Your JSP needs to return valid XML.  Or you could set resultFormat to "text".


 
Yahoo! Groups Links

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

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

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




[flexcoders] Turn Off Caching in Flex

2005-05-17 Thread Libby
Is there a way to turn off caching in Flex? I have stuff coming up in
my browser whose objects I deleted two iterations ago : ) Makes it
hard to do development. The problem occurs in FB as well as Eclipse.

I found this on the web: false for the
flex-config file, but evidently that line went away with the advent of
Flex 1.5. becuz it just gives an error when I add it.

Thanks,
Libby




 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Image not being resized in mx:Image tag

2005-05-17 Thread Manish Jethani
On 5/17/05, Tim Blair <[EMAIL PROTECTED]> wrote:

> I'm having trouble with images not resizing to fit the  tag
> specfied (and also with SWFs not resizing to fit the appropriate
> ).

See if this helps:
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg06839.html


 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Development of components with AS

2005-05-17 Thread Erik Westra
Title: Message





This is a great help (the trick with fdb). In order to make 
it somehow more workable i run fdb.exe like this:
 
    fdb.exe http://adres >fdb.log
 
Then when fdb is running i type:
 
    list package.Class:1 
3
 
This will put the whole class in the fdb.log 
file.
 
In order to get feedback from the commands u can run this 
java application in a sepperate window:
 
import java.io.*;public class LogReader 

{  public static void main(String 
args[])
  {    if (args.length 
<1)
    {  
System.out.println("Usage LogReader 
");  
return;    }    BufferedReader 
d=null;    try
    {  d= 
new BufferedReader(new InputStreamReader(new FileInputStream(args[0])) 
);  while (true)
  
{    String 
s=d.readLine();    if 
(s!=null)
    
{  
System.out.println(s);    } 
else
    
{   //give up 
system and ignore 
Exceptions  try
      
{
    
 Thread.sleep(500);
  }catch(Exception 
e){}} }   }catch(Exception 
e)
   {
  
e.printStackTrace();
   
}   finally
   {  
try
  {
    
d.close();
  } catch(Exception 
e)
  {
    
e.printStackTrace();
  }    
}  }}
Greetz Erik
 


From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Simon 
FifieldSent: dinsdag 17 mei 2005 9:29To: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Development of 
components with AS

Hi 
Gordon,
 
Thanks 
for the reply. I had a look at that but I kept on getting an error "Expected 
line number; got 1,". It seems that although you should be able to specify a 
start and end location ("1, 500" for example) this does not 
work!
 
Looks 
like its back to listing 10 lines at a time. I have increased my buffer size now 
though so that I can list the whole thing, then copy paste into an 
editor.
 
Does 
anyone know of a better way of doing this?
 
Regards,
Simon
 
 







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Disappearing images in custom cell renderer

2005-05-17 Thread Manish Jethani
On 5/17/05, Tim Blair <[EMAIL PROTECTED]> wrote:

[...]

>  2. displays correctly, then after a second or so vanishes;
>  3. nothing is displayed.
[...]

>   asset = Asset(oItem);

What happens if you set 'source' directly instead of using binding?  Try it.


 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Re: Flex and Google Maps

2005-05-17 Thread Manish Jethani
On 5/17/05, Corey <[EMAIL PROTECTED]> wrote:

> Do you know where I can view the code for this flex based google
> maps?

http://manish.revise.org/flash/flex/gmap.zip


 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] How to render cell to be in edit mode dynamically through cell renderer

2005-05-17 Thread Jim Laing
Hey Pradeep,

I've done this very thing using the date field as a cell renderer, so
it is possible, but I did it using a subclass of the DataGrid instead
of event listeners. Using event listeners instead is an interesting
approach, and if you can get it to work, would be superior to using a
subclass.

One thing to try: There is a boolean isCellEditor that the DataGrid
looks for in a cell renderer to decide if it should create a TextInput
cell editor or not. Try including a line like:
var isCellEditor : Boolean = true;

Using the subclassed datagrid approach, I've already posted some
sample code that does this with a combo box instead of a date field.
Check out the following message:
http://groups.yahoo.com/group/flexcoders/message/14768. E-mail me off
list if you want the code for the Date Field cell renderer.

Jim


On 5/17/05, Pradeep <[EMAIL PROTECTED]> wrote:
> I am trying to use a Custom Date Cell Renderer which goes in edit mode
> only when cell gains focus on it. Otherwise a label displays formatted
> Date value.
> 
> Following is the code for the DateRenderer :-
> 
> import mx.core.UIComponent
> import mx.core.UIObject
> import mx.controls.DateField
> import mx.controls.Label
> import mx.controls.Alert
> import mx.formatters.DateFormatter
> 
> class common.control.DateRenderer extends UIComponent{
> var dateObj:DateField;
> var label:Label;
> var dateFormat: DateFormatter;
> var listOwner : MovieClip;
> var getDataLabel : Function;
> var getCellIndex : Function;
> var __value;
> 
> public function DateRenderer(){
> dateFormat = new DateFormatter();
> dateFormat.formatString="MM-DD-";
> this.addEventListener("focusIn", this);
> this.addEventListener("focusOut", this);
> }
> 
> function createChildren(Void) : Void{
> super.createChildren();
> createClassObject( Label, "label", 1, {owner:this});
> label.width=80;
> }
> 
> //Display date field for editing on focus.
> function focusIn() : Void {
> createClassObject( DateField, "dateObj", 2, {owner:this});
> dateObj.width=80;
> dateObj.dateFormatter = this.formatDate;
> dateObj.selectedDate = __value;
> dateObj.addEventListener("change", this);
> label.visible = false;
> dateObj.visible = true;
> }
> 
>  //Remove date field and make label visible again.
> function focusOut() : Void {
> dateObj.visible = false;
> label.visible = true;
> destroyObject("dateObj");
> }
> 
> //Format function
> function formatDate(itemDate){
> return dateFormat.format(itemDate);
> }
> 
> function setValue( str:String, item:Object, sel:Boolean ) : Void{
> if(item != undefined){
> label.text= formatDate( item[getDataLabel()]);
> __value =  item[getDataLabel()];
> label.visible = true;
> }
> }
> 
> function getValue() : String {
> return __value;
> }
> 
> function getPreferredWidth(Void) : Number{
> return 80;
> }
> 
> function getPreferredHeight(Void) : Number{
> return 30;
> }
> 
> function change() {
> listOwner.editField(getCellIndex().itemIndex,
> getDataLabel(), dateObj.selectedDate);
> __value = dateObj.selectedDate;
> 
>   // Fire Cell edit event for the DataGrid on date change
> listOwner.dispatchEvent({type:"cellEdit",
> columnIndex:getCellIndex().columnIndex,
> itemIndex:getCellIndex().itemIndex});
> }
> 
> }
> 
> Intially label displays the formatted date. But on clicking on the
> cell default editor(textfield) is displayed. Can somebody please help
> on what could be causing this problem.
> 
> Can i create my own custom editor just like the default text editor?
> 
> Thanks in advance,
> Pradeep
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
>


 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Serious corruption in Flex-generated SWF

2005-05-17 Thread JesterXL
I've seen it with Canvas containers, but that was because the author didn't 
specific x and y positions for the controls.

Are you using an event to redraw/reposition elements in the containers of 
the Accordion?

- Original Message - 
From: "Tim Blair" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, May 17, 2005 6:57 AM
Subject: [flexcoders] Serious corruption in Flex-generated SWF


Morning all,

We're having severe issues with components within a Flex-generated SWF
being displayed corrupt.  The problem is that this doesn't happen all
the time, and I can't seem to find a reproducable method of "forcing"
the corruption.

Examples of the sort of thing we're seeing can be seen here:
http://kryten.rawnet.com/flex/flex-corrupt.html

All corruption occurs at the same time (i.e. when one thing goes, they
all go), but not all components are affected.  The problem only seems to
affect components displayed within an accordian, but again not all
contained components are effected.  If you look at example 1 on the page
above, the items under "edit existing..." are corrupt, whereas those
under the "create new..." heading are displayed fine.

Does anyone have any idea what's going on here?  Has anyone seen this
before?

Thanks,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---



Yahoo! Groups Links







 
Yahoo! Groups Links

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

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

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




[flexcoders] Re: Flex and Google Maps

2005-05-17 Thread Corey
Hi Jeff,

I tried to view the code from FlexAuthority.com for the google maps 
and it pops up a window but never loads the content in the window.  
Do you know where I can view the code for this flex based google 
maps?

Thanks,

COREY

--- In flexcoders@yahoogroups.com, "Corey" <[EMAIL PROTECTED]> wrote:
> Hi Jeff,
> 
> Thanks for the information.  I figured someone had done something 
> like this already.  I can use what Manish has started to do what I 
> need.
> 
> Thanks,
> 
> Corey
> 
> --- In flexcoders@yahoogroups.com, "Jeff Steiner" <[EMAIL PROTECTED]> 
wrote:
> > corey,
> > 
> > Manish did this a while back and posted the sample on Flex 
> Authority.
> > 
> > Look in the Samples section under Advanced.
> > 
> > Jeff
> > http://www.flexauthority.com
> > 
> > - Original Message - 
> > From: "Corey" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Monday, May 16, 2005 10:13 PM
> > Subject: [flexcoders] Flex and Google Maps
> > 
> > 
> > > Hi All,
> > > 
> > > Has anyone used Flex as a front end for Google Maps?  I was 
> thinking 
> > > of giving this a stab but I have no idea how hard it might be 
or 
> if I 
> > > should even try it?  Any thoughts on this idea?
> > > 
> > > Thanks,
> > > 
> > > COREY
> > > 
> > > 
> > > 
> > > 
> > >  
> > > Yahoo! Groups Links
> > > 
> > > 
> > > 
> > >  
> > > 
> > >




 
Yahoo! Groups Links

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

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

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




[flexcoders] Re: Flex and Google Maps

2005-05-17 Thread Corey
Hi Jeff,

Thanks for the information.  I figured someone had done something 
like this already.  I can use what Manish has started to do what I 
need.

Thanks,

Corey

--- In flexcoders@yahoogroups.com, "Jeff Steiner" <[EMAIL PROTECTED]> wrote:
> corey,
> 
> Manish did this a while back and posted the sample on Flex 
Authority.
> 
> Look in the Samples section under Advanced.
> 
> Jeff
> http://www.flexauthority.com
> 
> - Original Message - 
> From: "Corey" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, May 16, 2005 10:13 PM
> Subject: [flexcoders] Flex and Google Maps
> 
> 
> > Hi All,
> > 
> > Has anyone used Flex as a front end for Google Maps?  I was 
thinking 
> > of giving this a stab but I have no idea how hard it might be or 
if I 
> > should even try it?  Any thoughts on this idea?
> > 
> > Thanks,
> > 
> > COREY
> > 
> > 
> > 
> > 
> >  
> > Yahoo! Groups Links
> > 
> > 
> > 
> >  
> > 
> >




 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] combobox selectedIndex

2005-05-17 Thread Allen Manning
Title: Mercury Email Signature





Shlomi,
 
One possibility is that you are setting the index of the combobox before 
the databinding fires.  Thus:
 
1.  It attempts to set the index to 2.
2.  It sees the dataprovider has length 0.
3.  It silently fails at runtime.
 
some time goes by
 
4.  The dataprovider is populated by 
databinding.
 
You might want to try this:
 
    
private function getMySelectedIndex(intervals:Object):Number
    
{
    

    return(2);
 
    
}
 
 
 
selectedIndex="{getMySelectedIndex(intervals)}"/>
 
When 'intervals' changes it fires off a call to the local function 
getMySelectedIndex via databinding.
 
 
HTH,
Allen

  
  

  


   

  Allen 
Manning, Technical Director 

  Prismix 
Ltd t: +44 (0)870 749 1100 f: +44 
(0)870 749 1200 w: www.prismix.com 

 
 
 
 
 
 
 
 



From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Sreejith 
UnnikrishnanSent: 17 May 2005 14:34To: 
flexcoders@yahoogroups.comSubject: Re: [flexcoders] combobox 
selectedIndex
Shlomi,There's nothing wrong 
with the code that you have posted below.Only reason why I think this would 
not work is if you have only 2 items in the ComboBox!If not, try this as 
wellinitialize="intervalCMB.selectedIndex="2" 
/>SreeShlomi Cohen wrote: 

  

  
   
  Hi
   
  Does anyone 
  know how to set an initial selected index on a Combo (for edit dialog for 
  example)
   
  i have tried 
  this code and it doesn't work .
  selectedIndex="2" />thanks
   
  Shlomi__This 
  email has been scanned by the MessageLabs Email Security System.For more 
  information please visit http://www.messagelabs.com/email 
  __







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] combobox selectedIndex

2005-05-17 Thread Sreejith Unnikrishnan
Title: Mercury Email Signature






Shlomi,

There's nothing wrong with the code that you have posted below.
Only reason why I think this would not work is if you have only 2 items
in the ComboBox!

If not, try this as well
intervalCMB" dataProvider="{intervals}"
initialize="intervalCMB.selectedIndex="2" />

Sree

Shlomi Cohen wrote:

  
  
  
  
   
  Hi
   
  Does
anyone know how to set an initial selected index on a Combo (for edit
dialog for example)
   
  i
have tried this code and it doesn't work .
  
  intervalCMB" dataProvider="{intervals}"
  selectedIndex="2" />
  
  thanks
   
  Shlomi
  
__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__










Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.














[flexcoders] combobox selectedIndex

2005-05-17 Thread Shlomi Cohen
Title: Mercury Email Signature





 
Hi
 
Does anyone know 
how to set an initial selected index on a Combo (for edit dialog for 
example)
 
i have tried this 
code and it doesn't work .
selectedIndex="2" />thanks
 
Shlomi

__
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.











RE: [flexcoders] XML vs Model?

2005-05-17 Thread Matt Horn
>>What's folks here input on pro's / con's of XML vs Model?

It doesn't sound like it applies to your situation, but XML works better
as a dataprovider to the Tree and other list-based controls than does
Model. I found this out when working through a customer issue. Doc'd
here:
 
http://livedocs.macromedia.com/flex/15/flex_docs_en/0624.htm
 
hth,
 
matt horn
flex docs




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Scott Barnes
Sent: Tuesday, May 17, 2005 2:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML vs Model?


I've got a external source that pulls in XML file (config).

Now, I'm having my own internal debate as to which of the two is
betterere?

I've noticed no real signficant performance gains (via profiler)
with
using either, the only thing it kind of brings to the table is
that
you can access a node XYZ levels deep by using property chains
(parent.child.infant.siblings).

Thats fine, but this will be parsed once-off, and i've found
that i've
i go the XML route (ie writing my own specific parser, it tends
to be
less work.

(in that i've found that you have nodes in your XML that are
using the
same name, but can be either 1 or more, you have to test to see
if the
node in question is an array, otherwise its a literal object and
treat
it as such - when using model vs childNodes approach via XML
(which is
always array).

What's folks here input on pro's / con's of XML vs Model?
-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com




Yahoo! Groups Links


*   To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
*   To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
 
  
*   Your use of Yahoo! Groups is subject to the Yahoo! Terms
of Service  . 






 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Re: BiDi/right-to-left support in Flex

2005-05-17 Thread David Mendels
Hi,

We understand the need for RTL/Bi-Di text and want to get this into the
Flash Player as soon as possible.  However, it is not in the upcoming
release, so it will be some time before this can happen.  Please don't
make any plans assuming we will be able to make it work.

I know this is unfortunate for a number of uses of Flex and we want to
fix it.  But it is a significant engineering change to the Flash Player
and we can't just "squeeze it in".  I can't make any predictions yet
about when we will get it in, but for your planning purposes certainly
please do not expect it in the next 12 months. :(

Regards,
David
Macromedia

 

> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On Behalf Of jruud68
> Sent: Tuesday, May 17, 2005 3:51 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: BiDi/right-to-left support in Flex
> 
> Gordon, we are developing a prototype of an application that 
> would run on a number of different languages, including RTL 
> languages (arabic is likely the most urgent). The lack of RTL 
> support may be a deal-breaker, but it would be helpful if we 
> could tell our potential customer that RTL support is coming 
> (and give them as much information about it as possible). 
> 
> Thanks, John
> 
> --- In flexcoders@yahoogroups.com, Gordon Smith <[EMAIL PROTECTED]> wrote:
> > A TextField, which is the underlying Flash Player object rendering
> the text,
> > does not support right-to-left scripts such as Hebrew or Arabic. 
> Are you
> > developing applications for these markets? Can you let us know
> about the
> > demand for them, to help our player team judge the importance of
> this
> > feature?
> > 
> > - Gordon
> > 
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of jruud68
> > Sent: Monday, May 16, 2005 10:21 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] BiDi/right-to-left support in Flex
> > 
> > 
> > I was just browsing through the code for mx:TextInput, trying to 
> > figure out if it would be possible to add right-to-left 
> support to the 
> > basic Flex input controls (like mx:TextInput). However, I
> suspect
> > there is probably some reason why this wasn't just added to Flex in 
> > the first place... Has anybody tried to implement this themselves,
> and
> > did you have any luck? 
> > 
> > Thanks, John
> > 
> > 
> > 
> > 
> >  
> > Yahoo! Groups Links
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 


 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] Flex and Google Maps

2005-05-17 Thread Jeff Steiner
corey,

Manish did this a while back and posted the sample on Flex Authority.

Look in the Samples section under Advanced.

Jeff
http://www.flexauthority.com

- Original Message - 
From: "Corey" <[EMAIL PROTECTED]>
To: 
Sent: Monday, May 16, 2005 10:13 PM
Subject: [flexcoders] Flex and Google Maps


> Hi All,
> 
> Has anyone used Flex as a front end for Google Maps?  I was thinking 
> of giving this a stab but I have no idea how hard it might be or if I 
> should even try it?  Any thoughts on this idea?
> 
> Thanks,
> 
> COREY
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 


 
Yahoo! Groups Links

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

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

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




[flexcoders] Disappearing images in custom cell renderer

2005-05-17 Thread Tim Blair
What is it with me and images at the moment...?

Anyway, I'm having trouble with displaying thumbnails in a custom cell
renderer within a TileList component.  The code for the cell renderer is
displayed below (AssetThumbnail.mxml) and the line that defines the
TileList is also shown (ThumbnailView.mxml).

When the user clicks on a given item, a search is performed which
populates the aAssetSearch array with the appropriate Asset instances to
display thumbnails for; this is then bound to the TileList as the
dataProvider.  When the list of images are displayed, one of the
following happens:

 1. the thumbnail displays correctly;
 2. displays correctly, then after a second or so vanishes;
 3. nothing is displayed.

My guess is that #3 is actually #2 happening very quickly so the "in
between" redraw doesn't actually happen.  I can often get the missing
images to redisplay by performing a new search and then going back to
the original, at which point the original search's assets have already
been pulled back from the database and cached.  Sometimes this can be
achieved by scrolling the TileList up and down to redraw the appropriate
cells.  Neither of these two methods either works 100% of the time, and
quite often the cells remain blank.

This pointed me towards the thought that there was something strange
going on with the Asset instances that meant they weren't returning the
appropriate URL for the image, or it was being returned and then reset.
However, I tried adding a trace into the dynamic "get" function for the
thumbnail URL (see code for Asset.as below) and all looks fine (i.e. it
returned the URL correctly).

Has anyone got any idea why this may be happening?

Thanks,

Tim.


ThumbnailView.mxml:
---





AssetThumbnail.mxml:



http://www.macromedia.com/2003/mxml";
 width="100%" height="100%" horizontalAlign="center"
 verticalAlign="middle" toolTip="{asset.title}">

  
  
  

  
  
  




Asset.as


[ChangeEvent("thumbURLChanged")]
public function get thumbURL(): String {
return AssetManager.getInstance().getAssetPath(_thumbfile,
   true,
   "thumb");
}
public function set thumbURL(sURL: String): Void {
dispatchEvent( {type:"thumbURLChanged"} );
}


--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

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

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




[flexcoders] How to render cell to be in edit mode dynamically through cell renderer

2005-05-17 Thread Pradeep
I am trying to use a Custom Date Cell Renderer which goes in edit mode
only when cell gains focus on it. Otherwise a label displays formatted
Date value.

Following is the code for the DateRenderer :-

import mx.core.UIComponent
import mx.core.UIObject
import mx.controls.DateField
import mx.controls.Label
import mx.controls.Alert
import mx.formatters.DateFormatter

class common.control.DateRenderer extends UIComponent{
var dateObj:DateField;
var label:Label;
var dateFormat: DateFormatter;
var listOwner : MovieClip;
var getDataLabel : Function;
var getCellIndex : Function;
var __value;

public function DateRenderer(){
dateFormat = new DateFormatter();
dateFormat.formatString="MM-DD-";
this.addEventListener("focusIn", this);
this.addEventListener("focusOut", this);
}

function createChildren(Void) : Void{
super.createChildren();
createClassObject( Label, "label", 1, {owner:this});
label.width=80;
}

//Display date field for editing on focus.
function focusIn() : Void { 
createClassObject( DateField, "dateObj", 2, {owner:this});
dateObj.width=80;
dateObj.dateFormatter = this.formatDate;
dateObj.selectedDate = __value;
dateObj.addEventListener("change", this);   
label.visible = false;
dateObj.visible = true;
}

 //Remove date field and make label visible again.
function focusOut() : Void {
dateObj.visible = false;
label.visible = true;
destroyObject("dateObj");
}

//Format function
function formatDate(itemDate){
return dateFormat.format(itemDate);
}

function setValue( str:String, item:Object, sel:Boolean ) : Void{
if(item != undefined){
label.text= formatDate( item[getDataLabel()]);
__value =  item[getDataLabel()];
label.visible = true;
}
}

function getValue() : String {  
return __value;
}

function getPreferredWidth(Void) : Number{
return 80;
}

function getPreferredHeight(Void) : Number{
return 30;
}

function change() {
listOwner.editField(getCellIndex().itemIndex,
getDataLabel(), dateObj.selectedDate);
__value = dateObj.selectedDate;
   
  // Fire Cell edit event for the DataGrid on date change
listOwner.dispatchEvent({type:"cellEdit",
columnIndex:getCellIndex().columnIndex,
itemIndex:getCellIndex().itemIndex});
}

}

Intially label displays the formatted date. But on clicking on the
cell default editor(textfield) is displayed. Can somebody please help
on what could be causing this problem.

Can i create my own custom editor just like the default text editor?

Thanks in advance,
Pradeep




 
Yahoo! Groups Links

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

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

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




[flexcoders] Image not being resized in mx:Image tag

2005-05-17 Thread Tim Blair
Hello,

I'm having trouble with images not resizing to fit the  tag
specfied (and also with SWFs not resizing to fit the appropriate
).  An example can be seen at the following URL, where the
image (green boxes) *should* be contained within the grey box top right:

http://kryten.rawnet.com/flex/flex-corrupt.html#lgimage

The MXML to output the image is as follows:



Extra information:
 - "assetURL" is a simple string like http://server/path/
 - "asset" is an instance of an AS class
 - "asset.assetURL" is a dynamic property of the "asset" instance,
   with an appropriate changeEvent defined

Any idea why this should be the case?

Thanks,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

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

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




[flexcoders] Serious corruption in Flex-generated SWF

2005-05-17 Thread Tim Blair
Morning all,

We're having severe issues with components within a Flex-generated SWF
being displayed corrupt.  The problem is that this doesn't happen all
the time, and I can't seem to find a reproducable method of "forcing"
the corruption.

Examples of the sort of thing we're seeing can be seen here:
http://kryten.rawnet.com/flex/flex-corrupt.html

All corruption occurs at the same time (i.e. when one thing goes, they
all go), but not all components are affected.  The problem only seems to
affect components displayed within an accordian, but again not all
contained components are effected.  If you look at example 1 on the page
above, the items under "edit existing..." are corrupt, whereas those
under the "create new..." heading are displayed fine.

Does anyone have any idea what's going on here?  Has anyone seen this
before?

Thanks,

Tim.

--
---
Badpen Tech - CF and web-tech: http://tech.badpen.com/
---
RAWNET LTD - independent digital media agency
"We are big, we are funny and we are clever!"
 New site launched at http://www.rawnet.com/
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---


 
Yahoo! Groups Links

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

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

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




[flexcoders] Re: embed flash symbol problem

2005-05-17 Thread joao_m_fernandes
Thanks, 

It worked just fine.

João Fernandes

--- In flexcoders@yahoogroups.com, "Wilfred LEUNG" <[EMAIL PROTECTED]> wrote:
> Use this syntax:
> 
> [Embed(source="/images/icons/mensagens.swf", symbol="icon_info1")]
> var icon_info:String;
> 
> 
> Wilfred
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of joao_m_fernandes
> Sent: Monday, May 16, 2005 9:58 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] embed flash symbol problem
> 
> 
> Hi there,
> 
> I have a AS file that have all my icons (gif format) and now I'm trying
> to set new ones but in swf format like this:
> 
> [Embed(source="/images/icons/mensagens.swf#icon_info1")]
> var icon_info:String;
> 
> when I run my aplication I get this error:
> 
> Error D:\sites\intranet 2\foot\component_entidade-generated.as:2
> Failed to find resource: /images/icons/mensagens.swf#icon_info1
> 
> but if I this code 
>  
> 
> It works just fine. 
> 
> Any ideia? Is there any special property to be set inside flash for
> exporting?
> 
> thanks,
> 
> João Fernandes
> 
> 
> 
> 
>  
> Yahoo! Groups Links




 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] XML vs Model?

2005-05-17 Thread Abdul Qabiz
They are similar things IMO. If you specify a source file for XML or Model
tag, source (xml)file is compiled into swf. So no loading on runtime but a
large initial swf size. P

I think, Model should be good at performance because it is simple Object not
a XMLNode. 


Let's see, what other people say...


-abdul
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Barnes
Sent: Tuesday, May 17, 2005 12:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] XML vs Model?

I've got a external source that pulls in XML file (config).

Now, I'm having my own internal debate as to which of the two is betterere?

I've noticed no real signficant performance gains (via profiler) with
using either, the only thing it kind of brings to the table is that
you can access a node XYZ levels deep by using property chains
(parent.child.infant.siblings).

Thats fine, but this will be parsed once-off, and i've found that i've
i go the XML route (ie writing my own specific parser, it tends to be
less work.

(in that i've found that you have nodes in your XML that are using the
same name, but can be either 1 or more, you have to test to see if the
node in question is an array, otherwise its a literal object and treat
it as such - when using model vs childNodes approach via XML (which is
always array).

What's folks here input on pro's / con's of XML vs Model?
-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com


 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] help on HTTP service

2005-05-17 Thread Abdul Qabiz
Hi,

Make sure  "LOGINVALIDATE.JSP" has XHTML rather than HTML i.e. make sure all
tags have end tags or closed properly. 

You can return a xml string from LOGINVALIDATE.JSP. It's better to create a
separate LOGINVALIDATE.JSP for flex only, I mean if you are using
LOGINVALIDATE.JSP for a html front-end also then it might not work with
HTTPService. HTTPService expects result in form of XML or LoadVars(if you
specify that option).

For example:

##LOGINVALIDATE.JSP##

<%

//process uid and password

//set userID and bLoginSucceeded

%>


<%=userID%>
<%=bLoginSucceeded%>



In flex app, you can access response in following way, suppose "hs" id of
HTTPService tag:

hs.result.LOGIN_RESULT.USER_ID 
hs.result.LOGIN_RESULT.VALID


-abdul


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gaurav verma
Sent: Tuesday, May 17, 2005 11:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] help on HTTP service

not able to send data from the mxml to the jsp page 

i want create a page which takes the values like "LOGIN ID" 
and "PASSWORD" to the another JSP page( this pages validates the 
loginid from my database) im using the following code :




http://www.macromedia.com/2003/mxml";>
http://pjainserver:8101/login/loginvalidate.jsp"; >


{username.text}
{password.text}

 

   
   
  
   
   
  
   
   
  
   





this is returning a error " HTTP SERVICE FAULT. A start tag had 
nocorresponding end tag"

note : my LOGINVALIDATE.JSP also contain html tags.

wht to do now




 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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




RE: [flexcoders] Re: cell render problem

2005-05-17 Thread Abdul Qabiz
That might also be the case, so there are two reasons it is not working:

1) function to populate combobox being called before data arrives from
server
2) dataProvider is not being set to right type.

I have doubt in (1), if it is fine, then you can go ahead anc check for
second option..

-abdul 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of indiver
Sent: Tuesday, May 17, 2005 2:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: cell render problem

It appears that you are value that you are trying to setup agains t
the dataProvider is incorrect. I've found that the best way to debug
such issues is to turn on debugging for http-services in
flex-config.xml, and then look at the flash log for the results returned.

Alternately, if you use Flex Builder, setup breakpoint within the
function where you set setting the dataprovider value, and view the
variables available at that point.

Indy
--- In flexcoders@yahoogroups.com, "Rajesh Jayabalan" <[EMAIL PROTECTED]> wrote:
> Hi,
> 
>  I am trying to create a combobox cell renderer. 
> 
> In my mxml file I am trying to set a httpserivce as the dataprovider
> for the cell renderer
> 
> note:: clTypeSrv is my HTTPService and clTypeSrv.send() is called on
> application initilize.
> 
> private function initCellRenderer() : Void  
>   {
>   ComboBoxCellRenderer.dataProvider = clTypeSrv.result.types.type;
>   }
> 
> this is creating a empty combobox 
> 
> Note: There is data coming back from the httpserivce as I am using it
> in another place
> 
> when I set it as static values I can see the combobox.
> 
> i.e.,
> ComboBoxCellRenderer.dataProvider = [ "Development Director",
> "Technical Director", "Technical Architect" ];
> 
> How can I make my combobox accept a httpservice as a dataprovider.
> 
> Rajesh J




 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

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

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




Re: [flexcoders] cell render problem

2005-05-17 Thread Sreejith Unnikrishnan






If Abdul's query is true about the
data arriving later ... you should maybe call the initCellRenderer
later.
I assume you are calling initCellRenderer on initialize of the
application. (I assumed so since there are traces of Steven's post
(http://www.richinternetapps.com/archives/72.html) in your post.

Try the following.

1. Call clTypeSrv.send()
in the application tag
2. Call a function populateComboBox()
in the HTTPService tag
3. Populate the values to the ComboBoxRenderer through the script (this
ensures that the population happens after data is retrieved)
4. Maybe and a
slight maybe that "type" in "clTypeSrv.result.types.type" is a reserved word and is
creating a problem! (somebody with better knowledge on this can
clarify!)


"http://www.macromedia.com/2003/mxml"
initialize="clTypeSrv.send()">
    
    
    

    
        
        ...
        
    
        ..
    
    ...
    



Regards
Sree

Abdul Qabiz wrote:

When are you calling initCellRenderer? May be data has not yet arrived
and
this functiong gets called.
  
Are you able to see data in initCellRenderer function?
  
  
-abdul 
  
-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On
Behalf Of Rajesh Jayabalan
Sent: Tuesday, May 17, 2005 2:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] cell render problem
  
Hi,
  
I am trying to create a combobox cell renderer. 
  
In my mxml file I am trying to set a httpserivce as the dataprovider
for the cell renderer
  
note:: clTypeSrv is my HTTPService and clTypeSrv.send() is called on
application initilize.
  
private function initCellRenderer() : Void  
  {
  ComboBoxCellRenderer.dataProvider = clTypeSrv.result.types.type;
  }
  
this is creating a empty combobox 
  
Note: There is data coming back from the httpserivce as I am using it
in another place
  
when I set it as static values I can see the combobox.
  
i.e.,
ComboBoxCellRenderer.dataProvider = [ "Development Director",
"Technical Director", "Technical Architect" ];
  
How can I make my combobox accept a httpservice as a dataprovider.
  
Rajesh J
  
  
  
  
  
  
Yahoo! Groups Links
  
  
  
  
  
  
  










Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.














Re: [flexcoders] Re: BiDi/right-to-left support in Flex

2005-05-17 Thread Johannes Nel
this has been requested in every version of the flash player recently
and i am not expecting it in the next  release either :(


On 5/17/05, jruud68 <[EMAIL PROTECTED]> wrote:
> Gordon, we are developing a prototype of an application that would
> run on a number of different languages, including RTL languages
> (arabic is likely the most urgent). The lack of RTL support may be a
> deal-breaker, but it would be helpful if we could tell our potential
> customer that RTL support is coming (and give them as much
> information about it as possible).
> 
> Thanks, John
> 
> --- In flexcoders@yahoogroups.com, Gordon Smith <[EMAIL PROTECTED]> wrote:
> > A TextField, which is the underlying Flash Player object rendering
> the text,
> > does not support right-to-left scripts such as Hebrew or Arabic.
> Are you
> > developing applications for these markets? Can you let us know
> about the
> > demand for them, to help our player team judge the importance of
> this
> > feature?
> >
> > - Gordon
> >
> >
> > -Original Message-
> > From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of jruud68
> > Sent: Monday, May 16, 2005 10:21 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] BiDi/right-to-left support in Flex
> >
> >
> > I was just browsing through the code for mx:TextInput, trying to
> > figure out if it would be possible to add right-to-left support to
> > the basic Flex input controls (like mx:TextInput). However, I
> suspect
> > there is probably some reason why this wasn't just added to Flex in
> > the first place... Has anybody tried to implement this themselves,
> and
> > did you have any luck?
> >
> > Thanks, John
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
j:pn


 
Yahoo! Groups Links

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

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

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




[flexcoders] New Moderation Policy - FYI

2005-05-17 Thread Steven Webster





All,
 
Yesterday we 
realised that yahoogroups now supports a "moderate first post" option to 
the
flexcoders mailing 
list; this means when someone joins the list, their first post will have 
to
get moderator 
approval before they are allowed to post again.
 
This should 
hopefully curtail the number of "Oracle 10g Jobs in Chennai" posts 
that
have been coming 
through to the list from recruitment spams in recent weeks.
 
The flipside is that 
your first post to the list may take several hours (if the 
moderators
are in bed) to 
appear.  I trust that this is acceptable, for the reduction of 
(admittedly
low volumes right 
now) spam to the list.
 
Best,
 
Steven
 


--
Steven WebsterTechnical 
Director
iteration::two
 
This e-mail and any associated attachments 
transmitted with it may contain confidential information and must not be copied, 
or disclosed, or used by anyone other than the intended recipient(s). If you are 
not the intended recipient(s) please destroy this e-mail, and any copies of it, 
immediately. Please also note that while software systems have been 
used to try to ensure that this e-mail has been swept for viruses, 
iteration::two do not accept responsibility for any damage or loss caused in 
respect of any viruses transmitted by the e-mail. Please ensure your own checks 
are carried out before any attachments are 
opened.
 







Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Re: cell render problem

2005-05-17 Thread indiver
It appears that you are value that you are trying to setup agains t
the dataProvider is incorrect. I've found that the best way to debug
such issues is to turn on debugging for http-services in
flex-config.xml, and then look at the flash log for the results returned.

Alternately, if you use Flex Builder, setup breakpoint within the
function where you set setting the dataprovider value, and view the
variables available at that point.

Indy
--- In flexcoders@yahoogroups.com, "Rajesh Jayabalan" <[EMAIL PROTECTED]> wrote:
> Hi,
> 
>  I am trying to create a combobox cell renderer. 
> 
> In my mxml file I am trying to set a httpserivce as the dataprovider
> for the cell renderer
> 
> note:: clTypeSrv is my HTTPService and clTypeSrv.send() is called on
> application initilize.
> 
> private function initCellRenderer() : Void  
>   {
>   ComboBoxCellRenderer.dataProvider = clTypeSrv.result.types.type;
>   }
> 
> this is creating a empty combobox 
> 
> Note: There is data coming back from the httpserivce as I am using it
> in another place
> 
> when I set it as static values I can see the combobox.
> 
> i.e.,
> ComboBoxCellRenderer.dataProvider = [ "Development Director",
> "Technical Director", "Technical Architect" ];
> 
> How can I make my combobox accept a httpservice as a dataprovider.
> 
> Rajesh J




 
Yahoo! Groups Links

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

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

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




[flexcoders] help on HTTP service

2005-05-17 Thread gaurav verma
not able to send data from the mxml to the jsp page 

i want create a page which takes the values like "LOGIN ID" 
and "PASSWORD" to the another JSP page( this pages validates the 
loginid from my database) im using the following code :




http://www.macromedia.com/2003/mxml";>
http://pjainserver:8101/login/loginvalidate.jsp"; >


{username.text}
{password.text}

 

   
   
  
   
   
  
   
   
  
   





this is returning a error " HTTP SERVICE FAULT. A start tag had 
nocorresponding end tag"

note : my LOGINVALIDATE.JSP also contain html tags.

wht to do now




 
Yahoo! Groups Links

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

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

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




  1   2   >