Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




The Omni Draggable Window...



Now I have used the forums search tool. Yes some explain quite well what to do, others not so much because they were helping more experienced users who didn't need much explaining. But these threads don't explain everything, they are little old(for Flash MX), not sure if Flash 8 has easier methods for achieving a draggable window and so forth. But I notice that right now the more popular and ,may soon be, standard thing showing up are scrollable draggable windows. No animation in them, yet. An example I found looking at a flash template for refferences of interactivity... Please read the 2 bubbles of text near the right and bottomthat I added... I really don't know where else to turn. I know it's a big mouth full of info. How do you make draggable window, how do you make a scrollable draggable window, what methods are best when make multiple buttons that use draggable windows for extra content. I think the popularity of the draggable window is growing faster then the communities knowledge of it. it seems so far away from knowing how to just add pages with transitions and other animations. Yet it's just a little window lol Any help in making this would be very much appreciated (too bad there isn't a tutorial of this on the site).



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 05-09-2006, 07:18 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Draggable Pop Up Window
what I want to do is have a draggable window pop up at a certain location within the main movie when I press a button. what code do I attach to the button? I know the drag stuff, but how do i set the position?

Draggable Window
I have this working script for a draggable window:-

on (press) {
startDrag("/well", false, 0, 0, 640, 480);
}
on (release) {
stopDrag();
}

I can't figure out what the part in bold does, it works with and with out it.

false, 0, 0, 640, 480


I think the 640 and 480 may be the drag area, Any Suggestions? If you know please gimme loads of detail!

Thanks and Merry Christmas

Pop Up Draggable Window
Where can I find a good tutorial or component for how to do a pop-up draggable window embedded in flash? Thanks in advance.

Draggable Pop Up Window With No Frames
Anyboby seen the splash screens or the chromeless window as they call it on:
-http://www.phiberoptic.net/
-http://www.firstmistake.net/
How do they do that? open a draggable pop up window with no frames?
Can anybody please help me?
10x guys

Open Draggable Window
I have an mc which is a draggable window which also contains a close button. Initially it will be invisible as i want to be able to open it from a button on my main timeline. how can I do this?

Draggable Window (movieClip)
hi, i made a multi scenes flash with buttons. i have also lots of movieclips in the library. i made six buttons in one of the scenes and i made six draggable windows. everytime i click one of the buttons, one of the windows should appear. if i click another button, the first window should disapear and the new one should appear.
my question is, how i can put the draggable windows (movieclips) in the scene and make them invisible, then the buttons in the scene when clicked should make them visible?
please help me? thanx

Keep My Draggable Window From Going All Over The Place
Hi all-

I have a draggable window movie clip with the following code:

on (press) {
startDrag ("");
}
on (release) {
stopDrag ();
}

This is great, but I need the dragging confined to a certain rectangle...I've been searching for days on how to do this but am coming up short, if anyone could help, I'll give you my soul.

Thanks!

Draggable Window With Intertia
Ok, I already know how to make a draggable window..but what I'd like to know is how to make the window when dragged have that intertia like effect effect.

again, I searched the site for "inertia" and "draggable windows with inertia" but I still couldn't find what I was looking for.

Help With Draggable Image Window
I am creating a site that will include 8 scenes containing a lot of images in each along with text.
I would be very grateful to hear from any flash experts that can instruct me how to create a draggable image window.

Firstly, do you need to make a separate draggable window for every pic?

Ideally I would like to load each picture from the _root folder when selected, into the draggable window.

I am a real novice at flash, and you must forgive my inexperience but I am very keen to learn this program, with your help of course!
In a step by step format please

KAINCJ

Non Draggable Flash Window
Hello everyone,

Is there a way i can make flash window to be non draggable type.
I mean creating Flash Window in Flash 8 and setting it not to move at all.

I have tried using the Vmax and Hmax positioning but its not working

Resizeable, Draggable Window.
ok, i'm quite happy with draggable windows, done that.

i'm happy with resizing a movieclip.

i've used the tutorial at http://www.flashkit.com/tutorials/Ac...-726/index.php which is all very well, but i'm creating a window to display a blog, and i'd really prefer it if when i resized the window, it didn't scale the text up.

i was thinking maybe creating a text box on the fly and linking the size of it to the movieclip being resized (not having the textbox as part of the movieclip, but maybe sitting on top of it) to match the dimensions of the movieclip as it resizes (with a border of course).

anyone got any ideas on this ? anyone know of a tutorial on resizing windows like this and keeping the text a consistent size ?

