Jump to content

Help with Flash.


papanesta

Recommended Posts

Does anyone here have a reasonable level of Flash knowledge?

 

I need to know if there is anyway, at the "Over" stage of making a button, is there anyway you can have more than one frame?

 

Basically, the button has a mechanical theme, and when it is scrolled over, it is like doors sliding off to the side, obviously this would happen in the "Over" stage, thus revealling the text for the link.

 

user posted image

 

And, the animated type thingie I want the "Over" stage to be like, but obviously not looping:

 

user posted image

 

If anyone can give me a hand, it would be much appreciated. Even just a link to a tutorial. I've looked, but found nothing helpful. smile.gif

scMmGsh.jpg
Link to comment
Share on other sites

Mmkay, this is going to seem kinda jumbled.

 

When you create the button, go to the Over field and click F6 to insert the frame.

 

Click on the item (in this case, the black rectangle), hit F8 and choose Movie Clip. Double-click the newly-created symbol, and you'll open a new window with a new timeline, ONLY FOR THE CLIP. Animate your button, and you'll be set. smile.gif

 

I'll throw down a little example, so I can be sure thats what you want.

 

edit -

 

http://www.2graphik.com/example.swf

 

That's the basic idea of what you'll get using the above method. I'm trying to remember how to make the animation transition back to the 'closed' state rather than just snap back.

Edited by anuj
oVAzxRq.png
Link to comment
Share on other sites

Thank you so much, mate. inlove.gif

 

I'm pretty sure that's exactly what I was looking for. Sadly, I can't check if I can do it right just now, I only have access to Flash in school.

 

I'll check tomorrow, then get back to you.

scMmGsh.jpg
Link to comment
Share on other sites

  • 2 weeks later...

Right, bumpage time.

 

I've got the button working... to a certain extent. I can't get the animation to stop looping in the "Over" stage. How do I stop this?

 

And the other thing is, everywhere I host it, it makes it bigger.

 

Like this, haha:

 

http://www.adamcs.net/uploads/inprogress.swf

Edited by papanesta
scMmGsh.jpg
Link to comment
Share on other sites

 

Right, bumpage time.

 

I've got the button working... to a certain extent. I can't get the animation to stop looping in the "Over" stage. How do I stop this?

 

And the other thing is, everywhere I host it, it makes it bigger.

 

Like this, haha:

 

http://www.adamcs.net/uploads/inprogress.swf

omg u r adamcs!?

 

Hook a brother up with a FLA and I'll see how your button is set up. I'll try to download/decode the swf for right now.

 

 

edit -

 

Okay, two things.

 

1. In the keyframes for the opening animation, you don't have any actionscript applied. So sekect the 15th (final) frame of the opening animation, and open the 'Actions' frame. Simply type " stop(); " into the box (sans quotes, of course), and hit save. This simply stops the playing of the animation dead in its tracks.

 

2. Why didn't you use a motion tween instead of individual keyframes? The animation still looks good, I just think it might've been easier.

 

Finished Product:

 

An animated button that won't loop, or eat babies.

 

http://www.2graphik.com/paps.swf

 

I'm still working on the scaling bit.

Edited by anuj
oVAzxRq.png
Link to comment
Share on other sites

The Secret's out! Papanesta has an Alter Ego!

 

anywayz, it's looks good mate! Keep up the good work, both of you


in5dJdX.png

Link to comment
Share on other sites

We all have a bit of adam in us. But no, I just requested to borrow his hosting.

 

1. I actually figured that part out after checking a tutorial on-line. Sorry, should have asked adam to host the new on for me. blush.gif

 

2. I'm still very new to all this, I knew doing it frame by frame worked fine, so stuck to that. Only then did my teacher give me a book on learning Flash, where I read all about the motion tween.

 

At least it won't eat babies now, that's a relief.

 

Any progress with the scaling? It's confusing me to no end. I tried editing the Publish Options, but that helped bollocks all.

 

Thanks for your help so far, 'nujer. inlove.gif

scMmGsh.jpg
Link to comment
Share on other sites

The reason it's scaled like that is because when you view a .swf by itself on a web browser it will zoom in so that it reaches the window's dimensions. When you have it embedded in a page it will appear at 100%. So when you go to publish it, publish an html file with it.

 

EDIT: http://gtaunderground.codenamenetwork.com/...s/papflash.html

Edited by Kuiosikle
Link to comment
Share on other sites

The reason it's scaled like that is because when you view a .swf by itself on a web browser it will zoom in so that it reaches the window's dimensions. When you have it embedded in a page it will appear at 100%. So when you go to publish it, publish an html file with it.

 

EDIT: http://gtaunderground.codenamenetwork.com/...s/papflash.html

That's what I was going to say, but I was hoping to find a standalone swf solution. I found how to keep it from scaling in independent flash viewers (fscommand), but not browsers.

 

Nice sig, btw.

oVAzxRq.png
Link to comment
Share on other sites

The only way I could think of would be to give the document the same dimensions as your resolution, which ofcourse is different for everybody so that's no good.

 

 

 

(thanks)

Edited by Kuiosikle
Link to comment
Share on other sites

So, if I use the buttons in a bigger web page design, like I plan to do, it will be okay...?
scMmGsh.jpg
Link to comment
Share on other sites

If you use the code from the html that has the right dimensions (21, 61 in this case) then yeah it should be fine. As long as the document size matches the content, which this case it does.
Link to comment
Share on other sites

 

So, if I use the buttons in a bigger web page design, like I plan to do, it will be okay...?

Get to the last frame in your movie animation, and insert the 'Stop" command (script browser) in the scripts menu. That will make the animation stop at that frame. i believe the code looks like

 

()stop;

 

But it is in the menu of all the flash commands.

 

I see. Now that I look over Anuj's post again...

Edited by Mercie
Link to comment
Share on other sites

Hey, I think I know what you should do. Tou oughtta get to the last frame in your movie animation, and insert the 'Stop" command (script browser) in the scripts menu. That will make the animation stop at that frame. i believe the code looks like

 

()stop;

 

But it is in the menu of all the flash commands.

 

blush.gif

Link to comment
Share on other sites

I think the button automatically takes on the dimensions of the canvas you're working on? So if you perhaps crop the canvas down to the button size it will stop?

 

Just an idea.

Link to comment
Share on other sites

I think the button automatically takes on the dimensions of the canvas you're working on? So if you perhaps crop the canvas down to the button size it will stop?

 

Just an idea.

Nah, the button won't automaticly take on the deminsions of the canvas, it wil be whatever size you make it. In pap's flash the canvas size is fine anyways, the problem is when viewing it in a broswer by itself as already stated. Though the way he dicribes his use for the button he won't have a problem.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.