actionscript 3 - 1180: Call to a possibly undefined method Point -


I am very new to the ActionScript 3.0 development for the Blackberry Playbook.

I'm working with this and I'm having problems with this code:

  package {import flash.display.Sprite; Import flash.events.Event; Public Class Flipcard Provides Sprite {Personal Work myPaperSprite: PaperSprite; Public function flipcard () {super (); } Private function flip (): Zero {/ * Create a new PaperSprite: If face and back faces already exist, you can pass them directly into the manufacturer, such as: myPaperSprite = new PaperSprite (myFrontMc, myBackMc) ; * / MyPaperSprite = new PaperSprite (); / * Alternatively specify a pivot point, in this example the center is used (this is also the default, so there is no need to set it normally). Top left smoke around use: myPaperSprite.pivot = new point (0,0); Or right below: myPaperSprite.pivot = new point (1,1); And so on ... * / myPaperSprite.pivot = new point (0.50.5);   

line myPaperSprite.pivot = new point (0.50.5); Throwing the following error:

  1180: Call possibly   

for the undefined method point and the footwright member is defined as :

  package {import flash.display.DisplayObject; Import flash.display.Sprite; Import flash.events.Event; Import flash.geom.Point; Import flash.geom.Rectangle; Public class paper spreads Spracht Sprite {// ___________________________________________________________ A '' '' '' '' '' '' '' '???? ? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ??? ? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ??? ? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ??? ? One ???? One ???? One ???? One ???? One ???? One ???? One ???? Class member private static console POINT_A: point = new point (0, 0); Private stationary box POINT_B: point = new point (100, 0); Private stationary POINT_C: point = new point (0, 100); Private var _isFrontFacing: Boolean = true; Private var _autoUpdate: boolean = true; Private var_pivot: point = new point (0.50.5); Private var _front: DisplayObject; Private var_back: DisplayObject; Private var _p1: Point; Private var _p2: Point; Private var _p3: Point; // ___________________________________________________________â € ™ â € ™ â € œâ € One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? One ???? GETTERS + SETTERS / ** * A point object is used to determine the pivot, or * PaperSprite's registration point. The value should be between 0 and 1 and should be equal to the dimensions of each face, 0 (on the x axis) or the upper (y axis) * or 1 and so far (x axis) or below is going to be (y) Axis). * * The default value is {x: 0.5, y: 0.5}, which means that both faces * smoke around your respective centers * * Example: * * Smoke using center: New point (0.5, 0.5); * To smoke using top right: New point (0.0, 0.0); * To pivot using the right bottom: New point (1.0, 1.0); * * / Public function Pivot (): Point {Return _pot; } Public function set smoke (value: point): zero {_pivot = value; AlignFaces (); }   

Where's the problem? What am i doing

add import flash.geom.point flipcard.us < / Strong> also, as it is not visible in that class

Comments