您好請問,出現 This application is running on a version of Adobe AIR which is no longer supported. Please install the latest version of Adobe AIR from h踢踢屁://www.adobe.com/go/getair and then try again. 依指示 安裝新版後程式就不能使用,請問為什麼會這樣呢?謝謝
var mc:MovieClip = new MovieClip() var sqaure:Shape = new Shape(); square.graphics.beginFill(0xfxcc00); square.graphics.lineStyle(2,0x000000); square.graphics.drawRect(0,0,200,200); square.graphics.endFill(); addChild(square);
h踢踢屁://www.nshen.net/blog/article.asp?id=613
Please install the latest version of Adobe AIR from h踢踢屁://www.adobe.com/go/getair and then try again. 依指示
安裝新版後程式就不能使用,請問為什麼會這樣呢?謝謝
to longsir: 确定要不加班才行哦..+你了
游戏上传到今天共5天,收入是$0.75
邮箱lostjoker@126.com 麻烦邮份过来吧 谢谢
由于你是双击mcA进去才看到的nestedMC ,很明显是nestedMC包含在了mcA里
此时mcA就是nestedMC的父级 ,如果要从nestedMC的时间轴上,访问父级就要写this.parent
而主场景又是mcA的父级,要想从nestedMC里访问主场景,自然就要再加一个parent ,就变成了this.parent.parent
var myStage:MovieClip = this.parent.parent as MovieClip;
myStage就是主场景了,从这里访问mcB就是myStage.mcB 。
如果你够聪明那你就已经知道在mcA的时间轴里写代码应该怎么写了
var myStage:MovieClip = this.parent as MovieClip;
画一个矩形转为nestedMC影片剪辑,实例名改为nestedMC。
再画个矩形,与nestedMC同时转为mcA影片剪辑,实例名改为mcA.
再画一个矩形,转为mcB影片剪辑,实例名改为mcB.
双击进入mcA时间轴,再双击进入nestedMC时间轴,添加代码:
var myStage:MovieClip = this.parent.parent as MovieClip;
myStage.mcB.scaleX=1.5;
mcB的X就变了,为什么要加在nestedMC时间轴才得,而加在其它时间轴双不得?
这段代码是什么意思“this.parent.parent as MovieClip” ???
mcB和mcA是同一级别不?
nestedMC是包含在mcA里,还是mcA包含在nestedMC里??
请用通俗的语句解释一下,谁叫我买了你的书,你可要负点责任- -!
谢谢了
我英语不好,好多关键词不知道是什么意思。只会照着写,然后看结果,折磨语句,好痛苦啊。
import flash.display.DisplayObject;
import flash.display.Graphics;
import flash.display.Shape;
import flash.display.MovieClip;
var mc:MovieClip = new MovieClip()
var sqaure:Shape = new Shape();
square.graphics.beginFill(0xfxcc00);
square.graphics.lineStyle(2,0x000000);
square.graphics.drawRect(0,0,200,200);
square.graphics.endFill();
addChild(square);
我看不明
var mc:MovieClip = new flash.display .MovieClip();
import flash.display .DisplayObject;
import flash.display .Graphics;
import flash.display .Shape;
var sqaure:Shape = new Shape;
square.graphics.beginFill(0xfxcc00);
square.graphics.lineStyle(2,0x000000);
square.graphics.drawRect(0,0,200,200);
square.graphics.endFill();
addChild(square);
这里好多错的,我不知道怎么改
是导入出错吗?