Zylum/lost/montoya/anyone

http://jellomirage.tripod.com/inertia.html

i know zylum and montoya helped me with this… zylum, i used your inertia code (ty for it) but i am having problems with draging my MC as well as having the inertia movement

heres my code:
maximize MC:
[AS]
on(release){
_root.window.minimize.onEnterFrame = function() {
_root.window._y = _root.window._y-(_root.window._y-10)/4;
};
}
[/AS]
minimize MC:
[AS]
on(release){
_root.window.minimize.onEnterFrame = function() {
_root.window._y = _root.window._y-(_root.window._y-382)/4;
};
}
[/AS]
close MC:
[AS]
on (release) {
_root.window._visible = false;
}
[/AS]

all of those MCs are within ‘window’ which is on the main timeline… what im having a problem with is when i give the white bar at the top this code:
[AS]
on (press) {
_root.window.startDrag();
}
on (release) {
_root.window.stopDrag();
}
[/AS]

it works at first, but after you press the minimize or maximize buttons, then try to drag it… it snaps back to the spot where it was min/maxed to… please help, i can provide the .fla is needed, though i dont think i can attach it here on the forum

thanks
hawk

send me the file, Hawk. I’ll TRY (that is the key word) to take a look. I have some more deadlines this weekend.

hmm, it would help to know what your email address is :slight_smile:

try the “email” button along the bottom edge of his post

-just an observation here, your little ‘hash’ marks for min & max weren’t too obvious what to do … may I suggest you change the max one to a " + " sign then the difference would be plain as day

and have you winZip ? … just zip it up and attatch it here (?)

reland, you can see the working .swf, the link is at the top… also, the email button doesnt give me his address… only a box to type text in, and i cannot attach a file…

my problem, which you will understand better if you look at the .swf, is that after the first min/max the user does, if they try to drag the ‘window’ MC via the ‘drag’ MC within the window MC, they drag and it snaps back to its original location (being where it was when they started to drag) the only neat thing, is it goes back with inertia, i.e. it slow down when it get closer…

its freaky… also i just realized that the .swf that is linked to does not do the drag thing, i will reupload it so you can see… the new URL will be:
http://jellomirage.tripod.com/inertia2.html

still check the first one… i believe its the first thing on my first post

thx
hawk

I did check the first one… assumed you took the ‘drag’ bit out of it 'cause it was giving you prob’s…

…just a thought about you posting the .fla … maybe someone else could see it (???)

…and your right - that is just a “forward to email” from the site, very limited - How forgetful I art :!:

ohwell =) …RelandR

whoa… i zipped the .fla and it went from 165 to like 40… holy cow

I got it for a measly 37.5 !!! :!:

anyWho … I’m going to bed soon - I’ll look in the am for whatever that’ll be worth…

…oh your reposted link, the one with all the goods, guess you haven’t done it yet…(???)

Asta~Manana

yea, i havent done the link yet, talk to you tomorrow then eh?

bye
hawk

EDIT: if you stick around for a few sec, ill upload it and you can see what messed up sh*t it is

:beam:

http://jellomirage.tripod.com/inertia2.html

notice how when you drag before doin anything else, the drag works, now press minimize or maximize… the box moves, NOW try to drag, it… spazzes out! pisses me off… !@#%%#@$

:beam:

bumb, also reland, i pmed u!

Hello
Before touching anything within I opened your fla and the
first thing I did was to test movie… the file you have zipped doesn’t have the drag feature as your last site link does, must be on another copy (?)

Your site-link above does have the weirdness with the drag but I don’t have anything to look at regarding that problem in the one you attatched

when you find and attatch the right one you’d probably want to edit that one else folks’ll get confused as to what is the prob’

:smiley: sorry, heres the funky .fla!

hawk

Did you PM me ? … if so, I’m not getting them … (?) let me know as if they’re not coming thru I need to look into that.

…I’ll look at that other in a bit - got pancakes to flip -

ps: don’t forget to edit that other attatchment - else the pipples will get confus-ed

Partial success,
the code on the dragbar was odd and I got it to work fine (onpress and onrelease were fighting each other) So I combined the two under a (onPress, onRelase) and…
the function started with an “onEvent” that was different than the onEvent within the function so fixed that and no more prob’s there.

Some other things: Your icons for each button were dynamic text (?) I switched them to ‘static & selectable’ also the show news didn’t tell where to show it so I added in (orig) x & y coord’s so it reappears at the starting location

New prob though:: now the inertia bit doesn’t slow it down anymore…rather it just reduces the distance of the move by the division factor…(so I took that out and now it snaps to new position)

Anyone know of a better way to dictate speed on a move of a clip without interfering with the change of position calculation ???

well thats good…

reads on

ok…

reads on

aw WTF, that took me so long to figure out… and i didnt even do it myself completely!!

darn, thx for the help… also i was wonderin… why should they be static text? o well… dont matter

thx
peace
hawk

I’ll fiddle around with it some more and then post an attatchment with what I’ve got so you can look
I found some good threads about movement I’m going to read up on… maybe that move can be accomplished another way without any bugginess (?)

…making the text selectable gave it a larger hit area and there’s no reason for it to be dynamic…

Cheerz<>R<>

thx, anything i can do to contribute… just tell me

well this is a good experiment/practice for me too =)

I tried a script by kax here:
http://www.kirupaforum.com/forums/showthread.php?s=&threadid=19766&highlight=movement

…tried it six different ways but no work :!: …have to try it one or two more ways before sending up the red flag

oops…here is the fla I cleaned up a bit and everything works ok except the slowMotion inertia (?)

look at the code for each of the + & - btnClips where I’ve commented out the original x position

cheerz<>R<>