Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

1411610 Posts in 69388 Topics- by 58447 Members - Latest Member: sinsofsven

May 09, 2024, 01:25:12 PM

Need hosting? Check out Digital Ocean
(more details in this thread)
TIGSource ForumsCommunityTownhallForum IssuesArchived subforums (read only)TutorialsiPhone / Flash help trade
Pages: [1]
Print
Author Topic: iPhone / Flash help trade  (Read 1905 times)
X3N
Level 6
*


View Profile
« on: December 25, 2010, 02:30:21 PM »

Hi everyone - I'm new to Flash, trying to port a fairly simple game of mine which has just few objects moving around the screen, chasing each other. Lo and behold, this is more difficult than I expected.

I do iPhone development full-time for work, and would be happy to trade some of my time for yours. Right now I have a few noobish questions like.. how do I subclass without "TypeError: Error #1007: Instantiation attempted on a non-constructor.
   at as3circle()". How do I dynamically create objects and change their image, etc.

I've made two iPhone games - they need some redesign/rebalancing work but I do understand basic/intermediate game programming for iPhone.

Considered posting in "Technical" but think this might be a better place for it?

Happy holidays!

EDIT: If your answer is "Learn Flixel" then.. let me know! Smiley
Logged

destiny is truth pre-op
knight
Level 3
***

aka dude4k


View Profile
« Reply #1 on: December 25, 2010, 03:13:01 PM »

Learn Flashpunk  Durr...?
No, but really flashpunk and flixel are great ways to prototype quickly if thats what you want. If you want to do it yourself(which isn't that hard if your familiar with oop) you should check out the livedocs.
Logged
zuperxtreme
Level 0
**


View Profile
« Reply #2 on: January 04, 2011, 09:01:23 AM »

I don't quite understand what you're asking.

Sub-classing(inheritance and all that jazz), is done using 'extend'. For example:
Code:
package 
{
public class A
{
public var aVariable:String = "A variable from class 'A'!";
public function A():void {
trace("Hi!");
}
}

}

package
{
import A;
public class B extends A
{
public function B():void {
trace(aVariable);
}
}

}

What exactly are you having problems with?
Logged
X3N
Level 6
*


View Profile
« Reply #3 on: January 08, 2011, 09:37:38 AM »

Some trouble making a new object on the visual editor be a different class. I think I just need to go through some tutorials Smiley
Logged

destiny is truth pre-op
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic