STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228083
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2560 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/51231807?noj=FRM51231807-2DN" width="1" height="1"></div>

This is the wiki page for Flash #183199
Visit the flash's index page for basic data and a list of seen names.


haruhi build2.swf
5,4 MiB, 00:02 | [W] [I]

Threads (1):

[GTHNCIG]F !! http://boards.4chan.org/f/thread/2998756/learning-macro…
ARCHIVEDDiscovered: 14/1 -2016 11:20:35 Ended: 14/1 -2016 18:43:58Flashes: 1 Posts: 25
File: haruhi build2.swf-(5.4 MB, 550x400, Loop)
[_] Learning Macromedia 8 John2wa 2998756 Thanks for all the support you guys gave me yesterday! I somehow managed to write up some code to randomize the text spawn, and there is currently 10 different texts that can come up at current. Let me know if you happen across any glitches, or anything spelled wrong. And, if there's something you think could be added to make this look better. In the next update, I plan to: 1.) Have the earth rotate. 2.) Implement more text. Hope you guys enjoy! :D Marked for deletion (old).
>> [_] John2wa 2998757 Also, does anyone know how to make the screen fit properly? The flash goes off to the right, and it doesn't do that when I open the raw file.
>> [_] Anon 2998769 >># it doesn't display a 0 for single digits, so 3:09 becomes 3:9
>> [_] John2wa 2998770 >># I see what you mean. I'll try and get that fixed too. Thanks.
>> [_] Anon 2998771 >># Also, the music doesn't keep looping. After 7 mins it stops.
>> [_] Anon 2998776 I don't know how programming in AS works, but I would suggest when fixing >># Don't have a long song, you just need to know if it loops probably, have a short song, or just a beep. If you hear "beep", then something is wrong, if you hear "beepbeepbeepbeepbeepbeep..." then it works and you can put the song you want into it. But as a stated before, I have no experience with AS.
>> [_] John2wa 2998781 >># Gee, there's more that needs fixed here than I thought. XD Good find! I will fix it! >># That's a good idea. I probably would have just listened to the whole thing to see if it looped. XD
>> [_] Anon 2998784 >Macromedia It's been adobe's thing for years...
>> [_] Anon 2998788 >The flash goes off to the right Does it, though? Seems fine to me... In any case, try tweaking the stage.scaleMode property.
>> [_] Anon 2998802 >># this is cool keep working on it
>> [_] John2wa 2998808 >># You can see my newbness showing. >># I think it's based off of the size of the window when you open the flash. Making the background super should make this fit in all windows. >># Will do! Glad you like it! :D
>> [_] Anon 2998833 >># Eyy, you did it, nice. >># As for this, just try a while loop with a condition that will never be true.
>> [_] Anon 2998836 >># *false
>> [_] partyhard !n21TE7QU8U 2998842 Ahh i saw your post yesterday i love this so much but the song needs like action or bass
>> [_] John2wa 2998848 >># Fixing the loop problem shouldn't be hard,(I think, lol) there's a lot of easy soulutions that come to mind. My biggest problem right now is figuring out how to make the earth rotate, with out having the file size too large. Since I have different text's branching off, I used stop and loop commands to separate them, but this makes having a constantly moving background hard. Does that make sense? ldk, but I'm sure there's a solution. Yuki-chan.swf found one, so I'm sure I can, anyway. >># Not sure, I wanted the music to this to be relaxing. I'll try out some other remix's, but I think I'm going to stick with this. We'll see. :)
>> [_] Anon 2998865 >># Hmm, rotating the earth sounds hard. Like, do you want it to rotate in real time? If that's the case then my first assumption would be to have a picture of the earth in the layer underneath this image, and just scroll it slowly. If you want to go for some 3D object, sounds like it will be a lot tougher. I have no idea how actionscript works, but from what I've seen it looks a little bit like javascript, so maybe this could be of some help: http://marcneuwirth.com/blog/2012/06/24/ creating-the-earth-with-d3-js/
>> [_] Anon 2998867 >># Also loads of examples on the D3 library in javascript here: http://d3js.org/ I don't see it being very useful for flash, but maybe you'll find a way to take a flat image and make it have the appearance of rotating using some azimuthal angle thing. You're gonna be fixed where you're looking at it from, so the only parts that will change are the x and y, so it will be x=rcos(theta) and y=rsin(theta).
>> [_] Anon 2998871 >># >Since I have different text's branching off, I used stop and loop commands to separate them Why? Text can be changed by the code, no need to have a separate frame for every text. Say you have 10 different of these sayings, generate a whole number between 0 and 11 and use that number in a switch statement to determine what the text will display. Btw, people say that coding on the timeline is bad practice and it gets too messy, so try to avoid it.
>> [_] Anon 2998879 >># Good job anon! Keep working on this! I would suggest you change the font maybe, that sort of default-looking font doesn't help the mood of the flash.
>> [_] John2wa 2998880 >># Well, contrary to what the other anon posted, I have a solution, but I'm worried about file size. So first off, if you didn't already know, the background image in this swf is actually a mp4 video. What I play to do is have 1 full rotation, set it to loop, then put it for all 10 different texts. Now, I'm pretty sure this will add up to over 10 MB, and I would have to lower the resolution to make it work, but I don't want to do that, which brings me to the other anon's message. >># If I can manage to change the code so all the text would function on the same frames, it would lower file size considerably. As to wheater or not I can do this, well, we'll see. I'll post some of the code, in case you guys are curious as to how I have things set up.
>> [_] John2wa 2998881 mario = random (10) +1; if (mario==1) { gotoAndPlay(21); } if (mario==2) { gotoAndPlay(3); } if (mario==3) { gotoAndPlay(5); } if (mario==4) { gotoAndPlay(7); } if (mario==5) { gotoAndPlay(8); } if (mario==6) { gotoAndPlay(11); } if (mario==7) { gotoAndPlay(13); } if (mario==8) { gotoAndPlay(15); } if (mario==9) { gotoAndPlay(17); } if (mario==10) { gotoAndPlay(19); } Yeah, I picked mario for a var name just cuz. :P lol Anyway, this happens on frame 1, which sends you to a random odd frame 3-21. From there, I have this command: gotoAndPlay(x-1); Which goes back 1 frame, and performs the loop, holding the random text. Now, I'll look into getting all the text to appear on the same frame, but I don't know if I'll be able to, with my level of knowledge. It took everything I had to figure this out, since I'm such a scrub at Action Script. (Never touched it before) lol
>> [_] Anon 2998883 >># Just a little snippet for this: secondString = seconds > 9 ? seconds : "0" + seconds; // do the same for minutes.
>> [_] John2wa 2998900 >># I'll try it out. Thanks! :)
>> [_] Anon 2998905 maybe turn this: mytime = new Date(); _root.time = mytime.getHours() + ":" + mytime.getMinutes() + ":" + mytime.getSeconds(); into a function. And don't ask me how. Dunno.
>> [_] John2wa 2998909 >># That's the function I used for this flash. XD



http://swfchan.net/37/183199.shtml
Created: 14/1 -2016 11:25:17 Last modified: 16/10 -2018 03:11:09 Server time: 02/05 -2024 10:56:26