QQ空间吧-蝴蝶社区

查看完整版本: 右键问题..............

╄━→.︵.輪回 2008-4-12 13:07

右键问题..............

偶在学习右键彩旦..偶把代码放进去那 可不能用 在是为什么
给偶看看问题出在那..

function tab()
{
} // End of the function
function url1()
{
    getURL("http://user.qzone.qq.com/249710054/infocenter", "_blank");
} // End of the function
function url3()
{
    getURL("http://user.qzone.qq.com/249710054/infocenter", "_blank");
} // End of the function
function url4()
{
    getURL("http://user.qzone.qq.com/249710054/infocenter", "_blank");
} // End of the function
function quit1()
{
    fscommand("quit");
} // End of the function
aiyi_text = "麦子.原创";
aiyi_len = aiyi_text.length;
for (n = 0; n < aiyi_len; n++)
{
    _root.createEmptyMovieClip("aiyiT" + n, n);
    t = aiyi_text.substr(n, 1);
    with (_root["aiyiT" + n])
    {
        createTextField("aiyi_t", 2, 0, 0, 20, 20);
        aiyi_t.text = t;
    } // End of with
} // end of for
startDrag(aiyiT0, true);
_root.onLoad = function ()
{
    speed = 3;
};
_root.onEnterFrame = function ()
{
    for (aiyi = 1; aiyi <= _root.aiyi_len; aiyi++)
    {
        _root["aiyiT" + aiyi]._x = _root["aiyiT" + aiyi]._x + (5 + (_root["aiyiT" + (aiyi - 1)]._x - _root["aiyiT" + aiyi]._x) / speed);
        _root["aiyiT" + aiyi]._y = _root["aiyiT" + aiyi]._y + (_root["aiyiT" + (aiyi - 1)]._y - _root["aiyiT" + aiyi]._y) / speed;
    } // end of for
};
_root.Mouse.hide();
var expandmenu = new ContextMenu();
expandmenu.hideBuiltInItems();
var not_set_yet;
var $url1 = new ContextMenuItem("249710054", url1);
var $tab4 = new ContextMenuItem("249710054", tab, true, true, true);
var not_set_yet;
var $tab4 = new ContextMenuItem("尊重原创.鄙视翻版", tab, true, true, true);
var not_set_yet;
var $url4 = new ContextMenuItem("QQ:249710054", url4);
var not_set_yet;
var not_set_yet;
var $tab5 = new ContextMenuItem("爱我的 请继续 ", tab, true, true, true);
var $tab6 = new ContextMenuItem("恨我的 别放弃 ", tab, false, true, true);
expandmenu.customItems.push($tab1, $url1, $tab2, $url2, $tab3, $url3, $tab4, $url4, $tab8, $url15, $tab5, $tab6, $tab7);
expandmenu.onSelect = menuHandler;
_root.menu = expandmenu;
loadMovieNum("http://myhome.naver.net/brown444/swish/s17-m.swf", 1);

ming 2008-4-12 14:07

你的是什么as编码啊~乱一团的~
先确定flash的版本是8.0的,然后里面添加一个图层,用鼠标点下新建的图层,按点一下下面的动作,然后把复制好的代码粘贴到空白处【即是:把代码直接放到新建立的Flash的第一帧】!如果语法无错误就导出就可OK了!

下面最简单的右键菜单编码

右键菜单 = new ContextMenu();
右键菜单.hideBuiltInItems();
右键菜单.customItems.push(new ContextMenuItem('QQ空间吧-蝴蝶社区', dj_menu0, false));function dj_menu0() {
getURL('http://www.qqz8.com/','_blank');}
_root.menu = 右键菜单;

[align=center][flash]http://ming.3126.net/Flash/as001.swf[/flash][/align]
页: [1]
查看完整版本: 右键问题..............