Topic: Why does my swf has wrong dimensions if I use a skin ?

Hello,

I am trying to use my old Simple Viewer 1.7 source code to show video. OK, in fact a SWF containing FLV.
(I still use 1.7 code because I have customized the code quite a lot and it would be heavy to transfer all modifications to 1.8 code…).

Anyway :
- It's OK without skin (skin are used to play-stop-… the FLV)
- it has bad dimensions if I use a skin with 1.7 -> see it here : http://cjoint.com/?jiv7cNNvPE
- it's OK with 1.8 the first time it's loaded -> see it here http://cjoint.com/?jiwbwVwETf. But after we browse through other images and come back : it has a wrong size interpretation -> see it here http://cjoint.com/?jiwdsdBOFe

Where do I have to modify 1.7 code to make it work ?…
Or a way avoid using skins ?…
Any help from a Guru or from God Felix himself ?
wink

Re: Why does my swf has wrong dimensions if I use a skin ?

it's OK with 1.8 the first time it's loaded -> see it here http://cjoint.com/?jiwbwVwETf. But after we browse through other images and come back : it has a wrong size interpretation

Not sure why this is happening. It's probably a timing issue due the way the FLVPlayback component initializes it's size. Can you hardcode the FLVPlayback component size in your video SWF? Or you could listen for the iniitlaization events coming form the component and then resize it.

If anyone has a solution to this, please let us know.

Felix Turner
SimpleViewer Support Team.

Re: Why does my swf has wrong dimensions if I use a skin ?

I manage the first problem (wrong FLV size on opening) by creating a first frame with a button to play the FLV (I'll try then with initialization events because it's quite ugly now). It works.

I still have 1 problems :

- when I load another image from the gallery my FLV still plays in background… How could I unload the SWF ?
… I still use 1.7 version  wink

Thanks a lot

Re: Why does my swf has wrong dimensions if I use a skin ?

In fact I have 2 problems :
- my FLV stills plays when I have left to other images in Simple VIewer
- if I come back I still get the bad dimensions seen there : http://cjoint.com/data/jiv7cNNvPE.htm

It's why I think that acting on the SWF (containing the FLV) when another image is loading in the display area should circumvent these remaining problems…

Your help is very welcome  :oops:

Re: Why does my swf has wrong dimensions if I use a skin ?

Felix, in this post http://www.airtightinteractive.com/foru … php?t=4921 you advised Louisa to add in the showImage() function :
mLoader_mc.gotoAndPlay(1);

Unfortunatly in the 1.7 version, if I have a "showImage() function" in viewer.as, I don't have any "mLoader_mc"

Please…
What could it be ?
:cry:

Re: Why does my swf has wrong dimensions if I use a skin ?

I tryed to command directly the FLV from Simple Viewer with :

mcLoader.stream.pause(true);

(I used NetConnection NetStream now) but it doesn't work.

Any help from a Guru ?
What would be the Magic Formula ?