Hi guys,
I recently switched computers, going from a windows vista with Adobe flash cs5.5 v to windows 8.1 with Adobe flash cs6 v12.0.2.529.
We've been working on a flash project in cs5.5 and everything worked fine however now I'm getting some strange behavior.
The problem I'm having is that the publish preview returns blank.
It has the right size and stage color but nothing is shown.
And I can't retrieve images from a runtime shared library.
Here's some sample code that illustrates the problem (this used to work fine in cs5.5):
package classes
{
import flash.display.MovieClip;
import flash.utils.getDefinitionByName;
import flash.display.Sprite;
import flash.external.*;
public class ExampleClass extends MovieClip
{
public function ExampleClass()
{
ExternalInterface.addCallback("Show", Show);
var test:Sprite = new Sprite();
test.graphics.beginFill(0xff00ff);
test.graphics.drawCircle(0, 0, 100);
addChild(test);
var test02:Sprite = new (getDefinitionByName("ConnectionIcon_Orange") as Class)();
addChild(test02);
}
private function Show():void
{
}
}
}
In this example I don't see the "test" Sprite's graphic.
When I comment the following line:
ExternalInterface.addCallback("Show", Show);
I do see the "test" Sprite's graphic.
With the test02 Sprite I try to retrieve an image from a runtime shared library but it never shows up (it did in cs5.5 do i need to make any new setting changes?).
I'm not getting any error messages and it seems fine with the code.
could anyone please point me to where I'm going wrong?
Cheers