cheers

AJ

Draggable Window (not The One Offered...)
hehey, anibodi can help me on making like this window thing in flash? n like u can pull it about... like the music thingi on http://vts330.tripod.com or the same.. music thingi on http://www.xeofreestyle.com/2000
thx alot...:-

ohoh, n how to do an animation when 'mousedown' for ur created 'cursor' featured in that global mouse cursor tutorial

Loading External Jpg Into Draggable Window
I am having problems loading an extenal jpg into flash 5 into a draggable mc called 'draggable'.
I have created a mc called 'slide' within the 'draggable' mc on a seperate layer from the drag window graphics, but am stuck on the right actionship to apply to 'slide' to make the external jpg load.

Anybody

KAINCJ

[MX04] Confining A Draggable Window
Iv'e got a draggable window and I need to keep it inside a pre-defined area, Ie a box which is 800px x 600px. The script for the draggable window is on a hit-area inside the window mc, and consists of simply:


PHP Code:



on (press) {
    startDrag(this, false);
}
on (release) {
    stopDrag();
}




What code would be needed to make sure a draggable window stays in a confined space, and cannot be draggged outside? Is it simple enough, or complicated?

Many thanks.

Draggable Pop Up Window Within Flash Movie?
i've seen on some sites pop up windows within the flash movie that one is able to drag around. it also usually has a "close" button on it. i can't think of a specific page that has one of these, but for those who know what i'm talking about, could you point me in the right direction of how to do this? thanks!

Draggable Pop Up Window Within Flash Movie?
i've seen on some sites pop up windows within the flash movie that one is able to drag around. it also usually has a "close" button on it. i can't think of a specific page that has one of these, but for those who know what i'm talking about, could you point me in the right direction of how to do this? thanks!

Draggable Movie Clip Qua Window
Hello,

I'm a total actionscript novice, but have found a flash effect that I very much want to replicate on my site. An example of it can be found at www.secondstory.com.

I am especially impressed by the fact that no matter what the browser window is resized to, the floating window never goes past the edges of it, so vertical and horizontal scroll bars aren't "generated".

Any suggestions?

Thanks in advance for any help you can offer.

Ean

Load External .swf Into Draggable Window
Any flash pos out there that can give me a little help.
I understand now that you can only load a .swf into flash 5, what a bummer but hey! I can still do this with a .swf,.
Its getting the .swf to display in my draggable window, inside the 'slide' mc ('slide' mc is my mc placed inside my draggable window mc) thats the problem.

What path do I give the action to locate the .swf and display it within the 'slide' mc which is inside the 'draggable' mc.

Where do I assign the action? - to the 'slide' mc I want to display the .swf in or the .swf thumbnail/button on the main page.
I'd prefer to assign my actions to the thumbnails to display the .swf file inside a draggable window with the .swf loading externally if possible as my site will contain a lot of images and I cant import them into flash as it will make the file size balloon.
I'm really new at flash5 and I would be grateful for a step by step explanation.

Thanks
KAIN

Centering A Movie Inside A Draggable Window
I have a draggable window that is placed in a movie at the level 3. I have a button in level 0 that when I pressed it will load a movie into the draggable window. I want the movie to be centered into the window because I have a drag bar and it will look nice if the movie is centered. So far I was able to load the movie but since it loads into the left upper corner the bar sometimes look small and not in the center. What should I do?
Your help is appreciated.
Thank you
Carlos

Draggable Window Shade Menu Problems
Hi - This is a very FUNctional menu that I'd like to incorporate, but am running into some trouble.

