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.

21

Monday, February 16th 2009, 10:54am

Hi,

here is a complete simpleviewer example - simpleviewer.zip

best regards,
Klaus

panographer

Beginner

Posts: 9

Location: San Jose, California

  • Send private message

22

Monday, February 16th 2009, 9:21pm

Thanks

Hi Klaus,


Thank you very much for quick response. That really helps.
*thumbsup*

This post has been edited 1 times, last edit by "panographer" (Feb 17th 2009, 7:10pm)


23

Friday, February 20th 2009, 2:57pm

I still like the function, but i can't get it together!

it get stuck at this point:

ERROR: loading plugin "images.swf?xmlDataPath=gallery.xml" failed

how can it be when the 2 files are there *angry*

24

Friday, February 20th 2009, 3:01pm

Hi,

do you mean 2 simpleviewer galleries?

it seems the simpleviewer doesn't allow to use it more than once on one flash stage...

best regards,
Klaus

25

Friday, February 20th 2009, 3:24pm

No i meant, the 2 files (images.swf and gallery.xml) are there where they should be.

Could be, i'm loading in another file a swf. if your right ( and you might ) that is the first and this the second swf he's loading. but it's not in de same xml. does that matter ?

advert360

Beginner

Posts: 10

Location: Turkey

Occupation: place and product presentation

  • Send private message

26

Friday, February 20th 2009, 5:57pm

No i meant, the 2 files (images.swf and gallery.xml) are there where they should be.

Could be, i'm loading in another file a swf. if your right ( and you might ) that is the first and this the second swf he's loading. but it's not in de same xml. does that matter ?
@Gerlofv
i think you want to mean the variables that you add to swf file. If you ask that, this is the way to assign variables to flash; afterquestion mark (?) you can assign variables into flash and you can use these variables programmatically in flash. This works same as FlashVars .

Here is a quick sample:
myFlash.swf?variable1=gallery.xml&variable2=someData2&.....&variablen=someDatan

Good luck.
advert360 //Place and product presentation

advert360

Beginner

Posts: 10

Location: Turkey

Occupation: place and product presentation

  • Send private message

27

Friday, February 20th 2009, 6:18pm

@Gerlofv
After i've posted my comment, i read once again your post; here some suggestions for you:

  • Check your images.swf file destination. If your krpano.swf is in another destination check it once again;
for ex: your krpano.swf is in yoor root , and your images.swf is in library/swf file then it must be like that:

Source code

1
set(plugin[gallery].url,library/swf/images.swf?xmlDataPath=library/xml/gallery.xml);
  • Check your xml file destinations taht you want to load to your gallery as told you above.

Good luck.
advert360 //Place and product presentation

28

Wednesday, February 25th 2009, 2:00pm

@advert360

the code i have in xml

Source code

1
<plugin name="photo" url="plugins/photo.swf?xmlDataPath=../plugins/gallery.xml" keep="true" handcursor="false" zorder="97" visible="false" align="center"/>


and the code i have in as:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 case MouseEvent.MOUSE_OUT : 
if(toolT.parent) 
{ 
toolT.parent.removeChild(toolT);//remove the tooltip 
} 
break; 

case MouseEvent.CLICK : 
if (krpano.get("plugin[photo].visible") == false) 
{ 
krpano.set("plugin[photo].visible", true); 
resetall(); 
} 
else 
{ 
krpano.set("plugin[photo].visible", false); 
} 
break;



the error given: gallery not found

and still he doesn't open it! looks like he finds the two files but there is something missing!

but what ????

This post has been edited 3 times, last edit by "Gerlofv" (Feb 25th 2009, 2:19pm)


advert360

Beginner

Posts: 10

Location: Turkey

Occupation: place and product presentation

  • Send private message

29

Wednesday, February 25th 2009, 4:44pm

Hi Gerlofv,

I have a really strict dead-line, so i have no time to test your code. I think you have a basic scoping problem in here. gallery not found output shows that the xmlDataPath that you assign is wrong.

Simply, correct your xmlDataPath. Just try to scope the path absolute not relative. Like:

Source code

1
url="plugins/photo.swf?xmlDataPath=plugins/gallery.xml"


Good luck.
advert360 //Place and product presentation

30

Thursday, February 26th 2009, 9:41am

thnx for your reply. i'm still trying to get it in the menu with flash. It's finally working by using the hide en show function of the simpleviewer!!! But the next step is to get it in the global and as a menu topic to use where ever you go it the application.

good luck with the dead-line! if it works you will hear it from me. I'm still getting nowhere with that error



UPDATE!!! ( 15:42 )

It working! I think it was something about the path and the refreshing of flash that seems to be the problem.

This post has been edited 2 times, last edit by "Gerlofv" (Feb 26th 2009, 3:43pm)


milotimbol

Intermediate

Posts: 220

Location: Philippines

Occupation: Software Developer

  • Send private message

31

Saturday, February 28th 2009, 9:58am

