View Full Version : zylum/lost/montoya/anyone
Hawk
April 13th, 2003, 12:55 AM
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:
on(release){
_root.window.minimize.onEnterFrame = function() {
_root.window._y = _root.window._y-(_root.window._y-10)/4;
};
}
minimize MC:
on(release){
_root.window.minimize.onEnterFrame = function() {
_root.window._y = _root.window._y-(_root.window._y-382)/4;
};
}
close MC:
on (release) {
_root.window._visible = false;
}
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:
on (press) {
_root.window.startDrag();
}
on (release) {
_root.window.stopDrag();
}
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
Iammontoya
April 13th, 2003, 01:44 AM
send me the file, Hawk. I'll TRY (that is the key word) to take a look. I have some more deadlines this weekend.
Hawk
April 13th, 2003, 01:51 AM
hmm, it would help to know what your email address is :)
RelandR
April 13th, 2003, 02:12 AM
*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 (?)
Hawk
April 13th, 2003, 03:07 AM
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
RelandR
April 13th, 2003, 03:18 AM
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
Hawk
April 13th, 2003, 03:49 AM
whoa... i zipped the .fla and it went from 165 to like 40... holy cow
RelandR
April 13th, 2003, 03:59 AM
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
Hawk
April 13th, 2003, 04:01 AM
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:
Hawk
April 13th, 2003, 04:05 AM
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:
Hawk
April 13th, 2003, 03:32 PM
bumb, also reland, i pmed u!
RelandR
April 13th, 2003, 03:36 PM
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'
Hawk
April 13th, 2003, 04:09 PM
:D sorry, heres the funky .fla!
hawk
RelandR
April 13th, 2003, 04:46 PM
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
RelandR
April 13th, 2003, 10:11 PM
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 ???
Hawk
April 13th, 2003, 11:12 PM
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
RelandR
April 13th, 2003, 11:59 PM
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<>
Hawk
April 14th, 2003, 12:10 AM
thx, anything i can do to contribute... just tell me
RelandR
April 14th, 2003, 02:39 AM
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
RelandR
April 14th, 2003, 02:52 AM
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<>
Hawk
April 14th, 2003, 04:30 PM
hmm, this is messed up... minimize makes it go like half way down... and also the inertia is missin... as u said...
thx for the help and im glad that you get practice from this but that didnt help me at all! LOL, i will stick with my non-draggable version, its fine
thanks anyway, maybe we will figure it out sometime, if i get it, i will be sure to post it for ya!
thx
hawk
RelandR
April 14th, 2003, 04:46 PM
nonsense, just launched it here... max goes all the way up - min goes all the way down and the drag works !! :!:
...only thing not there is the inertia...(???)
I had the same result when I got the drag to work and the division part at the end of each (x + y) expression was still in, so I took that out and it was fine...
not sure why but there is some sort of conflict between the two features
Hawk
April 14th, 2003, 04:49 PM
when i try it, on minimize it doesnt go to the bottom :(
o well
ill figure it out one of these days!
hawk:beam:
RelandR
April 14th, 2003, 04:56 PM
you know, I was trying it several different combinations (putting things in then out) ... when I zipped it I may have had that one piece 'back' in (?)
look at the minimize code - if it has the "/4" at the end then it seems to retard the distance rather than slow it down
Hawk
April 14th, 2003, 04:58 PM
it didnt have the /4, but it still was stopping short for me
lemme have a look at it, brb
hawk
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.