Visualizzazione dei risultati da 1 a 5 su 5
  1. #1
    Utente di HTML.it L'avatar di Many17
    Registrato dal
    Sep 2002
    Messaggi
    324

    errore codice in flash8

    Ciao a tutti... ho questo codice per flash mx che serve per fare aprire delle popup con dimensioni che voglio io. Funziona perfettamente con flash mx, ma ho necessità di adattarlo per l'8.
    Ecco il codice:

    on (release) {
    nameWin = "preload"
    uUrl = "http://miosito.it/sito/card.htm";
    wdth = "740";
    hdth = "425";
    scrollbars = "yes";
    toolbar = "no";
    menubar = "no";
    resizable = "no";
    status = "no";
    location = "no";
    left = ("(screen.availWidth/2)-(" add wdth/2 add ");");
    top ="((screen.availHeight/2)-(" add hdth/2 add "))";
    getURL ("javascript:window.open('" add uUrl add "','" add nameWin add "','height =" add hdth add ",width=" add wdth add ",top='+" add top add "+',left='+" add left add "+',toolbar=" add toolbar add ",scrollbars=" add scrollbars add ",resizable=" add resizable add ",status=" add status add ",menubar=" add menubar add ",location=" add location add "'); void(0);");
    }

    I seguenti errori sono qui:

    **Error** Scene=Scene 1, layer=tasti, frame=1:Line 12: ')' expected
    left = ("(screen.availWidth/2)-(" add wdth/2 add ");");

    **Error** Scene=Scene 1, layer=tasti, frame=1:Line 13: Syntax error.
    top ="((screen.availHeight/2)-(" add hdth/2 add "))";

    **Error** Scene=Scene 1, layer=tasti, frame=1:Line 14: ')' or ',' expected
    getURL ("javascript:window.open('" add uUrl add "','" add nameWin add "','height =" add hdth add ",width=" add wdth add ",top='+" add top add "+',left='+" add left add "+',toolbar=" add toolbar add ",scrollbars=" add scrollbars add ",resizable=" add resizable add ",status=" add status add ",menubar=" add menubar add ",location=" add location add "'); void(0);");

    Total ActionScript Errors: 3 Reported Errors: 3

    Grazie per l'attenzione!

  2. #2
    Utente di HTML.it L'avatar di Many17
    Registrato dal
    Sep 2002
    Messaggi
    324
    ho risolto i primi 2 errori ora rimane questo

    **Error** Scene=Scene 1, layer=tasti, frame=1:Line 14: Syntax error.
    getURL '("(javascript:window.open('" add uUrl add "','" add nameWin add "','height =" add hdth add ",width=" add wdth add ",top='+" add top add "+',left='+" add left add "+',toolbar=" add toolbar add ",scrollbars=" add scrollbars add ",resizable=" add resizable add ",status=" add status add ",menubar=" add menubar add ",location=" add location add "'); void(0);")';

    Total ActionScript Errors: 1 Reported Errors: 1

  3. #3
    tra il "getURL" e la parentesi c'è una virgoletta che non ci va e non ci va neanche l'ultima virgoletta, prima del ";"

  4. #4
    Utente di HTML.it L'avatar di Many17
    Registrato dal
    Sep 2002
    Messaggi
    324
    Grazie per l'aiuto...ho provato ma è uguale, anzi se tolgo la virgoletta me lo segna come errore in più...guarda:

    **Error** Scene=Scene 1, layer=tasti, frame=1:Line 14: ')' or ',' expected
    getURL ("(javascript:window.open('" add uUrl add "','" add nameWin add "','height =" add hdth add ",width=" add wdth add ",top='+" add top add "+',left='+" add left add "+',toolbar=" add toolbar add ",scrollbars=" add scrollbars add ",resizable=" add resizable add ",status=" add status add ",menubar=" add menubar add ",location=" add location add "'); void(0);");

    **Error** Scene=Scene 1, layer=tasti, frame=1:Line 15: Unexpected '}' encountered
    }

    Total ActionScript Errors: 2 Reported Errors: 2

  5. #5
    Mi arrendo! Ci sono troppe cosa da controllare.

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.