≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
CopperCube 4.01 Flash loses SimpleAPI hook
Posted by:
(you are not logged in)
Enter the missing letter in: "Internatio?al"
(you are not logged in)
Text:
[quote][b][/b] wrote: Yes, that's true. Do a [code]addEventListener(Event.ENTER_FRAME, onGraphicsFrame);[/code] And then do something like this: [code] // called when the coppercube .swf file has been loaded and initialized private function onCoppercubeLoaded(e:Event):void { // get access to the simple API object: coppercubeSprite = loader.content as DisplayObject; loadingFinished = true; } // called every frame public function onGraphicsFrame(event:Event):void { if (loadingFinished) { if (!simpleAPI && coppercubeSprite) simpleAPI = coppercubeSprite['simpleAPI']; if (simpleAPI && simpleAPI.isLoaded()) { // ab hier ist alles ok } } } [/code] This is because of the new integrated preloader. The sprite is already there and active and doing something (displaying an animating the loading bar), but the simpleAPI isn't yet there because the file hasn't still loaded completely. So you need to check continuously. The docs really need to be updated for this.[/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact