Page 1 of 1

Website and YoWindow

Posted: Mon Mar 28, 2011 2:31 pm
by sid1939
Hi,
I am having problems with my Landscape showing on my Website can anyone please advise on what I may be doing wrong. All I get on my site is the moving clouds no Landscape which indicates to me that the image is incorrect in some way. The Landscape works all OK on my PC . On my site I have put the XML file in the root directory, as shown here.
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cros ... policy.dtd">
<cross-domain-policy>
<allow-access-from domain="http://www.sidneyharbour.btinternet.co.uk" secure="true"/>
</cross-domain-policy>

I have changed the PNG file to a SWF and uploaded my Landscape folder, I am quit sure that all file names and extension are correct. My coding appears as such.

<div style="width:220px; height:150px;">
<div style="width:220px; height:150px;">
<object type="application/x-shockwave-flash" data="http://swf.yowindow.com/wimo/hpPal/hpPal.swf" width="220" height="150">
<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:2640354&location_name=Peterborough&landscape=http://www.sidneyharbour.btinternet.co. ... _bar=false"
/>

<a href="http://yowindow.com?client=widget&link=stub"
style="width:220px;height:150px;display: block;text-indent: -50000px;font-size: 0px;background:#DDF url(http://yowindow.com/img/logo.png) no-repeat scroll 50% 50%;"
>Desktop weather</a>
</object>

One thing that I am unsure about in the instructions to convert a PNG file to a SWF file is this :-
was: <data src="img/colosseum.png" horizonLevel="735">
new: <data src="img/colosseum.swf" horizonLevel="735">
I cannot see where the reference "data src" appears in the coding.
Many thanks for taking the time to read this.
Best Regards,
Sid.

Re: Website and YoWindow

Posted: Mon Mar 28, 2011 8:22 pm
by ikarus1969
Hi Sid!

At least your crossdomain.xml is not correct.

You wrote:
sid1939 wrote:On my site I have put the XML file in the root directory, as shown here.
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cros ... policy.dtd">
<cross-domain-policy>
<allow-access-from domain="http://www.sidneyharbour.btinternet.co.uk" secure="true"/>
</cross-domain-policy>
The domain which is allowed to access the webserver with your site has to be changed according to this post from Pavel: http://yowindow.com/forum/viewtopic.php ... t=10#p9698

To use your swf-file you simply have to use the path to your swf-file in the ywl-configuration file as the "src".

Hope this helps.

Re: Website and YoWindow

Posted: Tue Mar 29, 2011 9:28 am
by Don
Hello Sid,

After you fix your crossdomain.xml file you will also need to correct the errors (highlighted in red) in this line of the widget code:

<param name="flashvars" value="location_id=gn:2640354&location_name=Peterborough&landscape=http://www.sidneyharbour.btinternet.co.uk/test.htm/landscape/yo_wx.ywl&;time_format=24&unit_system=metric&background=#FFFFFF&copyright_bar=false" />

test.htm/ is not part of the path to yo_wx.ywl and &; should be &

Corrected code:

Code: Select all

<param name="flashvars" value="location_id=gn:2640354&location_name=Peterborough&landscape=http://www.sidneyharbour.btinternet.co.uk/landscape/yo_wx.ywl&time_format=24&unit_system=metric&background=#FFFFFF&copyright_bar=false" />
The data tag is in your yo_wx.ywl file.

Don

Re: Website and YoWindow

Posted: Wed Mar 30, 2011 6:45 pm
by sid1939
Hi Ikarus and Don,
Many thanks for your replies to my query and for the help in them, great! I have now the PNG file working all OK, but as in the instructions it does take a long,long time to load. I tried several times over the last two days to convert to a SWF file using the YoWindow conversion tool but on each occasion I ended with just a blank page, could not get it working it seemed to time out after 10 mins or so. I therefore converted using another program. Changed the YWL file and uploaded as well as the SWF file and the New Crossdomain.XML file as in Pavel posting.
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cros ... policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*.yowindow.com" secure="true"/>
<allow-access-from domain="*.gmodules.com" secure="true"/>
</cross-domain-policy>
Now I have a strange picture on my site ,the top half above the Horizon Level is correct," I have some branches of a tree there". the lower half " no Picture"
Does the conversion of the file have to be made in YoWindow file converter? As I am still trying to learn.
Best regards,Sid.

Re: Website and YoWindow

Posted: Wed Mar 30, 2011 7:19 pm
by ikarus1969
Hi Sid,

it seems as i if the conversion failed somehow (stopped after the first few lines).
Could you please upload the png-file here so we can make our own test(s) with converting it to swf?

Edit: i just found it on your site (http://www.sidneyharbour.btinternet.co. ... _yo_wx.png) - no need to upload it here anymore!

Re: Website and YoWindow

Posted: Wed Mar 30, 2011 7:49 pm
by ikarus1969
The PNG-file you are using is a really huge file (2800x2041 and 13,4MB in size)!
If you only want to use it in the size as shown on your test-page i recommend make it smaller.

I did reduce resolution to a quarter the size (700x510) and got a file size of 661,9 KB.

When i tried to convert it to SWF with the YoWindow converter i get some strange artefacts.

I attach both the (smaller) PNG and the SWF i get as a result of the YoWindow-converter - can anyone confirm this or even tell me the reason for the stranmge artefacts/colors? :
The source (png reduced in size)
The source (png reduced in size)
yo_yo_wx - a quarter the size.png (661.97 KiB) Viewed 6996 times

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


Re: Website and YoWindow

Posted: Wed Mar 30, 2011 9:37 pm
by sid1939
Hi Ikarus,
Once again my thanks for pointing me in the right direction. I followed your advice and reduced the size of my PNG Image converted it all Ok on YoWindow and uploaded all OK. All working fine now. I really can make no comment on the brilliant colours that you have on the SWF Image as I am still in the learning stage. I have found that strange things can happen.
Best Regards and my thanks once again.
Sid.

Re: Website and YoWindow

Posted: Wed Mar 30, 2011 9:48 pm
by hermanz
Hi :wink:

there was no transparant in the picture
I have have reduced the original to 1400 x 1000 and converted to swf.

gr.
Herman :lol: