View Full Version : News Bulletin
OpTimus
April 19th, 2003, 06:52 PM
Hi guys,
I'm inserting a "News Bulletin" On my website. The steps I took was
*creating a text box
*converting to symbol {movie clip}
Now I want to add effect, meanning I like for it to scroll up so I inserted this:in "Action"
onClipEvent (enterframe) {
_y -= 10;
}
But I like for it to loop.. !! Repeat itself,
I was curious on how I do that? I'm at this point now:
onClipEvent (enterframe) {
_y -= 10;
}
onClipEvent (enterframe) {
if ()
_root.
I'm lost from here and I dont know if im on the right track so can someone help? thank you
kode
April 19th, 2003, 06:59 PM
try someting like this:
onClipEvent (enterFrame) {
this._y<endY ? this._y=startY : this._y -= 10;
}
endY is the coordinate when the MovieClip should return to the starting coordinate and startY (kinda obvious) is the starting coordinate of the MovieClip. =)
OpTimus
April 19th, 2003, 07:10 PM
when I inserted that, it does the same thing as before.. !! you see it scroll up only once.. !! It does not repeat...uuhhmm any ideas?
kode
April 19th, 2003, 07:15 PM
did you replace endY and startY with the actual coordinates?
onClipEvent (enterFrame) {
this._y<20 ? this._y=100 : this._y -= 10;
}
or did you define endY and startY as variables?
onClipEvent (load) {
var endY = 20, startY = 100;
}
:-\
kode
April 19th, 2003, 07:20 PM
see the example. ;)
OpTimus
April 19th, 2003, 07:24 PM
see im totally new with action script, im just learnning so bare with me....when you say endy is where the movieclip return to the starting coordinate...Im lost with what is a "coordinate" :( im new so help me plz.....I know that prob cracked a smile...lol so can u clarify more on coordinate ? thx alot
OpTimus
April 19th, 2003, 07:31 PM
thx alot mate.. !! works GREAT.. !! two thumbs up and now I understand the action now
kode
April 19th, 2003, 07:33 PM
oh! ok. no problem. =)
OpTimus
April 19th, 2003, 08:15 PM
yeh i sent u a pm b/c i like to show you what im striving for. i need to know how to create a news box with current news but i dont know how to keep the text inside the rectangle box so if you could help me out with the attach file.thx alot
kode
April 19th, 2003, 08:22 PM
to attach your file click here <a href="newreply.php?s=&action=newreply&threadid=20993"><img src="images/post_reply.gif" border="0" width="90" height="25"></a> ;)
OpTimus
April 19th, 2003, 08:30 PM
here you go...lol i guess i didnt see that..:)
OpTimus
April 19th, 2003, 08:36 PM
im sorry i gave you the wrong one here you go
kode
April 19th, 2003, 08:37 PM
:P
ok. i'll check it out. ;)
OpTimus
April 19th, 2003, 09:01 PM
thx alot.. !! hope you can fix that mess...:) or tell me how
kode
April 19th, 2003, 09:05 PM
first off... don't animate in the main timeline, make your animations within MovieClips instead (those cubes for instance) it will make your life easier. ;)
and you don't need to use the coordinates i posted, it was just an example. :-\
anyway, i think the problem is (if there's a problem, everything seems fine to me) the keyframe at the end, it resets the MovieClip position.
and if you don't want the text to be visible when it's not over the black box, use mask. since you're using dynamic text, in order to mask it, you must embed the font outline. run a search in the forum if you don't know how to embed the font. ;)
OpTimus
April 19th, 2003, 09:17 PM
thx alot for the help.. !! ;) time to do some reading.. !! see the cubes were made from 3d swift and I just inport them and thats why its like that but again thznk you
kode
April 19th, 2003, 09:20 PM
no problem man. =)
and honestly i'm sorry if i didn't see the problem you meant. :-\
OpTimus
April 19th, 2003, 09:30 PM
nah thats kool, you helped out alot.....now i just need to read up on embeding text. so u say when I create animation its good to just convert to movieclip and do it that way instead of creating new layer in main timeline and doing there?
kode
April 19th, 2003, 09:45 PM
yeah, if you ever need to move/extract/edit the animation, it will be easier for you. ;)
OpTimus
April 19th, 2003, 10:04 PM
k, thx.......darn I cant find that tute on masking and embedding....:(
kode
April 19th, 2003, 11:24 PM
sorry about the delay. :-\
you'll find out how to create a mask here (http://search.atomz.com/search/?sp-a=00040c2f-sp00000000&sp-f=iso-8859-1&sp-q=mask)
as for embedding the font... select the TextField and click on a button that says character... in the properties panel.
=)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.