You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Saturday, October 2nd 2010, 1:00am

AS3 Embed Example

Hi all :)

I was trying the flash-cs4-embed-example but I get a error in krpano_load_complete function:

Source code

1
Scene 1, Layer 'Layer 1', Frame 1, Line 19	1061: Call to a possibly undefined method embeddedstartup through a reference with static type Class.


I tried adding a timer before the calling the krpano_load_complete but no luck *confused* Help, anyone?

SOLVED:
The only thing that we need to do is change this line:

Source code

1
event.target.content as Object.embeddedstartup(stage, krpano_ready);

to this:

Source code

1
(event.target.content as Object).embeddedstartup(stage, krpano_ready);

This post has been edited 1 times, last edit by "MeekAS" (Oct 2nd 2010, 1:31am)


nelk

Intermediate

Posts: 358

Location: Paris

  • Send private message

2

Monday, October 4th 2010, 2:22pm

Hi,

I've no idea of the problem, but I can tell you that this line :

Source code

1
event.target.content as Object.embeddedstartup(stage, krpano_ready);


is not syntax correct imho ! So it's normal that does not work !
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).