A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: basic function problem

  1. #1
    Senior Member
    Join Date
    Dec 2000
    Location
    Sleeping rough in the kindom of Lurk
    Posts
    139

    basic function problem

    Have a problem with something quite basic that I can't get working. Appreciate any help or direction with it. I have a function:

    Code:
    position1 = function(){
    	this.slideTo(0,0,2,"easeInOutBounce");
    	this.scaleTo(100,3);
    	this.alphaTo(100,3.5);
    }
    that I want to apply to a movieclip "aboutus" using
    Code:
    aboutbutton.onPress = function(){
    postition1.apply(aboutus);
    }
    but it dosen't seem to work. What amazingly dunce thing am I doing?

    I'm using the tween prototypes from http://laco.wz.cz/tween/?page=examples
    Last edited by cosgrove80; 11-08-2004 at 05:35 PM.

  2. #2
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    You've spelt position1 wrong in the apply line of your code - fix that and it should work.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center