Re: [Flashcoders] better logic statement

2008-04-14 Thread Christoffer Enedahl
Untested email code. But you get the gits of it, I hope // properties var ThumbnailSetSize = 10; var i = 0; var page = 0; /// on next image i++; if (i == ThumbnailSetSize ){ page++; i=0; //Do something } id = (page*ThumbnailSetSize ) + i; HTH/Christoffer natalia Vikhtinskaya skrev:

[Flashcoders] New game: Exxon - The decontaminator

2008-04-23 Thread Christoffer Enedahl
This weekend I participated in ludum dare 48h, A bi-annual 48 hour solo game development competition. In the contest you are given a theme and you have to make a game of that theme from scratch in 48 hours. You must make all content yourself. I made a 2d topdown boat game in as3. Including

Re: [Flashcoders] New game: Exxon - The decontaminator

2008-04-23 Thread Christoffer Enedahl
to work out the concept and add some features here and there On Wed, Apr 23, 2008 at 11:04 AM, Christoffer Enedahl [EMAIL PROTECTED] wrote: This weekend I participated in ludum dare 48h, A bi-annual 48 hour solo game development competition. In the contest you are given a theme and you have

Re: [Flashcoders] Need Help from Techies

2008-04-26 Thread Christoffer Enedahl
I would hide one layer at a time until you find out which layer it is in. Then hide all other layers and unlock the layer with the placeholder. Select and delete them. If they are within a movieclip, doubleclick them until you can delete them. You might need to unlock more layers.

Re: [Flashcoders] Why isn't my TextField multiline? AS2

2008-05-08 Thread Christoffer Enedahl
Try \n or \r\n HTH/Christoffer Alistair Colling skrev: Thanks guys :) works perfectly. Now it seems my line returns (\r) aren't being recognised (they show up in the textfield). Anyone got any ideas whats going on? Cheers On 7 May 2008, at 18:19, Robert Leisle wrote: Hi Alistair, Try

Re: [Flashcoders] Why do you compile with the Flash IDE?

2008-05-16 Thread Christoffer Enedahl
Glen Pike skrev: Because I needed to produce a projector and I could not work out how to get Flex to do that - don't want an AIR app, just an exe. Open the swf file in flash player, File Create projector /Christoffer ___ Flashcoders mailing list

Re: [Flashcoders] variable in e4x filtering

2008-07-09 Thread Christoffer Enedahl
Try this: var nodeName:String = agency; _officesXML.[ nodeName ].(@name == NJ Agency) HTH Christoffer Pavel Kru*šek skrev: Hi List, please is possible to substitute node name in e4x with variable? Anywhere in XML: agency name=NJ Agency namemyAgency/name phone123456/phone /agency

Re: [Flashcoders] variable in e4x filtering

2008-07-09 Thread Christoffer Enedahl
oh sorry, email code. it got a dot too much, here this works: _officesXML[ nodeName ].(@name == NJ Agency) Pavel Kru*šek skrev: Hi, Unfortunately this solution is out of action: 1084: Syntax error: expecting identifier before leftbracket. On Jul 9, 2008, at 3:50 PM, Christoffer Enedahl

Re: [Flashcoders] Buffer flv from midpoint?

2008-07-24 Thread Christoffer Enedahl
You need to have a flv streaming service running on a server. Ie Flash Media Server. This is an open source alternative: http://osflash.org/red5. I have not tried it. /Christoffer Ali Drongo skrev: Cheers Paul. that's a help. I've just realised that youtube's video player will buffer your

Re: [Flashcoders] OT: Questions to ask an interviewee

2008-07-30 Thread Christoffer Enedahl
I've done some recruting and what surpised me was why some ppl even applied to the job when they clearly did not know how to code. One part of the questions was a small verbal programming test, I wrote a few questions about programming, ie, whats wrong with this syntax, how would you access

Re: [Flashcoders] Passing params via url instead of FlashVars

2008-08-25 Thread Christoffer Enedahl
I can't remember where I picked this up but this is a class that handles querystrings in as3: usage: var qs:QueryString = new QueryString(); trace( qs.parameters.id ); HTH Christoffer package your.namespace.here { import flash.external.*; import flash.utils.*; /** * Access the

Re: [Flashcoders] Debugger Text Field

