Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-13-2009, 12:53 PM
Junior Member
 
Join Date: Feb 2009
Posts: 3
Default Weird URLLoader behavior

Hello,

I've noticed a URLLoader misbehavior when running AS3 application under SWFKit.

Here's AS3 code
Code:
public function downloadURL():void
{
    var ldr:URLLoader = new URLLoader();
    var rq:URLRequest = new URLRequest("http://localhost/test.php");

     

    ldr.addEventListener(Event.COMPLETE, onTryAuthHTTP);
    ldr.load(rq);
}

public function onDownloadURL(evt:Event):void
{
    trace("[" + evt.target.data + "]");
}
And PHP - first, doesnt work with SWFKit
Code:
    echo "abcdefg";
And PHP - second, works with SWFKit
Code:
    echo "abcdefgH";
When I run my swf without SWFKit I get correct results each time - [abcdefg] and [abcdefgH].

But with SWFKit, any output produced from PHP that is less than 8 chars is discarded or whatever! For the first script I get [], but for the second - [abcdefgH].
How can that happen?

/edit

It seams that it is not possible to download ANY url resource that has lesser length than 8.

Last edited by aamp; 02-13-2009 at 12:56 PM.
Reply With Quote
  #2 (permalink)  
Old 02-16-2009, 08:42 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

Yes, it's really strange. We cannot answer your question right now, because it's an as3 method, which swfkit should be unable to intervene. However, we'll check it and get back to you a.s.a.p. Thank you.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:11 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.