Adobe Dreamweaver Forums



Last 10 THreads :         Spry issue with fade (Last Post : Dooza - Replies : 8 - Views : 9 )           »          Navigation from Contact Form (Last Post : mtrueblood - Replies : 2 - Views : 4 )           »          dreamweaver v. movable type? (Last Post : Dooza - Replies : 1 - Views : 2 )           »          Disabling menu bars in a browser window (Last Post : Dooza - Replies : 1 - Views : 2 )           »          Video gallery (Last Post : drjury - Replies : 2 - Views : 4 )           »          Print Documentation (Last Post : Ges-Wells - Replies : 2 - Views : 3 )           »          How to show double byte data in a Flex application (Last Post : Videogy - Replies : 4 - Views : 20 )           »          Controling a Virtual Keyboard from Director MX (Last Post : RandallH - Replies : 0 - Views : 1 )           »          CF8 Help in Dreamweaver CS3 (Last Post : A.J.cfm - Replies : 0 - Views : 1 )           »          Focus, Browsers & Spry Accordion (Last Post : Al Sparber - PVII - Replies : 4 - Views : 5 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 12-04-2008, 06:22 PM
baddcafe
 
Posts: n/a
Diggs:
Default dumb flex question about mxml arguements

Hi all,
I have two questions for those people who are more experienced than I with
flex.
1. is there any way to make certain arguments into requirements for component
instantiation? So if you use my component you have to specify some non default
args? similar to in a constructor...
2. if I define a method in a component, for example, something to add multiple
children to a container, how do i make it accessible within the component
definition? i'm looking for a way to add multiple items of a predetermined type
to a component within the application mxml so that users would define elements
using only tags, no scripting.



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-04-2008, 08:13 PM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: dumb flex question about mxml arguements


"baddcafe" <webforumsuser@macromedia.com> wrote in message
news:gh9759$326$1@forums.macromedia.com...
> Hi all,
> I have two questions for those people who are more experienced than I with
> flex.
> 1. is there any way to make certain arguments into requirements for
> component
> instantiation? So if you use my component you have to specify some non
> default
> args? similar to in a constructor...


Probably better to simply handle cases where they're not provided.

> 2. if I define a method in a component, for example, something to add
> multiple
> children to a container, how do i make it accessible within the component
> definition? i'm looking for a way to add multiple items of a predetermined
> type
> to a component within the application mxml so that users would define
> elements
> using only tags, no scripting.


Look in the docs under template components.

HTH;

Amy


Reply With Quote
  #3 (permalink)  
Old 12-04-2008, 09:13 PM
baddcafe
 
Posts: n/a
Diggs:
Default Re: dumb flex question about mxml arguements

hmm, yeah it seems like what i am after isn't possible. Basically i want required attributes for sort of design by contract type interfaces. oh well...
Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 05:40 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk