Re: [Flashcoders] JavaFX released

2008-12-07 Thread Claus Wahlers

Anthony Pace wrote:

Sure for the corporate environment, or cell phones, or tv, javaFX wil 
kick flashes ass until adobe gets smart and gets rid of licensing 
drawbacks


Good morning:
http://www.openscreenproject.org/

Cheers,
Claus.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Zipping in AS3

2008-09-24 Thread Claus Wahlers



Hey Claus, one of the reasons I can't use it is because of its inability
to work with a .zip file created on Mac OSX. The other reason, is that
I've attempted to use it to write out a .zip file, and I can't get it to
produce a valid .zip file. I've even tried loading in a .zip, and then
saving it out directly, and that doesn't seem to work.  I have only
tested this with AIR, so I assume I don't need to be testing this with a
.zip file that contains the Adler32 checksum. Do you have a working
example of this working with FZip? If so, I'd love to take a look at it.
Thanks!


It is true that FZip can't read ZIPs created with the MAC OS X Archive 
utility, or any ZIP that makes us of data descriptors.


For your other problem, i created a very simple Flex AIR app that tests 
roundtripping (creates a ZIP and loads it back in):


http://codeazur.com.br/lab/fzip/examples/RoundTrip.mxml

Works here..

And yes, in AIR the Adler32 limitation doesn't apply, so you should be 
able to load any ZIP (minus those that make use of data descriptors). 
You only need the injection hack if you use FZip in the plugin (and if i 
recall right Flash Player 10 is going to fix that but i didn't find the 
time to check).


Cheers,
Claus.
http://codeazur.com.br/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Zipping in AS3

2008-09-19 Thread Claus Wahlers

Mac Angell wrote:


Hey everyone! I'm trying to find a solid zip/unzip library for AS3. I've
done some testing with both FZip and AS3 Zip, and I've been running into
problems with both. So I'm wondering if there are any others out there
that anyone knows about that have been tested extensively. Or if any of
you know of any applications/sites that use FZip or AS3 Zip that I could
see a demo/source code of, that might help me get over some hurdles as
well.


What's your problem with FZip?

Cheers,
Claus.
http://codeazur.com.br/


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Whatever happened to C++ conversion?

2008-08-31 Thread Claus Wahlers

I think this is the latest:
http://llvm.org/devmtg/2008-08/
See last presentation in list.

Cheers,
Claus.

ben gomez farrell wrote:

Hey, I'm on the papervision3D list, and was just discussing what physics 
engines to use.  A guy named Andy on there was talking about how 
Box2DAS3 is great, and orginally started out as a  C++ project.  Box2D 
then went on to becoming Bullet, a 3D engine, and Box2DAS3 hasn't 
followed yet.


Then I thought back to Scott Petersens C++ to AS3 conversion utility 
they were demoing at MAX last year.  If I remember right, they took the 
Quake code and ported it over to AS3.  Does anybody know the status on 
that?  Can you and I use this conversion stuff today?


thanks!
ben



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] A Question that I've been asking for years!!

2008-08-26 Thread Claus Wahlers

An example is worth a thousand words.

public interface IBounce {
   function bounce():void;
}

public class Balls implements IBounce {
   public function bounce():void { }
}

public class Boobs implements IBounce {
   public function bounce():void { }
}

var balls:Balls = new Balls();
var boobs:Boobs = new Boobs();
doSomethingWith(balls);
doSomethingWith(boobs);

function doSomethingWith(bouncyObject:IBounce):void {
   bouncyObject.bounce();
}

Cheers,
Claus.

Omar Fouad wrote:


This could seem weird...
But what the hell is an interface!!! I've read lots of books and
posts without getting the answer. I bought "Essential AS3" to read about
interfaces and he says that helps for multi inheritance. In other places I
read that it is a "deal" to ensure that a class has some methods and so on.
But what is the real benefit that I can come out with using interfaces

Maybe that is stupidity or I am not smart enough to get the concept but
believe me... its is been two years now!!

Please Help!!!




___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Object vs *

2008-08-09 Thread Claus Wahlers

Also, mind this:

var a:*;
trace(a);
// undefined

var b:Object;
trace(b);
// null

An Object can't be undefined.

Cheers,
Claus.

Ian Thomas wrote:


'*' means "discard type checking"
'Object' means 'treat it as type Object'

If you have functions:

public function getThing():*
{
  return new Bucket();
}

public function getAnotherThing():Object
{
  return new Bucket();
}

then this will compile:

var someVar:Bucket=getThing();  // Ignores type checking

And this won't:

var someVar:Bucket=getAnotherThing();   // Tries to assign Object to
Bucket. Compile-time error.

(while this will - with a cast:

var someVar:Bucket=getAnotherThing() as Bucket;

)

HTH,
   Ian

On Fri, Aug 8, 2008 at 11:07 PM, Dave Segal <[EMAIL PROTECTED]> wrote:

What is the difference between typing an instance as "*" and typing it as
"Object"?



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Firefox popup blocker and flash 9

2008-05-29 Thread Claus Wahlers

Dan Wade wrote:


Turning on popup blocker shouldn't block user initiated clicks that call a
js function to open a new window. Or, popup blocker should allow for a
simple getURL("url", "_blank"). I'm finding these calls are being blocked
some cases in Firefox on PC's with flash player 9.


The Flash Player is a browser plugin (and presumably looks like a black 
box to the browser), so when e.g. Firefox gets a request to open a new 
window from the Flash Player, it probably can't tell whether this 
request is user initiated (thus legit) or not, so the blocker kicks in 
and blocks it. At least that's my theory (i definately don't know the 
technical details), so someone please correct me if i'm wrong.


Cheers,
Claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Adobe Open Screen!

2008-05-02 Thread Claus Wahlers

FWIW, Adobe is also going to open the .fla file format:
http://blogs.adobe.com/jnack/2008/03/flash_moving_to.html

Cheers,
Claus.

Cutter (FlashRelated) wrote:

All well said. One other nugget to add to this conversation: Adobe is 
not open sourcing these proprietary formats, but rather removing certain 
licensing restrictions and opening the format itself to certain selected 
partners for the improvement and advancement of the platforms.


For more on this topic:
http://www.adobe.com/openscreenproject/developers/



___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XPath

2008-04-29 Thread Claus Wahlers

Ricky Bacon wrote:


Claus Wahlers wrote:

Merrill, Jason wrote:


Curious why not use AS3 instead?


I don't speak for the OT here, just a comment to your earlier comment 
that AS3 made XPath obsolete. This is not really true.


It is true that with E4X you have almost the same functionality as 
XPath, but E4X fails badly if your query comes from an external 
source, like if your application needs to deal with arbitrary XML and 
the queries are dynamic in nature (for example provided by a user, etc).


Curious about this: like using eXist or doing interactive queries?


