Avatar billede globulous Nybegynder
05. november 2003 - 15:35 Der er 10 kommentarer

Loading text into levels

Before I get too deep into this...check out this link:

http://www.rummet.dk/spaceadventures/

You may notice that on the first attempt, the logbook that slides in from the right doesnt have any text in it. If you immediately refresh, tah dah!! theres is text. Has anyone had this problem before?

If you dont have any problem with this link, please let me know. Thanks.
Avatar billede barklund Nybegynder
05. november 2003 - 16:34 #1
Do you preload the text in any way? Via frameloops or LoadVars? How do you get the text in?
Avatar billede globulous Nybegynder
05. november 2003 - 16:58 #2
Im trying a model-view-presenter class design...and attempting to use classes in a flash kinda way. I have a model class on _level0 and a logbook class on level0. The logbook itself is loaded in on _level11. When the zoomin of the room is finished it passes a variable to the model to say its ready. In the model, I have several loadvars objects to gather both local and DB vars. I can see that all my vars are coming in and it works when I try it off the server every time. When the zoom is done and and onLoad(success) checks with all my LoadVars, and my logBook.swf is loaded on level11, I call my methods to pass the text from the model to _level11 text fields. But it only seems to work after "refreshing"...make sense?
Avatar billede barklund Nybegynder
05. november 2003 - 17:06 #3
Do you preload your swf?
Avatar billede globulous Nybegynder
05. november 2003 - 17:08 #4
yes...it preloads as the first thing you see...the preload bar. That is loading the the room.swf and the logbook.swf.
Avatar billede barklund Nybegynder
05. november 2003 - 17:18 #5
But then the preloader doesn't work :) Because when it works the second time, it must be the SWF loading. That's my bet anyhow :)
Avatar billede globulous Nybegynder
05. november 2003 - 17:21 #6
you got me thinking....I have been loading in my script as includes into the first frame of _level0. I just tried putting all my logbook.as methods directly into my logbook.fla...and it seems to be working...could you please try deleting files> refresh >load again and see if it works.
Avatar billede globulous Nybegynder
05. november 2003 - 17:22 #7
its closer anyway...this time i get in SOME of my local data...and something happens...its a weird bug
Avatar billede globulous Nybegynder
05. november 2003 - 17:23 #8
but I think its got something to do with the order in which I load things...(though there is nothing wrong with my preloader thank you very much!! :)
Avatar billede barklund Nybegynder
05. november 2003 - 17:25 #9
Must be some loading problem... Do you use MX04?
Avatar billede globulous Nybegynder
05. november 2003 - 17:38 #10
not yet
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
IT-kurser om Microsoft 365, sikkerhed, personlig vækst, udvikling, digital markedsføring, grafisk design, SAP og forretningsanalyse.

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester