A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: !!Draggable Window!!

  1. #1
    Ok. Listen. On a few sites (Flash sites), I have seen objects (symbols) that are draggable to give the illusion that they are "windows". I am very teased by this, and am wondering if anyone has the actionscript or whatever is required for it. Please answer this thread even if you have the slightest idea on how to do it.

    Greatly Appreciated.

  2. #2
    FK Official Postman
    Join Date
    Apr 2001
    Location
    Rockville, MD / UCSanDiego
    Posts
    827
    This would be place inside the button or frame that activates the drag. If a window was draggable, an invisible button would be attached to this.

    Code:
    On (Press)
          Start Drag ("/mc")
    End On
    On (Release)
          Stop Drag
    End On
    Where mc is the draggable window. Remember to have the button that activates the drag in mc.

  3. #3
    I pasted that in "expert mode" in the actions for the button, and when I went to test movie, it gave me this as output:

    Code:
    Scene=Scene 1, Layer=Layer 1, Frame=1: Line 1: Statement must appear within on handler
         On (Press)
    
    Scene=Scene 1, Layer=Layer 1, Frame=1: Line 2: ';' expected
               Start Drag ("/mc")
    
    Scene=Scene 1, Layer=Layer 1, Frame=1: Line 3: ';' expected
         End On
    
    Scene=Scene 1, Layer=Layer 1, Frame=1: Line 4: Statement must appear within on handler
         On (Release)
    
    Scene=Scene 1, Layer=Layer 1, Frame=1: Line 5: ';' expected
               Stop Drag
    
    Scene=Scene 1, Layer=Layer 1, Frame=1: Line 6: ';' expected
         End On
    What do you think I'm doing wrong?
    Maybe if you emailed me a .fla file, I could view the source and it might make a little more sense to me. If so, this is my email: hard_core_johnny@hotmail.com

    Thanks.

  4. #4
    FK Official Postman
    Join Date
    Apr 2001
    Location
    Rockville, MD / UCSanDiego
    Posts
    827
    I have just e-mailed you the fla.

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