Need help with Flash, (like Mcdiddys)

Need help with Flash, (like Mcdiddys)

General — Page [1] 2
shigidy

2005 Nov 26 • 177
-1 ₧
Just wondering if you could give tutorials about how to make buttons like play at the beginning, how to make a loading bar, a replay button, and how to make a scene selection. Thank you if you do it :)
 
 
 
2006 Sep 25 at 02:21 UTC
SuperJer
Websiteman

2005 Mar 21 • 6666
I'm really not that good with Flash. I have to tinker forever to get a button to work and I always just steal someone else's loading bar.

I'm not actually a Flash expert.
 
 
 
2006 Sep 25 at 07:20 UTC
molkman
Owner of George Washington's Prototype Mittens

Marine Warfare Corporal
Find the Hole Participation Medal
Find the Hole II Participation Medal
Tasty Br�twurst Medal
2005 May 2 • 2066
404 ₧
For a button, just draw something, press F8 and tick "button". Then go to the actions frame and insert


on(Release){ gotoAndPlay("Scene Name", X)}


X = Frame number IN Scene called "Scene Name".



For a scene selection, just add a new scene (or frame) before your existing scenes or whereever you want it to be and add some buttons in the way described above. Like, if you want a button for Scene 1, Scene 2 and Scene 1337, make a button with gotoAndPlay("Scene 1", X) and so on...


For a loader bar, here's the script I always use:
In the first frame, add


totalBytes = Math.round(getBytesTotal()/1024);
loadedBytes = Math.round(getBytesLoaded()/1024);
percentDone = Math.round((loadedBytes/totalBytes)*100);
if (_root._framesloaded>=_root._totalframes) {
gotoAndPlay("start");
}


Make sure to add "gotoAndPlay(1)" in the 2nd frame and to name the 3rd frame "start"! (without ", of course...)(2, 3)

Then, create a bar, FULL SIZED and tick "movieclip" and add this code in the actions panel after clicking your bar:

onClipEvent (enterFrame) {
_xscale = _root.percentDone;
}

Then, go into your bar movieclip and drag the whole bar to the right and make sure the very left of the bar touches the little cross in the middle of the movieclip.

(1) Now add 3 text fields with the variables "loadedBytes", "percentDone" and "totalBytes". The "percentDone" one shows the percentage of the bytes already loaded, you can put this anywhere to add a fancy looking number. Nakes people think you're an awesome coder ;) .

Then, squeeze the bar to 1 pixel.(4)




Fun Fact: You can also change "gotoAndPlay" to "gotoAndStop".
LET LOVE REIGN
 
 
 
2006 Sep 25 at 16:55 UTC
shigidy

2005 Nov 26 • 177
-1 ₧
wow your smart, i'll try but i should expect to run into problems. I'm doing animation for school, Frankenstein
 
 
 
2006 Sep 25 at 23:56 UTC
shigidy

2005 Nov 26 • 177
-1 ₧
just wondering if you wanted to see my horrically bad animation i did for school.
http://www.freewebs.com/mediahut
and click on frankestein
 
 
 
2006 Sep 30 at 03:18 UTC
pointy

2006 Sep 28 • -50000
man that sux!
violence is the answer
 
 
 
2006 Sep 30 at 22:46 UTC
shigidy

2005 Nov 26 • 177
-1 ₧
Thanx it was my first one. Super Jer or anybody else could you send me a loading bar yall have made.
I couldnt figure out how to make those dang loading bars
 
 
 
2006 Oct 1 at 21:28 UTC
general_zim
Le Tigre

2006 Sep 1 • 549
16 ₧
I posted one in mcdiddy's flash playkit forum. Search for it.
 
 
 
2006 Oct 1 at 21:51 UTC
shigidy

2005 Nov 26 • 177
-1 ₧
Thx zim. very very much
 
 
 
2006 Oct 2 at 21:48 UTC
shigidy

2005 Nov 26 • 177
-1 ₧
I used the one you posted zim, but it doesn't actually load. It just acts like a play button, like a click it and it just plays.
 
 
 
2006 Oct 3 at 02:36 UTC
molkman
Owner of George Washington's Prototype Mittens

Marine Warfare Corporal
Find the Hole Participation Medal
Find the Hole II Participation Medal
Tasty Br�twurst Medal
2005 May 2 • 2066
404 ₧
Try this: www.molkman.de/preloader.fla

I guess, zim's preloader works, but when testing it on your pc, it loads in less than one second. Try uploading it to imageshack.
LET LOVE REIGN
 
 
 
2006 Oct 3 at 09:16 UTC
general_zim
Le Tigre

2006 Sep 1 • 549
16 ₧
yeah my preloader's work alot better on photobucket cause they actually preload.....



but thanks. That AS was hell....
 
 
 
2006 Oct 3 at 20:57 UTC
shigidy

2005 Nov 26 • 177
-1 ₧
do yall ever have delays when you turn your movie into the flash?
becuase on my computer when going frame by frame on my computer the sound and animations are dead on, but when i make them into flash there is a delay. Just wondering if anyone has ever had this problem before? Or am I doing something wrong?
 
 
 
2006 Oct 4 at 02:11 UTC
general_zim
Le Tigre

2006 Sep 1 • 549
16 ₧
well, describe it a tad more. But, check your frames to see if you made extra frames where you didn't move anything.



Or just post the .fla for me to check....
 
 
 
2006 Oct 4 at 03:09 UTC
molkman
Owner of George Washington's Prototype Mittens

Marine Warfare Corporal
Find the Hole Participation Medal
Find the Hole II Participation Medal
Tasty Br�twurst Medal
2005 May 2 • 2066
404 ₧
Either change the sounds' quality (publish settings, I guess) or set the sounds (each one) to "stream" in the sounds options panel. (Where you choose the sounds too)
LET LOVE REIGN
 
 
 
2006 Oct 4 at 11:58 UTC
shigidy

2005 Nov 26 • 177
-1 ₧
i dont know how to put my .fla up on super jer zim
 
 
 
2006 Oct 4 at 23:10 UTC
general_zim
Le Tigre

2006 Sep 1 • 549
16 ₧
just use savefile. Then link it to here.


But only do this if your still having the problem...
 
 
 
2006 Oct 4 at 23:11 UTC
shigidy

2005 Nov 26 • 177
-1 ₧
Man im dumb. I dont know what a savefile is. Sorry Zim im kinda computer dumb. Thanks for the help and really thanks for the patience. So if you could explain this i would be highly appreciative. Thanks
 
 
 
2006 Oct 5 at 01:08 UTC
general_zim
Le Tigre

2006 Sep 1 • 549
16 ₧
So, just go to www.savefile.com and create an account (just fill in the forms)


Then, after you've created your account, click on the link that says : Projects & Files. Create a project, and upload the .fla file.
 
 
 
2006 Oct 5 at 01:28 UTC
shigidy

2005 Nov 26 • 177
-1 ₧
Thanks Zim. I'll upload it up there tomorrow and let you see. Its already 10:30.
 
 
 
2006 Oct 5 at 02:43 UTC
general_zim
Le Tigre

2006 Sep 1 • 549
16 ₧
aight.
 
 
 
2006 Oct 5 at 03:36 UTC
jacksmoke234
Tendrils McGee

2005 Mar 21 • 1375
34 ₧
"general_zim" said:
aight.

I love one word posts.
 
 
 
2006 Oct 5 at 22:45 UTC
aaronjer
*****'n Admin

Comrade General 5-Star
2005 Mar 21 • 5046
1,227 ₧
Really?
 
 
 
2006 Oct 6 at 00:12 UTC
general_zim
Le Tigre

2006 Sep 1 • 549
16 ₧
wow.
 
 
 
2006 Oct 6 at 01:15 UTC
molkman
Owner of George Washington's Prototype Mittens

Marine Warfare Corporal
Find the Hole Participation Medal
Find the Hole II Participation Medal
Tasty Br�twurst Medal
2005 May 2 • 2066
404 ₧
I love that everyone tries to be funny as soon as someone posts something that can be turned into forum humour...
LET LOVE REIGN
 
 
 
2006 Oct 6 at 11:18 UTC
Page [1] 2