Looking for swf to talk to

Added: Danetta Sly - Date: 01.12.2021 05:57 - Views: 38301 - Clicks: 6518

Find centralized, trusted content and collaborate around the technologies you use most. Connect and share knowledge within a single location that is structured and easy to search.

Looking for swf to talk to

We're developing a small Flash gamelet for an European client of ours, who require us to develop our Flash game in such fashion that they can load our SWF game into their ActionScript 3 project, dynamically. Basically they have a console that will load many other Flash games, amongst our own, depending on which button the player presses on a "Choose Your Game" screen. The client posted us the following code to load the SWF:.

Looking for swf to talk to

All our traces within the external SWF's document class are showing up as expected in the Flex Builder console view, so the code is running perfectly. The problem we're experiencing is that despite calling addChild myGame Note however, when we run the SWF by double clicking the Game.

Creating an instance of a class is as wage as it can get. Your client has a funny way of posting references. However FunkyChickenGame may be a class created by the client that can launch your game. Maybe the games are embedded in their flash app, but that would mean long loading time. If indeed many games are "loaded" this way. My advice would be that you don't use stage, root or whatever properties that could link to the main app instead your game, and leave the client to decide how he would like to load it.

Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 12 years, 4 months ago. Active 9 years, 7 months ago. Viewed 6k times. Any help on this topic would be highly appreciated. Thank you in advance. Improve this question. Your not getting any errors? To me it sounds like a null stage reference in your Game. Can you think of any place where you might be trying to talk to the stage before a stage reference exists?

The stage reference will not exist until addChild myGame ; executes. Do you have an event listener for an Event. This would allow you to listen for when your game is added to the stage via your client's addChild methodthen you can initialize your game when that event is triggered.

Looking for swf to talk to

Add a comment. Active Oldest Votes. Improve this answer. Branden Hall Branden Hall 4, 16 16 silver badges 19 19 bronze badges. Thanks Branden. The onLoaded event, would that in turn just be empty? So in other words, can I do this: loader. Sure, but if you're not going to track the event there's no need for that line in the first place. You only need it if you want to track when the load is complete.

up or log in up using Google. up using Facebook. up using and Password. Post as a guest Name. Required, but never shown. The Overflow Blog. Why solve a problem twice? De patterns let you apply existing solutions Podcast Can AI solve car accidents and find you a parking space? Upcoming Events. Featured on Meta. Version labels for answers. Linked 0. Related 0. Hot Network Questions. Question feed. Accept all cookies Customize settings.

Looking for swf to talk to

email: [email protected] - phone:(375) 638-4887 x 2136

UAE Unveils $10b Commitment to Indonesia's SWF, the Largest So Far