[swx] Using swx in loaded swf files
Rune Høck Møller
mail at runehock.dk
Mon Dec 10 13:03:09 PST 2007
Hi Ben,
Thanks for responding!
Yes request is showing correct in the analyzer!
I have in the meantime gotten to think if it is not a swx problem but
a simple actionscript thing.
My dynamic textfield that holds the requestet data is named "status"
and I write to it in the swx actionscript with this line: status.text
= event.result;
Perhabs I need to write something like : emptymovieclip.status.text
= event.result; ????
Because I load the swf into a temp movieclip. Sorry for this simple
"stupid" question!
Can you help?
Rune
Den 10/12/2007 kl. 21.51 skrev ben:
> Can you see the request in the Data Analyzer?
>
> If not, try installing an HTTP proxy like Charles and see if the
> request is done properly in the background, that usually work
> wonder for me.
>
> Ben
>
>
> Rune Høck Møller wrote:
>>
>> Hi swx list,
>>
>> I am creating a flash site where I use the swx php for everything
>> that is dynamic and I get it from a MySql database.
>> That all works very well and fast (thanks Aral).
>>
>> But I need to load the swf's in seperately into a main swf and
>> display data there. And when I do thatl, the swx returns an error
>> because it thinks that I am trying to access the "gateway" from my
>> main swf file. But I need it to access it from the loaded swf
>> "subpage"!
>>
>> I use a movieclipholder for my external swf :
>>
>> var holder:MovieClip = contentContainer_mc.createEmptyMovieClip
>> ("contentHolder_mc", this.getNextHighestDepth());
>>
>> My loaded swf looks like this (and it works when I test it
>> seperately):
>>
>> import org.swxformat.SWX;
>>
>> System.useCodepage = true;
>> status.html = true;
>>
>> var swx:SWX = new SWX();
>> swx.gateway = "http://www.uterus.dk/php/swx.php";
>> swx.encoding = "GET";
>> swx.debug = true;
>> swx.timeout = 3;
>>
>> var callParameters:Object =
>> {
>> serviceClass: "news",
>> method: "getcard",
>> args: [1],
>> result: [this, resultHandler],
>> timeout: [this, timeoutHandler]
>> }
>>
>>
>> swx.call(callParameters);
>>
>> function resultHandler(event:Object)
>> {
>> status.text = event.result;
>>
>> }
>>
>> function timeoutHandler()
>> {
>> status.text = "Call timed out!";
>> }
>>
>> Any suggestions to this problem??
>>
>> Thanks,
>>
>> Rune
>> _______________________________________________
>> swx mailing list
>> swx at osflash.org
>> http://osflash.org/mailman/listinfo/swx_osflash.org
>>
>
> _______________________________________________
> swx mailing list
> swx at osflash.org
> http://osflash.org/mailman/listinfo/swx_osflash.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20071210/32e4d452/attachment.html
More information about the swx
mailing list