1.å¦ä½åå°çèªè½¬flashå¨ç»
2.flashç¹åå°å¾ä»£ç
3.ç¨Flashå¶ä½ä¸ä¸ªå°å¾
4.flashçµåå°å¾
å¦ä½åå°çèªè½¬flashå¨ç»
åå°çèªè½¬flashå¨ç»çæ¹æ³å¦ä¸ï¼
1ãé¦å æ¾å¼ å°å¾ï¼é¿æ¹å½¢çï¼æ好åPSä¸ä¸ï¼æå°å¾è¿æ¥èµ·æ¥ï¼åæä¸¤å¼ è¿ä¸èµ·çï¼ç¶åå¯¼å ¥å°èå°ï¼è½¬æ¢æå 件âå°å¾âã
2ãå¨èå°ä¸æ°å»ºä¸¤ä¸ªå¾å±ï¼ä»ä¸å°ä¸ä¾æ¬¡ä¸ºï¼èæ¯å±ï¼å°å¾å±ï¼é®ç½©å±ã
3ãç¶åå¨âèæ¯å±âä¸ç»ä¸ä¸ªèè²ççï¼é¢è²å¯ä»¥åææ¾å°çï¼æè¿ä¸ªç转æ¢æå 件ï¼ç¶åç¹å»è¿ä¸ªçï¼æ°´å¹³ä¸é½ï¼åç´ä¸é½ãç¶ååå»çä½ï¼æä¸æ¡è¾ å©çº¿å°âçä½âå 件æ¹æ¡çå³è¾¹çè¾¹ï¼æ¾å°å¾æ¶ç¨å¾å°ã
4ãæ¥çç¹å»å为âé®ç½©å±âé£ä¸ªå¾å±ï¼ä»åºéæçåæå°èå°ä¸ï¼æ°´å¹³ä¸é½ï¼åç´ä¸é½ã
5ãæ¥çåå°å°âå°å¾å±âæ¾å ¥å 件âå°å¾âï¼å°è¯¥å 件åç´ä¸é½ï¼å¹¶æä½shiftå°è¯¥å 件çå³ä¾§è¾¹å¯¹åæ¥éª¤3ä¸çè¾ å©çº¿ã
6ãåå«å¨ä¸ä¸ªå¾å±ç第å å帧æå ¥ä¸ä¸ªæ®é帧ï¼å°èæ¯å±éå®ï¼å°å°å¾å±ç第帧转æ¢ä¸ºå ³é®å¸§ï¼å¹¶æä½shift移å¨è¯¥å¾å±ä¸çå°å¾ï¼ç´è³è¯¥å°å¾çä¸çº¿å¯¹åææçè¾ å©çº¿ï¼ç¶ååå»å°å¾å±ç第ä¸å¸§ï¼éæ©å±æ§é¢æ¿éçè¡¥é´ï¼å建ï¼å¨ç»è¡¥é´ï¼æä¸Enterçä¸å¨ç»æ¯å¦æåã
7ãç¶åå³é®åå»å¾å±åºçâé®ç½©å±âéæ©âé®ç½©å±âï¼ä¸é¢çå°å¾å±èªå¨æ为被é®ç½©ã
8ãå¨ç»å®æãæctrlå enteré¢è§ï¼æshiftå ctrlå altå S导åºå½±çå³å¯ã
flashç¹åå°å¾ä»£ç
è¿ä¸ªè¾å®¹æï¼å ¬å¸è¾å°çè¯ç¨TXTå°±å¯ä»¥äº flashéé¢loadè¿å» å ·ä½æ¥çloadvars
TXTéé¢è¿æ ·å province1=å京&company1=xxå ¬å¸&company2=yyå ¬å¸
å°±æ¯åéå å¼å°±è¡äºï¼æ³¨ææ ¼å¼
ç¨å¤ç¹çè¯ç¨XMLæMYSQL 代ç è¾é¿ ä¸åäº ^-^
ç¨Flashå¶ä½ä¸ä¸ªå°å¾
1ãCtrl+Rå¾çå¯¼å ¥èå°ï¼å°ææ¡£å±æ§å¤§å°å¹é 为å 容ï¼æ°å»ºä¸å±âæé®å±âï¼ç¨å·åé便æ¶æ¶ï¼æ¶å®ä¸ä¸ªå°±è½¬æ¢ä¸ºå 件ï¼åå®å个æé®ï¼ææé®è½¬æ¢ä¸ºéæï¼å®ä¾å为ï¼btn1,地图动画mgview源码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çµåå°å¾
=è¿ç®ç¬¦çç¡®æ¯ä½ çå ¶ä¸ä¸ä¸ªé误.
=æ¯èµå¼è¿ç®ç¬¦,ä»çæææ¯æå ¶å³è¾¹ç表达å¼çå¼èµäºå°å·¦è¾¹çå¯å对象ä¸å».èè¿ä¸ªè¿ç®ç¬¦æ¬èº«è¿å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ææ¡£.