Re: [Flashcoders] Re: swf doesn't work the same online

2010-03-11 Thread Valentin Schmidt
John Singleton wrote: From: Valentin Schmidt v...@dasdeck.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Tue, March 9, 2010 3:28:52 PM Subject: Re: [Flashcoders] Re: swf doesn't work the same online quote first, your emails are a bit hard to read, I'd suggest to quote

Re: [Flashcoders] Re: swf doesn't work the same online

2010-03-11 Thread Valentin Schmidt
If you are using Firefox, can you use something like the LiveHTTPHeaders add on to see the request for the SWF and whether the server sends back NOT MODIFIED. or the Firebug addon (which IMHO every web developper should have installee in his firefox anyway), in the Network Tab in can also show

Re: [Flashcoders] Re: swf doesn't work the same online

2010-03-11 Thread Valentin Schmidt
Glen Pike wrote: Each to their own I guess, Firebug for me is too much like using a sledgehammer to crack a nut for Flash applications - it's unwieldy and I have found it to be a bigger memory hog than Adobe products. who cares? of course you only activate it when you really need it - and

Re: [Flashcoders] OT: was swf doesn't work the same online

2010-03-11 Thread Valentin Schmidt
Glen Pike wrote: I'm quite sure that in deactivated state it doesn't consume any xtra memory. Not sure - I think there used to be a nasty memory leak, even when it was disabled - I had it upto 1.5 GB, a bit like FF 3 years ago. PITA when you have tons of pages open and your browser

Re: [Flashcoders] Re: swf doesn't work the same online

2010-03-11 Thread Valentin Schmidt
John Singleton wrote: From: Glen Pike g...@engineeredarts.co.uk To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Thu, March 11, 2010 10:45:38 AM Subject: Re: [Flashcoders] Re: swf doesn't work the same online Let's see if my changes to Yahoo options translate this to plain

Re: [Flashcoders] Re: swf doesn't work the same online

2010-03-09 Thread Valentin Schmidt
John Singleton wrote: From: Glen Pike postmas...@glenpike.co.uk To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Mon, March 8, 2010 3:04:47 PM Subject: Re: [Flashcoders] Re: swf doesn't work the same online var nNavs:Array = new Array(); for(var i:int = 0; i numLinks;i++) {

Re: [Flashcoders] Re: swf doesn't work the same online

2010-03-09 Thread Valentin Schmidt
hi john, John Singleton wrote: Sorry, my typo / error. You need to change bgcolor to backgroundColor in the event handler functions (bgcolor is not a property of TextField), e.g. TextField(nsprite.mynav).backgroundColor = 0x... No, I caught that and made the appropriate substitution.

Re: [Flashcoders] swf doesn't work the same online

2010-03-08 Thread Valentin Schmidt
Hi; I built a swf that works the way I want it in Flash, but when I upload it, it acts differently! I built buttons in as3 like this: your code is corrupted: function onRollOutHandler(e:MouseEvent) { if (e.currentTarget.name == ' Home ') {

Re: [Flashcoders] OOP Tutorial

2010-03-05 Thread Valentin Schmidt
Susan Day wrote: Hi; Now I would like to call my class Star from another class, but pass different values to its variables. Do I need to implement the inheriting class as Star? I'm kinda lost here. I've been googling as3 oop but the tutorials don't seem to address my needs. Can you help me

Re: [Flashcoders] web video

2010-03-03 Thread Valentin Schmidt
Sam Brown wrote: you can embed cuepoints in the flv and listen for them to cue events. Most reliable way to embed them is via the Adobe Media Encoder there is no need to embedd such end cuepoints into the file, you can as well add them programmatically at runtime (using the addASCuePoint

Re: [Flashcoders] web video

2010-03-03 Thread Valentin Schmidt
Valentin Schmidt wrote: Sam Brown wrote: you can embed cuepoints in the flv and listen for them to cue events. Most reliable way to embed them is via the Adobe Media Encoder there is no need to embedd such end cuepoints into the file, you can as well add them programmatically at runtime

Re: [Flashcoders] web video

2010-03-03 Thread Valentin Schmidt
in case you want to follow my suggestion and simply use programmatical ASCuepoints of hardcoded cuepopints, here same simple sdemo code that works fine: import fl.video.*; var myFLV:FLVPlayback = new FLVPlayback(); myFLV.source = test.flv; myFLV.addASCuePoint({time:0.5, name:cp1});

Re: [Flashcoders] web video

2010-03-03 Thread Valentin Schmidt
Valentin Schmidt wrote: in case you want to follow my suggestion and simply use programmatical ASCuepoints of hardcoded cuepopints, here same simple sdemo code that works fine: I'm sorry, I was very distracted :-) once more: ... use programmatical ASCuepoints instead of hardcoded cuepoints

Re: [Flashcoders] Can u combine....

2010-02-26 Thread Valentin Schmidt
Juan Pablo Califano wrote: Another option: function loadXML(dfile:String,arg1:Object,arg2:Array):void { urlLoader.load(new URLRequest(dfile)); urlLoader.addEventListener(Event.COMPLETE, function(e:Event):void { parseXml(e,arg1,arg2); }); } and another option: save this as

Re: [Flashcoders] bytesAvailable, readUTF() and ProgressEvent.SOCKET_DATA

2010-02-23 Thread Valentin Schmidt
private function handleTcpData(event:Event):void { while (_socket.bytesAvailable) { var str:String = _socket.readUTF(); updateGUI(str); } } maybe you shouldn't ignore thrown errors: AFAIK if the UTF8-data is not complete (ie.. the last UTF-8 byte sequence is truncated),

Re: [Flashcoders] bytesAvailable, readUTF() and ProgressEvent.SOCKET_DATA

2010-02-23 Thread Valentin Schmidt
Alexander Farber wrote: I've come up with this, but still have a flaw there: private function handleTcpData(event:Event):void { var len:uint; what about this simple alternative: private function handleTcpData(event:Event):void { if(_socket.bytesAvailable) { try{ var

Re: [Flashcoders] bytesAvailable, readUTF() and ProgressEvent.SOCKET_DATA

2010-02-23 Thread Valentin Schmidt
Alexander Farber wrote: Yes, that's with what I had started and what doesn't work :-) so then why did you start with posting code here (pasted below) that didn't contain any exception catching? that's the crucial point: you have to catch the exception, otherwise you would either get corrupted

Re: [Flashcoders] bytesAvailable, readUTF() and ProgressEvent.SOCKET_DATA

2010-02-23 Thread Valentin Schmidt
some comments added to make it easier for you to spot the differences :-) private function handleTcpData(event:Event):void { if(_socket.bytesAvailable) { // USE IF, NOT WHILE! try{ // CATCH THE EXCEPTION var str:String = _socket.readUTF(); updateGUI(str); }catch(e:Error){}

Re: [Flashcoders] bytesAvailable, readUTF() and ProgressEvent.SOCKET_DATA

2010-02-23 Thread Valentin Schmidt
And if you use an if instead of while, then you lose even more incoming data. how come? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] bytesAvailable, readUTF() and ProgressEvent.SOCKET_DATA

2010-02-23 Thread Valentin Schmidt
Alexander Farber wrote: After some thought... the 2nd case (not enough data arrived) is not a problem for your code, because the handleTcpData() will get called again - once the rest of the data arrived. But for the 1st case (several UTF strings arrived at once)... Maybe I should try the

Re: [Flashcoders] Re: import documents into flash

2010-02-18 Thread Valentin Schmidt
Benny wrote: @valentin: Air 2 is able to call commandline tools just fine. thanks for sharing! but of course I was talking about calling a command line tool *and* returning the STDOUT/STDERR result to the main app. can AIR 2 do this? do you maybe have any links/documentation for this feature? it

Re: [Flashcoders] Re: import documents into flash

2010-02-18 Thread Valentin Schmidt
Valentin Schmidt wrote: Benny wrote: @valentin: Air 2 is able to call commandline tools just fine. thanks for sharing! but of course I was talking about calling a command line tool *and* returning the STDOUT/STDERR result to the main app. can AIR 2 do this? do you maybe have any links

Re: [Flashcoders] Has everyone seen this yet?

2010-02-17 Thread Valentin Schmidt
Ktu wrote: Looks like a great example of how Flash with AIR can create experiences that would otherwise be impossible. Too bad it will be on the iPad. looks like the return of multimedia to me. but what do you mean with otherwise impossible? I don't see any fundamental difference between this

Re: [Flashcoders] Re: import documents into flash

2010-02-17 Thread Valentin Schmidt
tom huynen wrote: Hey Guys, Thanks for the reply. To give a bit more information: The application would be one that runs standalone on the desktop. It would be able to import .html files, word documents and pdf files. did you read my previous post? all 3 formats can be imported by this

Re: [Flashcoders] import documents into flash

2010-02-15 Thread Valentin Schmidt
Tom Huynen wrote: Hi! A client asked me to create a application that imports different data documents into flash. Html pages, word documents and pdf's. It's about the text only and the layout doesn't matter. Is flash the right choice for this? if your are talking about a standalone

Re: [Flashcoders] import documents into flash

2010-02-15 Thread Valentin Schmidt
Html pages, word documents and pdf's. It's about the text only and the layout doesn't matter. Is flash the right choice for this? if your are talking about a standalone app (projector), I think the answer is: no parsing word docs and PDF files to extract the text data isn't trivial,

[Flashcoders] AS3LCR as CHM

2008-12-27 Thread Valentin Schmidt
hi, just a little hint for all adherents of the CHM format: there is a good CHM version of the ActionScript 3.0 Language and Components Reference (english CS4 version) at http://rapidshare.com/files/177383554/as3lcr.chm cheers, valentin ___