1.ç¨Flashå¶ä½ä¸ä¸ªå°å¾
2.flash åå°å¾
3.flashçµåå°å¾
4.我是地地图搞flash的,我做了一个地图编辑器,图源我可以在swf文件中画路线,地地图布谷直播源码是什么请问如何对操作保存
5.flashç¹åå°å¾ä»£ç
ç¨Flashå¶ä½ä¸ä¸ªå°å¾
1ãCtrl+Rå¾çå¯¼å ¥èå°ï¼å°ææ¡£å±æ§å¤§å°å¹é 为å 容ï¼æ°å»ºä¸å±âæé®å±âï¼ç¨å·åé便æ¶æ¶ï¼æ¶å®ä¸ä¸ªå°±è½¬æ¢ä¸ºå 件ï¼åå®å个æé®ï¼ææé®è½¬æ¢ä¸ºéæï¼å®ä¾å为ï¼btn1,图源btn2ããã2ãCtrl+F8æå ¥ä¸MCï¼Ctrl+Læå¼åºï¼å°å¾çæå ¥è¯¥MCä¸ï¼Ctrl+Kï¼è°åºå¯¹é½ï¼ç¸å¯¹äºèå°ï¼æ°´å¹³ä¸ãåç´ä¸ãéä¸MC第帧ï¼F6æå ¥å ³é®å¸§ï¼éä¸ç¬¬å¸§çå¾çå°å®½é«åºå®ï¼æQé®ï¼è°å°ä»»æåå½¢å·¥å ·ï¼å°å®½æ¹ä¸º3åãç¶åå建补é´å¨ç»ã
3ãå¨MCæ°å»ºä¸ä»£ç å±ï¼å¨ç¬¬å¸§ä½ç½®æå ¥å ³é®å¸§ï¼åå ¥ä»£ç ï¼stop(); éä¸è¿ä¸¤å±ç帧ï¼å¤å¶1-帧ï¼å¾åç²è´´å¸§ï¼ä¸ç´ç²9次ãéæ©å¾çé£å±ï¼å¨Nå帧çä½ç½®ä¸ï¼è°æ´å¾ï¼å°åå¸æ¾å¨èå°ä¸é´ã
4ãå¨MC代ç å±ä¸å+1帧ä½ç½®ä¸ç»è¯¥å¸§å个å称âæ¦æâï¼â延å®âããã
5ãåå°ä¸»åºæ¯ï¼æ°å»ºä¸å±ï¼å°MCæå°èå°ï¼å®ä¾å为mc1ï¼ç¸å¯¹èå°ï¼æ°´ä¸ï¼åä¸ãç¶åå°ç¬¬ä¸å±ä¸çå¾ç转æ¢ä¸ºå 件MCï¼å®ä¾å为mc2ã
6ãå°mc1æå¨å±æå°æåºå±ï¼ç¶åæ°å»ºä¸å±ä»£ç å±ï¼åå ¥ä¸é¢ä»£ç ï¼
onEnterFrame = function () {
_root.createTextField("mytxt", 0, 0, 0, 0, 0);
mytxt.autoSize = true;
var myformat = new TextFormat();
myformat.font = "å®ä½";
myformat.size = ;
myformat.color = 0xff;
myformat.bold = true;
mytxt.text = "æä½é¼ æ ç¹å»æå¨åºåå¯æ¾å¤§å°å¾ï¼å¹¶å¯ææ³å°å¾ï¼æ¾å¼é¼ æ å°å¾è¿åã";
mytxt.setTextFormat(myformat);
};
//以ä¸æ¯ææ¬æ¡ï¼ç¨æ¥è¯´æ
btn1.onPress = function() {
mc2._alpha = 0;
mc1._alpha = ;
mc1.gotoAndPlay("æ¦æ");
startDrag("mc1");
};
btn2.onPress = function() {
mc2._alpha = 0;
mc1._alpha = ;
mc1.gotoAndPlay("延å®");
startDrag("mc1");
};
btn3.onPress = function() {
mc2._alpha = 0;
mc1._alpha = ;
mc1.gotoAndPlay("éå·");
startDrag("mc1");
};
btn4.onPress = function() {
mc2._alpha = 0;
mc1._alpha = ;
mc1.gotoAndPlay("æ¸å");
startDrag("mc1");
};
btn5.onPress = function() {
mc2._alpha = 0;
mc1._alpha = ;
mc1.gotoAndPlay("å¸é³");
startDrag("mc1");
};
btn6.onPress = function() {
mc2._alpha = 0;
mc1._alpha = ;
mc1.gotoAndPlay("å®é¸¡");
startDrag("mc1");
};
btn7.onPress = function() {
mc2._alpha = 0;
mc1._alpha = ;
mc1.gotoAndPlay("西å®");
startDrag("mc1");
};
btn8.onPress = function() {
mc2._alpha = 0;
mc1._alpha = ;
mc1.gotoAndPlay("åæ´");
startDrag("mc1");
};
btn9.onPress = function() {
mc2._alpha = 0;
mc1._alpha = ;
mc1.gotoAndPlay("æ±ä¸");
startDrag("mc1");
};
btn.onPress = function() {
mc2._alpha = 0;
mc1._alpha = ;
mc1.gotoAndPlay("å®åº·");
startDrag("mc1");
};
btn1.onRelease = function() {
mc2._alpha = ;
mc1._alpha = 0;
stopDrag();
};
btn2.onRelease = function() {
mc2._alpha = ;
mc1._alpha = 0;
stopDrag();
};
btn3.onRelease = function() {
mc2._alpha = ;
mc1._alpha = 0;
stopDrag();
};
btn4.onRelease = function() {
mc2._alpha = ;
mc1._alpha = 0;
stopDrag();
};
btn5.onRelease = function() {
mc2._alpha = ;
mc1._alpha = 0;
stopDrag();
};
btn6.onRelease = function() {
mc2._alpha = ;
mc1._alpha = 0;
stopDrag();
};
btn7.onRelease = function() {
mc2._alpha = ;
mc1._alpha = 0;
stopDrag();
};
btn8.onRelease = function() {
mc2._alpha = ;
mc1._alpha = 0;
stopDrag();
};
btn9.onRelease = function() {
mc2._alpha = ;
mc1._alpha = 0;
stopDrag();
};
btn.onRelease = function() {
mc2._alpha = ;
mc1._alpha = 0;
stopDrag();
};
è¦æºæ件ç½çéæ¾ä¸ï¼èªå·±ä¸ã
æåè¯å®è¦ç¨å°ï¼tt.load(...)
ç¶å估计ä¼ç¨å°æ°ç»: aa Array=new Array();
æåæ¾ç¤ºç¨ææ¬æ¡ï¼cc.text= ...
flash åå°å¾
1ï¼æ°å»ºâæ°å»ºå 件ï¼å½±çåªè¾ï¼æ件âå¯¼å ¥âå¾çï¼æç»å¶å¾å½¢ï¼å°±æ¯æä½ è¦ç§»å¨çæè°å°å¾æ¾è¿å»ï¼
2ï¼åå°åºæ¯1ï¼å°å½±çåªè¾ææ¾å°åºæ¯ä¸ï¼éæ©è¯¥å½±çåªè¾çå®ä¾ï¼å¨å±æ§é¢æ¿ä¸ï¼è¾å ¥è¯¥å½±çåªè¾çå称ï¼å¦âditu_mcâã
3ï¼å¶ä½ä¸ä¸ªç®å¤´å½¢ç¶çæé®ï¼éæ©è¯¥æé®ï¼å¨å¨ä½é¢æ¿ä¸è¾å ¥
on(press){ ditu_mc._x+=;}
ä¸é¢çé¾æ¥æ¯å¶ä½çå®ä¾ï¼ä¸ç¥æ¯å¦ç¬¦åä½ çè¦æ±
/d/deded5d2ffafcebea
flashçµåå°å¾
=è¿ç®ç¬¦çç¡®æ¯ä½ çå ¶ä¸ä¸ä¸ªé误.
=æ¯èµå¼è¿ç®ç¬¦,ä»çæææ¯æå ¶å³è¾¹ç表达å¼çå¼èµäºå°å·¦è¾¹çå¯å对象ä¸å».èè¿ä¸ªè¿ç®ç¬¦æ¬èº«è¿åtrue(åå ¥æå),æ以æ 论å¦ä½ä½ çæ¯ä¸ä¸ªifè¯å¥é½è½è§¦å,åé¢çstartDragè¦çåé¢çstartDrag,æ以å§ç»ææ为æåä¸ä¸ªstartDrag.
==ææ¯å¤æè¿ç®ç¬¦.
ä¸è¿ä½ ç代ç è¿æä¸ä¸ªé®é¢,å°±æ¯æ¯ä¸ªifåé½è·äºä¸ä¸ªelse.è¿æ ·ä½¿å¾åªè¦æä¸ä¸ªifä¸æ»¡è¶³,å°±åæ¢æå¨.ä½ çæåä¸ä¸ªå¤æç±äºæ²¡æ满足,æ以æ§è¡äºstopDrag,æ 论ä¹åè¿è¡è¿å 次startDrag,æåé½è¢«åæ¢äº.
æ以å¯ä»¥æ¹æ
if(mc_map._xscale==)
{
startDrag("", false,,,,);
}
else if(mc_map._xscale==)
{
startDrag("",false,,,,);
}
else if(mc_map._xscale==)
{
startDrag("",false,,,-,-);
}
else if(mc_map._xscale==)
{
startDrag("",false,,,-,-);
}
else if(mc_map._xscale==)
{
startDrag("",false,,,-,-);
}
else if(mc_map._xscale==)
{
startDrag("",false,,,-,-);
}
else
{
stopDrag();
}
ä¸è¿æ´ä¸è¬çè¿ç§æ åµåºè¯¥ä½¿ç¨switchè¯å¥.å ·ä½ç¨æ³å¯ä»¥åèhelpææ¡£.
我是搞flash的,我做了一个地图编辑器,地地图列表付费查看源码我可以在swf文件中画路线,图源android bugly sdk源码请问如何对操作保存
按下鼠标时开始添加侦听(假定你是地地图AS3.0开发):
stage.addEventListener(Event.ENTER_FRAME,addPoint);
function addPoint(midPos:Point):void
{
//------------
}
思路就是每隔一个很小的时间(比如ms)将当前鼠标所在的位置新建成Point(x,y)对象保存到一个数组里。鼠标抬起后删除侦听。图源
最后将这个数组保存到你的地地图数据库或什么地方。等再次使用的图源时候用这些点画出一条线来,平滑程度就看你保存的地地图点的个数了。
图源flashç¹åå°å¾ä»£ç
图源è¿ä¸ªè¾å®¹æï¼å ¬å¸è¾å°çè¯ç¨TXTå°±å¯ä»¥äº flashéé¢loadè¿å» å ·ä½æ¥çloadvars
图源TXTéé¢è¿æ ·å province1=å京&company1=xxå ¬å¸&company2=yyå ¬å¸
图源å°±æ¯åéå å¼å°±è¡äºï¼æ³¨ææ ¼å¼
图源ç¨å¤ç¹çè¯ç¨XMLæMYSQL 代ç è¾é¿ ä¸åäº ^-^
图源