Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 10-17-2006, 04:53 PM   #1
brookswift
Registered User
 
Join Date: Oct 2006
Posts: 1
Default calling a method in a custom component

I've created a custom compontent, and in that component, I have an mx-script block with some parameters and methods. However, I can't seem to properly call the method in an instance of the custom compontent. Here is an example of what I'm trying to do:

<v:TopNavButton param1="1" param2="2" creationComplete="method();"/>

I get the error that this is a call to a possibly undefined method. What format should I use to properly use the method?
brookswift is offline   Reply With Quote
Old 10-17-2006, 04:58 PM   #2
dr_zeus
Feathers
 
dr_zeus's Avatar
 
Join Date: Mar 2005
Location: Silicon Valley
Posts: 1,999
Default

Try something like this instead:

<v:TopNavButton id="myComponent" param1="1" param2="2" creationComplete="myComponent.method();"/>
__________________
Josh Tynjala | Feathers
dr_zeus is offline   Reply With Quote
Old 10-17-2006, 05:03 PM   #3
Tink
Addict
 
Tink's Avatar
 
Join Date: Nov 2001
Location: London
Posts: 2,128
Default

yeah, you might as well call that from inside itself though right?
Tink is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Component Custom UI problem derketa Components 0 03-24-2006 11:43 AM
Variable-sized custom component in a Scroll Pane chrispix Components 0 03-02-2005 07:23 PM
Custom Component Suggestions novafirst ActionScript 2.0 0 12-02-2004 06:20 AM
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 10:05 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, 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.