Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Encapsulating a custom flex component?   Topic List   < Prev Topic  |  Next Topic >
Reply | Forward < Prev Message  | 
Newbish question... but after searching on google, I can't get a concise answer.

Is it possible to encapsulate (mark private) components within a Flex component?

So I have custom MXML component (ResourcesTree) that has a Tree inside of it. I
don't want
the Tree to directly be available outside the ResourcesTree Component.

Any input?




Tue Jul 22, 2008 11:53 pm

nate3746
Offline Offline
Send Email Send Email

Forward
< Prev Message  | 
Expand Messages Author Sort by Date

Newbish question... but after searching on google, I can't get a concise answer. Is it possible to encapsulate (mark private) components within a Flex...
Nate Beck
nate3746
Offline Send Email
Jul 23, 2008
1:32 am

Not in MXML components. -Josh ... -- "Therefore, send not to know For whom the bell tolls. It tolls for thee."...
Josh McDonald
brucethebruiser
Offline Send Email
Jul 23, 2008
1:54 am

In an ActionScript component, you can make the component internal to the package. You might also combine it with the "ExcludeClass" metadata tag to 'hide' the...
Jeffry Houser
reboog711
Offline Send Email
Jul 23, 2008
1:03 pm

A feature request has been opened for adding accessors to MXML. Please vote on this if you see fitting. It also better explains the issue that I am running...
Nate Beck
nate3746
Offline Send Email
Jul 23, 2008
4:42 pm

I'm not sure whether either of these would serve your purposes, but I believe there are two ways to have a private property within an MXML-coded component. ...
Sid Maskit
smaskit
Offline Send Email
Jul 23, 2008
4:24 am

In thinking about this a little more, I have come up with a third way of achieving a private sub-component within an MXML-based component. Like the others,...
Sid Maskit
smaskit
Offline Send Email
Jul 23, 2008
5:51 pm

I just found this blog post which seems to provide a way of doing this that is very straightforward:...
Sid Maskit
smaskit
Offline Send Email
Jul 23, 2008
10:40 pm

Damn, why didn't I think of that? I'd been trying to think of ways to do that for ages a few months ago, trying to clean up the ctrl-space on some APIs :) ...
Josh McDonald
brucethebruiser
Offline Send Email
Jul 23, 2008
11:52 pm

Well, unfortunately, I did some further testing, and it turns out not to be as complete a solution as it initially appears to be. Here's a comment that I just...
Sid Maskit
smaskit
Offline Send Email
Jul 24, 2008
1:17 am

You're almost right. [Exclude] doesn't affect the compiled code at all - it only affects the introspector built into Builder, and ASDoc generation. It's ...
Josh McDonald
brucethebruiser
Offline Send Email
Jul 24, 2008
1:23 am

Ah, I see. Thanks for the clarification. ... From: Josh McDonald <dznuts@...> To: flexcoders@yahoogroups.com Sent: Wednesday, July 23, 2008 6:23:19 PM ...
Sid Maskit
smaskit
Offline Send Email
Jul 24, 2008
1:45 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help