A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: dragging problem

  1. #1
    Junior Member
    Join Date
    Sep 2002
    Posts
    17

    dragging problem

    Hello,

    I made a flash swf with a drag action where the user is able to rotate an image 360 degrees. I works fine, but here is my problem: On my main swf I am loading this rotating image swf into an instance, but once I do that I lose control of all of my buttons on my main interface.....the only thing you can do is rotate the image. Here is the scripting and methods I used:

    On the main timeline I have a carousel of the rotating images, with an invisible mc over it. The mc has a single frame with this script:

    startDrag("", true, 0, 0, 320, 240);

    Inside the mc is a button with this script:

    on (press) {
    tellTarget ("../") {
    click = getProperty("mc", _x);
    }
    }
    on (press) {
    tellTarget ("../update") {
    play();
    }
    tellTarget ("../director") {
    play();
    }
    }
    on (release) {
    tellTarget ("../director") {
    stop();
    }
    tellTarget ("../update") {
    stop();
    }
    }
    "Director is an invisible mc that has this script:

    tellTarget ("../") {
    if (update>5) {
    prevFrame();
    }
    }
    tellTarget ("../") {
    if (update<-5) {
    nextFrame();
    }
    }
    "Update" is an invisible mc with this script:

    tellTarget ("../") {
    update = getProperty ("mc",_x)-click;
    }
    Attached is a fla file without the artwork due to the large file size? Can anyone help me?
    Attached Files Attached Files
    Christian

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