Search:
Type: Posts; User: linha_direta
Search:
Search took 0.39 seconds.
-
my_data = new LoadVars();
my_data.load ("visibility.txt");
my_data.onLoad = function () {
someMC._visible = (this == "true") ? true : false;
}
//in notepad
false
// or true, but use just...
-
I think Wan Kenobi is right - damn Jedi powers! :D
preloader works great online.. and thats where it should be used. When u have a swf (or exe) it'll depend on how fast your PC (including drive...
-
flash is a wonderfull software and it can do lots of stuff, but to save (or update) a txt u'll need to use some server-side language, such as ASP, PHP or CFM.
-
try something like this
_global.history = [];
back = function () {
if (history.length != 0) lastFrame = history.pop();
if (lastFrame != undefined) _root.gotoAndStop (lastFrame);
-
u can only display your data when it was fully loaded... thats why u can have it displayed inside the onLoad event.
/* ******
file.txt
varSome=1|2|3|4
*/
-
here's what i would do...
var _f = new LoadVars();
_f.load ("yourScript.php");
_f.onLoad = function () {
myArray = this.arrayName;
-
just 1 question... are u loading an external data file?
-
function rePosition() {
this.pieceDes.gotoAndStop(2);
this.portImage.new_posi1 = 0;
this.portImage.new_posi2 = 0;
this.portImage.new_width = 100;
this.portImage.new_height = 100;...
-
-
on (release) {
var $mail = email.text;
if ($mail.indexOf ("@") == -1 || $mail.indexOf (".") == -1) {
gotoAndPlay("sending");
} else {
formerror = "please enter a valid...
-
:rolleyes: :rolleyes: :rolleyes:
look that line...
myListener = newObject();
it's wrong... hehehe
-
remove the // from each line and try it again.
myListener = newObject();
myListener.onKeyDown = function() {
if (Key.isDown(Key.SPACE)) gotoAndStop(5);
};
Key.addListener(myListener);
-
u can write your txt file as...
--- ini txt ---
&var1=some value&
&var2=some other value&
&var3=some other other value&
&var4=and so on&
--- end txt ---
-
no.. i'm not using AS2.0, even why AS2.0 is avaliable from MX 2004.
To tell u the truth I just re-wrote your code and i defined (created) a new movieclip to use the onEnterFrame event.
U'r...
-
made some tests here and I don't know why the vars[3] is being cutted off...
as u'r creating _global arrays u could just use the "c" variable and called it from the descriptionWindow function.
...
-
_root.cover.loadMovie("image.jpg");
_root.onEnterFrame = function () {
var rc = _root.cover.getBytesLoaded(); var tt = _root.getBytesTotal();
yourTxtField.text = Math.ceil(rc/tt*100) + " %...
-
the commas are there just in the trace...
like
ar = ["a","b","c"]
trace (a)
the output window will show
a, b, c
-
function startLoadStage(newImage) {
if ($loop.onEnterFrame != undefined) return false;
else
imageAttempt = newImage;
gotoAndPlay("loadStage");
//remove old picture
var $t =...
-
<a href='asfunction:descriptionWindow,xmlArrayDescription[c]'>19 - <u>A Party</u></a>
and
<a href='asfunction:descriptionWindow," + xmlArrayDescription[c] + "'>19 - <u>A Party</u></a>
are...
-
download this file and see if it helps.
that's the way i like to handle xml data in flash. :D
-
r-u still using flash 5???? :confused:
-
function descriptionWindow($param) {
$vars = $param.split("|");
drawText = ($vars[0] + " " + $vars[1] + "<br><b>" + $vars[2] +"</b><br>" + $vars[3]);
trace(drawText);
}
if...
-
-
Not only the _root should be checked... u'll also need to check how u'r loading/ sending data to your gb.
If u'r using loadVariablesNum u'll need to changed it to ...
-
if u'r linking to another scene I'll suggest a label instead a frame number
if(_root.player1health <= -100)_root.gotoAndPlay("gameover");
and in the 1st frame of your gameover scene insert...
|
Click Here to Expand Forum to Full Width
|