Visualizzazione dei risultati da 1 a 3 su 3
  1. #1

    "../:var" deprecato in Flash 8! conversione?

    Ciao a tutti,
    mi trovo a dover metter mano ad un fla sviluppato in Flash MX, e doverlo convertire in Flash 8 / AS2.

    A forsa di rimaneggiamenti, ho aggiornato tutto il codice deprecato, e mi rimane solo più una riga di codice che mi genera errore: la seguente

    ticker = ../../:tick


    l'output di errore è questo:

    **Error** Symbol=container_sub, layer=Livello 1, frame=1:Line 21: Operator '=' must be followed by an operand
    ticker = ../../:tick



    Come posso risolvere?

    Grazie mille!

  2. #2
    Utente di HTML.it L'avatar di negatyve
    Registrato dal
    Feb 2001
    Messaggi
    9,479
    codice:
    ticker = _parent._parent.tick;

  3. #3
    Avevo già provato, non da più l'output di errore ma non va lo stesso...
    Ecco di seguito il codice della pagina incriminata (made in Sephiroth)

    // *************
    // BUILD MENU
    // *************
    stop();
    _visible = true;
    var i = 0;
    if (remember == true) {
    loadState();
    }
    while (i<EntireMenu.length) {
    this.createEmptyMovieClip('main_'+i, 1000+i);
    var mainItem = this['main_'+i];
    mainItem.createEmptyMovieClip('clip', 1);
    var txt = '';
    for (var l = 0; l<EntireMenu[i][1][0].length; l++) {
    txt += EntireMenu[i][1][0][l]+(l+1<EntireMenu[i][1][0].length ? "\n" : "");
    }
    var loZero = mainItem._x;
    // adding text to the clip
    placeText(mainItem.clip, txt, Options.MAINCOLOR, Options.MAINOVER, 0, 2);
    // -------------------
    // Clip button fn
    // -------------------
    mainItem.clip.onRollOver = function() {
    this.txt.setTextFormat(this.formatOver);
    };
    mainItem.clip.onRollOut = mainItem.clip.s_button.onReleaseOutside=function () {
    this.txt.setTextFormat(this.format);
    };
    mainItem.clip.onRelease = function() {
    if (this.callback != false) {
    eval(this.calltarget+'.'+this.callback)(this.callA rg);
    }
    if (this.Page != false && this.Page != '') {
    // changelog 18.05.2002
    getURL(this.Page, this.Target);
    //return;
    }
    if (this._parent.container_sub.controller == undefined) {
    return;
    }
    if (this._parent._parent.allowMultiple == "no") {
    tellTarget (this._parent._parent.itemOpened) {
    ticker = _parent._parent.tick;
    ticker._rotation = ticker._rotation == 90 ? 0 : 90;
    }
    var me = this._parent.container_sub.controller;
    if (this._parent._parent.itemOpened == '' || this._parent._parent.itemOpened == undefined) {
    this._parent._parent.itemOpened = me;
    this._parent._parent.itemOpened.endSeq = false;
    this._parent._parent.itemOpened.force = true;
    }
    var item = this._parent._parent.itemOpened;
    item.go = false;
    item.waiting = true;
    item.nextToOpen = me;
    this._parent._parent.itemOpened = "";
    delete (item);
    delete (me);
    } else {
    // ver 2.3.1 modify
    this._parent.container_sub.controller.go = !this._parent.container_sub.controller.go;
    this._parent.container_sub.controller.waiting = true;
    this.ticker = this._parent.tick;
    this.ticker._rotation = this.ticker._rotation == 90 ? 0 : 90;
    }
    };
    // ----- end release ----- //
    // submenu
    if (EntireMenu[i][1][1].length>0) {
    mainItem.attachMovie('container_sub', 'container_sub', -2);
    var theCont = mainItem.container_sub.controller;
    for (var z = 0; z<EntireMenu[i][1][1].length; z++) {
    var theLink = EntireMenu[i][1][1][z][0][0];
    var theTarget = EntireMenu[i][1][1][z][0][1];
    var callback = EntireMenu[i][1][1][z][0][2];
    var callTarget = EntireMenu[i][1][1][z][0][4];
    var callArg = EntireMenu[i][1][1][z][0][3];
    var theLabel = '';
    for (var jj = 0; jj<EntireMenu[i][1][1][z][1].length; jj++) {
    theLabel += EntireMenu[i][1][1][z][1][jj]+(jj+1<EntireMenu[i][1][1][z][1].length ? "\n" : "");
    }
    theCont.createEmptyMovieClip('sub_'+z, -(600+z));
    var subItem = theCont['sub_'+z];
    placeText(subItem, theLabel, Options.SUBCOLOR, Options.SUBOVER, 0, 2);
    subItem.thePage = theLink;
    subItem.theTarget = theTarget;
    subItem.callback = callback;
    subItem.calltarget = callTarget;
    subItem.callArg = callArg;
    theCont._x = Options.INDENT;
    subItem._y = (theCont['sub_'+(z-1)]._height+theCont['sub_'+(z-1)]._y);
    subItem.onRollOver = function() {
    this.txt.setTextFormat(this.formatOver);
    };
    subItem.onRollOut = subItem.onReleaseOutside=function () {
    this.txt.setTextFormat(this.format);
    };
    subItem.onRelease = function() {
    if (this.callback != false) {
    eval(this.calltarget+'.'+this.callback)(this.callA rg);
    }
    if (this.thePage != false && this.thePage != '') {
    getURL(this.thePage, this.theTarget);
    }
    this._parent._parent._parent._parent.saveState(thi s._parent._parent._parent._name.substring(5, 7));
    };
    }
    theCont.lineStyle(0, parseInt(Options.LINECOLOR, 16), 100);
    theCont.moveTo(loZero-theCont._x, theCont._height+5);
    theCont.lineTo(Options.LINEWIDTH-theCont._x, theCont._height+5);
    // menu opening velocioty
    // sub sliding position
    thecont.velocity = Options.VELOCITY;
    theCont.yfin = theClip._height;
    mainItem.container_sub._y = mainItem.clip._height;
    mainItem.container_sub.controller.yiniz = -theCont._height;
    } else {
    // attach line
    mainItem.lineStyle(0, parseInt(Options.LINECOLOR, 16), 100);
    mainItem.moveTo(0, mainItem._height+5);
    mainItem.lineTo(Options.LINEWIDTH, mainItem._height+5);
    }
    var space = Options.HSPACE;
    var prevClip = this['main_'+(i-1)];
    var thisClip = this['main_'+i];
    var Previous = this['main_'+(i-1)].clip.getBounds(_root);
    mainItem._y = prevClip._y+prevClip.clip._height+Number(space);
    mainItem.referral = this['main_'+(i-1)];
    // ------ clip function --- //
    mainItem.clip.temp = mainItem.referral.container_sub.controller.yiniz;
    mainItem.clip.mainTemp = mainItem.referral._y;
    mainItem.tick._rotation = mainItem.container_sub.controller.opened == true ? 90 : 0;
    mainItem.container_sub.controller.go = mainItem.container_sub.controller.opened == true ? true : false;
    mainItem.clip.Page = EntireMenu[i][0][0] != undefined ? EntireMenu[i][0][0] : false;
    mainItem.clip.Target = EntireMenu[i][0][1];
    mainItem.clip.callback = EntireMenu[i][0][2];
    mainItem.clip.callTarget = EntireMenu[i][0][4];
    mainItem.clip.callArg = EntireMenu[i][0][3];
    mainItem.clip._x += 15;
    // --------------------------- //
    mainItem.clip.onEnterFrame = function() {
    this._parent._y = this.y+(this._parent.referral.container_sub.contro ller._y-this.temp)+(this._parent.referral._y-this.mainTemp);
    };
    mainItem.clip.y = mainItem._y;
    // tick
    if (EntireMenu[i][1][1].length) {
    mainItem.attachMovie('main_tick', 'tick', 10+i);
    main_tick = mainItem.tick;
    main_tick._xscale = main_tick._yscale=(Options.FONTSIZE/12)*100;
    main_tick._x = 8;
    main_tick._y = ((Options.FONTSIZE/12)*9)+Number(Options.TICKOFFSET);
    }
    if (i == openedNumber) {
    mainItem.container_sub.controller.opened = true;
    mainItem.tick._rotation = 90;
    var itemOpened = mainItem.container_sub.controller;
    }
    i++;
    }


    Grazie mille!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.