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

    aiuto!!! flash con codice non si vede!!!!!!!!!

    Ho usato un codice di un utente lo adattato e pubblicato. Dal mio computer (un mac) si vede io l'ho stampato per flash player 8 e quindi si dovrebbe vedere.
    Alcuni lo riescono a vedere altri no, forse perchhé hanno una versione flash inferiore?
    Come posso aumentare la compatibilità?
    Vi mando un link test:

    http://www.podcg.com/fashiontest/

    E di seguito il codice, vi chiedo consigli anche per la pubblicazione (uso flash cs3)
    Aspetto un vostro prezioso aiuto:

    testoFormat = new TextFormat()
    testoFormat.font="_sans"
    testoFormat.size=18
    testoFormat.bold=true
    testoFormat.color="0xF2F2F2"

    // supponiamo che le foto abbiamo tutte una stessa dimensione, così semplifichiamo la cosa
    fotoW=604 // larghezza
    fotoH=366 // altezza
    foto_array= new Array()
    fotografie = new LoadVars()
    fotografie.onLoad=function(caricate){
    if(caricate){
    I=1
    while(this["Foto"+I]!=undefined){
    foto_array[I] = this.path+this["Foto"+I]
    I++
    }
    create_structure()
    }else{
    trace("file dati non trovato")
    }
    }
    fotografie.load("filedati.txt")


    function create_structure(){
    // creo container
    this.createEmptyMovieClip("container",this.getNext HighestDepth())
    with (container) {
    moveTo(0, 0);
    lineTo(4, 0);
    lineTo(404,374);
    lineTo(0,364);
    lineTo(0, 0);

    endFill();
    }
    container._x = (Stage.width- fotoW)/2
    container._y = (Stage.height - fotoH)/2

    /************************************************** ******/
    // AVANTI E DIETRO
    this.createEmptyMovieClip("_Prev",this.getNextHigh estDepth())
    with (_Prev)


    _Prev._x = container._x
    _Prev._y = _Stop._y + _Stop._height - 2

    _Prev.createTextField("opzione",1,0,460,-190,0);
    _Prev.opzione.selectable=false
    _Prev.opzione.text="<"
    _Prev.opzione.autoSize="Center"
    _Prev.opzione.setTextFormat(testoFormat)
    /************************************************** ******/
    this.createEmptyMovieClip("_Next",this.getNextHigh estDepth())
    with (_Next)

    _Next._x = _Prev._x+_Prev._width-2
    _Next._y = _Stop._y + _Stop._height - 2

    _Next.createTextField("opzione",1,0,460,975,20);
    _Next.opzione.selectable=false
    _Next.opzione.text=">"
    _Next.opzione.autoSize="Center"
    _Next.opzione.setTextFormat(testoFormat)
    /************************************************** ******/

    // AS per BOTTONI
    _Stop.onPress=function(){
    avanza=false
    clearInterval(id)
    }
    _Play.onPress=function(){
    avanza=true
    if(Index == foto_array.length-1){
    Index=0
    }
    start_slide()
    }
    _Loop.onPress=function(){
    this.stato =! this.stato
    if(this.stato){
    this.opzione.text="Loop Slide = Si"
    }else{
    this.opzione.text="Loop Slide = No"
    }
    this.opzione.autoSize="Right"
    this.opzione.setTextFormat(testoFormat)

    }

    _Prev.onPress=function(){
    avanza=false
    clearInterval(id)
    trace(Index)
    if(Index==1){
    Index=foto_array.length
    }
    if(Index >1){
    Index-=2
    }
    start_slide()
    this.enabled=false
    }
    _Next.onPress=function(){
    avanza=false
    clearInterval(id)
    trace(Index)
    if(Index==foto_array.length-1){
    Index=0
    }

    start_slide()
    this.enabled=false

    }


    container.createEmptyMovieClip("sotto",1)
    container.sotto._x=(container._width - fotoW)/2
    container.sotto._y=(container._height - fotoH)/2

    container.createEmptyMovieClip("sopra",2)
    container.sopra._x=(container._width - fotoW)/2
    container.sopra._y=(container._height - fotoH)/2
    start_slide()

    }


    Index=0
    avanza=true


    function start_slide(){
    if(Index < foto_array.length-1){
    Index++

    _Info.opzione.text="Total IMG: "+(foto_array.length-1) + " - Actual: "+Index+"/"+(foto_array.length-1)+" Time Slide: 5\""

    _Info.opzione.autoSize="Center"
    _Info.opzione.setTextFormat(testoFormat)
    container.sopra.loadMovie(foto_array[Index])
    container.sopra._alpha=0
    container.foto = foto_array[Index]
    container.onEnterFrame=function(){

    car=this.sopra.getBytesTotal()
    tot=this.sopra.getBytesTotal()
    if(car == tot && car >=1024){
    // caricata foto
    this.sopra._width = 604
    this.sopra._height = 364
    this.sopra.onEnterFrame=function(){
    if(this._alpha<100){
    this._alpha+=10
    }else{

    //trace(container.foto)
    container.sotto.loadMovie(container.foto)
    car1=container.sotto.getBytesTotal()
    tot1=container.sotto.getBytesTotal()
    if(car1 == tot1 && car1 > 1024){

    // caricata foto
    container.sotto._width = 604
    container.sotto._height = 364
    _Next.enabled=true
    _Prev.enabled=true
    if(avanza){
    id = setInterval(conta,5000)
    }
    delete this.onEnterFrame
    }
    }
    }
    delete this.onEnterFrame
    }
    }
    }
    }




    function conta(){
    trace("sono passati 5 secondi")
    clearInterval(id)
    if(_Loop.stato){
    if(Index == foto_array.length-1){
    Index=0
    }
    }
    start_slide()
    }

  2. #2
    Aspetto un vostro aiuto...
    Nel frattempo ho capito che è un problema di compatibiltà:

    Se stampo per flash player 8 è tutto Ok ma mi precludo gli utenti con una versione più vecchia.
    Se stampo per flash player 7, ho un problema che le immagini caricate si vedono leggermente sfocate.
    Se stampo per fladh player 6, lo script non si vede e di conseguenza le immagini.


    Cosa mi consigliate di fare??????

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.