Nope
sorry... not possible....
-Ryan
FlashKit > Flash Help > Flash MX
Posted on: 08-04-2002, 03:30 PM
View Complete Forum Thread with Replies
Sponsored Links:
Is It NiN? Nope It's Just NaN ;/
Hi buddies.
Well please don't shout on me as the problem I've got probably has already been solved, I have analysed all of those posts and none of them helped me although the problem seems to be similar...
So here it is:
THE TEXT FILE:
Code:
number=3
NOW THE AS:
Code:
lv = new LoadVars();
lv.load("text.txt");
lv.onLoad = function()
{
trace(this.number); // shows 3 - OK
trace(Number(this.number)); // shows 3 - OK
var num = Number(this.number);
trace(num); // shows 3 - OK
}
trace(num); // shows 'undefined' - BAD
trace(lv.num); // shows 'undefined' - BAD
trace(_root.lv.num); // shows 'undefined' - BAD
trace(number); // shows 'undefined' - BAD
trace(lv.number); // shows 'undefined' - BAD
trace(_root.lv.number); // shows 'undefined' - BAD
as you can see I think all combinations have been used, but the variable remains 'undefined', what to do to make it work outside the onLoad function?
and here is other similar problem:
Code:
loadVariablesNum ("text.txt", 0);
num = Number(number);
trace(num); // shows NaN - Not a Number
Anybody knows how to make it work?
Please help!!
Thanks.
View Replies !
View Related
Nope
That didn't change it. For anyone out there here is the zip file with the .fla file
http://www.mthis.com/hold/projectmanagement.zip
Thanks
View Replies !
View Related
Nope It Dont Work....
ok i thought the code would work
but i need it to be an instruction
to a particular movieclip.
for instance the code would be in a button instance
and when the button is clicked it tells the movieclip
to fade out. Thats it.
im thinking along the lines of
on (rollOut, DragOut){
with (MC1) {
//this is the part that i need help with eg the code
to make the MC fade out to nothing, i reckon theres a loop operator in here some where..
}
Please please help!!!
View Replies !
View Related
Modify > Frame , Nope?
now i know this seems silly but i'm currently following this tutorial (http://www.flashkit.com/tutorials/In...-192/more6.php) and i seem to have ran into a strange problem.
I dont have a modify > frame option on my version of mx 2004
i need this so i can set valous to actionscript
any help would be ace
View Replies !
View Related
Functor - Nope I Didn't Make It Up...
Reading through some of the Flash class while working on a big project I came across a new term for me, functor: a function that creates functions. Now we're onto something great. So my hope is to write a master function that can create seperate functions for seperate objects at runtime. For example:
Object a moves to b and changes into c. <= YES I'M BUILDING A FUSE array for 1000+ objects how did you guess??
So I want everything to push the variables through dynamic array.
example:
Code:
a = [1,2,3,4,5];
b = [location1, location2, location3];
c = [5,4,3,2,1];
function functorlicious():Void{
function newName():Object{
var name:Object = new Object("something"+a+b);
return name;
}
for(i=0;i<=a.length;i++){
function newName():Void{
a.moveTo(x:b, y:b, 1, blah, blah, blah, function:c);
}
}
}
of course this doesn't work because the syntax is wrong the function "newName" just keep being over-written by the new code but I'm serious about figuring this out if it can be done in flash and I get 1 step closer to conquering the world with 10 lines of code. Anyone tried this kind of thing yet?
Much love, Big O.
View Replies !
View Related
External Interface> Local = Ok Server = Nope
Hi, guys!
A interesting problem:
I have a function on my fla that executes many things. All these things depends of a number parameter.
Ok. No problem with this. But now I must call this function through a html link at the same flash´s page.
So, my way is the External Interface class.
When I try it at my local pc, everything is great. But when I upload it, it stops working!
The flash code:
Quote:
// importing the flash external interface:
import flash.external.ExternalInterface;
// the function:
function pedirAnunciante(codigoAnunciante) {
// many codes here....
}
// the addCallBack method:
ExternalInterface.addCallback("pedirAnunciante", this, pedirAnunciante);
The HTML code:
Quote:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>interna_javascript</title>
<script language="JavaScript">
var flash;
//
window.onload = function() {
if(navigator.appName.indexOf("Microsoft") != -1) {
flash = window.vitrine;
}else {
flash = window.document.vitrine;
}
}
//
//
function comandaFlash(num) {
flash.pedirAnunciante(num);
//alert(num);
}
//
</script>
</head>
<body bgcolor="#ffffff">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="775" height="630" id="vitrine" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="interna_javascript.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="interna_javascript.swf" id="vitrine" quality="high" bgcolor="#ffffff" width="775" height="630" name="interna_javascript" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<br>
<input type="Button" value="Anunciante 508" name="flashInfoButton" onClick="javascript:comandaFlash(508);" style="width:100px;" />
<br>
<input type="Button" value="Anunciante 49" name="flashInfoButton" onClick="javascript:comandaFlash(49);" style="width:100px;" />
<br>
<input type="Button" value="Anunciante 427" name="flashInfoButton" onClick="javascript:comandaFlash(427);" style="width:100px;" />
<br>
</html>
View Replies !
View Related
|