Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 08-22-2012, 04:25 PM   #1
Registered User
Join Date: Aug 2012
Posts: 1
Post Accessing functions problem

(May involve flashpunk.) I have a function advanceLevel() in MyGameWorld. MyGameWorld creates the player and the level. I want to call advanceLevel() inside the player with a line like this:


But, I get an error like this:

"Error: Call to a possibly undefined method advanceLevel through a reference with static type Class."

How do I access this function?
Businesstoast is offline   Reply With Quote
Old 08-23-2012, 09:16 AM   #2
Senior Member
Poony's Avatar
Join Date: Aug 2011
Location: Sweden
Posts: 390

Relative to the player, the function exists in parent.
ActionScript Code:
Poony is offline   Reply With Quote

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

Forum Jump

All times are GMT. The time now is 04:37 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.