Heyas!
I just switched from FlashMX to Flash8 and I'm having some trouble figuring out some stuff that has changed. I have a file that I'm trying to update, that I originally did with FlashMX and that I'm working on now with Flash8.
Here's my 1st problem:
My java-script pop-up window thing doesn't work anymore, when I try it my browser gives me a window saying that my Flash Player has aborded an unsafe operation.
Here's my original code that used to work with my old Flash player:
Code:
on (press) {
getURL ("javascript:openWin('img9','Photo','bio/kat_kick.jpg','500','544');");
}
Is there a new way to put that?
My 2nd problem.. My loading text from a .txt file doesn't work anymore, Flash tells me that:
Code:
**Warning** Symbol=content news, layer=Layer 1, frame=10:Line 4: The identifier 'loadVars' will not resolve to built-in object 'LoadVars' at runtime.
loadText = new loadVars();
**Warning** Symbol=content_portfolio, layer=Layer 2, frame=10:Line 3: The identifier 'loadVars' will not resolve to built-in object 'LoadVars' at runtime.
loadText = new loadVars();
Total ActionScript Errors: 2 Reported Errors: 2
I guess the problem is with the loadVars(); command.. but I don't know what to change it to. My code is:
Code:
loadText = new loadVars();
loadText.load("texts/news.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
for (i=0; i<10; i++) {
newstext.htmlText += +this["date"+i]+"<br>"+"<br>"+this["text"+i];
}
}
Any help would be greatly appreciated