[Flashcoders] Some CS3 observations; library and sound

2007-08-07 Thread Andreas R
Been using CS3 for a bit now, getting to grips with AS3, and what feels like excessive handholding at first is now flowing naturally, and i feel far less prone to silent failures than before. To me this is entirely excellent, good show! The IDE however, i am less impressed with, and i am

Re: [Flashcoders] Some CS3 observations; library and sound

2007-08-07 Thread Andreas R
Zeh Fernando wrote: AS3's substitution of attachMovie for the movieclip constructor is, while logical on the surface, somewhat baffling to me in practise. In AS2, extending MovieClip required you to declare variables to gain references to clips already instanced in the library movieclip. For

[Flashcoders] oscillations

2007-08-06 Thread Andreas R
Out of curiosity, what are the right ways to calculate oscillations like triangle, sawtooth and pulse? Ideally oscillation would work in parallel with sine, so when sin=1, triangle=1, taking radians as the frequency parameter. Any takers? - Andreas R

[Flashcoders] browser security aggrevations (rant alert)

2007-04-24 Thread Andreas R
with the browser without crashing into this lunatic security management solution? What are the rules of thumb? *sigh* - Andreas R ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http

[Flashcoders] flash mass cpu benchmarking

2007-04-16 Thread Andreas R
Anyone know of a decent way to benchmark the CPU usage of websites heavy with flash advertising? - Andreas R ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo

[Flashcoders] Font variation issues in flash 8

2007-03-26 Thread Andreas R
Trying to access a specific font variation (like one is called black, and one is called Bold) , but all Flash 8 is giving me access to is archetypes. Is there a way to circumvent this filtering? - Andreas R ___ Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Image resizer that maintains ratio

2007-03-26 Thread Andreas R
My scaleToFit function. Probably not the most awesome thing, but it does the job private function scaleToFit(target:Object,clipRect:Rectangle,maintainAspect:Boolean){ var w:Number = clipRect.width; var h:Number = clipRect.height; var ratio:Number; var

[Flashcoders] javascript, externalinterface and swfobject part 2

2007-01-26 Thread Andreas R
i keep getting movie.addToPlayList is not a function errors Anyone know what i'm doing wrong? - Andreas R ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo

Re: [Flashcoders] Local variables and function arguments

2006-12-19 Thread Andreas R
That is quite strange, since MTASC won't give you an error for your first example, and Flash 8 gives no compile error when i try to use it. Since you've been using this structure for so long: function myFunc(tVar:String) { if (tVar == undefined) { tVar = limpet } } What exactly is

[Flashcoders] Bilinear interpolation

2006-12-18 Thread Andreas R
I am trying to build an application that produces a 2d heat map. Ideally the dataset would be populated by objects such as this: {id:0, x:0,y:0,rectangle:Rectangle,value:100} where value is between 0 (cold) and 100 (hot). These objects would represent points of interest on another surface,

[Flashcoders] Math: Triangle rotations around an origin

2006-11-29 Thread Andreas R
This is based on Danny Codicek's Mathematics Physics for programmers, and i'm feeling very stupid right now. From what i can tell, the book describes the function as such: rotatedX = Math.sqrt(originalx*originalx+originaly*originaly)*Math.sin(angle-Math.atan2(originaly,originalx)) and the

[Flashcoders] odd _alpha arithmetic

2006-11-14 Thread Andreas R
myClip = _root.createEmptyMovieClip(appClip,1); myClip.modifier = 5; myClip.onEnterFrame = function(){ this._alpha-=this.modifier; trace(this._alpha); } Why is that trace outputting uneven decimals, not integers? - A ___

[Flashcoders] Some questions on flash video solutions

2006-11-09 Thread Andreas R
and subsequent serverside encoding? Is there some standard for this? An Adobe product i don't know about? Any response duly appreciated :) - Andreas R ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http

[Flashcoders] File updating in moved FLAs

2006-10-26 Thread Andreas R
I have a bunch of animations that need updating. Their frames need to be rerendered from Maya, but both the FLAs and the location of the frames have migrated from one machine to another, and now the Flash update dialog shows ? when i attempt to update (logically). Is there a way to simply

[Flashcoders] Some whining about AS2 interfaces

2006-10-23 Thread Andreas R
and all it doesn't make sense to me. - Andreas R ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized

[Flashcoders] Inheritance and contructor issue

2006-10-23 Thread Andreas R
//parent class: class no.rayon.aronning.StateMachine.prototypes.BaseState implements no.rayon.aronning.StateMachine.interfaces.IState { public var stateName:String; public var addListener:Function; public var removeListener:Function; private var broadcastMessage:Function; public

Re: [Flashcoders] Some whining about AS2 interfaces

2006-10-23 Thread Andreas R
any problem 404. 2006/10/23, Andreas R [EMAIL PROTECTED]: So i'm trying to build a framework around interfaces. To create an application within this framework, ideally all you'd have to do is implement the interfaces and satisfy their conditions. However: No static methods in interfaces means

Re: [Flashcoders] Alternative IDE for Flash Devel

2006-10-16 Thread Andreas R
FlashDevelop is by far the best AS IDE, period. Full stop. I even use it for XML these days heh. And i always have it up, so it winds up being what i do ALL text editing in. If you're a mac dude, i guess eclipse is your way to go. I had a look at jEdit when i was a mac user i thought jEdit was

Re: [Flashcoders] Alternative IDE for Flash Devel

2006-10-16 Thread Andreas R
Oh man you're in for a treat. You've probably seen all this already but: * try typing something like new mx.transitions.Tween. It's a god damn miracle. * Note that the code hinting and autocompletion extends to static methods of classes, interfaces, almost ANY .as doc in the project dir. I'm

Re: [Flashcoders] Interfaces: what are the advantages?

2006-10-13 Thread Andreas R
. Problem solved in terms of type checking, problem solved in terms of keeping yourself on top of why you did what. To me, interfaces are like inheritance-free polymorphism first, and debug tool second. - Andreas R ___ Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] a question of geometry

