flash制作天气预报

最开始想用google的weather api,http://www.google.com/ig/api?weather=shanghai,做到最后,本地实现了,但传上去发现google并不允许flash跨域读取xml,没办法,只能另外寻找合适的xml数据源。yahoo weather 也有提供api,http://weather.yahooapis.com/forecastrss?w=2151849&u=c,但是实用数据全部以html的格式放在xml中,无法自定义样式,所以也只能作罢。 Read More

简易flash相册一个

很简单的一个相册.
加入了一个动态文本,设变量为num.初始为0;
下一帧按钮的actionScript:
[code]
on (release) {
nextFrame();
if (num<4) {
num++;
} else {
num = 4;
}
}[/code]
上一帧按钮的actionScript:
[code]
on (release) {
prevFrame();
if (num>0) {
num--;
} else {
num = 0;
}
}[/code]