dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: ReferenceError: Error #1069: Property _scale not found on Scope.SiteTextUi

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Posts
    6

    Question ReferenceError: Error #1069: Property _scale not found on Scope.SiteTextUi

    Hello all,

    I have run into a #1069 error that I need help figuring out.

    Error:

    ReferenceError: Error #1069: Property _scale not found on Scope.SiteTextUi and there is no default value.
    at caurina.transitions::Tweener$/addTween()
    at video::SiteTextUi/positionContent()
    at video::SiteTextUi/layOutContent()
    at video::SiteTextUi/addedToStageHandler()
    at flash.display:isplayObjectContainer/addChild()
    at vp/setUp3dDisplay()
    at vp/handleLoad()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at noponies.net::LoadXml/completeHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/onComplete()

    I am hoping that if I solve Error the others will magically go away...

    Here is the script:

    package Scope
    {
    import caurina.transitions.*;
    import flash.display.*;
    import flash.events.*;
    import video.events.*;

    public class SiteTextUi extends MovieClip
    {
    private var xpos:Number;
    private var captionsText:Bitmap;
    private var indexPos:int;
    private var minScale:Number = 0.2;
    private var bg:Sprite;
    private var ypos:Number;
    private var bezierY:Number;
    private var bezierX:Number;
    private var blur:Number;
    private var scale:Number;
    private var soundEffect:Object;
    private var mxml:XML;
    private var randTime:Number;
    private var maxScale:Number = 0.8;
    private var targetAlpha:Number = 0.3;
    private var view:view_btn;
    private var parentObj:Object;
    public static var ACTIVATE_UI:String = "activateui";
    public static var FADE_UI:String = "fadeui";
    public static var SHUFFLE_UI:String = "shuffleui";
    public static var DEACTIVATE_UI:String = "deactivateui";

    public function SiteTextUi(param1:XML, param2:int, param3:Object, param4:Object)
    {
    minScale = 0.2;
    maxScale = 0.8;
    targetAlpha = 0.3;
    this.mxml = param1;
    this.indexPos = param2;
    this.soundEffect = param3;
    this.parentObj = param4;
    captionsText = UtilMethods.setUpTextBitmap2(String(param1.projectlabel).toUpperCase(), 45, -9);
    captionsText.smoothing = true;
    addChild(captionsText);
    bg = new Sprite();
    UtilMethods.draw(bg, 0, 0, 0, 1, 1);
    bg.height = captionsText.height;
    bg.width = captionsText.width;
    bg.width = 350;
    var _loc_5:int;
    bg.x = 0;
    bg.y = _loc_5;
    bg.alpha = 0;
    addChildAt(bg, 0);
    view = new view_btn();
    view.x = 5;
    view.y = captionsText.height - 10;
    view.alpha = 0;
    view.enabled = false;
    addChild(view);
    view.addEventListener(MouseEvent.CLICK, handleClickOnView);
    bg.addEventListener(MouseEvent.CLICK, handleClick);
    bg.buttonMode = true;
    bg.useHandCursor = true;
    addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
    addEventListener(MouseEvent.ROLL_OVER, handleRollOver);
    addEventListener(MouseEvent.ROLL_OUT, handleRollOut);
    return;
    }// end function

    private function fadeUiHandler(param1:Event) : void
    {
    if (param1.target !== this)
    {
    targetAlpha = targetAlpha * 0.4;
    Tweener.addTween(this, {alpha:targetAlpha, time:3, transition:"easeOutCirc"});
    }// end if
    return;
    }// end function

    Any Suggestions Welcomed & Appreciated

  2. #2
    Join Date
    Jan 2009
    Posts
    6

    Exclamation 1042: The this keyword can not be used in static methods. It can only be used in inst

    I fixed the above ... the problem was I had the package name in cap when it should have been lower-case "Scope" should have been scope....

    I am now having a 1042 problem within Tweener.as

    Tweener.as, Line 758 1042: The this keyword can not be used in static methods. It can only be used in instance methods, function closures, and global code.

  3. #3
    Join Date
    Jan 2009
    Posts
    6

    Question ERROR #1069: Property _scale not found on scope.SiteTextUi

    Nope Error Message Not Fixed...*sigh*

    Where am I suppose to add _scale?

    Error:

    ReferenceError: Error #1069: Property _scale not found on scope.SiteTextUi and there is no default value.

    Here is the scope.SiteTextUi class:

    package scope
    {
    import caurina.transitions.*;
    import flash.display.*;
    import flash.events.*;
    import scope.events.*;

    public class SiteTextUi extends MovieClip
    {
    private var xpos:Number;
    private var captionsText:Bitmap;
    private var indexPos:int;
    private var minScale:Number = 0.2;
    private var bg:Sprite;
    private var ypos:Number;
    private var bezierY:Number;
    private var bezierX:Number;
    private var blur:Number;
    private var scale:Number;
    private var soundEffect:Object;
    private var mxml:XML;
    private var randTime:Number;
    private var maxScale:Number = 0.8;
    private var targetAlpha:Number = 0.3;
    private var view:view_btn;
    private var parentObj:Object;
    public static var ACTIVATE_UI:String = "activateui";
    public static var FADE_UI:String = "fadeui";
    public static var SHUFFLE_UI:String = "shuffleui";
    public static var DEACTIVATE_UI:String = "deactivateui";

    public function SiteTextUi(param1:XML, param2:int, param3:Object, param4:Object)
    {
    minScale = 0.2;
    maxScale = 0.8;
    targetAlpha = 0.3;
    this.mxml = param1;
    this.indexPos = param2;
    this.soundEffect = param3;
    this.parentObj = param4;
    captionsText = UtilMethods.setUpTextBitmap2(String(param1.project label).toUpperCase(), 45, -9);
    captionsText.smoothing = true;
    addChild(captionsText);
    bg = new Sprite();
    UtilMethods.draw(bg, 0, 0, 0, 1, 1);
    bg.height = captionsText.height;
    bg.width = captionsText.width;
    bg.width = 350;
    var _loc_5:int;
    bg.x = 0;
    bg.y = _loc_5;
    bg.alpha = 0;
    addChildAt(bg, 0);
    view = new view_btn();
    view.x = 5;
    view.y = captionsText.height - 10;
    view.alpha = 0;
    view.enabled = false;
    addChild(view);
    view.addEventListener(MouseEvent.CLICK, handleClickOnView);
    bg.addEventListener(MouseEvent.CLICK, handleClick);
    bg.buttonMode = true;
    bg.useHandCursor = true;
    addEventListener(Event.ADDED_TO_STAGE, addedToStageHandler);
    addEventListener(MouseEvent.ROLL_OVER, handleRollOver);
    addEventListener(MouseEvent.ROLL_OUT, handleRollOut);
    return;
    }// end function

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles