dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: SwapDeths

Hybrid View

  1. #1

    SwapDeths

    Hey there!

    Ive a problem with swapdeths.

    What I want to do is placing a movieclip in a deeper level after he hits an other mc.

    Heres a part of the script witch is in the movieclip

    on (release) {
    stopDrag ();

    if (this.hitTest(_root.Antwort1) == true){
    if (_root.A_1_hit!="1"){
    this._x = 100;
    this._y = _root.Antwort1._y;
    _root.A_2_antwort=20;
    _root.A_1_hit="1";
    this.swapDepths=10; <- not workin !
    }
    else{
    this._x=_root.A_2_startx;
    this._y=_root.A_2_starty;

    Could anyone help me out?
    Thanks

  2. #2
    half as fun, double the price senocular's Avatar
    Join Date
    Feb 2002
    Location
    San Francisco, CA (USA)
    Posts
    4,361
    you dont assign swapdepthds, its a function. Use it like so:

    this.swapDepths(10);

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