Hi,

I tried the example on the simple viewer and it works great! I'm trying to experiment on other flash plugins. Can we use this http://www.flshow.net/carousel_examples.php as a krpano plugin? I tried doing this by myself but am unsuccessful probably because I don't understand what I'm doing *wacko*. I get this error

XML parser error : Error #2070: Security sandbox violation: caller cannot access stage owned by.

Before I go on any further I'd like to know if what I'm doing is even possible. If it is please help me *smile*

I read that the tiltviewer doesn't work, so how can you determine which plugins wil work and which wont?

Thanks,
Milo

32

Saturday, February 28th 2009, 3:01pm

Hi,

I've tested this carousel app now - unfortunately it will not work!

the problem it that this app isn't designed for loading into other swf apps:
it tries to access the "stage" object in it's constructor - a typical as3 problem!

it would be easy to avoid this problem by adding a ADDED_TO_STAGE event,
but this can be only done by the programmer of the app (maybe try to contact him)

here is a good article about this problem and how to avoid it:
http://www.markledford.com/blog/2008/08/…nto-other-swfs/

best regards,
Klaus

milotimbol

Intermediate

Posts: 220

Location: Philippines

Occupation: Software Developer

  • Send private message

33

Sunday, March 1st 2009, 12:32am

Klaus,

Thanks for trying it out. I will shoot him an email.

Thanks,
Milo

Posts: 1

Location: Rome

Occupation: Researcher

  • Send private message

34

Monday, March 2nd 2009, 10:48am

Hi, I'm the developer of Carousel.

As Klaus correctly point out my Carousel keep control over the stage since from the beginning. This is not due to a bad programming practice (I could have used the ADDED_TO_STAGE event of course) I've done this intentionally! Indeed the Carousel is a quite CPU intensive piece of flash, so I did my best to optimize everything. Consider that one of the first actions is to remove the root movie clip from the stage (the FactoryClass actually - it is a Flex AS only project) so that it this is eligible for garbage collection and no timeline remains (all other DisplayObject instances descend from Sprite).

So, apart from technical details, the main idea is that the Carousel is not a friendly flash application, it tries to destroy everything to improve performance.

I may consider change this behavior (at least when it is loaded inside other flash files) in future versions of my Carousel. Please register to the mailing list (upper right cornet on www.flshow.net) if you want to receive updates.
It would be nice to see my Carousel in krpano.

Ciao,
Saverio.

This post has been edited 3 times, last edit by "SaverioCaminiti" (Mar 2nd 2009, 2:43pm)


35

Monday, March 2nd 2009, 11:39pm

Hello Saverio,

nice to see you here, I know the performance is always a big topic in flash,
I'm also always trying to optimize everything, and krpano itself can't be embedded too at the moment

it would be really nice to see a embeddable version, or better a version with a true krpano plugin interface
see here - http://krpano.com/docu/plugins/
some source examples are included in the download package ,

then it would be possible to set the position and resize it from krpano and
also to make calls to load others panos

best regards,
Klaus

Mr.nOGot'

Beginner

Posts: 17

Location: Russian Federation>Krasnoyarsk

  • Send private message

36

Tuesday, March 24th 2009, 4:59am

Hi,

do you mean 2 simpleviewer galleries?

it seems the simpleviewer doesn't allow to use it more than once on one flash stage...

best regards,
Klaus
Hello all!
How it is possible to bypass this restriction what it would be possible to use 2 or 3 external swf a file?
Please help, it is very necessary. *confused*
This restriction KRPano or external swf files??

37

Wednesday, March 25th 2009, 12:22am

Quoted

This restriction KRPano or external swf files??
this is not a restriction from krpano, this would be a restriction from the used swf/plugin,
often other apps aren't designed for multiple usage or unloading/reloading...

milotimbol

Intermediate

Posts: 220

Location: Philippines

Occupation: Software Developer

  • Send private message

38

Wednesday, March 25th 2009, 12:00pm

Hi,

I was able to implement something like this.

3 Carousels
1 simple viewer
1 tilt viewer

And I'm currently adding 1 Pageflip, but this one is still under works. What you can do is load them inside different divs and then show them on top of the main krpano div. You'll have to code javascript to do that.

Milo

flash360

Trainee

Posts: 89

Location: All over

Occupation: this

  • Send private message

39

Wednesday, April 1st 2009, 5:35am

Is there a way we can darken the panorama behind the simple viewer? In a lightbox stylee

??

Cheers

John

Graydon

Professional

Posts: 614

Location: Texas

Occupation: Industrial gas turbine services.

  • Send private message

40

Wednesday, April 1st 2009, 6:03am

the easiest way (?maybe?) would be to load a 100% width / height image at zorder=x and then load the simple viewer at zorder=x+1

You could load an X-X px black (or whatever color) tile, stretched and play with the alpha settings or create a semi-transparent *.png that was stretched across everything.

At least in theory it seems like it would work.