Drag-able Window Question
Hi to all,
I have a drag-able window that opens in a certain position when you click a button, once you drag that window from the original position and close it I would like it to open in the original position, instead of it opening in the dragged position.
My guess is that you would use tellTarget but I am not sure how to do that
Here is a source file
Thanks In Advance!
FlashKit > Flash Help > Flash General Help
Posted on: 01-05-2006, 01:59 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Drag Window Problems....help
If you go to my site, which still is in the works, you will notice that when you click on one of my buttons you will see that it’s a draggable window; you can close it and minimize it. The problem I’m having is how do I constrain it to where you can only drag it only within the stage, which is all of the light green area.
If you know how to do this please write the script or give me a link to a page that explains how to do this.
Thanks a lot
site is at http://www.geocities.com/zackrivera
How Can I Drag From Within A Chromless Window?
Im currently using the microbians chromeless script. I would like to go totally chromeless and ditch the upper drag bar. Im figuring that I can closewin using the standard java html close page call. But I can even begin to think how I could drag the window from within flash. Ive seen it done I just have no idea how to approach it.
Thanks!
Problem With My As'd Window's Drag Bar..
code:
//position a clip
MovieClip.prototype.pos=function(x,y){this._x=x;th is._y=y}
//make a new movie clip, increment depth
MovieClip.prototype.newClip=function(name){
this.createEmptyMovieClip(name,this.i)
this.i++
}
//draw either a box with given dimensions or a shape
MovieClip.prototype.draw=function(a,c,p){
this.lineStyle(1,0x000000,100)
this.beginFill(c,a)
if(p.length>2){
this.moveTo(p[0].x,p[0].y)
for(i=1;i<p.length;i++){
lineTo(p[i].x,p[i].y)
}
this.lineTo(p[0].x,p[0].y)
}
else{
this.moveTo(0,0)
this.lineTo(p[0],0)
this.lineTo(p[0],p[1])
this.lineTo(0,p[1])
this.lineTo(0,0)
}
endFill()
}
//create a text box, increment depth
MovieClip.prototype.newText=function(t,x,y){
f=new TextFormat()
f.size=9
f.font='arial'
this.newClip(t)
this[t].createTextField('txt',this.i,0,0,200,200)
this[t].txt.text=t
this[t].txt.selectable=0
this[t].txt.setTextFormat(f)
this[t].pos(x,y)
this.i++
}
//create a button with text on it and given dimensions
MovieClip.prototype.newButton=function(name,w,h){
this.newClip(name)
this[name].draw(100,0xffffff,[w,h])
this[name].newText(name,2,2)
}
//create a window with a drag and close button which displays given text
MovieClip.prototype.window=function(name,w,h,p){
this.newClip(name)
this[name].newClip('main')
this[name].newButton('drag',w-50,15)
this[name].newButton('exit',50,15)
this[name].main.draw(100,0xffffff,[w,h])
this[name].exit.pos(w-50,0)
this[name].main.pos(0,15)
this[name].main.newText(p,5,5)
this[name].drag.onPress=function(){
startDrag(_parent,0)
}
this[name].drag.onRelease=function(){
stopDrag()
}
this[name].exit.onRelease=function(){
_parent.removeMovieClip()
}
}
function p(x,y){this.x=x;this.y=y}
_root.window('window0',120,60,'hello')
pretty self explanatory, a window is made with several functions. the problem is, i click on the drag bar to drag, but afterwords, clicking on any part of the window suffices. and the exit button rarely works at all if ever. i tried having it so that if u mouse over on main it stops drag, that doesnt help... please help this shouldnt be happening! btw just c/p the code n publish to see it so dont angry i didnt put up an swf please!!
[F8] Drag And Zoom Map With Nav Window...
Hi guys and gals,
I have created a world map based on the one below...
http://www.senocular.com/flash/source.php?id=0.76
However I want slightly different functionality. Instead of when you click on the main map and drag it zooms in, I just want it to drag the map and update the nav window accordingly.
Can someone please help me modify the code to achieve the effect please.
I've attached as far as I have got. I'm almost there but when I click on the main map to drag it jumps to a diagonally opposite point on the map, which effectively means every time you click and drag you end up in the same place
Best
Steve
Drag A Window And Then Zoom In
Hi
I took the zoom and pan tutorial from flash 5 and have tailored it to my needs bar 1 thing. I'm not sure how to create a tool so I can click and then drag a box round an area and then zoom in on it. I've seen it done but can't replicate it.
Can anyone help?
cheers
Lenny
Drag Window, Then Return
hey guys.. need some help.
i've got a window that has a simple drag script. next i have a button that repositions the window to a certain coordinate. however, if i continue to drag the window, it moves back to the coordinate without the button press and i can't figure out how to get around it.
my mc code:
on (press) {
startDrag("/window", false, 500, 400, 0, 0);
}
on (release, releaseOutside) {
stopDrag();
}
my button code:
on(release){
_root.window.onEnterFrame = function(){
// input parameters
target_x = 180;
target_y = 140;
// distance away from square
distance_x = target_x-_root.window._x;
distance_y = target_y-_root.window._y;
// move + friction
_root.window._x += distance_x/5;
_root.window._y += distance_y/5;
}
}
any ideas?
thanks much
michaelpaul
Window Drag, Minimize, And Close
I am working on this project that will show thumbnails as links and when you click on them the enlarge for viewing. The enlarged state is draggable and depending on the number open you can click to set depth. The problem I am having is the script to get it back to where it came from.
My buttons inside of my movieClips won't work (not sure why) and my close button work almost but it conflicts with my drag code a bit.
The fla included is real clean so hopefully it won't take anybody willing to take a look a great deal of time to see the problem.
Thanks for the help
Click And Drag An Image In Window
Greetings,
I am looking for a way (or a tutorial) that will let me load and external photo into an SWF and then have the ability to click-n-drag the image within the SWF frame. An additional feature might be the ability to zoom into the photo or zoom out but still be able to drag the image around.
For example:
Let's say there is an SWF that measures 200 x 200 pixels. It loads a photo into it's window and the photo is 600 x 600. The photo is loaded so it fits into the image area. The user clicks a "+" button to zoom into the image and then click-drags the image so to get a better look at some of the area's that are now being obscure on the outside of the viewable area.
Can it or something similar be done?
How To Drag And Move Entire Window?
I have many movie objects within a window, but some of them will be outside the main screen. How can i enable dragging and moving the window to see something that's not currently viewable and moving the rest in the other direction?
thanks
Window Component Drag Issue
Hi all,
I've got a problem with a Flash application I'm developing. I'm creating an application with multiple nested screens, each of these screens is a Window component. The problem that I'm having is that if I move a Window by dragging it then set its "_visible" property to false then set it back to true, any other components inside it appear empty (for example text areas lose the text within, data grids lose the data within etc), sometimes you'll also get two copies of the Window!
It's really easy to recreate!
If anyone knows any way around this, I'd greatly appreciate it...
Thanks,
Lee.
Resizable And Drag & Drop Window
Hi!
I need to build a window with title bar and close button to display an internal movieclip (mc is in the same movie). Window must be custom resizable and drag & drop. I don' t want to use window component. Please, help me. Thanks in advance...
Drag&drop With Close Window Problem
hi,
im building an image gallery. i have icons in my main .swf file, and when you click one, a larger image loads (an external swf), using loadMovie(), or loadMovieNum (i tried both). each new large image is draggable, and has a button in it that unloads it. now this is my problem:
lets say i clicked an icon, and the large image loads: if i didnt drag it, the "close window" button works well. however, once i drag the window, the button no longer works.
its truly frustrating as i have no idea what might cause this problem.
would appreciate your help,
thanx,
dor88keys/
Drag Window With Close Button - PROBLEM
Hi!
I just created a window to drag and it works perfect. But then when I do a close button for this too, I want that the next frame to still be at the right place when I close this window.
HOW TO FIX THIS PROBLEM?
Creating Interactive Child Window With Drag
I'm trying to create a window that launches from a button which the user can drag around the Flash interface and when they're done with it, the hit the close button on the created window (which is an external swf loaded in a movie). The issue I have is startDrag/stopDrag work as easily coded, but the whole window is considered an active draggable movie which makes it so I users can't interact with the button inside of it. I know this has been done before but I've never needed to code it till now. I thought about creating a bar at the top of the window to allow users to drag the whole window around using that, but then I couldn't get the bar (embedded in the window as a button) to startDrag its parent (root) window.
Any advice would be appreciated. TIA.
Scollbar Drag That Works Outside Browser Window?
Hi there - ive noticed that on this site http://lab.mathieu-badimon.com/ (referring to the scrollers at the edge of the screen) that if you click and drag and then move themouse outside of your browser window the scroll still works. The scroller that Im using (similar to this one http://www.anovadesign.com/ ) does not allow this and I dont know why
would anybody know how this is acheived?
thanks for your help
Nick
Drag ,drop Window And Then A Close Button?
ok i have made a small window to drag and drop ,,it works fine .but i have a button on this window ,,so when the user drags and then drops the window ,now i want the user to be able to close it ..i can set 1 or the other (1 it drags and rops but cannot close it ?2 it doesnt drag but you can close it ...i have tried many things to get this to work ..its slowing my work progress down and i cant figure it out ?? thanks for your help on this !
Using OnResize When Drag Window Goes To Max Right Hand Side Of Screen
I am using onResize to set the position etc of elements on the page.
It all works fine in ie but mozzilla doesnt get the position of the image in the background right
see here (in development)
http://www.setvariable.com/elastic/
any ideas how to fix this, I have placed
body,html {
margin:0px;
padding:0px;
height:100%;
}
body {
overflow-y: hidden;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
in the styles bit but to no avail??
Interactive Map: Zoom + Drag + Pop-up (w/ Pop-up Window NOT To Be Zoomed And Dragged)
Interactive map: zoom and drag and pop-up (with pop-up window NOT to be zoomed and dragged!)
Okay, this is a huge challenge for me and I need help solving it. I am building an interactive map that can be dragged up/down and left/right within a window.
I learned how to do that.
Additionally there is a zoom slider to enlarge/reduce the map. I learned how to do that. (Thanks to senocular!)
The map has buttons that move along when the map is dragged and scaled. So I placed them within the mc before applying the two action scripts.
BUT. Now the challenge: Each button should trigger a pop-up window that is always the same size and position. So it can't be within the mc because I don't want the pop-up window to be scaled and dragged along.
HELP!
I need the button to be within the mc, to trigger a pop-up window that is not within the mc.
Can someone help?
Thanks!
Dragable Window W/ Working Links & Drag Alpha Fading
And example is at this site's mainpage, i want to make like 2 or 3 working windows like that, with links, and also a small alpha fade when dragging it, any help or tutorial links would be great
http://www.one9ine.com
Flash "window-like" MC Drag Problems
Hi everybody, I've got a quite annoying problem in a complex website I',m deveoping. The idea is that the web has an OS-like interface (quite original I know ), and some MCs are like windows, so they have content buttons that are operative, and finally can be dragged and moved. The windows get out fron the screen by an animated motion tween, I'll try to explain it clearly, for example:
-On the frame 1 of the MC "Window1", the user does everything with the window (uses it, etc...).
-When the user wants to get out from some scene, the window goes to frame 2, where it starts a tween til frame 15, goin' out of the screen.
-Everything should work fine but AFTER (and just after) draggin' the window the animation of leaving the screen (the tween) simply doesn't work: The window remains on the screen (and works perfectly) or it just disappear. I don't know why it happens, so if anyone can help me I'll be soooo happy (today it's my birthday, it would be a great present if anyone can help... ). Thanks everybody and regards from Spain!
"popup And Drag Window" Inside "infinite Stage" Movieclip
Hello,
I’m having some problems with my "future and first portfolio" website that I'm trying to create… Can someone help me, please?!
(This is my first attempt in Flash, so excuse me for my small knowledge about the subject)
So far I created an “infinite stage” movieclip that has some “numbers” on it.
For example, if you click on number “3” you can send me an e-mail (that happens because there is an e-mail link button over each number “3” on the stage).
My problem is that I want to have a “popup and drag window” associated with the rest of the numbers on the stage.
I’ve been trying to create a button over each number “1” on the stage to than open the “popup and drag window” that I’ve already created… but this is not working so far and I don’t know why is not working and how to make it work…!!
Enclosed are two files: one is the website that I’m trying to create (and that has the problem that I’ve already told you about) and the other is the “pop up and drag window” that is working here but is not working on the main file.
I really appreciate if you could help me in this matter.
Many thanks!!
"popup And Drag" Window Inside "infinite Stage" Movieclip
Hello,
I’m having some problems with my "future and first portfolio" website that I'm trying to create… Can someone help me, please?!
(This is my first attempt in Flash, so excuse me for my small knowledge about the subject)
So far I created an “infinite stage” movieclip that has some “numbers” on it.
For example, if you click on number “3” you can send me an e-mail (that happens because there is an e-mail link button over each number “3” on the stage).
My problem is that I want to have a “popup and drag window” associated with the rest of the numbers on the stage.
I’ve been trying to create a button over each number “1” on the stage to than open the “popup and drag window” that I’ve already created… but this is not working so far and I don’t know why is not working and how to make it work…!!
Enclosed are two files: one is the website that I’m trying to create (and that has the problem that I’ve already told you about) and the other is the “pop up and drag window” that is working here but is not working on the main file.
I really appreciate if you could help me in this matter.
Many thanks!!
"popup And Drag" Window Inside "infinite Stage" Movieclip
Hello,
I’m having some problems with my "future and first portfolio" website that I'm trying to create… Can someone help me, please?!
(This is my first attempt in Flash, so excuse me for my small knowledge about the subject)
So far I created an “infinite stage” movieclip that has some “numbers” on it.
For example, if you click on number “3” you can send me an e-mail (that happens because there is an e-mail link button over each number “3” on the stage).
My problem is that I want to have a “popup and drag window” associated with the rest of the numbers on the stage.
I’ve been trying to create a button over each number “1” on the stage to than open the “popup and drag window” that I’ve already created… but this is not working so far and I don’t know why is not working and how to make it work…!!
Enclosed are two files: one is the website that I’m trying to create (and that has the problem that I’ve already told you about) and the other is the “pop up and drag window” that is working here but is not working on the main file.
I really appreciate if you could help me in this matter.
Many thanks!!
(1)drag Drop In 3 (2)drag Dropin 3 ...print 3 Contents (1)+(2)
i want to do the following.
drag (dynamic text file link)1 of choice of x text file links
into an area where all text file links can then be printed..(the text file itself)
[1] [2] [3] [4] [5]...
(basket)
drag drop [1] then [2] then [3] then [4] into (basket)
then print textfiles related to [1] [2] [3] [4]
if sombody could point me to a good tutorial or help me on my way?
thanx
Drag Dial (ie Drag Point In A Circular Motion)
I want to incorporate a dial (such as volume dial on a TV, or a timer dial on a microwave) so that when the user clicks on the dial they can move the dial up and down, but in a circular motion.
Does anyone know where I can get a tutorial/movie that would help me with that?
Does that even make sense?!
Drag Function Lost In Main .swf When Drag External .swf
using MX:
I made this really cool menu that acts like the MAC OS X buttons...
The only problem that i have is when i load an external .swf (which is a window) and drag the window the startdrag funtion on the MAC OS X buttons stops working...
so to break it down:
Main .swf:
Quote:
startDrag("dragscale", true);
then the code in the buttons to make then scale (this code may not matter):
Quote:
colnum = "1";
startnum = 1;
endnum = 6;
numberofItems = 6;
mouseposX = int(getProperty("../dragscale", _x));
mouseposY = int(getProperty("../dragscale", _y));
i = startnum;
m = startnum;
filledSpace = 0;
gapspace = 0;
if (Number(myInit) == Number(false)) {
// on first run make an array of all the text Y Pos.
while (Number(i)<=Number(endnum)) {
set("textY" add i, getProperty ("text" add i, _y ) );
i = Number(i)+1;
}
i = startnum;
myInit = true;
}
boundleft = getProperty ("../boundbox" add colnum, _x);
boundright = boundleft + getProperty ("../boundbox" add colnum, _width) ;
boundtop = getProperty ("../boundbox" add colnum, _y);
boundbottom = boundtop + getProperty ("../boundbox" add colnum,_height);
if (Number(mouseposX)>=Number(boundleft) and Number(mouseposX)<=Number(boundright) and Number(mouseposY)>=Number(boundtop) and Number(mouseposY)<=Number(boundbottom)) {
while (Number(i)<=Number(endnum)) {
myDif = (eval("textY" add i) ) - (mouseposY - boundtop);
// percentage increase
scaleAmount = 150-((myDif*myDif)/16);
alphaAmount = 100-((myDif*myDif)/6);
if (Number(alphaAmount)<50) {
alphaAmount = 50;
}
if (Number(scaleAmount)<100) {
scaleAmount = 100;
}
setProperty("text" add i, _xscale, scaleAmount);
setProperty("text" add i, _yscale, scaleAmount);
setProperty("text" add i, _alpha, alphaAmount);
i = Number(i)+1;
}
// *** add up total Y pixels taken by text ***
while (Number(m)<=Number(endnum-1)) {
filledSpace = filledspace + getProperty ( "text" add m, _height);
m = Number(m)+1;
}
// *** find total Y pixels not taken by text
totalheight = getProperty ( "text" add endnum, _y) - getProperty ( "text" add startnum, _y);
gapSpace = totalheight-filledspace;
avgDistance = gapSpace/numberofitems;
m = Number(startnum)+1;
while (Number(m)<=Number(endnum-1)) {
setProperty("text" add m, _y, (getProperty ( "text" add (m-1), _y) + getProperty ( "text" add (m-1), _height)) + avgdistance);
set("watchheight" add m, getProperty ( "text" add m, _height));
m = Number(m)+1;
}
} else {
// *** shrink text back when mouse rolls out
i = startnum;
while (Number(i)<=Number(endnum)) {
if (int ( getProperty ("text" add i, _yscale ) ) >= 100) {
// return scale back to original state
setProperty("text" add i, _yscale, int ( getProperty ("text" add i, _xscale ) ) - 1);
setProperty("text" add i, _xscale, int ( getProperty ("text" add i, _yscale ) ) -1);
}
if ( getProperty ("text" add i, _y) < eval("textY" add i)) {
// return y position back to original state
setProperty("text" add i, _y, int ( getProperty ("text" add i, _y ) ) + 1);
}
if ( getProperty ("text" add i, _y) > eval("textY" add i)) {
setProperty("text" add i, _y, int ( getProperty ("text" add i, _y ) ) - 1);
}
if ( getProperty ("text" add i, _Alpha) > 50) {
setProperty("text" add i, _alpha, int ( getProperty ("text" add i, _alpha ) ) - 1);
}
i = Number(i)+1;
}
}
NOw the External .swf code:
Quote:
on (press) {
startDrag ("_parent.win2")
}
on (release) {
stopDrag ();
}
I am pretty sure the "on release stopDrag" code is making the above buttons stop scaling...
How can i make it only stop draging the window not the entire movie??
basic question is it posible to have multiple dragable objects in one movie clip???
Drag Function Lost In Main .swf When Use Drag On External .swf?
using MX:
I made this really cool menu that acts like the MAC OS X buttons...
The only problem that i have is when i load an external .swf (which is a window) and drag the window the startdrag funtion on the MAC OS X buttons stops working...
so to break it down:
Main .swf:
quote:
--------------------------------------------------------------------------------
startDrag("dragscale", true);
--------------------------------------------------------------------------------
then the code in the buttons to make then scale (this code may not matter):
quote:
--------------------------------------------------------------------------------
colnum = "1";
startnum = 1;
endnum = 6;
numberofItems = 6;
mouseposX = int(getProperty("../dragscale", _x));
mouseposY = int(getProperty("../dragscale", _y));
i = startnum;
m = startnum;
filledSpace = 0;
gapspace = 0;
if (Number(myInit) == Number(false)) {
// on first run make an array of all the text Y Pos.
while (Number(i)<=Number(endnum)) {
set("textY" add i, getProperty ("text" add i, _y ) );
i = Number(i)+1;
}
i = startnum;
myInit = true;
}
boundleft = getProperty ("../boundbox" add colnum, _x);
boundright = boundleft + getProperty ("../boundbox" add colnum, _width) ;
boundtop = getProperty ("../boundbox" add colnum, _y);
boundbottom = boundtop + getProperty ("../boundbox" add colnum,_height);
if (Number(mouseposX)>=Number(boundleft) and Number(mouseposX)<=Number(boundright) and Number(mouseposY)>=Number(boundtop) and Number(mouseposY)<=Number(boundbottom)) {
while (Number(i)<=Number(endnum)) {
myDif = (eval("textY" add i) ) - (mouseposY - boundtop);
// percentage increase
scaleAmount = 150-((myDif*myDif)/16);
alphaAmount = 100-((myDif*myDif)/6);
if (Number(alphaAmount)<50) {
alphaAmount = 50;
}
if (Number(scaleAmount)<100) {
scaleAmount = 100;
}
setProperty("text" add i, _xscale, scaleAmount);
setProperty("text" add i, _yscale, scaleAmount);
setProperty("text" add i, _alpha, alphaAmount);
i = Number(i)+1;
}
// *** add up total Y pixels taken by text ***
while (Number(m)<=Number(endnum-1)) {
filledSpace = filledspace + getProperty ( "text" add m, _height);
m = Number(m)+1;
}
// *** find total Y pixels not taken by text
totalheight = getProperty ( "text" add endnum, _y) - getProperty ( "text" add startnum, _y);
gapSpace = totalheight-filledspace;
avgDistance = gapSpace/numberofitems;
m = Number(startnum)+1;
while (Number(m)<=Number(endnum-1)) {
setProperty("text" add m, _y, (getProperty ( "text" add (m-1), _y) + getProperty ( "text" add (m-1), _height)) + avgdistance);
set("watchheight" add m, getProperty ( "text" add m, _height));
m = Number(m)+1;
}
} else {
// *** shrink text back when mouse rolls out
i = startnum;
while (Number(i)<=Number(endnum)) {
if (int ( getProperty ("text" add i, _yscale ) ) >= 100) {
// return scale back to original state
setProperty("text" add i, _yscale, int ( getProperty ("text" add i, _xscale ) ) - 1);
setProperty("text" add i, _xscale, int ( getProperty ("text" add i, _yscale ) ) -1);
}
if ( getProperty ("text" add i, _y) < eval("textY" add i)) {
// return y position back to original state
setProperty("text" add i, _y, int ( getProperty ("text" add i, _y ) ) + 1);
}
if ( getProperty ("text" add i, _y) > eval("textY" add i)) {
setProperty("text" add i, _y, int ( getProperty ("text" add i, _y ) ) - 1);
}
if ( getProperty ("text" add i, _Alpha) > 50) {
setProperty("text" add i, _alpha, int ( getProperty ("text" add i, _alpha ) ) - 1);
}
i = Number(i)+1;
}
}
--------------------------------------------------------------------------------
NOw the External .swf code:
quote:
--------------------------------------------------------------------------------
on (press) {
startDrag ("_parent.win2")
}
on (release) {
stopDrag ();
}
--------------------------------------------------------------------------------
I am pretty sure the "on release stopDrag" code is making the above buttons stop scaling...
How can i make it only stop draging the window not the entire movie??
basic question is it posible to have multiple dragable objects in one movie clip???
How To "close" A Drag-able Window"
I'm new to this...so forgive me.
I have at least figured out... how to make a movie clip drag-able.
The problem I'm having is how to close it....
In other words....I've got a frame....with some content...picture...some text. and a close button on it....all contained in a movie clip
but when I execute the program...the window drags around just fine...but I can't click on the button...
plus....what actions should the button have ...to get rid of the movie clip..that it's attached to?
Making sense?
Please help.
Thanks
Drag 2 MCs, Kinda...drag 1MC, Follow MC Half?
i want to drag an object and have another mc to move half that distance. im trying to get the nondragMC to move half the distance from the bottom of the stage than the dragMC is moved by the user. they both start at the bottom of the stage and when the user drags the dragMC up, i want the other mc to move half the distance with the drag. dont know what script i should use. anybody got any ideas?
How To Make A Drag'n'drop Change Mid Drag?
Help! I already know the script to make a Movie Clip drag and droppable.
But how do I make it switch to a different Movie Clip in the middle of being dragged?
Please please help.
Stacking Drag Movie Lagging When Drag...
just wonder if anyone know how to solve these problem.
i have load in a .swf and this .swf is make up of one drag object. When i load into my _level0, i can drag it but it seem then the drag is not smooth, instead it is lagging. Thus i went back to the indiviual files and try to drag on it and it was not lagging. ...why is it like that? All the files are still on my local disk. Can't imgaine what will happen if it is on the net. Please help! is this normal for drag object ?
Drag Drag Drag Menu
hi everyone
i have created a basic dragable menu, what i want to happen is that the menu can only be dragged in y position,or moves in y and slightly moves in x,....... what should be done?
this is the script:
on (press) {
startDrag("/drags");
}
on (release) {
stopDrag();
}
thanxxxxxxx
Drag & Drop - "if" Drag's = Drops Script
HELP! I don't know a lot about flash script!
I have created a drag and drop. I want to make the users complete the drag and drop before they can move on. I want to include a script that checks to see if all items are in the correct boxes then "gotoandplay" the next frame where the navigation is active.
I have attached the drag and drop. Here's what I want to write (just need help writing it correctly):
IF
drag1 = drop1
drag2 = drop2
drag3 = drop3
drag4 = drop4
drag5 = drop5
drag6 = drop6
then gotoandplay frame2
If not, keep checking
What A DRAG Drag 2 Movies?
I have a movie clip that is draggable, and in that movie clip is a dynamic text area that has a scroll bar (with 2 arrows also) However, with the drag on the entire movie clip, the drag that makes up the scroll bar doesn't work. you cannot drag 2 movies at the same time. So right now I only have the arrows, but I'd really like to find out how to have a scroll bar inside a draggable movie.
I have a "drag" tab on my movie, is there a way to make that tab the only place to click and drag the movie?
Thanks for any help!
Close.window Script In Flash Button Quits My Browser Window Or Crashes System
Can somebody please help me?
I have a javascript attached to a button in a .swf file to close the browser window it is in.
The code which was given to me yesterday by senocular is
on(press){
getURL("javascript:window.close()")
}
__
however if you try it IE will unexpectedly quit or bomb my computer.
I tried it in Netscape and it didn't crash.
You can refer to my site http://www.valdesdesign.com
after intro go to print button and then to editorial button.
Editorial opens new window with editorial.swf inside. Click on top right button to close window and see what happens.
Is there something I'm doing wrong? Please help me.
Thanks
Link In Pop-up Window (flash File) Target=parent Window
I have a flash demo that is opened from our web site and spawns a new window. At the end of the demo is a link that directs the user to "get more information." I would like this link to open the "more info" page in the PARENT window rather than the spawned window. Currently I have my Flash link coded with:
on (release) {
getURL ("http://www.hiddenmind.com/materials.html", _parent);
}
This is not working. Do I need to add some code to the parent window and/or the HTML page where the Flash file is embedded?
Thanks for your help! I can't seem to find the solution
AS: Close Current Window And Open Link In Father Window ?
Please, guys, can anyone lead my hand in this?
I have produced a flash movie. the wholw are is an invisible button which
should close the animation and in father window open a link.
The flash movie pops up automatically when page is loaded. I used this:
on (press) {
getURL("javascript:self.close();window.opener.loca tion.href = 'http://www.unibanka.sk/servlet/com.elline.pb.Page?page=alfa_ts'");
}
... but am not sure if this would work exactly how I want it.
Thanx
Passing Variables From Spawned Window To Parent Window
Is it possible to pass a variable from a child to a parent window.
I have one page (Index.html) with a swf (index.swf). A button on the index.swf launches demo.html containing a demo.swf. When the user gets to a certain point in demo.swf, I need to tell index.swf that it has arrived. Is this possible.
Any suggestions are appreciated.
Cordially,
Jason
Pausing After Preload If Browser Window Is Not Active Window
Hi folks,
I'm trying to figure out how to do this, but so far I have had no success. The intention is for anything like a Flash trailer, intro movie or such like which is large to preload and once this is done check to see if the user is still viewing that browser window.
So if during the preloading the user opens/selects a different window and the preloading finishes then the Flash will go to a paused screen, awaiting the user to indicate they want to proceed (eg a play button). If however the user still has, or has returned to, the browser window it will skip the pause screen and play the animation.
For an example the 9th chapter of Ninjai.com seems to do this (I haven't checked the other chapters).
Any help would be appreciated.
Ragnar
webmaster@ragnarkarlsson.com
GetURL - Targetting The Parent Window Of Popup Window?
Hello!
Yet another thread on getURL but I did a search and couldn't find anything related to my question, so here goes...
I have a website which launches a 900x400 popup window which contains an interactive flash movie. From within this movie, I am loading in HTML from a text file which populates a scrolling textfield.
I was pleased to learn that href links within the text file work as links within the flash textfield. What I want to do is have these links open in the parent window that spawned the popup.
If I use target=_blank on these links, the pages open up in a new browser window.
If I use target=_parent on these links, the pages open up in the same popup window and obviously replace the flash movie content (goes to the link instead of launching it in the parent window).
Is it possible to use the _parent target to launch these links into the main website that spawned the popup or is _blank the only one?
If anyone has any tips or experience on this matter it would solve a huge headache for me.
Thank you!
Flash Reload Parent Window + Close Window
Hi i got a quesiton.
I have an asp page that will open a new asp page in a new window that contains a swf file with a button.
When the user clicks the button i want to close that window and reload the parent window. Any ideas on how to achieve this in flash ?
Thanks
Popup Window Doesn't Stop Window.open
Hi,
check out www.adidas.com/1
You will notice that although you might have popups blocked the site still pops up. I have checked the source and they seem to use window.open.
Any ideas how thye have done this?
thanks
ash
Loading External SWF's Into A New Flash Window Instead Of A Browser Window?
I have this flash presentation where I have buttons when clicked on, a (_blank) browser window pops-up and begins playing external SWF's.
The problem is that, with windows XP, every time I click the button(s) to have the browser window pop-up, to play my externals, the damn 'virus protection notification' thing pops-up first, asking me if this content is allowed. Is there a way to turn this off? My client does not want to have to "allow" the browser to play the external SWF's everytime. I've tried everything but no luck.
Better yet, is there a way to have the external SWF's pop-up in a totally new flash window, on top of the main (presentation) window? I don't want the external SWF's playing in the same window, but rather show in a new window entirely. Can anyone help me? This project is past-due and it needs to go out today. I'll attach the current scripting I'm using so far, if it helps. Thanks so much!
bottingsAd_mc.onRelease = function() {
getURL("exampleAds/bottingsports2_001.swf", "_blank");
};
|