Forum Topic: The Flash 'Reg' Lounge

(797,109 views • 52,673 replies)

This topic is 1,756 pages long. [ 18461,691 | 1,692 | 1,6931,7241,756 ]

<< < > >>
None

Xeptic

Reply To Post Reply & Quote

Posted at: 9/5/09 07:10 AM

Xeptic LIGHT LEVEL 30

Sign-Up: 05/12/05

Posts: 2,181

CS3 has found another way to piss me off. Whenever I compile my movie it ignores all the Actionscript (3), when I try to debug it says it can't debug because there is no actionscript in the .swf file. Anyone have a solution for that?

BBS Signature

None

Paranoia

Reply To Post Reply & Quote

Posted at: 9/5/09 07:16 AM

Paranoia DARK LEVEL 34

Sign-Up: 04/22/05

Posts: 9,699

At 9/5/09 07:10 AM, Xeptic wrote: CS3 has found another way to piss me off. Whenever I compile my movie it ignores all the Actionscript (3), when I try to debug it says it can't debug because there is no actionscript in the .swf file. Anyone have a solution for that?

It's happened to me twice. It only seems to do it at the start of a project if you try to use too many classes (because it's not like AS3 is an OOP language or anything), and I've not found any solution.

BBS Signature

None

Xeptic

Reply To Post Reply & Quote

Posted at: 9/5/09 07:24 AM

Xeptic LIGHT LEVEL 30

Sign-Up: 05/12/05

Posts: 2,181

Yuck, so now what am I going to do...

BBS Signature

None

Paranoia

Reply To Post Reply & Quote

Posted at: 9/5/09 07:25 AM

Paranoia DARK LEVEL 34

Sign-Up: 04/22/05

Posts: 9,699

At 9/5/09 07:24 AM, Xeptic wrote: Yuck, so now what am I going to do...

I guess just start a new file and recycle all of your non-classes :/

BBS Signature

None

Xeptic

Reply To Post Reply & Quote

Posted at: 9/5/09 08:03 AM

Xeptic LIGHT LEVEL 30

Sign-Up: 05/12/05

Posts: 2,181

At 9/5/09 07:25 AM, Paranoia wrote: I guess just start a new file and recycle all of your non-classes

That's hardly statisfactory... I seem to have found a different solution, apparently my library contains one or more corrupted items. I think I found the corrupted library item, now I have to restore it somehow and see if that solves my problems.

BBS Signature

None

Xeptic

Reply To Post Reply & Quote

Posted at: 9/5/09 08:18 AM

Xeptic LIGHT LEVEL 30

Sign-Up: 05/12/05

Posts: 2,181

This will be my last post on this page, I promise. Just wanted to say that I found my problem... I typed:

TweenMax.to(mountainLightingIce, 30, {alpha:0.1.5});

Instead of:

TweenMax.to(mountainLightingIce, 30, {alpha:0.15});

So yeah, apparently that typo almost made me kill myself. I wish Flash had just given me an error message. This is the last project that I program with Flash.

BBS Signature

None

Glaiel-Gamer

Reply To Post Reply & Quote

Posted at: 9/5/09 11:39 AM

Glaiel-Gamer NEUTRAL LEVEL 27

Sign-Up: 12/28/04

Posts: 8,053

At 9/5/09 04:02 AM, Deadclever23 wrote:
At 9/5/09 03:14 AM, angryglacier wrote:
At 9/5/09 02:59 AM, Glaiel-Gamer wrote: in game screencap
Oh yeah and your game crashed in the middle of pax what made it do that?
I thought you said it ran perfectly on your own OS, Glaiel?

I dunno what's going on. The game doesnt crash, their monitor and my computer don't get along


None

Jimp

Reply To Post Reply & Quote

Posted at: 9/5/09 12:47 PM

Jimp FAB LEVEL 14

Sign-Up: 08/05/05

Posts: 1,969

Hey guys, just put together a quick trailer for my new game with LongAnimals for FGL, let me know what you think! The game has 54 levels, lots and lots of different things to play with :)

Bubble Guinea Pop Trailer

BBS Signature

None

zrb

Reply To Post Reply & Quote

Posted at: 9/5/09 12:52 PM

zrb LIGHT LEVEL 11

Sign-Up: 08/08/06

Posts: 4,548

At 9/5/09 12:47 PM, Jimp wrote: Bubble Guinea Pop Trailer

It's private :C

School Sux ! || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature

Blushing

Jimp

Reply To Post Reply & Quote

Posted at: 9/5/09 12:54 PM