In my particular case it's about rendering XForms, which relies a great 
deal on XPath for data binding (E4X can't help me there)


http://www.w3schools.com/xforms/xforms_xpath.asp

Cheers,
Claus.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XPath

2008-04-29 Thread Claus Wahlers

Merrill, Jason wrote:

I don't speak for the OT here, just a comment to your earlier 
comment that AS3 made XPath obsolete. This is not really true.


It is true that with E4X you have almost the same 
functionality as XPath, but E4X fails badly if your query 
comes from an external source, like if your application needs 
to deal with arbitrary XML and the queries are dynamic in 
nature (for example provided by a user, etc).


OK, so I'll concede AS3 only 98% makes it obsolete. :) 


For you, maybe. For me it'd be more like 25%. Although i think 
"obsolete" is a somewhat binary term, like "pregnant", no?


Cheers,
Claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XPath

2008-04-29 Thread Claus Wahlers

Merrill, Jason wrote:


Curious why not use AS3 instead?


I don't speak for the OT here, just a comment to your earlier comment 
that AS3 made XPath obsolete. This is not really true.


It is true that with E4X you have almost the same functionality as 
XPath, but E4X fails badly if your query comes from an external source, 
like if your application needs to deal with arbitrary XML and the 
queries are dynamic in nature (for example provided by a user, etc).


Cheers,
Claus.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] to mac or not to mac

2008-03-14 Thread Claus Wahlers

Claus Wahlers wrote:

Dunno if that has been mentioned, but if you are NOT a command line guy, 
like me, and want a kick ass non-CLI SVN client, by far the best option 
is TortoiseSVN, which afaik is only available for Windows and beats the 
crap out of everything else i've seen.


This one tiny software is the main reason i stick to Windows (XP) for 
now. I have three machines here (XP, OSX and Ubuntu), and the XP machine 
is my main dev machine, because i don't wanna miss TortoiseSVN.


Oh, and FlashDevelop, of course.

Cheers,
Claus.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] to mac or not to mac

2008-03-14 Thread Claus Wahlers
Dunno if that has been mentioned, but if you are NOT a command line guy, 
like me, and want a kick ass non-CLI SVN client, by far the best option 
is TortoiseSVN, which afaik is only available for Windows and beats the 
crap out of everything else i've seen.


This one tiny software is the main reason i stick to Windows (XP) for 
now. I have three machines here (XP, OSX and Ubuntu), and the XP machine 
is my main dev machine, because i don't wanna miss TortoiseSVN.


Otherwise, i'm very, VERY unreligious about operating systems, because i 
frankly think they all suck in one way or another.


Cheers,
Claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] dictionary vs array

2008-03-11 Thread Claus Wahlers

Dwayne Neckles wrote:


can anyone say why dictionary is better than array.. Im seeing it
used in alot of papervision examples and i dont get why? I will
research this on my own as well..


Keys in an Array can be numeric, strings, or both:

var a:Array = [];
a[0] = something;
a["hello"] = something; // associative Array

Keys in a Dictionary can theoretically be of any type:

var d:Dictionary = new Dictionary();
d[0] = something;
d["hello"] = something;

var c:SomeClass = new SomeClass();
d[c] = something;

An associative Array behaves similar to a Dictionary.

I might be wrong but i remember seeing that if you want to store data 
with string keys, Dictionary is performing slightly better.


A word of caution if you plan to use E4X XML nodes or function 
references as Dictionary keys: this appears to be buggy.


Cheers,
Claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] dictionary vs array

2008-03-11 Thread Claus Wahlers

Claus Wahlers wrote:


An associative Array behaves similar to a Dictionary.


(if you are using string keys)

Cheers,
Claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] writing as for components

2007-07-08 Thread Claus Wahlers

Pedro Kostelec wrote:


Thanks, but there is still the other error
1120: Access of undefined property letters.
var randomIndex:uint=Math.floor(Math.random()*letters.length);


This code works for me:

var letters:Array= ["A","B","C","D","E","F",
  "G","H","I","J","K","L",
  "M","N","O","P","Q","R",
  "S","T","U","V","W",
  "X","Y","Z",];

function getRandomLetter():String {
   var randomIndex:uint=Math.floor(Math.random()*letters.length);
   return letters[randomIndex];
}

import fl.controls.Button;

var i:uint=0;
var j:uint=0;
var posX:uint=0;
var posY:uint=0;
var buttonSize:uint=25;

while(posYhttp://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] writing as for components

2007-07-08 Thread Claus Wahlers



var letter:Array



This should be
var letters:Array

Cheers,
Claus.

___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML loading and parsing problem

2007-07-08 Thread Claus Wahlers



Using Delegate is just one of those "best practices" and should be used at all times, 
even if it "kinda works" without.


+1

Also, Omar *might* want to refactor his code later. Using Delegate he 
likely won't run into any trouble.


Cheers,
Claus.

___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML loading and parsing problem

2007-07-07 Thread Claus Wahlers

import mx.utils.Delegate;

var xmlData:XML = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = Delegate.create(this, onLoadXML);
xmlData.load("gallery.xml");

function onLoadXML(success) {
   if(success) {
   trace("xml Loaded");
   proceed();
   } else {
   trace("xml Not Loaded");
   }
}

function proceed() {
   totalPics = xmlData.firstChild.firstChild.childNodes.length;
   trace(totalPics);
}

// xml Loaded
// 4

Cheers,
Claus.


Omar Fouad wrote:


Fruber this code is still not working.. :(

var xmlData:XML = new XML();

xmlData.onLoad = function (success) {
   if(success) {
   trace("xml Loaded");
   proceed(this);
   }else{
   trace("xml Not Loaded");
   }
}
xmlData.load("gallery.xml");

proceed = function (gallery:XML) {
   totalPics = gallery.childNodes[0].childNodes[0].length;
   trace(total);

}



___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash CS3 Prof copy: missing Tree component.

2007-06-05 Thread Claus Wahlers


Apparently the flash 9 cs3 compiler uses the same compiler so I dont see 
why this couldnt be done to integrate parts of the flex framework 
components into flash. That would be awesome.


That's not as easy as it sounds. Base classes work differently, styling 
works differently, etc pp, Flash doesn't have a System Manager, etc, 
etc, etc.


Cheers,
Claus.

___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] there is a problem plz help

2007-04-24 Thread Claus Wahlers



to find greater no. from the array whats the problem with this algo.
please help



int arr[15]={17,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
int greater=0;
for(int i=0; i<15;){
 if(arr[i++]>greater){
  greater=arr[i];
 }
}


First of all, it's C.

Second, try incrementing i inside the for statement, otherwise the 
algorithm reports the wrong value:

for(int i=0; i<15; i++)

The Actionscript equivalent would be something like this:
var arr:Array = [17,2,3,4,5,6,7,8,9,10,11,12,13,14,15];
var greater:Number = 0;
for(var i:Number = 0; i < arr.length; i++){
if(arr[i] > greater) {
greater = arr[i];
}
}
trace("greater is " + greater + "\n");

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Finding the height and width of the VISIBLE area of a masked SWF

2007-04-18 Thread Claus Wahlers



I'd like to be able to find the VISIBLE height and width of those
SWFs; however _width and _height return the size of ALL the masked
content.


Can't you just check the width/height of the mask?

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] eolas fix for IE7

2007-04-03 Thread Claus Wahlers

Matthew Ganz wrote:


actually, all of a sudden it's not working again.


It seems your Flash Player install in IE7 is corrupt. See this blog post 
for details: http://tinyurl.com/y9lvas


I had the same problem a while back, and uninstalling/reinstalling the 
Flash Player did the trick.


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] The great CS3 Swindle

