Flasher Archive

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


Subject: RE: FLASH: Help!
From: Dorian Nisinson
Date: Mon, 6 Nov 2000 21:33:12 GMT

Jim,
I'm fine, thanks. Swamped but fine.
I didn't see the code that set the x and y position the door must reach in
order to trigger some action to execute. Without seeing the whole thing it
is difficult to tell you exactly what needs doing, but It would seem to me
to need an if statement or two that is triggered one way if _x and _y is at
the right position and another way if it is not.
I would approach this in a more Flash 5 sort of way. The first thing I
recommend is using dot syntax. It can seem odd and confusing at first, but
it is really easier to use and understand after a bit.

I would keep the start and stop drag actions in the buttons as you have it.
The roll out doesn't seem clear to me what you intend. If the roll out is to
trigger your completely opened door actions it can't really do that. It can
just tell that the cursor has rolled out of the button.
You need to use onClipEvent (enterFrame) to help this. They are incredibly
useful for things that need to constantly update because they execute over
and over continuously regardless of the number of frames inside the movie
clip or the number of frames that the movie clip sits on.
Put an action in an onClipEvent(enterFrame) of the door mc that will keep
track of the door position:

doorPosX = this._x
doorPosY = this._y

add an action to the on press button that drags the door that checks those
doorPos variables.

if (doorPosX == fill in perfect position here) {
do something
}
if (doorPosX < perfect position) {
do somthing else
}

It's a start. Let me know if you how it goes.

Dorian
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dorian Nisinson Design
http://www.nisinson.com
dorianatnisinson [dot] com (mailto:dorianatnisinson [dot] com)
Flash Motion Graphics
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


-----Original Message-----
From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Jim Curry
Sent: Monday, November 06, 2000 12:09 PM
To: flasheratchinwag [dot] com
Subject: Re: FLASH: Help!


Hi Dorian! i am using V.5.
Long time no talk!! I hope you are well.
Jim

Dorian Nisinson wrote:
>
> Hi Jim,
> Are you using Flash 4 or Flash 5?
>
> Dorian
>
>
> -----Original Message-----
> From: owneratchinwag [dot] com [owneratchinwag [dot] com]On">mailto:owneratchinwag [dot] com]On Behalf Of Jim Curry
> Sent: Sunday, November 05, 2000 7:54 AM
> To: flasheratchinwag [dot] com
> Subject: FLASH: Help!
>
> Hi,
> i am tryin in vain...to set up a sequence where a door is dragged open
> and once its is to a certain spot, a movie clip is activated. the door
> can onmly slide to thr right and I ahve been able to setb this upo ok.
> I have it so the clip is sctivated on a rollout, but, thats not good
> because if they drag it to a certain point short of where I want them to
> go then things don't work right
>
> Here's the script thus far. What's next...??
>
> Thanks!!
>
> on (press) {
> startDrag ("/thehatchdoor_clip", false, origX, origY, origX+125,
origY);
> }
> on (release) {
> stopDrag ();
> }
> on (rollOut) {
> tellTarget ("/nextframe_clip") {
> nextFrame ();
> }
> }
>
> --
> Jim Curry :-)
> Virtual Curry
> "A nice place to unwind on the internet"
> gif and flash animations,
> illustrations, music and more
> http://home.twcny.rr.com/jcurry/
>
> jcurry1attwcny [dot] rr [dot] com (mailto:jcurry1attwcny [dot] rr [dot] com)
> ************Stop by and Relax!**************************
> The Virtual Curry Gallery is filled with fun, entertaining, and
> interactive pieces. Be sure to try out the new PaintBall Flash
> Game for 1 or 2 players.
> The House Tour is undergoing some renovations! Stop by for
> the latest additions and changes!
> http://home.twcny.rr.com/jcurry/gallery.html
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 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
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 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

--
Jim Curry :-)
Virtual Curry
"A nice place to unwind on the internet"
gif and flash animations,
illustrations, music and more
http://home.twcny.rr.com/jcurry/

jcurry1attwcny [dot] rr [dot] com (mailto:jcurry1attwcny [dot] rr [dot] com)
************Stop by and Relax!**************************
The Virtual Curry Gallery is filled with fun, entertaining, and
interactive pieces. Be sure to try out the new PaintBall Flash
Game for 1 or 2 players.
The House Tour is undergoing some renovations! Stop by for
the latest additions and changes!
http://home.twcny.rr.com/jcurry/gallery.html

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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


Replies
  Re: FLASH: Help!, Jim Curry

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