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
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
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
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… !@#%%#@$
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’
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 ???
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…