2007-03-29 Thread Claus Wahlers

Andy Jones wrote:


Ok - so it's actually cheaper to fly to the States, stay in a hotel for
a few days and order your US copy (bearing in mind the exchange rate)
than buying a copy in the UK.

Joy!

I'll recommend it to my boss :) 


You could as well fly to Brazil, stay at the beach for three weeks, and 
buy a copy on the streets for US$ 2.50.


Kidding, of course!

Am I?

More seriously, and not that i even remotely understand this policy, but 
this price gap has always been there (see comments):

http://weblogs.macromedia.com/jd/archives/2004/08/mm_store_firefo.cfm

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] stageHeight issues AS3

2007-03-08 Thread Claus Wahlers



var _sprite:Sprite = new Sprite();
addChild(_sprite)
trace (_sprite.stage.stageHeight)

give me null object reference... even after it's been added to the display.


Are you sure that the DisplayObjectContainer the above code resides in 
is added to the display list already? And its parents?


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Erasing areas with the drawing API?

2007-02-16 Thread Claus Wahlers

David Ham wrote:

Does anyone know how to erase part of an area that was created with the 
drawing API? I need to be able to draw a polygon, and then draw another 
polygon inside it and "punch" it out. For example, I need to draw a 
square and then punch a square hole in it. Anyone ever done this before?


graphics.lineStyle(1, 0x00);
graphics.beginFill(0xff);
graphics.moveTo(10, 10);
graphics.lineTo(90, 10);
graphics.lineTo(90, 90);
graphics.lineTo(10, 90);
graphics.lineTo(10, 10);
graphics.moveTo(30, 30);
graphics.lineTo(70, 30);
graphics.lineTo(70, 70);
graphics.lineTo(30, 70);
graphics.lineTo(30, 30);
graphics.endFill();

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/

--
READ CAREFULLY. By reading this email you agree, on behalf of your 
employer, to release me from all obligations and waivers arising from 
any and all NON-NEGOTIATED agreements, licenses, terms-of-service, 
shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, 
non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have 
entered into with your employer, its partners, licensors, agents and 
assigns, in perpetuity, without prejudice to my ongoing rights and 
privileges. You further represent that you have the authority to release 
me from any BOGUS AGREEMENTS on behalf of your employer.

___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Re: tabbing in flash

2007-02-12 Thread Claus Wahlers

Jah wrote:


but can it be modified?
i want an indicator... just something more akin to the feel of the
app... as opposed to some thick yellow boundingbox


You may want to look into making your form elements UIComponents. Check 
out the FocusManager class, it turns off the standard yellow focusRect 
and displays a custom one.


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/

--
READ CAREFULLY. By reading this email you agree, on behalf of your 
employer, to release me from all obligations and waivers arising from 
any and all NON-NEGOTIATED agreements, licenses, terms-of-service, 
shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, 
non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have 
entered into with your employer, its partners, licensors, agents and 
assigns, in perpetuity, without prejudice to my ongoing rights and 
privileges. You further represent that you have the authority to release 
me from any BOGUS AGREEMENTS on behalf of your employer.

___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] HTML Browser In Flash

2007-02-04 Thread Claus Wahlers

Kalani Bright wrote:


Ok, I see by your face you think I'm crazy.
 
But I wandered across this project called DENG today:

http://deng.com.br/examples/xhtml/table.php
 
It is able to render all types of content (including tables!) and SVG

inside of Flash.  I think the SVG rendered came from somewhere else.
 
Anyway.  Its for flash MX.  And I'm using Flash 9.  Is anyone aware of

something more recent.


I'm working on DENG 2.0 (Actionscript 3). It might take quite a while 
yet though..


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/

--
READ CAREFULLY. By reading this email you agree, on behalf of your 
employer, to release me from all obligations and waivers arising from 
any and all NON-NEGOTIATED agreements, licenses, terms-of-service, 
shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, 
non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have 
entered into with your employer, its partners, licensors, agents and 
assigns, in perpetuity, without prejudice to my ongoing rights and 
privileges. You further represent that you have the authority to release 
me from any BOGUS AGREEMENTS on behalf of your employer.

___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flair Pattern?

2007-01-29 Thread Claus Wahlers



the way he ran Flashcoders in the early days


Can you elaborate?

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/

--
READ CAREFULLY. By reading this email you agree, on behalf of your 
employer, to release me from all obligations and waivers arising from 
any and all NON-NEGOTIATED agreements, licenses, terms-of-service, 
shrinkwrap, clickwrap, browsewrap, confidentiality, non-disclosure, 
non-compete and acceptable use policies ("BOGUS AGREEMENTS") that I have 
entered into with your employer, its partners, licensors, agents and 
assigns, in perpetuity, without prejudice to my ongoing rights and 
privileges. You further represent that you have the authority to release 
me from any BOGUS AGREEMENTS on behalf of your employer.

___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Senior Developer Posisition

2006-12-20 Thread Claus Wahlers



If you got paid $80K USD per year in San Francisco, another expensive
city in the US


Interesting that San Francisco ranks at #34 together with São Paulo. Uh? 
So, say if a senior Flash dev earns an average of US$ 80k, so should a 
senior Flash dev in São Paulo, right? That'd be R$ 168k, or about R$ 13k 
a month (13 salaries per year). I'm living in São Paulo, but i'm not 
working for local companies, so i might be wrong, but from what i hear 
senior Flash devs here rarely make more than R$ 5k a month, i even heard 
of Flex devs here that make less than R$ 3k. R$ 5k a month would roughly 
translate to US$ 31k a year.


Never trust statistics that you didn't fake yourself. ;)

Cheers,
Claus.


--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Loading library movie clips sequentially? Best way to do this?

2006-11-30 Thread Claus Wahlers

Rasmus wrote:

Ok.. But what if you have around 100-200 files, let's say external 
JPG's. Wouldn't the zip file become huge?


The reason I'm asking is, I'm making a photographers portfolio where the 
idea is to load thumbnails first - then start loading the high-res 
pictures in the background. when I need a file ASAP (..to display it to 
the user) I just bump it to the top of the loadQueue..


Or is something like this already built into AS 3?


You MAY have a point there.

Although, browsers usually support two simultaneous HTTP connections so 
you could just load the hires image while the thumbnail zip is still 
loading. The disadvantage is that the hires images loads slower 
(probably at half speed).