2008-09-08 Thread Christoffer Enedahl
I do something like this, It can be optimized, Im moving all logs every time when you can have something like a ringbuffer instead: private var _log:Array = new Array(20); public function log(t:*) { for (var i:int = 0; i _log.length-1; i++) {

Re: [Flashcoders] Making dynamic text look the same as static text

2008-09-19 Thread Christoffer Enedahl
You need to embed the font. Google it Alan Neilsen skrev: I have found that when I call text into a dynamic text field from a variable, it does not look the same as the text in a static text field set with the same font, size, etc. The text in the dynamic text field appears with no

Re: [Flashcoders] I am stuck

2008-10-18 Thread Christoffer Enedahl
Hmm... I guess it could work. Here is how I see it. Why would you do this outside of flash? Cons: The user must have javascript enabled (Often not a problem) The remote data must reside on the html server (sort of) Data source can be detected by viewing source Pros: You already have coded

Re: [Flashcoders] back in job hell

2008-11-02 Thread Christoffer Enedahl
If I were you I'd be pissed and ask for half my money now and a written contract with a spec, timeframe and milestones. If it doesn't come Id stop developing for that company on the grounds that the contractor has changed the oral contracts premesis. About asking for cleaning up the code it's

Re: [Flashcoders] Re: showing code progress with progress bar

2008-11-24 Thread Christoffer Enedahl
You'll have to make your own threading code. ie this var processCursor = 0; var processLength = 1; //example who many lines to parse function onEnterFrame(){ if( processCursor processLength){ processLittlePiece(); updateProgressBar(); }else{ //go to complete

Re: [Flashcoders] Getting attributes out of a node with : in it

2009-02-09 Thread Christoffer Enedahl
when you refer to the node write it like this: yweather::condition with double colons HTH/Christoffer Robert Leisle skrev: Check out the Namespace class, as it applies to XML, in the Flash docs. There's also a good explanation in this tutorial by Lee Brimelow:

Re: [Flashcoders] AS3 Papervision Question

2009-04-25 Thread Christoffer Enedahl
That site is not using papervision, it's using prerendered clips, which is used celeverly with rotation. I havn't tried using a viewpoint as a material, but I think it should work, performance might be an issue though. /Christoffer Omar Fouad skrev: Hi all, I am wondering if I can create a

Re: [Flashcoders] Re: is it ever ideal to NOT use weak references?

2010-02-07 Thread Christoffer Enedahl
Piers Cowburn skrev: That way, if I forget to remove the event listener in a destroy method or whatever, it should still end up eligible for GC. Cases where the event doesn't fire because a weak reference was used only happen if there are no strong references anywhere else, so the object

[Flashcoders] Preventing duplicate values in string constants (PureMVC)

2010-03-09 Thread Christoffer Enedahl
duplicate an old existing string constant. This is a problem, if I forget to change the value of the duplicated constant, there will be two constants with the same value, leading to unexpected behaviors that are hard to debug. /Christoffer Enedahl

[Flashcoders] SquishFilter 0.1 Released!

2010-06-14 Thread Christoffer Enedahl
Check out my new filter, the SquishFilter, free for non commersial use: http://blog.enedahl.com/?p=57 In this demo I’ve animated a wooden box in the timeline. In as3 I added the Pixel Bender filter (that I wrote) in the filters array of the animation. The filter is making the movieclip bulge

Re: [Flashcoders] Embedded Fonts: Works in CS4, Fails in CS5?

2010-06-26 Thread Christoffer Enedahl
I don't know about cs5, but this thing got me a day ago when I needed to use stysheets and fonts, I had to add fontFamily in the embed tag aswell for the font to show. [Embed(arial.ttf, fontName=_Arial, fontFamily=_Arial, mimeType='application/x-font')] HTH/Christoffer Bill S. skrev: One

Re: [Flashcoders] Automatic quality toggle

2011-02-26 Thread Christoffer Enedahl
It sounds like it's time to encode the flash animation to video. /Christoffer ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] PureMVC vs Cairngorm // who's better?

2011-06-11 Thread Christoffer Enedahl
PureMVC artur skrev 2008-04-11 21:08: whats the verdict for using one over the other -- for a Flex+AMFphp RIA. thanks ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] E4X: reading CDATA

2011-06-20 Thread Christoffer Enedahl
If you are getting ![CDATA[ values from using e4x you have html encoded tags. like this: l t ; and $ g t; Open the xml file with notepad and you will see. The text in CDATA should act as a normal text node. HTH/Christoffer Mendelsohn, Michael skrev 2011-06-20 16:35: Hi list... I've searched