dmdkv
dmdkv

Reputation: 175

Accessibility to the loaded flash movies

I need to load a flash-game inside the flash site. The goal is to get information about the winners' score to publish it on the site. The problem is that the game was developed by third-party programmers, so I have no idea if I can get access to any variable of the loaded swf (game) to get the highscores.

How can I retrieve the data from loaded swf?

Upvotes: 1

Views: 64

Answers (1)

Ganaraj
Ganaraj

Reputation: 26841

It is not possible to access the information inside another swf ( especially 3rd Party swf! ) unless they have explicitly exposed their swf to being accessed. You can check whether they have allowed access by testing the flag childAllowsParent.

You can alternately test to see if they are somehow emitting any events which you can catch to be notified of the high score. If the game is integrated with Kongregate or such other Flash Game hosting websites, there is a possibility that they have implemented some of the API's that Kongregate expects. If that is the case then you can perhaps hook onto these by emulating Kongregate.

Upvotes: 1

Related Questions