However, zipping thumbnails has the big advantage that you save a lot of 
overhead. 200 successive GET requests are no fun. Loading a zip is way 
faster as you only need to do one request to the server. And with FZip 
you have access to files while the zip is still loading.


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Loading library movie clips sequentially? Best way to do this?

2006-11-29 Thread Claus Wahlers


I've found that LoadQueueManager is excellent for loading multiple 
external files in sequence.. It also gives you the possibility to pause 
loading, rearrange loading order etc. etc.


http://blog.bittube.com/2006/10/27/loadqueuemanager-update/

Hope to see an AS 3 version of this soon!


For AS3 i'd recommend to just zip your assets and load that zip directly 
into Flash. No more annoying loading queues.

http://codeazur.com.br/lab/fzip/

I've also started working on a low/midlevel AS3 HTTP library, that you 
could use to utilize persistant connections and pipelining over HTTP 1.1.


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br/
http://wahlers.com.br/claus/blog/
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Load HTML page in Flash

2006-11-19 Thread Claus Wahlers


I want to load a html page in Flash. I tried to load using XML in a textArea, but didn't work because Flash didn't recognized all tags. Can anyone give me a solution, please? 


You might want to give DENG a try.

It doesn't load HTML but wellformed XHTML, and isn't perfect yet (not 
feature complete, not very fast), but it might satisfy your needs.


http://deng.com.br/

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Stage Height Bug?

2006-11-17 Thread Claus Wahlers



If i create a blank movie and post this scrit trace(Stage.height); it will
give 100 less than the actual size. but if you do this:

this.onEnterFrame = function() {
trace(Stage.height);
}

it will trace the true size after the first enterFrame.


This is a known issue. It may take up to two frames until Stage size is 
reported correctly.


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Job Opportunity at Gaia Interactive

2006-11-17 Thread Claus Wahlers



Is there anyone who's ready to compete personally with ASV?


Flasm should also do the job pretty well. If the price to win is high 
enough, i could even imagine evil hackers using a hex editor or a 
handcrafted program to get to the high score. They even hack multiplayer 
games written in C. Security always belongs on the server side. 
Aggressively use good encryption (public/private keys) and monitor the 
game progress, if the potential damage justifies it.


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] why are my classproperty's strongtypingbeingignored?

2006-11-16 Thread Claus Wahlers



You can't put strict typing like that in the timeline.  ( >^^)


This works fine for me:

var emailBody:String = "> Strict typing is kind of an all or none thing. 
 If you only partially strict type, which I have done plenty of in the 
past, then you'll only partially get compiler errors.  However, in 
preparation for AS3 where strict typing has a very noticable improvement 
in speed, I am strict typing everything, and I mean everything.";


var emailSignature:String = "> HTH," + newline + "> Steven";

trace(emailBody + newline + emailSignature);

trace("Cheers," + newline + "Claus ;)");

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] why are my class property's strongtypingbeingignored?

2006-11-16 Thread Claus Wahlers



emailBody:String = "Strict typing is kind of an all or none thing.  If
you only partially strict type, which I have done plenty of in the past,
then you'll only partially get compiler errors.  However, in preparation
for AS3 where strict typing has a very noticable improvement in speed, I
am strict typing everything, and I mean everything.";

emailSignature:String = "HTH," + newline + "Steven";


**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Syntax error.

Cheers,
Claus ;)

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] >> Undefined value

2006-11-14 Thread Claus Wahlers



You have an incorrect not equal:  !==
There's just one equal sign: !=



!== strict inequality operator

expression1 !== expression2

Tests for the exact opposite of the strict equality (===) operator. The 
strict inequality operator performs the same as the inequality operator 
except that data types are not converted.


If expression1 is equal to expression2, and their data types are equal, 
the result is false. As with the strict equality (===) operator, the 
definition of equal depends on the data types being compared, as 
illustrated in the following list:


Numbers, strings, and Boolean values are compared by value.
Objects, arrays, and functions are compared by reference.
A variable is compared by value or by reference, depending on its type.

Availability: ActionScript 1.0; Flash Player 6

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Fwd: Help needed. Embeding fonts in Deng Modular Browser

2006-11-13 Thread Claus Wahlers



Can any body help me about embedding fonts in Deng Modular Browser?

The official deng site is not having any link to this tutorial.

If anybody came across this...please help me...


Like this:

- embed your font in your main SWF and give it a linkage identifier
- DENG does not know that you embedded a font. You have to tell DENG 
what embedded fonts you are using, by setting the components 
"embeddedFonts" property. This property takes an array of Font Linkage 
Identifiers, e.g.: deng_mc.embeddedFonts = ["my_embedded_font"];
- Now you are ready to use your embedded font(s) in your XML/XHTML 
documents. In your CSS, just include the fonts Linkage Identifier in the 
list of font families, like here:

div { font-family: "my_embedded_font", Arial, sans-serif; }

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] 1st message - Sound and byteArray

2006-11-13 Thread Claus Wahlers



I fetch a mp3 files through a homemade process using sockets, and I
have the binary in a byteArray somewhere. I have the data, and I'd
like to play it, but the Sound() class only takes URLs.

I don't see how i could play this mp3 from memory. Any ideas ?


There's no easy way to do it. You need to create a SWF on the client 
that wraps your mp3, and then push it into Loader via loadBytes.


This may get you started:
http://www.flashcodersbrighton.org/wordpress/?p=9

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Grabbing data directly from the HTML page

2006-11-09 Thread Claus Wahlers

Mike Keesey wrote:


Ah, that works. The only thing is that it requires a double load of the
page and the data isn't instantly available (although, with
browser-caching, it should load in very quickly). Not huge concerns, but
the double load could skew metrics.


http://guipaganini.com.br/
-> view source

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ExternalInterface & MySpace (Bug in Flash Player 9)

2006-11-06 Thread Claus Wahlers



I read about a bug with using ExternalInterface with fp9...since this is a bug 
in an earlier version of fp9, I can't assume all users have upgraded...

Has anyone found a workaround or should I scrap using ExternalInterface  
altogether?


ExternalInterface will be of no use if you plan to let users embed your 
SWF into MySpace profiles, as MySpace prevents all Flash<->Javascript 
communication: enableJavascript="false" allowScriptAccess="never" 
allownetworking="internal"


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] HTML display component for Flash?

2006-11-04 Thread Claus Wahlers



I got one, which is Deng. But it takes a lot of time to render my content.


I'm working on a AS3 version of DENG which should be 'a little' faster. 
However unfortunately it's gonna take a while yet to finish as i can 
only work on it in my free time.


If more people are interested in an AS3 DENG, please let Adobe know.

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Create zip file through flash

2006-11-01 Thread Claus Wahlers



He's talking about zipping up files on the local filesystem.  Flash 9 can do 
that?  Flash 9 has native filesystem access which would allow compressing files 
on your hard drive?


Flash Player 9 can zip up files pretty easily, but of course can't 
access the local filesystem. Sorry for the noise.


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Create zip file through flash