The first layer is the draggable bar (which is converted to a button, with start/stop drag actions - therefore with no reference to an Instance Name. The next layer is a rectangular mask and the third (masked layer) works like a window shade that you can pull down to reveal the copy or buttons, etc. This is a movie clip with a nested button - start/stop drag & constrain to rectangle actions are added.

When these elements are together alone on screen - they work fine when I test the movie. However, the big problem is, even when I recreate this menu window from scratch in another movie, it does not work on its own. When tested, the first layer (draggable bar) ends up being able to drag the entire content window.

Why is this happening? I would imagine it should retain its properties to work as it supposed to. I've tried turning the first layer's draggable bar into a movie clip, then nest the drag action in a button, but that only succeeds in liberating it from the window shade masked layer - which is now not draggable, but does go up & down.
HELP? Anyone? Thanks!

Dynamic Iamge Loading In A Draggable Window
hi 1st post hear coz i cannot see to work it out. New to flash and all and am buiding my 1st webby. so heres the question. i have made a draggable pop up window thing in my movie. i wnat to have an image inside the draggable window that i can load dynamically.. if i am not wrong dynamically means i can just upload the pics under the same file name and they will get automatically updated rite? thanx in advance

Centering A Movie Inside A Draggable Window
I have a draggable window that is placed in a movie at the level 3. I have a button in level 0 that when I pressed it will load a movie into the draggable window. I want the movie to be centered into the window because I have a drag bar and it will look nice if the movie is centered. So far I was able to load the movie but since it loads into the left upper corner the bar sometimes look small and not in the center. What should I do?
Your help is appreciated.
Thank you
Carlos

Draggable Window Shade Menu Trouble
Hi - first time "caller" to Kirupa! Thanks - thanks very much - good to be here!

My problem is this: I've found this great, useful menu system that allows the user to both drag it around, and pull down a masked layer to reveal either content or buttons, etc.

It's comprised of 3 layers - the first is the draggable bar or graphic out of which the window shade effect is pulled. It's a button with a drag action attached (not made into a movie clip first, then assigned a button behavior - a button from the start with no reference to instance name.

The 2nd layer is the rectangular boxed mask layer and the 3rd is the masked layer that contains the image to be pulled down in the window shade effect. This is a movie clip with a nested button. The MC has a start/stop drag action on it, with constrain to rectangle checked - with l,r,t & b coordinates.

Test the movie, works great! Both the draggable bar or grahic, AND the window shade layer are connected and able to be dragged together. (somehow, as I don't understand how they are linked to one another with no real reference to each other)

The main problem is this: when I add another layer containing another draggable MC or anything else, go to test the movie and for some reason, now the draggable menu bar is either separated from it's window shade and can be dragged around independantly (which I don't want) and/or it is now connected to the other MC and drags everything around on stage, at the same time.

Would anyone have the answer to how I can implement this great menu system into my project without it forcing everything else to be dragged around? I'm sure it's a quick fix, but I need the fix...man! Help is greatly appreciated!

Hit Test And Draggable&animated Window Problem
Hi, please, i'm a newbie who needs help:

1 I have an animated draggable window
2 when i drag it over a particular area, the window starts an animation (the mouse is still pressed)
3 when i release the mouse (and the window) onto that particular area i want the window starts another animation and then closes

My first attempt:

onEnterFrame i perform an hitTest if
if false -> do nothing
if true -> i check if the mouse is pressed
if true -> first animation starts
if false (the window has been dropped)-> second animation starts, unload movie

Problem this workflow works only for single frames becouse of the enterframe
How can i solve this problem?

Tia
cris

Draggable Window .swf Not Working When Loaded In A MC & Loadmovie; Works Otherwise?
I have a working draggable.swf. It drags fine and the 'X' closes the window.

As soon as I load it inside a blank MC (main_videholder), it displays, but won't drag nor close with the 'X' code.

on(release) {
loadMovie("draggable.swf","main_videoholder");
}


Any ideas would be GREAT cause I am el STUCKO!!
fitchic77

-----------------------------
Girl Programmers are WAY COOL
-----------------------------

Setting Background Color Window Component (draggable Part)
Hi,
I am trying to set a background color of the Flash8 window component. The backgroundcolor I am referring to is the draggable section (top) of the window.

I've tried


PHP Code:



_global.styles.windowStyles.setStyle("backgroundColor ", "0xFF0000");




But that didnt work.

Anyone an idea?

cheers
Patrick

Onclick Open A Draggable Window With Picture And With Xclose Button?
Hello, i have a small thumbnail, and i would like to try to make it when the user clicks on the thumbnail, it opens a larger window and then loads dynamically the photo from the URL stored in a variable.

so if my variable = /pics/thumb.jpg

user clicks on the thumb, window opens and loads the image according to the variable value, and then the user can click close(X) to get rid of the screen

to make it draggable would also be a nice feature


Does someone have sample code / tutorial for this? i couldnt find a simple/clean one. only over-done versions of it...

Popup Style Draggable Window For Viewing An Image (bigger Version)
Hello again

I've been looking around for quite a while, and i'm surprised but i really cant find something so simple like i am looking for

Does anyone know a tutorial or example file of this:

I have a thumbnail and a button, when the button is clicked it opens a window within flash, which is draggable and has a button to close the window again. All that i would like to be displayed in this window is a image which is located from a variable with a value such as /images/thumbnail.jpg

I cant seem to find another site with an example to show it

How Do I Load A Movie Into Another Movie's Draggable Window?
An example of what I'd like to achieve can be found at http://www.tomnulens.be/. Basically I'd like to be able to have a draggable window appear in the main movie with its own content list. Once the user clicks a section I would like the movie to load into that draggable window and be able to be repositioned along with the draggable window. Any ideas folks?

Draggable Item On A Draggable Mask
hello, i was trying to make a sniping game, and i can get the mask to drag. but i want crosshairs and it won't appear in the mask, so i put it on a diff. layer and it still won't work. has anyone had this same problem, and if so, please help me.

Draggable
hmm can someone tell me or point me in the direction of how to make a mc draggable using flash 5...
thanks

More Than Just A Draggable Map
All I need here is just a small push in the right direction and I am sure it will all click.

I have been looking for some time to get a map that I am going to use for navigating through a site, to drag on both the _x and _y axes. however rather than just creating a dragabble MC I was hoping to have a controller to make the animation look that much smoother. Has anyone seen a good tutorial or example to assist me or can recommend a solution.

Any response are greatly appreciated.

Draggable Help
problem:
i want to have a toolbar where you click the button, a movie clip will appear, and the user can drag it to any location they want.

Extra Credit:
in a perfect world, i would love to have a save button, that would save where the user placed these movie clips as a seperate swf file.


anyone that can help please do so...
thanks!

Draggable Nav Bar
ive made nav bar which i want to be draggable on my site, i made the background, then the buttons, grouped them as a movie clip and gme them the actions

onClipEvent (mouseDown) {
this.startDrag(true);
}
onClipEvent (mouseUp) {
this.stopDrag();
}

the problem is when people click one of the buttons it picks up the nav bar to be dragged and also when some clicks anywhere on the screen, the bar jumps there. how can i limit the bar from moving to only when its clicked on it a certain place and not the buttons or any random place on the page?

--> Following A Draggable MC?
I've been experimenting for several weeks now and haven't been able to figure this out.

I would like to set up my flash movie so that when the user drags a movie clip, other movie clips will move along with it depending on which variables are set. I can get one movie clip to follow another when dragged (using onClipEvent(enterFrame), but I would like to set this up on the individual buttons and only have it run when the user is in the process of moving an MC.

----------------------------------CODE----------------------------
on (press) {
_global.depth = _global.depth + 1;
this.swapDepths(_global.depth);
startDrag(this);
}
on (release) {
stopDrag();
//If piece is placed in following location lock it so that it can't be moved
if(this._x>467.5 && this._x<487.5 && this._y>53.75 && this._y<73.75){
this._x=477.5;
this._y=63.75;
_root.piece1MC.piece1._visible=false;

// If MC is placed in this position, it should be locked to the piece it was next to
}else if (_root.piece1MC._x < (_root.piece2MC._x - 62) && _root.piece1MC._x > (_root.piece2MC._x - 82) && _root.piece1MC._y > (_root.piece2MC._y - 8) && _root.piece1MC._y < (_root.piece2MC._y +12)){
_root.onetwo = "true";
}
----------------------END CODE------------------------

This is the code I have one MC (they're all similar to this). When variable "_root.onetwo" is set, I would like piece1MC to follow piece2MC and vice versa. The code to do this must be placed on each individual piece, otherwise only one will work.

Any help is greatly appreciated!

Draggable Mc
Hi, i have a function which allows me to drag my mc's on the x axis, but i now want them to be draggable on the y axis too.... so they can be put anywhere. My code for the x axis is below, any thoughts as to how i can make it completely draggable, not just on the x axis?

I'm fairly new to flash, thanks for your help.



onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, false) && _root.blocksDrag == false) {
this.startDrag(false, -800-this._width, this._y, 800, this._y);
}
}
onClipEvent (mouseUp) {
this.stopDrag();
}

Draggable MO + Following MC
Is there any simple actionscript to get a MC to follow a draggable MC.

Draggable MC
I basically need to drag a movie clip (just an image, nothing else) around the stage.. just did a search for it, but couldn't find anything in AS3.. anyone know where I would start?

Thanks!
Zg

Draggable MC Help
Hey folks,

I've been developing a little game thing...one part in particular is giving me problems.

There is a pic of a turtle, and a tortoise, and land and water. You're supposed to drag one of the two to its corresponding environment...if you're wrong, it goes back to the original spot, if it's right, it's supposed to stay.

It works on it's own (as seen here), but when loaded into the main container movie, they don't stay put.

Here's what i'm using on the MC's of the buttons of the turtles;


Code:


on (release) {
stopDrag ();
if (_parent.tortoise_drag._droptarget == "/tortoise_target") {
//_root.tortoise_target.gotoandStop("tortoise_hold");
_parent.tortoise_drag == stopDrag();
}
else {
this._x = 490//the old xposition of the MC
this._y = 145//the old yposition of the MC
}
}



I"m guessing i'm incorrectly using the _parent and _root somewhere, but not sure.

Thanks!

Draggable Mask?
I have tried but failed miserably to accomplish this task...

Using Startdrag, make a draggable mask layer to create a magnifier effect.

Can it be done?
Any hints?

Regards,

Draggable Buttons - Help?
ive got a 'nav bar' (movie clip) on it are 7 buttons.
the 7 buttons are in the movie clip.
the nav bar is called 'menu'
i want to make the nav bar draggable and have the buttons clickable to go to 7 different scenes in the main movie.

help would be great as Im at work and struggling

Draggable Buttons
I have created a draggable button that works fine. The problem is that I created another button which leads to a URL that seems to get dragged along with the other button even though it is on a different layer and has no script. Does anyone know how to seperate the button behavior or keep the entire movie from being dragged with the draggable button? Thanks for your help
Terry C

Draggable Menu
Hi there,

Reading about inertia and dragging things in Foundation Actionscript (thank you mr. Sham Bhangal), I wanted to make a draggable menu. One button is used to move the menu, the menuitems are supposed to follow that button. My problem is that the menuitems aren't aligned after moving the menu around. Any suggestions?
http://users.skynet.be/sky39384/flash/drag_menu.fla
http://users.skynet.be/sky39384/flash/drag_menu.swf

Draggable Mask
Hey Guys,
Just wondering if it was possible to make a draggable mask. I tried making a mask, turning it into a button and then making it draggable but that didnt work since it takes everything below the mask with it. So when I just want to drag the mask, I end up dragging the maskED images as well. Any help would be greatly appreciated. Thanks guys
Don

Draggable Scrolling Help
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Aaaaaaaaaaaaaaa
This will be the third time I've tried to post this! Flash kit is TOO SLOOOOOOOOW. It's really frustrating.

So anyway, I really need to find a good, fairly basic tutorial on the scripting involved in creating a draggable scrollbar, preferrably a "continuous feedback" one. I've been working with a tute here on flashkit, but it's a little more advanced than what I need right now. In fact it doesn't even contain any real explanation of how the scrollbar part works, but focuses on adding more advanced features to it. It seems a tad convoluted, but this is the best thing I have found. If anyone knows of a clearer tutorial on the web, or if you could even post a little code with a brief explanation, that would be great. I appreciate any help that anyone could offer.

Draggable Windows
i've been tryin to get this draggable window thing down can someone please help me out? i'm tryin to make a draggable window, alost where you can close it, and also make it retractable as it opens. andy info would help, thanks

Draggable Scroller
i want to make a small scroller in my flash project.

on sreen at the moment i have a line and a small square, the square will be
the draggable scroller and the line will be the guide.

how can i slide the square back and forward the lenth of the line

Draggable Popups.- Help
HI I need some help here. I am trying to use a draggable popup window (a flash generated window, not a browser popup.) and i have gotten one window to work quite well. if usiing multiple windows it doesn't work. To recap what i did....i took the movie clip and buttons and duplicated them gave them other names and in the actions (set property _visible) changed them according to the new file names. still it doesn't work. I downloaded the fla from masaflash's tutorial and have been trying to get a hold of him...no luck. i'd appreciate any help anyone could give me. my deadline is approaching!!!

thanks in advance.

Draggable Objects?
Howdy all-

I'm an experienced programmer (but new to Flash) trying to figure out how to create the appropriate button/movie to allow for a mouse-draggable object (as seen in the myriad draggable/throwable ball demos).

I have the actionScript written for start/stopdrag-ing the button, and the physics for the ball graphic movie, but can't seem to figure out how to connect/link the ball movie and the button to make things work. Is there a way to make the button a child of the movie somehow? Right now my ball object bounces around fine, while the button used for 'grabbing' it just sits in the scene.

Any help (or direction to related tutorial) is much appreciated. Thanks!

Copyright © 2005-08 www.BigResource.com, All rights reserved