|
| Index | Recent Threads | Unanswered Threads | Who's Online | User List | Help |
|
|
| No member browsing this thread |
|
Thread Status: Active Total posts in this thread: 2
|
|
| Author |
|
|
Stranger Joined: Dec 9, 2008 Post Count: 2 Status: Offline |
Flash 8 Actionscript Hello Everybody, I am trying to make a "mother" swf to hold all my functions, shortcuts, etc.. This "mother" swf will be stored on a "mother" server. I intend to make several websites on different servers that all access this "mother" swf for various tasks. I created two testing domains (unitcounter.com & projectvolcano.com) where I was able to have cross-domain swfs share functions & variables successfully. The problem occurs when one swf tries to write to a textfield in another swf. I can change properties like position and rotation, but I cannot access properties such as ".text", which is the most important property I need to use. Mother SWF: "www.projectvolcano.com/a.swf" (a.swf) 2nd SWF: "www.unitcounter.com/b.swf" (b.swf) Note: b.swf loads a.swf using loadMovie Note: Both servers contain crossdomain.xml files allowing any other server full access Note: Both SWFs contain "allowdomain" statements allowing any other SWF, on any other server, full access Note: a.swf and b.swf both use embedded Verdana font The actionscript I used for both SWFs is below. If b.swf and a.swf where communicating correctly, then b.swf would load a.swf, then b.swf would alter the textfield located in a.swf to read "NICE" instead of "RED HAT". Further, b.swf would then list all the properties of the textfield located in a.swf. Take a look at b.swf or b.fla and see for yourself. Thanks in advance for anybody who can help; I've been battling with this problem for 2 weeks now. Final Note: In b.swf, you must press the black button to manipulate the loaded a.swf ----Complete Code for a.swf (one frame SWF)----- // ALLOW ALL DOMAINS TO ACCESS THIS SWF-----Complete Code for b.swf (one frame SWF)------ // ALLOW EVERY DOMAIN TO ACCESS THIS SWF |
||
|
|
Stranger Joined: Dec 9, 2008 Post Count: 2 Status: Offline |
Update: When using Flash Player Plugin 8, the cross domain SWFs can easily communicate with each other (read/write to each other's textfields). Its only when using Flash Player Plugin 9 (or higher) do the textfields stop being accessible. I covered my bases, using a crossdomain.xml file: <?xml version="1.0"?>Also, I am using an allowdomain statement in each SWF: System.security.allowDomain("*");I now understand that even though my SWFs were made in Flash 8, they are still subject to the security features in each new version of the Flash Player Plugin. I just cannot figure out how to fix my Cross Domain SWFs so they can communicate with each other using Flash Player Plugin 9 (and higher). Does anybody know what changed between Flash Player Plugin 8 and Flash Player Plugin 9 that would prevent Cross Domain SWFs from accessing each other's textfields (reading/writing to textfields)? Summary of Problem: Flash Player Plugin 8: 1. Can Access Textfield properties that change appearance (_x, _y, _alpha, _height, etc) 2. Can Access text within Textfields (.text) Flash Player Plugin 9 (and higher): 1. Can Access Textfield properties that change appearance (_x, _y, _alpha, _height, etc) 2. CANNOT Access text within Textfields (.text) Thanks for taking a look at this thread. Please comment if you have any suggestions. |
||
|
|
|
|
|
Current timezone is GMT Mar 20, 2010 11:05:59 PM |