2006-11-01 Thread Claus Wahlers



Flash alone can't do that?


Flash Player 9 can do it.
We wrote an unzip class in AS3 some time back:
http://codeazur.com.br/lab/fzip/

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] AS3 SVG embedding resources

2006-10-20 Thread Claus Wahlers


63K for that monitor? And it's vector? That's useless. A bitmap would be 
way smaller... Why are svg's so bloated? And why the heck would you want 
to use them?


Most likely the authoring tool is to blame. That SVG contains loads of 
gradient definitions (dunno if they are all absolutely needed, i would 
guess not), and a lot of injected metadata.


I cleaned only the metadata and the resulting SVG is 52k. If you 
compress that, you end up with not even 5k. Not too much i guess, given 
that the SVG itself seems not very optimized.


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] tinyurl swf loading

2006-10-07 Thread Claus Wahlers



Is there a way that i can load a swf via its tinyurl?
I think the issue that im having is that when the 'http://tinyurl.com/k23u4' 
resolves to 'http://blabla.com' the MovieClipLoader.loadClip() dies...


TinyURL sends
HTTP/1.x 301 Moved Permanently
Location: blabla.com
So it seems the Flash Player can't resolve 301's.


Can i manually eval 'http://tinyurl.com/k23u4' somehow?


Maybe you could hand it over to JavaScript via ExternalInterface, and 
then in JavaScript do some Ajax magic (send a HTTP HEAD request) and 
send the real URL back to Flash?


Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] SMIL xml parsing weirdness.

2006-09-20 Thread Claus Wahlers


Everything comes across fine but that one attrubute. 


You probably did ".attributes.system-bitrate".
Both ".attributes.system" and "bitrate" are undefined.
The "-" then converts it into a Number, thus NaN.

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] SMIL xml parsing weirdness.

2006-09-20 Thread Claus Wahlers

Works for me:

var self:MovieClip = this;
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function(ok:Boolean) { self.doStuff(ok); }
xml.load("soap.xml");
stop();

function doStuff(ok:Boolean):Void {
  var bitrate:String = 
xml.firstChild.firstChild.nextSibling.firstChild.firstChild.attributes["system-bitrate"];

  trace(parseInt(bitrate));
}

Cheers,
Claus.

Ryan Potter wrote:


Hello list.

I have been working on parsing a smil xml file so that I can detect
bandwidth for an flv player.  I am getting the xml output from a PHP
script and I am using xml.sendAndLoad().  That all works just fine.  I
can get the xml object back and I can parse through it and get the data
out with one strange exception.  


When I try to parse the video node "system-bitrate" attribute I can't
get the value.  I have tried to turn it into a number, or a string
(which it is).  The weird thing is that if I trace it out it says it is
"NaN".  If I look at the type it is "string".  Then why won't it let me
read it???

The weird part is that if I change the name of the attribute to
"bitrate" or just about any other name it works.  Is it the dash in the
attribute name?

Has anyone seen this behavior??

Thanks, 
Ryan 


Here is my smil file:











    




SMIL xml parsing weirdness.


--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Help Loading and Displaying XML

2006-09-18 Thread Claus Wahlers

Aaron Roberson wrote:


I have a menu constructed from XML and I am parsing it in Flash to
create my site navigation. However, I am having a problem loading the
xml so that it is parsed and displayed on my website when accessed
directly (as in http://whitehorsemedia.com) and when accessed using
www.whitehorsemedia.com (using the preceding www).


If you're using Apache, create a .htaccess file in your doc root like 
the one below, and from Flash only load assets from whitehorsemedia.com 
(without the www).


RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.whitehorsemedia\.com$ [NC]
RewriteRule ^(.*)$ http://whitehorsemedia.com/$1 [R=301,L]

Alternatively, google for crossdomain.xml, or strictly use relative paths.

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Software Development Position

2006-09-15 Thread Claus Wahlers



Ok, first of all, most people who have been doing flash for 4+ years
are artists or designers. Almost no serious programming was even
possible in flash before AS2 so by defining 4 years you are
essentially insisting that someone *not* be someone who "has a
background in other languages and systems". I'm not saying they don't
exist at all, but it is such a silly requirement because it
inappropriately limits the pool. Of course insisting that someone be
an expert in AS1 is even more silly. Is this because their job will be
fixing someone else's 5 year old spaghetti code? Then the kicker is
that this person must be in the Detroit area or willing to relocate.


I have a software developer background (mainly C/C++), was studying CS 
in university, and am doing Flash development for like six years now 
(that includes well structured OOP AS1 development). I know a bunch of 
people that are equally qualified. I honestly don't think they are 
*that* off with their requirements.


They could have put that Detroit (or US/Canada) requirement in the 
subject though.. ;)


(This is my first and last comment re: job postings on this list. Keep 
'em coming, i don't mind)


--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] BitmapData.getPixel() -> negative value ?

2006-09-15 Thread Claus Wahlers



Oooops, you are right, I meant 0x00
Nevertheless, you had said, 0xff00 (solid black) ??


Yeah. Read the rest of my mail. ;)


-16777216 is 0xff00 (solid black)

I thought solid black was

0xff
16777215

That'd be white. 0 is black. The additional 'ff' in the highest byte is
the alpha value (returned by getPixel32).


--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] BitmapData.getPixel() -> negative value ?

2006-09-15 Thread Claus Wahlers

Merrill, Jason wrote:


-16777216 is 0xff00 (solid black)


I thought solid black was 


0xff
16777215


That'd be white. 0 is black. The additional 'ff' in the highest byte is 
the alpha value (returned by getPixel32).


--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] BitmapData.getPixel() -> negative value ?

2006-09-15 Thread Claus Wahlers

Number.toString() is a little borked.

Meister Skinner explains it here:
http://www.gskinner.com/blog/archives/2005/12/source_code_tra.html

Cheers,
Claus.


Jeroen Beckers wrote:


var n:Number = -16777216
trace(n.toString(16));

Gives me:

-100 ?



Claus Wahlers wrote:



pixel = -16777216


-16777216 is 0xff00 (solid black)

Try to trace pixel.toString(16)

Cheers,
Claus.

___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Introducing FZip... ZIP it up!

2006-09-15 Thread Claus Wahlers
Did you ever write an image gallery or a game in Flash? Did it bother 
you to write rather complicated load queues to load lots of small files 
such as image thumbnails or game assets like tiles? Are you working with 
big text files and need a reliable way to compress/uncompress them to 
save valuable bandwidth?


I'm proud to announce FZip, a cute little Actionscript 3 class i've been 
working on together with Max Herkender [1] that enables you to load 
standard ZIP archives and extract contained files while the archive is 
still loading.


Check it out:
http://codeazur.com.br/lab/fzip/

ASDocs:
http://codeazur.com.br/lab/fzip/docs/

FZip is released under OSI approved zlib/libpng license.

Sample usage:

public function YourApp() {
   var request:URLRequest = new URLRequest("your.zip");
   var zip:FZip = new FZip();
   zip.addEventListener(FZipEvent.FILE_LOADED, fileCompleteHandler);
   zip.load(request);
}

private function fileCompleteHandler(evt:FZipEvent):void {
   var file:FZipFile = evt.file;
   trace("File loaded: " + file.filename)
   trace("  " + file.sizeCompressed);
   trace("  " + file.sizeUncompressed);
}

[1] http://blog.brokenfunction.com/

--
claus wahlers
côdeazur brasil
http://codeazur.com.br
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] BitmapData.getPixel() -> negative value ?

2006-09-14 Thread Claus Wahlers



pixel = -16777216


-16777216 is 0xff00 (solid black)

Try to trace pixel.toString(16)

Cheers,
Claus.
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] 128 character limit in XML node?

2006-08-25 Thread Claus Wahlers
In HTML enabled TextFields, the content of href in  has a 
128 (or something) character limit.


Cheers,
Claus.


Aaron Hedquist wrote:


Hello,

I have a node that is being parsed by Flash, then used as a .url text 
link. However the link that opens up once you export the flash is being 
trimmed after 128 characters (it's about 151 characters). Is there any 
inherit limit to a node or a link in Flash? Using AS 2.0. I can look at 
the XML source, and it shows the full link, but I click on the same link 
in Flash, and it just stops after 128 characters... ?1


Thanks!



___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] [OT] Friday Mental Break

2006-08-25 Thread Claus Wahlers



http://www.dopelogik.com/flash/snakes_in_a_class/


this._snakes.push( snake ); // BUG!
Cheers,
Claus.

___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Flash 7,8,9 , AS 2 and 3 - clarify the situation

2006-08-17 Thread Claus Wahlers

Gregory,

The latest Flash IDE is the Flash 8 IDE.

The latest Flash Player is Flash Player 9.

The Flash 9 IDE is currently in public alpha test, and can be downloaded 
from http://labs.adobe.com/ (You need a valid Flash 8 IDE serial number 
to run it though). The new IDE is expected to be released early 2007 as 
far as i heard, and supports AS3 as well as AS1 and 2.


Then there is Flex Builder 2 and the Flex 2 SDK, which were released 
recently.


The Flex 2 SDK is free, you can download it from the Adobe site. It 
contains the Flex 2 framework, AS3 and MXML commandline compilers and a 
commandline debugger.


The Flex Builder 2 is an Eclipse based IDE that allows you to develop in 
AS3 and in MXML (or a combination thereof). Both can't be used to 
develop in AS1 and 2.


Flex Builder 2 and the Flex 2 SDK tend to target software developers, 
whereas the Flash 9 IDE tends to target designers (allthough the line is 
becoming blurry).


Cheers,
Claus.

ps: seems labs.adobe.com is down at the moment, or is it just me?


GregoryN wrote:


Hello Flashcoders,

I'm a bit confused with waterfall of all these new terms :-).
Can't find all answers at the Adobe site so far...

As far as I can judge, current Flash version is 8, but
- on product and Version Penetration pages it's 8
- latest Flash Player offered is v.9
- you're discussing AS3 and even Flash 9 IDE here in the list

So, can anyone clarify the current situation with Flash versions?
What about expected in the nearest future (till the end of 2006)?

Please excuse me if this question seems dumb for you.


___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Uncompress a gzipped file

2006-08-11 Thread Claus Wahlers



Right now there's several things that could be done with this that I
can think of. Like Claus said, a tool could be created that takes
regular zip files and adds checksum info without damaging
compatibility.


A quick progress report, just in case somebody is interested:

We kinda got it working.

See here for a rough demo:
http://codeazur.com.br/stuff/fzip/
Flash Player 9 required, obviously.

I grabbed the original ZIP from here:
http://www.famfamfam.com/lab/icons/silk/
and use it as is. It contains 1002 icons in PNG format. Flash Player 
loads the ZIP via URLStream and decodes it on the fly. This works 
because the zipped PNGs are not being recompressed (PNG already uses 
compression).


Max wrote a small Python script that unobtrusively injects Adler32 
checksums into ZIPs, so very soon we'll be able to properly uncompress 
slightly modified, but still standard ZIP archives.


Sources are going to be released soon, stay tuned.
Cheers,
Claus.
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Uncompress a gzipped file

2006-08-10 Thread Claus Wahlers



Right now there's several things that could be done with this that
I can think of. Like Claus said, a tool could be created that 
takes regular zip files and adds checksum info without damaging

compatibility.


I already have a class ready that correctly parses a ZIP archive..
Stay tuned!
Cheers,
Claus.

___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Uncompress a gzipped file

2006-08-10 Thread Claus Wahlers

ryanm wrote:

To me, the most useful thing would be a a standardized implementation, 
so that it could be compressed at runtime or in advance, so that it 
can be used with packages like you were describing, or individual 
(possibly dynamic) files compressed by the server. Something 
like that will have to use the same CRC as the other common 
implementations of the same compression, so it will likely have 
to be entirely AS and not use the built in player compression.


ZIP is extendable through the use of implementation specific 'extra 
fields', so you could define your own extra field that holds the 
additional ADLER32 checksum.


If you compress at runtime in Flash, you'd just have to calculate the 
CRC-32 checksum. If you compress on the server, you'd just have to 
calculate the ADLER32 checksum.


Then if you uncompress your ZIP files at runtime in Flash, you'd get the 
ADLER32 checksum for your file from the extra field. Any other ZIP tool 
should still be able to uncompress that archive as is.


Cheers,
Claus.
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Prefixing property names with underscore - conventions?

2006-08-10 Thread Claus Wahlers


I've noticed many class authors prefix property names with an 
underscore, or 2 underscores or none at all.



It's often used in concert with getter/setters to prevent name collisions:

private var _myProperty:String;

public function set myProperty(value:String):Void {
   _myProperty = value;
}

public function get myProperty():String {
   return _myProperty;
}

Cheers,
Claus.
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Uncompress a gzipped file

2006-08-10 Thread Claus Wahlers

ryanm wrote:

Imagine compressing XML files to a tiny fraction 
of their original size and decompressing them within flash!
No need, you can do this now. If you gzip a file and send it via post 
response (sendAndLoad), the browser will decompress it for you 
automatically 



A possible use case: You need to load themes into your application at 
runtime. Those themes potentially consist of many assets of different 
type (xml, bitmap, swf, etc) and people should be able to create those 
assets using their favourite tools which may or may not include flash.


In order to minimize requests to the server you could offer a way to 
pack them together accompanied by a catalog xml file (think swc). Again, 
users should be able to use their favourite zip tool to do that.


As FP9 supports runtime un/compressing of ByteArrays, it is 
theoretically possible to let it load zip archives and uncompress the 
contained files at runtime, with minimal processor load.


The problem however is that zip and zlib use different checksum methods, 
you thus can't uncompress files contained in zip archives created by 3rd 
party tools. You probably would have to write your own zip-like tool 
that uses either FP9 or a zlib library to compress files, and use 
ADLER32 checksums instead of the usual CRC-32 checksums.


