Dynamic Text fields not working

0 views
Skip to first unread message

abdul...@gmail.com

unread,
May 14, 2009, 5:55:51 AM5/14/09
to yourminis Developer Network
Hi,

This is my first time as a flash developer. I want to make a widget
that uses dynamic text fields to display some data that I extract from
my database through php. When I run the swf locally or on the web, it
runs fine..But when I publish a widget, the dynamic field do not
populate and remain empty. Any guesses?

I am not inserting any API code in the widget. Could this be causing
the problem? Why is it not running as a widget when it is running
otherwise?

Thanks in advance.

Looking forward to your help...I am stuck in this for sometime now...

Thanks
Abdul Aziz

dave

unread,
May 14, 2009, 10:27:41 AM5/14/09
to yourminis Developer Network
This is because of flash security. When you put your widget on the
same server as your php its in the same sand box thus it will work.
When you publish your widget on yourminis its in a different sandbox
and flash security does not load your data. You need to set up a
cross domain policy file. You can also use the api to make the call
for you as it uses a proxy it does not violate flash security.




On May 14, 2:55 am, "abdulazi...@gmail.com" <abdulazi...@gmail.com>
wrote:

abdul...@gmail.com

unread,
May 15, 2009, 1:29:47 AM5/15/09
to yourminis Developer Network
Thanks a lot for the response. It seems like this a security issue.

How do I make a "cross domain policy file" you mentioned?
It would a great help.


Thanks again. But seems I am still not out of trouble yet!

abdul...@gmail.com

unread,
May 15, 2009, 2:48:13 AM5/15/09
to yourminis Developer Network
OK, I got it to run!

Thanks for the help

And for those of you who are still figuring it our...here is a bit of
help

Here is an article that show how to load data from a different domain:

http://kb2.adobe.com/cps/165/tn_16520.html

And here is how you load movies inside other movies:

http://kb2.adobe.com/cps/141/tn_14190.html#loader

Thanks Dave for your help. I got the idea from your post

--Topic Closed--
Reply all
Reply to author
Forward
0 new messages