Jimp FAB LEVEL 14

Sign-Up: 08/05/05

Posts: 1,969

At 9/5/09 12:52 PM, zrb wrote: It's private :C

Fail. Try now :)

BBS Signature

None

zrb

Reply To Post Reply & Quote

Posted at: 9/5/09 01:12 PM

zrb LIGHT LEVEL 11

Sign-Up: 08/08/06

Posts: 4,548

Omg! This looks amazingly fun, can't wait to play it :)

School Sux ! || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature

None

Xeptic

Reply To Post Reply & Quote

Posted at: 9/5/09 01:16 PM

Xeptic LIGHT LEVEL 30

Sign-Up: 05/12/05

Posts: 2,181

Looks like fun, although from the trailer I can't say for sure what the game is about. Obviously trying to hit certain objects with bubblegum, but I'm not sure why or how.

BBS Signature

None

Duchednier

Reply To Post Reply & Quote

Posted at: 9/5/09 04:46 PM

Duchednier LIGHT LEVEL 17

Sign-Up: 06/14/05

Posts: 1,220

9 review

Went to see 9 last night, not gonna lie guys, don't get your hopes up. The movie is entertaining... but its 60 minutes long, and alot of stuff happens. its like "Lets go here DONE! Lets do this DONE! Now were here DONE! Oh look its over CREDITS!

The action is still cool though, it just needs better pacing.

BBS Signature

Misunderstood

K-Guare

Reply To Post Reply & Quote

Posted at: 9/5/09 05:40 PM

K-Guare FAB LEVEL 17

Sign-Up: 05/23/08

Posts: 2,413

You know how you know when you have a really good idea?
When somebody else has the same one.

For a while I've wanted to name a game
I've been working on for a bit "Moxie", but I think
I'll have to change it due to the word's recent popping out of nowhere...

It was traditionally a soda,
then on G4 one day it was an online interviewee's nickname,
I ran into it again in the most recent Night at the Museum movie,
and finally as I was watching Spongebob today, I saw
an ad for some barbie doll group called Moxie Girlz.

I had never heard of the word before when I
named it earlier this year. I named it that after seeing it as
a search result of the word "bravery" on thesaurus.com.

I love the name, but,
I certainly don't want to run into any Tim Langdells.
:[

i work alone. i wore cologne.

BBS Signature

None

Duchednier

Reply To Post Reply & Quote

Posted at: 9/5/09 06:09 PM

Duchednier LIGHT LEVEL 17

Sign-Up: 06/14/05

Posts: 1,220

At 9/5/09 05:40 PM, K-Guare wrote: You know how you know when you have a really good idea?
When somebody else has the same one.

For a while I've wanted to name a game
I've been working on for a bit "Moxie", but I think
I'll have to change it due to the word's recent popping out of nowhere...

Moxies is a restaurant, its been around forever :)

BBS Signature

None

Josh-B

Reply To Post Reply & Quote

Posted at: 9/5/09 06:50 PM

Josh-B NEUTRAL LEVEL 14

Sign-Up: 08/14/05

Posts: 3,775

At 9/5/09 04:46 PM, Duchednier wrote: Went to see 9 last night, not gonna lie guys, don't get your hopes up. The movie is entertaining... but its 60 minutes long, and alot of stuff happens. its like "Lets go here DONE! Lets do this DONE! Now were here DONE! Oh look its over CREDITS!

Wait, isn't it supposed to come out on 9/9/09?


Winking

K-Guare

Reply To Post Reply & Quote

Posted at: 9/5/09 07:34 PM

K-Guare FAB LEVEL 17

Sign-Up: 05/23/08

Posts: 2,413

At 9/5/09 06:09 PM, Duchednier wrote: Moxies is a restaurant, its been around forever :)

Well no wonder I haven't heard of it. :]

The Flash 'Reg' Lounge

i work alone. i wore cologne.

BBS Signature

None

Rudy

Reply To Post Reply & Quote

Posted at: 9/5/09 07:55 PM

Rudy DARK LEVEL 18

Sign-Up: 01/01/05

Posts: 4,740

Hello everyone :)

I'm gonna start animating again, but I lost my tablet pen. I'll try to find it eventually..... Who wants to send me a replacementttt? :)

Check out my band, Electric Complex: Facebook l MySpace l Twitter

BBS Signature

Goofy

Magical-Zorse

Reply To Post Reply & Quote

Posted at: 9/5/09 08:12 PM

Magical-Zorse FAB LEVEL 21

Sign-Up: 05/10/08

