This text is replaced by the site logo. If not, try enabling javascript.
Advertise
|
About us
|
Site map
|
Syndicate
|
Search site
|
Mailing list
|
View Authors
|
Become an Author
Home
Tutorials
Forums
Articles
Blogs
Movies
Library
Employment
Press
ActionScript.org Forums
>
Extensions and Plugins
>
Components
Component Arguments
User Name
Remember Me?
Password
Register
FAQ
Members List
Social Groups
Calendar
Search
Today's Posts
Mark Forums Read
Thread Tools
Rate Thread
Display Modes
02-01-2008, 03:28 PM
#
1
kaydara
Registered User
Join Date: Jan 2008
Posts: 7
Component Arguments
Hey guys,
im using actionscript with flex.
I have a custom component, but i need to create that custom component with some arguments...
if i do this:
var tmp:CustomComponent = new CustomComponent("lol") ;
how can i recieve the lol in the component ?
In wich variables should i recieve that, and do i need a oncreation function ?
Thanks in advanced.
kaydara
View Public Profile
Find More Posts by kaydara
02-01-2008, 06:06 PM
#
2
Slowburn
[Invent:Design:Create]
Join Date: Sep 2002
Location: Toronto, ON
Posts: 2,068
edit your CustomCompoent class files to include arguments.....or extend the custom component class to accept argument values.
__________________
o Please do a search before you post
o Please use the [ as][ /as] tag for your code (so we can read it clearly)
Slowburn
View Public Profile
Visit Slowburn's homepage!
Find More Posts by Slowburn
02-01-2008, 08:07 PM
#
3
dr_zeus
Feathers
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,999
The argument goes to the constructor of your custom component.
__________________
Josh Tynjala |
Feathers
dr_zeus
View Public Profile
Visit dr_zeus's homepage!
Find More Posts by dr_zeus
02-01-2008, 08:09 PM
#
4
Slowburn
[Invent:Design:Create]
Join Date: Sep 2002
Location: Toronto, ON
Posts: 2,068
sorry, should have clarified that.....thanks zeus.
__________________
o Please do a search before you post
o Please use the [ as][ /as] tag for your code (so we can read it clearly)
Slowburn
View Public Profile
Visit Slowburn's homepage!
Find More Posts by Slowburn
02-02-2008, 10:23 AM
#
5
kaydara
Registered User
Join Date: Jan 2008
Posts: 7
thanks guys
kaydara
View Public Profile
Find More Posts by kaydara
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Rate This Thread
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
Rate This Thread
:
5 : Excellent
4 : Good
3 : Average
2 : Bad
1 : Terrible
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
Off
HTML code is
Off
Forum Rules
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
ActionScript Forums Group
ActionScript 3.0
ActionScript 2.0
ActionScript 1.0 (and below)
Simple Stuff (Newbies)
Flash General Questions
Flash 10 General Questions
Flash 9 General Questions
Flash 8 General Questions
Other Flash General Questions
Flex
Flex 2, 3 & 4
Flex 1
Extensions and Plugins
Components
JSFL - Extending Flash
Desktop, Mobile and non-browser Environments
AIR (Apollo)
FlashLite / Portable Devices Development
Projectors and CDs
Supporting Technologies
HTML and JavaScript
haXe
Server-Side Scripting
Flash Remoting
Flash Media Server
General
Best Practices
Gaming and Game Development
Animation and Effects
Flashants Support Forum
Community Boards
General Chat
Just for Kicks Challenges
Detention
Flash In Action
Site Check
Cool Sites
Widgets
Decommissioned
Projects and Positions
CMS Forums
Announcements Board
Content Postings / Updates
Product Review Requests
CMS Technical Questions
Process Questions
Collaboration & Suggested Articles
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
How to add parameters to component built from scratch
[email protected]
Components
9
12-03-2007
11:04 PM
removeMovieClip() not work for components?
djandrew
Components
30
08-03-2007
04:51 PM
Proper way to bind data to the DataGrid component - Best practices.
andrea_muta
Components
1
04-03-2007
09:13 AM
dynamic component (radiobutton) with setChangeHandler problem
tROCK
Components
6
08-25-2004
04:49 PM
help needed referencing a component instance inside my own custom component
bleepbloop
Components
4
08-06-2004
10:31 PM
All times are GMT. The time now is
12:01 AM
.
///
Categories
Tutorials
Flash
Flex
Articles
Best Practices
Product Reviews
Third Party
Press Releases
The Community
Featured Jobs
Technical Flash Artist
MADISON, USA
iPhone/iPad Developer - CREATIVE CIRCLE
Philadelphia, USA
UX DESIGNER - CREATIVE CIRCLE
Philadelphia, USA
- More ActionScript, Flash and Flex jobs in the Employment Section.
- Advertise a job for free
Contact Us
-
Home Page
-
Archive
-
Privacy Statement
-
Top
Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Ad Management plugin by
RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our
Privacy Policy and Terms of Use
.