Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-13-2012, 09:14 PM   #1
PenguinLust
Member
 
Join Date: Feb 2012
Location: Ottawa, Canada
Posts: 99
Default this pointer in a component gives me Implicit coercion of a value of type Class...

...to an unrelated type

I have an AS class that takes an instance to a component in its ctor. And I'm creating the class in my component. So in the mx:Script part of this component I have:
Code:
public var ASinstance = new ASinstance(this);
I can understand why it doesn't like "this", it's an AS thing. So how do I pass the instance of my component to the ctor if not with "this"?
PenguinLust 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


All times are GMT. The time now is 12:27 PM.

///
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.