Posts: 2,520

At 9/5/09 07:34 PM, K-Guare wrote:
At 9/5/09 06:09 PM, Duchednier wrote: Moxies is a restaurant, its been around forever :)
Well no wonder I haven't heard of it. :]

We're practically on opposite sides of the country

rip livecorpse

BBS Signature

None

K-Guare

Reply To Post Reply & Quote

Posted at: 9/5/09 08:54 PM

K-Guare FAB LEVEL 17

Sign-Up: 05/23/08

Posts: 2,413

At 9/5/09 08:12 PM, Magical-Zorse wrote: We're practically on opposite sides of the country

Well now it seems I now have two reasons to
be a little sad about not living closer to the other corner of the states.

The other reason is PAX, lol.

i work alone. i wore cologne.

BBS Signature

Questioning

Deadclever23

Reply To Post Reply & Quote

Posted at: 9/6/09 04:08 AM

Deadclever23 FAB LEVEL 12

Sign-Up: 11/27/06

Posts: 1,034

Speed Test
For loop verse while loop.

For loop:

for(var i:int = 0; i < 1000000000; i++)
{
}

Results:

6956
6779
6830

average = 6855

While loop:

var i:int = 0;
while ( i < 1000000000)
{
     i++
}

Results:

6826
6777
6798

average = 6800.333

Strange indeed. The while loop is slightly faster than the for.

IndyDev - Reviews, News and Tutorials. the hottest new Indy blog of it's kind. (Shameless self promotion).

BBS Signature

Happy

Doomsday-One

Reply To Post Reply & Quote

Posted at: 9/6/09 05:30 AM

Doomsday-One EVIL LEVEL 10

Sign-Up: 10/28/05

Posts: 1,362

At 9/6/09 04:08 AM, Deadclever23 wrote: Strange indeed. The while loop is slightly faster than the for.

Crazy Flash.
Y'know what's even faster than them, though? Do..while is faster than both, and for..in is even faster (although, there are less opportunities to use for..in)!
Or, at least I think that's the usual case in AS2; I've never tested it myself.

However, it looks like it depends a lot on what you are doing in the loop. Take a look at this. And if it looks like I don't know what I'm talking about, I probably don't.

Doomsday-One, working on stuff better than preloaders.

By the way, I made the 'Create an Animated Sprite' preloader for Sprite TV 3!


None

Glaiel-Gamer

Reply To Post Reply & Quote

Posted at: 9/6/09 05:59 AM

Glaiel-Gamer NEUTRAL LEVEL 27

Sign-Up: 12/28/04

Posts: 8,053

At 9/5/09 11:39 AM, Glaiel-Gamer wrote:
At 9/5/09 04:02 AM, Deadclever23 wrote:
At 9/5/09 03:14 AM, angryglacier wrote:
At 9/5/09 02:59 AM, Glaiel-Gamer wrote: in game screencap
Oh yeah and your game crashed in the middle of pax what made it do that?
I thought you said it ran perfectly on your own OS, Glaiel?
I dunno what's going on. The game doesnt crash, their monitor and my computer don't get along

The AV guy brought us a new cable today. Game has not hiccuped since, so it was the cable after all.


None

dELtaluca

Reply To Post Reply & Quote

Posted at: 9/6/09 07:25 AM

dELtaluca LIGHT LEVEL 20

Sign-Up: 04/16/04

Posts: 5,548

Your speed test is quite simply, not true. There is absolutely no difference at all between your two loops, not even in bytecode, they produce (even under flash's shitty compiler) the exact same bytecode.

More likely, it is a result of running the swf inside of flash, forcing debug mode even if the swf isn't compiled for debugging, and the extra time is spent on processing an extra line of code.

My social worker says im special!

BBS Signature

Shouting

Jimp

Reply To Post Reply & Quote

Posted at: 9/6/09 07:37 AM

Jimp FAB LEVEL 14

Sign-Up: 08/05/05

Posts: 1,969

Whats up with the featured art section then? :D

cocks
BBS Signature

None

Toast

Reply To Post Reply & Quote

Posted at: 9/6/09 07:48 AM

Toast DARK LEVEL 09

Sign-Up: 04/02/05

Posts: 8,921

At 9/6/09 04:08 AM, Deadclever23 wrote: Speed Test
For loop verse while loop.

For loop:

for(var i:int = 0; i < 1000000000; i++)
{
}

Results:

6956
6779
6830

average = 6855

While loop:

var i:int = 0;
while ( i < 1000000000)
{
i++
}

Results:

6826
6777
6798

average = 6800.333

Strange indeed. The while loop is slightly faster than the for.

Numbers don't mean anything without units. What's 6826? 6826 milliseconds? There doesn't even seem to be any significant difference between the average for both loops. 6855/6800 is 1.008, a difference so negligible that even some of the values within the same type of loop vary more, like 6826 and 6777. This clearly suggests that whatever difference there is between the two types of loops is purely coincidental due to the random factors that could affect your result. I don't know about these small technical events in great depth, but I assume that things such as your CPU doing a little bit more work during one of the tests for background programs could affect the result by a tiny bit, or maybe it can be physical conditions related to your hardware. I cannot answer with certainty what exactly causes those variations in your values, but it seems pretty obvious that whatever the difference may be, it is not in structure of your code. I would expect the same results if you were to replace the while loop by a for loop (thus comparing for to itself, showing it to be impossible that the difference is in code structure)

Moreover, I find it absurd that each of your values contains 4 significant numbers, yet the average contains 7. When handling values of limited precision, all operations done to them must yield a number with the same amount of significant numbers, or else the result is flawed in the sense that you added imaginary numbers that were not included. (ie: 6777.000 insteado f 6777)


Winking

Doomsday-One

Reply To Post Reply & Quote

Posted at: 9/6/09 07:49 AM

Doomsday-One EVIL LEVEL 10

Sign-Up: 10/28/05

Posts: 1,362

At 9/6/09 07:37 AM, Jimp wrote: Whats up with the featured art section then? :D
cocks

Egoraptor and Canas got phished by www.nevvgrounds.com ('w' was replaced by two 'v's) apparantly.
People were descouted, but that's about it.
Thread

Doomsday-One, working on stuff better than preloaders.

By the way, I made the 'Create an Animated Sprite' preloader for Sprite TV 3!


None

Paranoia

Reply To Post Reply & Quote

Posted at: 9/6/09 08:19 AM

Paranoia DARK LEVEL 34

Sign-Up: 04/22/05

Posts: 9,699

At 9/6/09 07:48 AM, Toast wrote: There doesn't even seem to be any significant difference between the average for both loops. 6855/6800 is 1.008, a difference so negligible that even some of the values within the same type of loop vary more, like 6826 and 6777.

Exactly. Fuck the fourth significant figure :p

So long as we're on the subject of coding, does anyone know the best way of shuffling an array in Flash? Not that it makes too much of a difference in this particular case, but shuffling always throws up some interesting solutions.

BBS Signature

None

Toast

Reply To Post Reply & Quote

Posted at: 9/6/09 09:29 AM

Toast DARK LEVEL 09

Sign-Up: 04/02/05

Posts: 8,921

At 9/6/09 08:19 AM, Paranoia wrote: So long as we're on the subject of coding, does anyone know the best way of shuffling an array in Flash? Not that it makes too much of a difference in this particular case, but shuffling always throws up some interesting solutions.

First I thought you could assign a random number to each value and then sort the values depending on their random number, but that would be inefficient since no sorting algorithms can sort a list in linear time. here's what i managed to do in linear time:

import random
import math

def shuffle(a):
    n = len(a)
    l = []
    while(n>0):
        rng = int(math.floor(random.random()*n))
        l.append(a[rng])
        a.pop(rng)
        n -= 1
    return l

I wrote it in python but it's easy to understand even if you're not fluent with the language. It simply creates a new empty array and chooses a random value from the first array, inserts it to the second array, and removes it from the first array. It takes exactly n steps to shuffle a list of n values

(def = function, len = length, append = push)


Happy

Depredation

Reply To Post Reply & Quote

Posted at: 9/6/09 09:47 AM

Depredation LIGHT LEVEL 17

Sign-Up: 09/05/05

Posts: 4,783

I'm back baby(s).

Speed Tests

Surely any pc that can run vista can afford the extra few milleseconds to process what you want. In C++ and proper engine coding it would be a vast chasm, but with flash it is not even an inconvenience to the player.

I agree optimization is vital, but shaving thousands of seconds off will not make your game any better.

Fastest Coding Language

On the topic of SPEEEEEED, what is the fastest (as in runtime computation) language? I've heard F# is near the top, but apparently C++ is better at rendering in real time. I've set a target to learn a proper programming language (ie. C++/C#) by christmas, and was just wondering what are the pros/cons of them.

Also, what i miss?
BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 05:34 AM

<< Back

This topic is 1,756 pages long. [ 18461,691 | 1,692 | 1,6931,7241,756 ]

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!