png to swf image conversion

Any questions? Any answers?
Post Reply
zorbas2

png to swf image conversion

Post by zorbas2 »

I did this conversion twice, but result is allways a white sky - allthough it is transparent in the png.
If I try to load the original png in the web widget, the result is a complete white pic.
Why is that?? Help please!!

http://www.agnik.de/weather.php
the original png
the original png
yoagnik.png (428 KiB) Viewed 6854 times
User avatar
par
Posts: 8736
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: png to swf image conversion

Post by par »

The conversion has worked for me.
I wonder why it has failed in your case.
I have attached the result swf file.
http://www.agnik.de/images/yoagnik.swf is not opened inside YoWindow because you are passing an SWF file, but you need to pass .ywl file.
Do you need help with .ywl file construction?
Attachments

[The extension swf has been deactivated and can no longer be displayed.]

Get YoWindow weather app for your phone or tablet.

Image Image Image
zorbas2

Re: png to swf image conversion

Post by zorbas2 »

Hmm -seems I got the same result. (lower compression)
But what else did I wrong?? Here my code:
(Seems like I need help with the .ywl file as there is none working yet):

Code: Select all

<landscape name="Agios Nikolaos" type="picture" id="myid">

	<data src="yoagnik.swf" horizonLevel="900">

<about>AgNik Harbour</about>

    </data>

</landscape>

Code: Select all

<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" width="600" height="400">
    	<param name="movie" value="http://swf.yowindow.com/wimo/hpPal/hpPal.swf"/>
    	<param name="allowfullscreen" value="true"/>
    	<param name="wmode" value="opaque"/>
    	<param name="bgcolor" value="#FFFFFF"/>
    	<param name="flashvars" 
    	value="location_id=gn:261604&location_name=Ag.Nikolaos&time_format=24&unit_system=metric&background=#FFFFFF&copyright_bar=false&landscape=http://www.agnik.de/images/yoagnik.swf"
    />
        <a href="http://yowindow.com?client=widget&link=stub"
        style="width:600px;height:400px;display: block;text-indent: -50000px;font-size: 0px;-moz-background-clip:border;-moz-background-inline-policy:continuous;-moz-background-origin:padding;background:#DDF url(http://yowindow.com/img/logo.png) no-repeat scroll 50% 50%;"
        >Weather widget</a>
    </object>
If I put .ywl above, nothing loads at all...

[The extension swf has been deactivated and can no longer be displayed.]

User avatar
par
Posts: 8736
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: png to swf image conversion

Post by par »

.ywl looks good assuming the horizon level is correct.
The problem is that you refer .swf in the widget markup, but to make the landscape displayed you need to pass a link to .ywl file.


NOW, bad
landscape=http://www.agnik.de/images/yoagnik.swf

MUST BE, good
landscape=http://www.agnik.de/images/yoagnik.ywl
Get YoWindow weather app for your phone or tablet.

Image Image Image
zorbas2

Re: png to swf image conversion

Post by zorbas2 »

Hmm, think I got all correct now,

In the .ywl file the src is the .swf file.
In the call the landscape is set to the .ywl file.

But now nothing loads :?

Thanks for your help!! :)
User avatar
par
Posts: 8736
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: png to swf image conversion

Post by par »

You are welcome!
The landscape is not loaded because there is one more thing required to make it work.
You need to put crossdomain.xml file on your server.
Our tutorial explains how to do it properly.

http://yowindow.com/widget_and_landscape
Get YoWindow weather app for your phone or tablet.

Image Image Image
zorbas2

Re: png to swf image conversion

Post by zorbas2 »

Oh, I did that - here it is:
http://www.zorbas.de/crossdomain.xml
Thing is, that agnik.de is a subfolder of http://www.zorbas.de/agnik/
zorbas2

Re: png to swf image conversion

Post by zorbas2 »

Made it! that was the problem: Call is now landscape=http://www.zorbas.de/agnik/images/yoagnik.ywl and it works!
User avatar
par
Posts: 8736
Joined: Mon Sep 21, 2009 11:56 am
Name: Pasha
Location: Saint-Petersburg, Russia
Contact:

Re: png to swf image conversion

Post by par »

Hoorray! :)
Get YoWindow weather app for your phone or tablet.

Image Image Image
Post Reply