You are not logged in.

1

Tuesday, May 12th 2009, 5:11pm

as2 swf for plugin ?

Hello!
I'm quite a beginner in flash and I wish to do a little interface in Action script 2(Because I don't know nothing about as3.), to use as a plugin into the krpano, is this possible ?

I did several tryouts but it didn't work, but I 'm not sure what to write exactly in the xml code,
thers is mine:

Source code

1
2
3
4
5
6
7
8
9
10
11
<plugin name="button" url="%SWFPATH%/ess interface.swf" 

 align="center" width="1000" height="500" x="0" y="0" children="true"
html="data:buttontext"
background="false"
textglow="4"
textglowcolor="0xFFFFFF"
textshadow="3"
autosize="center"
onclick=""
/>

Thanks

Ed

2

Tuesday, May 12th 2009, 5:17pm

Actually, to be more explicit, I would like to use my pano as active background of a as2 flash website with buttons, gallery loader and stuff...
Thanks
Ed

Tuur

Sage

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

3

Tuesday, May 12th 2009, 5:28pm

Hi Edwoo,

i think it's not possible to put your pano in a flash site... yet ... or so... i'm not sure...

wait for others to reply.


Cheers

Tuur *thumbsup*

4

Wednesday, May 13th 2009, 5:20pm

Hi,

it would be possible to load your Flash as plugin over the pano to control,
(just with: <plugin name="myplugin" url="myplugin.swf" />)

but there is no AS2 interface in krpano!
so to communicate from a AS2 plugin to AS3 krpano, you would need a AS3 plugin between them for communications,

theoretical it should work in this way:
AS2 plugin <=> LocalConnection <=> AS3 plugin <=> krpano

but I think that will be more complicated than direct using AS3

for a simple Flash CS3 (AS3) example have a look here:
http://krpano.com/examples/cs3plugin/

best regards,
Klaus

5

Wednesday, May 13th 2009, 7:29pm

Thanks very much for the answer,
I was able to load my as2 plugin, but it was no working, I guess for the reason you explain...
after looking to your as3 interface exemple closely, I decide to try to do it with as3, this is really well explain and i hope I will be able to make it that way, however it looks quite complicate for a modest newbie like me *unsure*
But if it works, that will look awsome, i'll show the result...
Have a nice day
Ed