Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > General > Best Practices

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-03-2009, 01:48 PM   #1
Kimchee
Senior Member
 
Join Date: Nov 2008
Location: Provo, UT
Posts: 108
Default In the end it doesn't even matter?

So I am getting tired of using correct programming logic just to get bugs because of flash.

for example, you cant put stage.length or stage.width to get x, y values at the start of a program because the stage's width and length change as the program loads.

Another example is I add mc to a stage and if I goto a different frame and back those mc are gone, but if I got to a different frame and then another one that then redirects me to the first the mc are there as they should be. Strange, strange, strange...

So my question is, are there any other wierd flash bugs that we need to be aware of as programmers, so we don't spend 12 hours debugging something with logic?
Kimchee is offline   Reply With Quote
Old 02-03-2009, 04:32 PM   #2
newblack
dondeEstanMisPantalones?
 
newblack's Avatar
 
Join Date: Nov 2005
Location: New York Proper
Posts: 1,173
Send a message via AIM to newblack
Default

it's width and height, not length and width. and the stage's dimensions are representative of what is currently on the display list- so it is completely application specific. if it didn't change, then it would be a bug- not the other way around.

i don't follow what you're saying about MovieClip behavior; sounds weird though.

it's really best to do the work and know that something does NOT behave the way that it should or is documented.
__________________
i am gibreel farishta
general relativity
jellytanks alpha redux
newblack is offline   Reply With Quote
Old 02-03-2009, 06:53 PM   #3
maskedMan
Obfuscated Coder
 
maskedMan's Avatar
 
Join Date: Apr 2008
Posts: 698
Default

Quote:
Originally Posted by Kimchee View Post
So my question is, are there any other wierd flash bugs that we need to be aware of as programmers, so we don't spend 12 hours debugging something with logic?
I don't know as the things you mentioned before are bugs, but here's something that will make you tear your hair out:

Putting sound files on a timeline in a nested movieclip. Just... just don't. Ever. Not if you're using AS3, at least. Having looked at the specifications for how swf files play, I no longer consider the weirdness that can happen with this a 'bug' as such. Rather, I consider it to be a horrifying side-effect of their intended VM structure that really needs a rethink if it is expected to work in any way that makes logical sense to a user of the authoring tool, but probably won't ever get one because it's so deeply entrenched in the Flash Player architecture that they'd have to scrap any and all semblance of backwards compatibility to fix it.
__________________
man.mask = mask_mc;

Sigh. The AS3 version just doesn't look at nice as
'man.setMask(mask_mc);'
maskedMan is online now   Reply With Quote
Old 02-07-2009, 03:46 PM   #4
kkbbcute
Guest
 
Posts: n/a
Default

Sometimes, Flash might just decide to spasm around and screw up. And by sometimes I mean pretty often, seriously.

Like once, I was doing an animation when all of a sudden, it stopped working. All I did was to go to the library and delete all my unused symbols, and viola! The entire animation started playing again, courtesy of Adobe Flash.
  Reply With Quote
Old 02-07-2009, 03:50 PM   #5
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,761
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

browse bugs.adobe.com for Flash Player bugs or log new ones if you find issues that aren't already there.
__________________
(6)
senocular is offline   Reply With Quote
Old 02-08-2009, 03:44 AM   #6
kkbbcute
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by senocular View Post
browse bugs.adobe.com for Flash Player bugs or log new ones if you find issues that aren't already there.
Some of those issues are really hard to define, so its a bit pointless reporting it. For example, I added a movie clip on stage when the whole swf screwed up. It really doesn't tell anything, its not like it happens every time you add a MC, its just a random occurence.

Maybe I should switch to back to Windows Vista or XP. Windows 7 beta is bugged to hell.
  Reply With Quote
Old 02-08-2009, 03:55 AM   #7
senocular
six eyes
 
senocular's Avatar
 
Join Date: Jan 2003
Location: San Francisco, CA (USA)
Posts: 7,761
Send a message via ICQ to senocular Send a message via AIM to senocular Send a message via MSN to senocular Send a message via Yahoo to senocular
Default

If there's a problem, it might be worth tracking down the cause so it can be fixed and won't happen again. Even if you can't target the specific cause, if you have a reproducible case, that can usually be good enough.
; )
__________________
(6)
senocular is offline   Reply With Quote
Old 02-09-2009, 06:06 PM   #8
grilldor
EPISODE17
 
Join Date: Aug 2007
Location: Montreal, Qc
Posts: 35
Send a message via MSN to grilldor Send a message via Skype™ to grilldor
Default

Quote:
Originally Posted by Kimchee View Post
for example, you cant put stage.length or stage.width to get x, y values at the start of a program because the stage's width and length change as the program loads.
Hum, what happened to stage.stageHeight and stage.stageWidth ?
grilldor is offline   Reply With Quote
Old 02-10-2009, 08:22 PM   #9
tg
done
 
Join Date: Jun 2001
Location: portland, or
Posts: 8,048
Default

Quote:
Originally Posted by kkbbcute View Post
Maybe I should switch to back to Windows Vista or XP. Windows 7 beta is bugged to hell.

>.<

dont expect stuff to work correctly in a windows beta.
__________________
tg
---
what the hell was i thinking?
tg is offline   Reply With Quote
Old 02-11-2009, 01:12 AM   #10
Flash Gordon
rather be programming
 
Flash Gordon's Avatar
 
Join Date: Feb 2005
Location: City of Angels
Posts: 10,000
Default

Quote:
Originally Posted by tg View Post
>.<

dont expect stuff to work correctly in a windows beta.
don't expect stuff to work correctly in windows
__________________
I'm old enough to know better and young enough to do it anyway. -- maskedman
Flash Gordon is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
one template, many looks? subquark ActionScript 1.0 (and below) 1161 09-03-2009 04:45 PM
advanced preloader vdizzle ActionScript 2.0 20 12-11-2007 07:06 PM
Maintain Mouse "Flicks" and Arrow Key Navigation liquidsg ActionScript 2.0 0 11-19-2007 03:12 PM
what does this code do ? amoo ActionScript 2.0 13 04-24-2006 07:07 PM
Database simulated with arrays on a cd-rom lecasn5 Components 61 09-07-2004 12:40 PM


All times are GMT. The time now is 06:48 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.