Cocoafish for Web Based Flex Apps

31 views
Skip to first unread message

Mav

unread,
Apr 4, 2012, 9:53:41 PM4/4/12
to cocoafi...@googlegroups.com
Things work well in AIR (AS3 SDK), through if I export it as a web app (swf) and upload it to a web host, the calls stop working. I assume this is due a security measure for cross-browser compatibilities, is there a way for a web Flash application to connect to cocoafish?

Mav

unread,
Apr 5, 2012, 8:11:41 AM4/5/12
to cocoafi...@googlegroups.com
I meant cross-domain policies :)

Wei Kong

unread,
Apr 6, 2012, 12:40:41 AM4/6/12
to cocoafi...@googlegroups.com
Hi Mav

- how did you export the swf file
- what exception/error the flex thrown

Thanks,
Wei

-- 
Wei Kong
Sent with Sparrow

Mav

unread,
Apr 6, 2012, 11:40:13 AM4/6/12
to cocoafi...@googlegroups.com
Thanks Wei for getting back in touch,

Well, it's the same code that is working as an AIR app (<s:WindowedApplication...) and connects to cocoafish beautifully, Converted to a Flex/Flash App (<s:Application...) .

So I compile the code (the Web version aka <s:Application) by creating an Export Build Release, after finishing, to test, I go to the bin-release folder on my computer (locally) and doubleclick the html wrapper which has the swf generated, and try to login (as test to see if all is good with cocoafish), and surely, it works :)


The problem is when I upload these files (html, swf, assets...) to my host server that the calls (like loging in) don't go through anymore. 

If I am not mistaken, this can only be the cross-domain policy xml file that it cannot find on cocoafish to let it make the calls go through, notify me if I'm missing anything or it's not feasible if it's a web app (flash based).

Thanks again.

Wei Kong

unread,
Apr 7, 2012, 3:48:19 AM4/7/12
to cocoafi...@googlegroups.com
Hi mav

We had a wrong configuration and just fixed it . Can you please try again? Sorry About that.

Wei

Mav

unread,
Apr 7, 2012, 9:20:29 AM4/7/12
to cocoafi...@googlegroups.com
Yes :) It's working like a charm.

Much thanks.
Reply all
Reply to author
Forward
0 new messages