Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: drag clip and then pass x and y variables in url
From: Ramesh CT
Date: Mon, 6 Nov 2000 09:47:07 GMT

Hi Chad,

Here is script of MC which displays the x and y values in a textBox which is
on the main timeLine.

onClipEvent(load) {
draging=0;
}

onClipEvent(mouseDown){
this.startDrag();
draging = 1;
}

onClipEvent(enterFrame){
if (draging == 1) {
_root.textBox = "X=" + this._x + "," + "Y=" + this._y;
}
}

onClipEvent(mouseUp) {
draging = 0;
// send the this._x, this._y values from here using getURL function
// may be someone can help you here
stopDrag();
}

regards
Ramesh CT
http://www.geocities.com/ramesh_ct/

-----Original Message-----
From: avex <listatobjekt [dot] com [dot] au>
To: flasheratchinwag [dot] com <flasheratchinwag [dot] com>
Date: Monday, November 06, 2000 5:07 PM
Subject: FLASH: drag clip and then pass x and y variables in url


|Hi everyone,
|
|I want to be able to drag an object, drop in on the screen, set the the x
|and y coords as a variable and then pass it out in the url to a web page.
|
|So far I have done:
|
|on (press, dragOver) {
| startDrag ("");
|}
|on (release, releaseOutside, rollOut) {
| stopDrag ();
|}
|
|
|What can I add to set the x and y position when i release the mouse?
|Also, how do i represent these variables on the page so that they
constantly
|change as you move around?
|
|this is my first action scripting, so any help or tips will really be
|appreciated.
|
|kind regards
|chad
|
|
|
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|flasher is generously supported by...
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| flashforward2000 and the Flash(tm) Film Festival
| November 27-29, 2000, LONDON, National Film Theatre
|
| Produced by United Digital Artists and lynda.com
|-Sponsored by Macromedia, Adobe Systems and Apple Computer
|-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
| Register before November 10 and save £200
| http:// www.flashforward2000.com
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| To unsubscribe or change your list settings go to
|http://www.chinwag.com/flasher or email helpatchinwag [dot] com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save £200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]