Cheers,
Claus.

___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Uncompress a gzipped file

2006-08-09 Thread Claus Wahlers

Max,

not sure if this helps but it's worth a try.

I was trying to uncompress files from zip archives a while ago. The most 
common compression method used in zip is deflate (as you already know) 
so theroretically it shouldn't be a problem to uncompress() files in a 
zip, BUT.. the thing is, although both Flash and the common 3rd party 
zip tools use the same compression method, they use different checksums.


Zlib (Flash) uses an ADLER32 checksum, see RFC 1950 [1], whereas zip 
uses CRC-32 [2]. The checksum is calculated over the uncompressed file 
so imho it's impossible to uncompress a file in a 3rd party created zip 
archive (you don't have the ADLER32 checksum that Flash needs - the dog 
bites its tail there), which really is a pity.


Please let me know if you find a way around that, i'd be very 
interested. I'll do the same. Maybe we should joint our efforts there.


Cheers,
Claus.

[1] http://www.gzip.org/zlib/rfc-zlib.html
[2] http://tinyurl.com/an7mj


Max wrote:


Shouldn't there be more interest in this? Flash's compress() and
uncompress() features use DEFLATE, which is the same algorithim used
in zip files and png images. Imagine compressing XML files to a tiny
fraction of their original size and decompressing them within flash!
The uses are endless, especially when you start to think about
compressing files within flash and sending them other places.

My progress in this has stalled. I'm pretty confident now the last two
bits in a ByteStream compressed with compress() are a checksum, and
I'm almost completely sure it's a crc-16 checksum (although it's
always off by one, I can't say I know why).

Gzip actually includes a checksum, but it's crc-32, not crc-16. It's
not as if you can know what the crc-16 checksum is without
decompressing the file first. So basically, flash needs the checksum
before it will decompress the binary data, and you don't have it with
a normal gzip file. Now I'm starting to think gzip is a dead end and a
custom format would probably be more useful.

Anyway, making a custom format is out of my league it seems. I tried
working something out with Python but I can't pull it off. Surely the
throngs of people interested in this would figure something out,
unless I'm alone...
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Possible Challenge: AS 3.0 Compiler :)

2006-08-06 Thread Claus Wahlers



Doesn´t haXe www.haxe.org address this issues ?


No, we're talking about a clientside ECMAScript interpreter/compiler 
written in AS3.

Cheers,
Claus.
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Possible Challenge: AS 3.0 Compiler :)

2006-08-06 Thread Claus Wahlers


An AS3 SWF compiler, written in AS3 and available at runtime could be 
useful. E.g., you could then compile a SWF on the fly, put its data into 
a ByteArray and then load it from there using 
flash.display.Loader.loadBytes(). This technique could be perhaps used 
to bypass some Flash 9 limitations: e.g., it seems that (unlike in  AS2 
with duplicateMovieClip()) you can't completely clone a Sprite with its 
Graphics object (to which someting is drawn). You could also serialize 
the resulting swf and send it over a LocalConnection to another swf :)


How about porting Rhino?

http://www.mozilla.org/rhino/

cheers,
Claus.
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Where to politely and appropriately discuss pricing issues

2006-06-01 Thread Claus Wahlers

Rather, I meant making *my services* indispensible -- i.e. doing such a
strong job that the client can't imagine doing the next project without me.


I'm sorry Adam, i misinterpreted that. We're on the same page then :)
cheers,
Claus.
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Where to politely and appropriately discuss pricing issues

2006-06-01 Thread Claus Wahlers

I made a decision to go with a low price point for specific reasons that may
not apply in every case.  Also, I'm not that worried about clients balking
when I eventually raise rates.  I'm pretty confident in my ability to make
myself indispensible. :)

Another thing I've done is offer a "New Client Discount".  If the
relationship with the client works out, this gives me the ability to get a
slightly better rate on a future project without making it seem like I'm
screwing them.


That's interesting.. i usually do the exact opposite (of course, this
is me, and probably doesn't apply to everyone and everything).

I usually offer new clients my regular rate and offer discounts when i
feel that my relationship to the client is good and of a potentially
long term nature. Most of the time, the client continues to pay me my
regular rate for follow up projects though.

Also, apart from trying to do a good job and making the client happy
of course, i never ever do anything to make myself indispensible. To
the contrary actually. For a long term, good client relationship imho
it's absolutely necessary to give the client assurance that if for
whatever reason i might not be available to continue working on a
project (e.g. i get ill), he can continue without much hassle with
another similarly skilled developer.

cheers,
Claus.
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] OT: Adobe Licensing - FAO John Dowdell, Mike Chambers et al.

2006-04-19 Thread Claus Wahlers
> As a thought, though.  Is there anyone out there who even thinks they
> have the skills to develop there own Flash player?  The way I see it, so
> long as it doesn't directly read the SWF format, there would be no
> license infringement!  And one could always create a third party file
> converter ;)

http://www.gnu.org/software/gnash/

As long as you don't accept Adobes license for the Flash Player File
Format docs, you should be free to develop a Flash Player clone that
reads SWF. But then again, i'm not a lawyer, but i would guess the GNU
foundation consults lawyers to secure their projects.
cheers,
claus.
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] OT: Adobe Licensing - FAO John Dowdell, Mike Chambers et al.

2006-04-19 Thread Claus Wahlers
> Still, I imagine a subscriber would require a very
> good excuse as to why they required the source :-)

Not really.. A subscriber requires to afford the licensing fee. ;)
cheers,
claus.
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] OT: Adobe Licensing - FAO John Dowdell, Mike Chambers et al.

2006-04-19 Thread Claus Wahlers
> That's not true. You can license the Flash Player source code.

PS, Mike, last time i researched Flash Player source licensing,
Macromedia redirected me to Vibren Technologies:
http://www.vibren.com/Eng_Solutions/macromedia_engineering.htm
Maybe that helps,
cheers,
claus.
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] OT: Adobe Licensing - FAO John Dowdell, Mike Chambers et al.

2006-04-19 Thread Claus Wahlers
> That I know of, there is absolutely no way to attain the
> Flash player source.  That's Macromedia's closely guarded secret,
> which, along with their license depicting that no-one may create
> their own, makes Flash theres alone!

That's not true. You can license the Flash Player source code.
cheers,
claus.
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] CSS with input text

2006-03-20 Thread Claus Wahlers
> Wouldn't having full www support for html in Flash mean building in a
> browser. Not too likely I think.
> What about a component in Flash that allows the display of a web
> browser window in a flash document, using the browsers functionality.
> I wouldn't know where to start, but it would be cool.

There still is DENG:
http://osflash.org/deng/
Definately not comparable to Firefox and the likes, but a start
cheers, c.
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Re: How does goowy do it? (HTML in Flash)

2006-03-04 Thread Claus Wahlers
> I haven't seen the HTML
> capability, but it's obviously possible to write a
> browser, or a subset of a browser in actionscript.

