-
Pleaz Someone Heeelp
COULD SOMEBODY EXPLAIN HOW TO FIX THIS ERROR?
**Error** Line 3435: Expected a field name after '.' operator.
p.import = function (o) {
HERE IS FULL FUNCTION:
p.import = function (o) {
this.importProp("gravity", o, "Vector");
this.importProp("airFriction", o);
var fo = o.Objects.childNodes;
var _local1 = 0;
var l = fo.length;
while (_local1 < l) {
var _local2 = fo[_local1].attributes;
var _local3 = new ICE[_local2[((_local2.class != null) ? "class" : "classString")]]();
_local3.importObject(fo[_local1]);
this.addObject(_local3);
_local1++;
}
ICE.FixedObject.prototype.bounceFriction = parseFloat(o.attributes.bounceFriction);
ICE.FixedObject.prototype.slidingFriction = parseFloat(o.attributes.slidingFriction);
};
-
Senior Member
You can't use p.import if it was pimport it would publish. Is import a movie within p?
-
... p later loads xml
p.load = function (url) {
var _local1 = this;
_local1.loader = new XML ();
_local1.loader.parent = _local1;
_local1.loader.ignoreWhite = true;
_local1.loader.load(url);
_local1.loader.onLoad = function (success) {
var _local1 = this;
_local1.parent.import(_local1.firstChild);
_local1.parent.onLoad(success);
};
};
-
Most likely the code was originally written before import became a reserved word. It is an easy fix, but I'm sure you'll catch it... I mean you wrote a Flash file which deals with gravity and wind resistance
OK, my bad... I'm just in mean spirits today. But seriously, contact the original author of the work and ask them, I'm sure they'd point you directly to where the issue is. Code theft is not only immoral but illegal, you will find no help here.
Last edited by wombatLove; 02-22-2006 at 01:29 PM.
If you can read this, you're in the right place.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|