You are not logged in.

1

Tuesday, October 18th 2011, 1:23pm

I can't see my swf hotspot made with actionscript

Hi to all, and thank from now for the replyes :)

I have a waterfall made only with with as3 code,and when i try it alone it working well...but if i put it into krpano,i can't see it!

Quoted

<hotspot name="waterfall"
url="flash/waterfall.swf"
keep="false"
visible="true" enabled="true"
zorder="8"
alpha="1.00"
refreshrate="auto"
/>
Is there a way to but into the tour as3 hotspot made with?

Thanks to all again.

2

Thursday, October 20th 2011, 1:58pm

Hi,

have you tested with the debug flashplayer?
are there any runtime errors?
is your plugin accessing the stage anyhwere? if yes - are you waiting for the ADDED_TO_STAGE event?

best regards,
Klaus

Zephyr

Professional

Posts: 1,003

Location: Netherlands

Occupation: Web developer

  • Send private message

3

Thursday, October 20th 2011, 2:10pm

Alsoo try keep="true" and give the hotspot some positioning (atv and ath)

4

Thursday, October 20th 2011, 5:30pm

Thanks for the helps!

With the Debugger i have discovered that the hotspot is not made well,intead it made me:

TypeError: Error #1009: Impossibile accedere a una proprietà o a un metodo di un riferimento oggetto null.
at Waterfall_fla::MainTimeline/init()
at Waterfall_fla::MainTimeline/frame1()

I'm a beginner in the flash's world, and i don't know how i can resolve the problem,btw i don't want to annoying you with stupid questions...

But if is interesting for you,i have taken the waterfall's file here:
http://www.flashandmath.com/flashcs4/waterfall/

Here you can find the zip file,and into it,the .fla file...
maybe sameone want to resolve it... ;)

Zephyr

Professional

Posts: 1,003

Location: Netherlands

Occupation: Web developer

  • Send private message

5

Thursday, October 20th 2011, 7:32pm

you should look at http://krpano.com/docu/plugininterface/#as3 (and click the tab that says flash CS code)

in the part where it says if(0)

Source code

1
2
3
4
5
6
7
8
9
10
11
12
    if(0) // 'if(0)' means that this code will not be executed, the code here is only an example for how-to add addtional graphical content!
    {
        // register the size of the plugin content (optionally)
        // e.g. to set the plugin source size to 256x256 pixels:
        plugin.registercontentsize(256,256);

        // the plugin itself is already a Flash Sprite Object, 
        // so to add addtional Flash DisplayObjects
        // just add them to the plugin itself:
        var exampleChildSprite:Sprite = new Sprite();
        this.addChild(exampleChildSprite);
    }


you should add

plugin.registercontentsize(200,300);
var waterfall:Waterfall = new Waterfall(200,300,false);
this.addChild(waterfall);

make sure the com folder is in your project folder and you have imported all those close (import com.flashandmath.dg.* etc)