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
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
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
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
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
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++) {
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.
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 ')
{
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
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
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
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});
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
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
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),
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
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
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){}
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
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
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
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
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
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
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
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,
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
___
27 matches
Mail list logo