PDA

View Full Version : playing back frames (previous comm.?)


justix
11-20-2001, 10:59 PM
It's me again.....

I have a new menu with a scrolling images going left to right
for each button I have assigned an actionscript with play and stop @ the frame specified (label) but how can I play it back
the same way I let the images scroll until they reached the frame assigned? (or label?)
any easy way? because I saw a good fla about xpos it but I cannot understand how to check this Xpos thinhs?
plz.........

justix
11-20-2001, 11:31 PM
a fla as exaple.........

Jesse
11-21-2001, 05:20 AM
See the relative scrolling content tute which does exactly this.

Billy T
11-21-2001, 06:51 AM
have a look at this...

justix
11-21-2001, 07:37 AM
thank you so much for helping me out.....
is exactly what I was looking for....such a short string too.....
so I understand the clip on top does contain the main code which has to be there.....very clear I'm studying it so that I can experimenting the _y too.....thanks again (is not that easy learning the actionscript though book are not this clear either...)
oh....plz....have a look @ this..

Respectz......

justix
11-21-2001, 08:03 AM
oopss...click the post reply by mistake....

www.darcangelo.cjb.net


thnks

Billy T
11-21-2001, 09:06 AM
lookin good:D

is that made in swift?

yeah that script I gave you can be easily adjusted to alter y, alpha, scale or whatever...

a suggestion for your site - some of the text is quite small so the anti-aliasing from flash makes it quite hard to read. I was recently put on to making unantialiased gifs in photoshop for my text and bringing them into flash - give it a try.

steps -
type text in the font you want (in photoshop)
make sure no antialias is selected for the type
save for web as a gif with a transparent background
import into flash

cheers

justix
11-21-2001, 09:44 AM
thanks billy....you're the only one who's reply to my site check..
nobody seems to care...never mind...yeah....usually many of the site I checked out had small txt, personally I don't really love
BIG fonts, perhaps the font itself is not THAT clear..
I made it in 3dmax and export it in flash via Illustrator 4.1 x max
got the vectra3d and the swift3d plugs (not the 2.0 sadly...)
but the illustrator 4.1 is the fastest though got some bug (it does'nt really export Flash 5.0 very well)
again man thanks and if you need these plgz (no ..i'm not trading)
I'll see to post it somewhere....a little reward...

justX is obviously watching you..........

(desperately looking for poser pro pack 'cause got the flash export option........) know what I mean........

Billy T
11-21-2001, 09:59 AM
thanks man but I'm on a mac so I dont use max.

I had a play with swift 2 the other day - much better than version 1 but still pretty crappy for animating:(
wish they would make a plugin for a mac 3d app!!

Did you post your site in the "Site check" forum? I would be very surprised if you didnt get some feedback

cheers

justix
11-21-2001, 10:52 AM
yes iI did....2 times..around 40 views but no a single comment except yours....yeah..I've noticed that, strange enough when it jumps to the specific frame where the movie reverse and call for an external ones it does count the blank frames as well resulting in a switch off of the screen as well for a sec when it should be
smooth as some link there...I will fix this, now I'm working on the scroll menu, I will replace the ugly picts with some better ones and rebuilt the releases menu with a more sofisticated one (hope that way)..MAC...my dream...but I'm too addicted to 3d and videogames and PC is the whole solution x me (waitng for get a GEFORCE 3 lower price around mid-december eh eh..) while on the 3D model making RHINO3D is absolutely amazing!!! so professional and friendly interface....
ah....

Billy T
11-21-2001, 11:02 AM
cool:p

and please do try the unantialiased text thing - I think it would make a big difference to your site

justix
11-21-2001, 11:07 AM
I will..........will get back to you........

again..thnks...

justix
11-22-2001, 11:18 AM
Ok..then please don't take me as a weirdo...what I learned from the example2 provided by Billy T works fine...just wondered
to control 2 scroll @ once.with the same button..but with X inverted.
to be clear:

on press one scroll goes left to right and @ the same time the 2nd
right to left or viceversa.
how can I tell the actionscript to do so?

button actionsc. on (release) {

/:xpos = "223";
}

scroll code:
onClipEvent (load) {
/:xpos = "279.5";
}

thanks again

justix
11-22-2001, 11:22 AM
Sorry for the prev. post....

maybe reading well the code I can add a second one
simple give the current_x property the second bar....
will it work that way?

Billy T
11-22-2001, 11:25 AM
yeah just duplicate the 3 lines of code in the scroller and put a 2 after each one

eg /:xpos2

cheers

justix
11-22-2001, 11:41 AM
so if this is the correct way it should work as:
CODE:(I add a second layer for this)
play ();
current_x = getProperty("_root.bar2", _x);
dif_x = current_x-/:xpos2;
setProperty ("_root.bar2", _x, current_x-(dif_x/5));

Scroll code:
onClipEvent (load) {
/:xpos = "279.5";
/:xpos2 = "179.5";
}

button code:
on (release) {

/:xpos = "223";
/:xpos2 = "123";
}

is it right? (feel like a bit of a wank....)

justix
11-22-2001, 12:03 PM
done it!!!
Thanks again man....

justix
11-22-2001, 01:49 PM
strange enough now both are running the SAME way though I
set the bar2 in different position..why? am I such a lame?


general code for both bars:

play ();
// get the current X location of the bar clip
current_x = getProperty("_root.bar2", _x);
// work out the distance between the bar clip's current location and it's destination
dif_x = current_x-/:xpos2;---> (or /:xpos)
setProperty ("_root.bar2", _x, current_x-(dif_x/5));


code bar1:
onClipEvent (load) {
/:xpos = "279.5";


} ---->set starting position bar

code bar2:
onClipEvent (load) {
/:xpos = "90";


} -->set start. position bar2

button codes:
on (release) {

/:xpos = "223";
/:xpos2 = "323";
} IT SHOULD SEND THE FIRST BAR @ 223 and the 2nd 323 right?

so why the 2nd bar are runnig as the first?.....

Billy T
11-22-2001, 09:35 PM
you need to put a 2 after the current_x and dif_x variables as well

current_x2
dif_x2


cheers