A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: draging a loaded swf file on a main swf file

  1. #1
    Member
    Join Date
    Nov 2000
    Posts
    67

    draging a loaded swf file on a main swf file

    I got the onDrag functionality working, but somehow it disable the close btn and the scrolling functions. Can some one help me or point me to the right direction?

    Here is the action:
    this.createEmptyMovieClip("upcoming1", 1);
    upcoming1.onPress = function() {
    this.startDrag();
    };
    upcoming1.onRelease = function() {
    this.stopDrag();
    };
    stop();

  2. #2
    Junior Member
    Join Date
    Feb 2006
    Posts
    19
    check the depth

  3. #3
    Member
    Join Date
    Nov 2000
    Posts
    67
    How do I do that?

  4. #4
    Senior Member
    Join Date
    Apr 2002
    Posts
    174
    I think gebezis means that....

    this.createEmptyMovieClip("upcoming1", 1);

    this is set to level 1 - ("upcoming1", 1). Are the other drag functions set to the same depth?

  5. #5
    Member
    Join Date
    Nov 2000
    Posts
    67
    Yeah they are all on the same level.

  6. #6
    Junior Member
    Join Date
    Feb 2006
    Posts
    19
    Every new mc should be on a different level.
    I suggest using this to avoid further problems:

    this.createEmptyMovieClip("upcoming1", this.getNextHighestDepth());

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