2006-09-19 Thread Andreas R
/1584503300/sr=1-1/qid=1158676544/ref=pd_bbs_1/104-0626050-4073525?ie=UTF8s=books Charles P. On 9/18/06, Andreas R [EMAIL PROTECTED] wrote: Danny Kodicek wrote: I can email an image to anyone that wants it, or you can draw it like this... I think this is what you want... Draw a point

Re: [Flashcoders] a question of geometry

2006-09-18 Thread Andreas R
Danny Kodicek wrote: I can email an image to anyone that wants it, or you can draw it like this... I think this is what you want... Draw a point and a line vertically upwards of length R. Draw a large letter V (inverted cone) upwards from the point. Draw an arc, radius R to cut the V. Where the

[Flashcoders] PocketPC and local SO

2006-09-18 Thread Andreas R
Does anyone know if the windows mobile flash player (6) supports local shared objects? - A ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

[Flashcoders] a question of geometry

2006-09-17 Thread Andreas R
smart people, help a less smart one out: I'm faced with a problem similar to the seven circles theorem (http://mathworld.wolfram.com/SevenCirclesTheorem.html) in that i need to arrange x number of circles along a circular path, making sure they all touch their two neighbors. In this way, the

Re: [Flashcoders] a question of geometry

2006-09-17 Thread Andreas R
The circles can be any size. Alias™ wrote: Ok, are the circles all the same size, or do they have the same length? Alias On 17/09/06, Andreas R [EMAIL PROTECTED] wrote: smart people, help a less smart one out: I'm faced with a problem similar to the seven circles theorem (http

Re: [Flashcoders] a question of geometry

2006-09-17 Thread Andreas R
, Andreas R [EMAIL PROTECTED] wrote: The circles can be any size. Alias™ wrote: Ok, are the circles all the same size, or do they have the same length? Alias On 17/09/06, Andreas R [EMAIL PROTECTED] wrote: smart people, help a less smart one out: I'm faced with a problem similar to the seven

Re: [Flashcoders] a question of geometry

2006-09-17 Thread Andreas R
these 2 points. Do this for each pair of radius lines and you will have a circle of circles. Ron Andreas R wrote: To reiterate, there can be *any* number of circles of *any* size. The aim is to create a circular chain of circles where the overall diameter is a result of the circumference

Re: [Flashcoders] loading xml into an object

2006-09-16 Thread Andreas R
Just to be clear about Delegate, all it does is create a reference to a function but in a specified scope. AFAIK there is no restriction as to where you can use it. Thus i use it all over the place ;P I'm not sure if that's good practise but by god it's made life easier. - A dc wrote: hi -

[Flashcoders] Layout algorithms

2006-09-16 Thread Andreas R
Does anyone know of any good tutorials/articles on layout algorithms? I seem to have a hard time finding anything applicable :( In particular i'm interested in spring embedded layouts and rectangle/scaling algorithms (such as Apple's Exposè) - A ___

[Flashcoders] Flashdevelop and moviecliploader

2006-09-15 Thread Andreas R
Having a bitch of a time getting mcl to work with flashdevelop/mtasc var mcl:MovieClipLoader = new MovieClipLoader(); trace(loaderObj:+mcl); traces out loaderObj: and then nothing. Is there something PECULIAR i have to do to make this work? tween classes and all other macromedia classes work

[Flashcoders] local NetStream play with playlists

2006-09-11 Thread Andreas R
Is there any reason why local NetStreams won't accept playlists such as ns.play(test.flv,-1,0,false); ns.play(test.flv,-1,0,false); ? Is this only serverside? If so, how else can i easily set up seamless playlists locally? - A ___

[Flashcoders] indented text as xml alternative

2006-09-07 Thread Andreas R
It looks to me like everyone's basically just parsing their xml into object structures anyway, so i've been looking for alternatives to xml that are more easily edited in a text editor. Personally, when it comes to editing xml by hand (which happens more often than i'd like), i *curse* having

[Flashcoders] Reliable local FLV stop event

2006-09-06 Thread Andreas R
I know this is an old question but i can't really seem to get a good grasp of it. I have a client that loads FLVs locally off the machine it runs on. When movies stop, events get broadcasted. however sometimes the stop event i set up fails: onStatus = function(info){

[Flashcoders] AS and virtual functions

2006-07-31 Thread Andreas R
Just reading up on some C++ and realized all functions in an AS2 class are virtual.. Anyone know if this has any negative implications? :) Cheers, - A ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] flash color shift

2006-07-21 Thread Andreas R
A little more specifically, flash uses the sRGB color space. You can set that up under your PS color settings. - Andreas i_bang wrote: thanks a lot Adrian !!! good solution! it works!! Under View Proof Setup, choose 'Monitor RGB' - this will give you a better representation fo what the

Re: [Flashcoders] Multiplayer and LAG!

2006-07-18 Thread Andreas R
This isnt something i've done, but it's something i'm very interested in nonetheless, so bear with my uneducated musings :) The basic issue with lag is how much information is necessary for each client to predict the game state. For instance, in a game of multiplayer asteroids, it isn't