PDA

View Full Version : load swf compiled in other version problem


assimetric
10-25-2005, 09:15 AM
my application compiled in flash8 load dataObject.swf maden in flash mx into container. and when i run it in player it's work correctly.
When i run it from html in Firefox it don't load dataObject correct. I mean that my application don't see the functions into dataObject, like getBytesTotal and custom functions. also it don't see the properties. What to do? why it work correct in player but don't work in mozilla browser?

assimetric
10-25-2005, 10:40 AM
when i debug things in browser at downloading time by code

_root.debugger.text+=(test instanceof Object)+" Object"+newline;
_root.debugger.text+=(test instanceof String)+" String"+newline;
_root.debugger.text+=(test instanceof MovieClip)+" MovieClip"+newline;
_root.debugger.text+=(test instanceof Number)+" Number"+newline;
_root.debugger.text+=(test)+" Target"+newline;
_root.debugger.text+=(isNaN(test))+" isNaN"+newline;
_root.debugger.text+=(test instanceof null)+" null"+newline;
_root.debugger.text+=(test instanceof undefined)+" undefined"+newline;

it say:

DEBUG:
true Object
false String
true MovieClip
false Number
_level0.test Target
trueis NaN
false null
false undefined
false Object
false String
false MovieClip
falseNumber
_level0.test Target

when i debug from player it say correct

true Object
false String
true MovieClip
false Number
_level0.test Target
trueis NaN
false null
false undefined
true Object
false String
true MovieClip
false Number
_level0.test Target
true isNaN
false null
false undefined