http://osflash.org/deng/
cheers,
claus.
___
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 Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] XML Namespace Explanation in Simple Terms?

2006-01-29 Thread Claus Wahlers
> xmlns="mystate" xmlns:556="anotherstate" etc (not really accurate here
> as i could use both 555-2345-6789 and 2345-6789 to call my neighbor,
> which afaik isn't possible in xml

actually it should be possible, not sure:
xmlns="mystate" xmlns:555="mystate" xmlns:556="anotherstate"
cheers,
claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XML Namespace Explanation in Simple Terms?

2006-01-29 Thread Claus Wahlers
> 555-1234-5678 (me)
> 556-1234-5678 (somebody else)
>
> that code would be a namespace prefix in xml terms
>
> somewhere i'd have to define where and what 555 really is. that'd be
> my namespace declaration.

there's also a "default" namespace. if i call my neighbor i can omit
the state code because my neighbor lives in the same state as me, so
my state's telcom defines the code of my state as default:
xmlns="mystate" xmlns:556="anotherstate" etc (not really accurate here
as i could use both 555-2345-6789 and 2345-6789 to call my neighbor,
which afaik isn't possible in xml, but your marketing folks will get
the idea)
cheers,
claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] XML Namespace Explanation in Simple Terms?

2006-01-29 Thread Claus Wahlers
> I need to explain XML namespaces to several marketing people

think phone numbers

my phone number is 1234-5678

in a different state though, this phone number may belong to somebody else

so, i put a code in front of it to distinguish it from same numbers in
other states

555-1234-5678 (me)
556-1234-5678 (somebody else)

that code would be a namespace prefix in xml terms

somewhere i'd have to define where and what 555 really is. that'd be
my namespace declaration.

it's not exactly the same, but very similar to the concept of xml namespaces
hth,
claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Re: Search engine indexable Flash content; anyone with insight please help!

2006-01-19 Thread Claus Wahlers
> Is there any way to index Flash content without that risk?

http://wahlers.com.br/claus/blog/seffs-to-flash-or-not-to-flash/
cheers,
claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Massive XML files and Flash

2006-01-06 Thread Claus Wahlers
> RegEx + E4X means insanely fast custom parsing and conversion, plus
> insanely fast searches and filters for XML. The need for XPath is about to
> be a thing of the past (whenever they get around to releasing 8.5, that is).

I did some benchmarks comparing fp8 XML vs fp8.5 flash.xml.XML vs
fp8.5 E4X (recursive traversal of an xml document) where the fp8.5
version turned out to be 20x faster than it's fp8 counterpart while
the E4X version was only twice as fast. I also did benchmarks
comparing RegExp vs char-by-char parsing on my CSS parser and
char-by-char appeared to be faster. Now these may not be common cases,
but they show that there is no such thing as an ultimate way to do
things. If i need comfort and ease of use i'd go for E4X or RegExp, if
i need speed i do it the oldschool way, and if i need to be less
language dependent and don't care much about speed i stick with XPath.
In fact i'd love to see a solid XPath processor written in AS3.
cheers,
claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Singleton as associative array - yucky icky?

2005-12-29 Thread Claus Wahlers
> Wrong?  Dude, wtf?  Why don't you drink some coffee and take a look at
> what the hell VB is doing (ASP, whatever).

roffle.

it's 4am and i might have smoked some funny cigarettes already.

anyways, at least it feels wrong.

but then.. vbscript.. ehrm.. ok..

*ducking*
cheers,
claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Singleton as associative array - yucky icky?

2005-12-29 Thread Claus Wahlers
> > __resolve?
>
> nope...
>
> not unless there's some super-secret way of using __resolve outside of
> the "normal" way.
>
> even with a __resolve function in-place in my class, you still get the
> dreaded "Left side of assignment operator must be variable or
> property." when calling:
>
> session("foo") = "bar";

ah yes of course:
non-singleton-version:

var session:Session = new Session();
session("foo") = "bar";

this makes no sense.

maybe:
session.foo = "bar";
in combination with __resolve?

or maybe even let getInstance return a method of the singleton rather
than the instance itself? hmm no then the :Session type would be
invalid.. i guess the only way to do that is using the standard
dot-notation and __resolve.

sorry can't test as2 stuff right now, but maybe it helps somehow ;)
cheers,
claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Singleton as associative array - yucky icky?

2005-12-29 Thread Claus Wahlers
> var session:Session = Session.getInstance();
> session("foo") = "bar";
>
> which would set the item "foo" equal to "bar". i can't see that
> there's a way to do this kind of non-method calling of the class
> instance.

__resolve?
cheers,
claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] HTML markup for highlighted text...

2005-12-07 Thread Claus Wahlers
> I'm working on a chat, and what I want to do is "highlight" text that is
> whispered. But the background-color style property doesn't work on spans,
> does anyone know of a good way to set the background color of text in an
> HTML text field? Is it even possible?

Not possible, without using ugly hacks (eg. layer Movieclip under
Textfield, draw background shape yourself).

This is one of the features i'd LOVE to see implemented in FP8.5 (and,
borders on spans, etc - or even: access to a mini DOM within HTML
Textfields, with a native way of mapping x/y coords to elements of
that mini DOM). The inline box model of FP's Textfield always sucked,
and is continuing to suck as far as i can see.
cheers,
claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FP8: file upload and server response

2005-11-22 Thread Claus Wahlers
thanks ryan and don for your help!
i need to upload a binary file from a local flash 8 app to a 3rd party
server (webservice, fixed api, takes a mix of post/get data and
returns xml) so i guess i'm at a dead end here..
cheers,
claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] FP8: file upload and server response

2005-11-22 Thread Claus Wahlers
hi folks,
i'm currently playing with the flash player 8 FileReference stuff. i'm
uploading a file to a server script (works fine). the server script
returns an xml with info about the uploaded file. is there any way i
can access the server response?
tia, cheers,
claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] AS3: Stage stuck in lower-right corner!

2005-11-02 Thread Claus Wahlers
> I used this.stage.stageWidth and this.stage.stageHeight to get the
> dimensions of the window. Am I doing this right? How do I get the
> dimensions of the movie?

put this in your constructor:
stage.scaleMode = "noScale";
stage.align = StageAlign.TOP_LEFT;
stage.stageWidth and stage.stageHeight should work fine then..
cheers,
claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] OT:Converting shapefile (.shp) > SVG > SWF

2005-11-01 Thread Claus Wahlers
> I found the "ogis2svg" command line tool quite straightforward but now
> am stuck trying to convert the SVG output to SWF using the svg2swf
> tool mentioned above.
> I've googled it and haven't found many "respectable" tools for this purpose.

Have you tried Adobe Illustrator for SVG to SWF conversion?

I have experimented with SHP parsing myself in the past and am quite
familiar with it btw, if you need something, feel free to drop me a
line
cheers,
claus.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders