Skip to main content
Participating Frequently
September 29, 2009
Question

Preload embaselment

  • September 29, 2009
  • 1 reply
  • 551 views

Hi there,

I'm reating a flash portfolio wich contains a 3D panel as a gallery wich works relatvely wellright now. I wantedd to put a preload so i put my preload code on the first frame and order to gotoandPlay(2)  the second frame wich works to but when the loading is done my 3D panel is totally ignored, the panel works with a class of course. Actually the probleme seems to be more with the frame skip because i put my preload code in commentary and just having a frame before screws up my panel.

thanks in advance!

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
September 29, 2009

did you change the frame used to export classes in the publish settings or untick the export in first frame on your panel movieclip?

thy_dudeAuthor
Participating Frequently
September 29, 2009

i'm sorry, but i dont totally understand but i did not touch the publish settings. What i did is all on the main timeline, it's very simple:

on frame 1 of the main timeline it's the preload

var monClip:MovieClip = new MovieClip();
addChild(monClip);
var monPreload:Preload = new Preload(monClip,this,"apresChargement")

monPreload.hauteur = 6;
monPreload.largeur = 600;
monPreload.couleurEtat =0xB1BFD6 ;
monPreload.couleurLoading =0xFFFFFF;

monPreload.partLoad(monClip,this,"apresChargement")
function apresChargement()
{
    gotoAndPlay(2);
}

and on frame 2 of the main timeline

there's my code interacting with the panel class and ome other code to show titles and descriptions. The code for the titles work but not the panel and another fact is that my container movieclip wich contains the panel is pulled back on the Z axis and with preload this gets ignored so my panel is enormous.

the probleme defintely seems to come from the class

the panel class is

here's the code on frame 2

import gs.*;
import gs.easing.*;


var tablTitre:Array = new Array
tablTitre["[object img1_4]"] = "Stresss //2009";
tablTitre["[object img2_8]"] = "Spirale //2009";
tablTitre["[object img3_11]"] = "Eye Candy //2009";
tablTitre["[object img4_8]"] = "La face du vice //2008";
tablTitre["[object img5_9]"] = "Un Coeur //2009";
tablTitre["[object img6_10]"] = "Worse than Agony Logo //2009";
tablTitre["[object img7_2]"] = "La ville du future //2009";
tablTitre["[object img8_11]"] = "a venir //2010";
tablTitre["[object img9_13]"] = "a venir //2010";


var tablDescr:Array = new Array
tablDescr["[object img1_4]"] = "Version infographique de dessin à la mine //Illustrator";
tablDescr["[object img2_8]"] = "Expérimentation  3D et vectorielle //Blender, photoshop et Illustrator";
tablDescr["[object img3_11]"] ="Exploration d'illustrator //Illustrator";
tablDescr["[object img4_8]"] = "Je voyais ce que les gars chez gomedia faisait en me disant que je voulais avoir cette genre de vie et  me suis rendu compte que devenir bon en dessins ne suffisait pas et la tablette est incontournable J'ai donc retracé un vieux dessin en ce que vous voyez. //Photoshop et tablette Wacom";
tablDescr["[object img5_9]"] = "Une carte de souhait plus orginale //illustrator et Photoshop";
tablDescr["[object img6_10]"] = "Logo d'un band de metal à mon ami et lecon: un musicien metalleux ca paye pas vite //Illustrator et photoshop";
tablDescr["[object img7_2]"] = "Une autre adaptation d'un dessin apres avoir fait ca sur illustrator et avec la tablette pourquoi pas essayer en 3D //Blender  ";
tablDescr["[object img8_11]"] = "a venir //2010";
tablTitre["[object img9_13]"] = "a venir //2010";


this.con.addEventListener(MouseEvent.MOUSE_OVER, choix);

function choix(e:MouseEvent):void
                {
                   
                         
                    this.con.img1.addEventListener(MouseEvent.MOUSE_OVER, texte);
                    this.con.img2.addEventListener(MouseEvent.MOUSE_OVER, texte);
                    this.con.img3.addEventListener(MouseEvent.MOUSE_OVER, texte);
                    this.con.img4.addEventListener(MouseEvent.MOUSE_OVER, texte);
                    this.con.img5.addEventListener(MouseEvent.MOUSE_OVER, texte);
                    this.con.img6.addEventListener(MouseEvent.MOUSE_OVER, texte);
                    this.con.img7.addEventListener(MouseEvent.MOUSE_OVER, texte);
                    this.con.img8.addEventListener(MouseEvent.MOUSE_OVER, texte);
                    this.con.img9.addEventListener(MouseEvent.MOUSE_OVER, texte);
                   
                   
                   
                }

var depart:int=0

if(depart==0)
{var affichage:Boolean=false;}
this.titre.txt_titre.text="choisir une oeuvre";

function texte(e:MouseEvent):void
    {
        trace("yo6");
        //titre=true;
        var choisi:MovieClip = MovieClip(e.currentTarget);
        trace(choisi);
       
        this.titre.txt_titre.text=tablTitre[choisi];
        this.descr.txt_descr.text=tablDescr[choisi];
        if (affichage==false)
            {               
                this.titre.txt_titre.text=tablTitre[1];
                affichage==true;
                this.descr.txt_descr.text=tablTitre[1];
            }
        if (affichage==true)
            {
                this.titre.txt_titre.text="choisir un oeuvre";
                affichage=false;
            }
       
    }

stop();