Пример #1
0
        public virtual void load(AsURLRequest request)
        {
            mRequest = request;
            String url = request.getUrl();

            if (url.StartsWith("http"))
            {
                throw new NotImplementedException("Http loading not implemented");
            }

            data = BcResFactory.GetInstance().LoadResource(url);
            AsDebug.assert(data != null, url);

            dispatchEvent(new AsEvent(AsEvent.COMPLETE));
        }
Пример #2
0
        public static Object createLiteralObject(params Object[] values)
        {
            if (values.Length % 2 != 0)
            {
                throw new ArgumentException("Literal object arguments' length should be even: " + values);
            }

            AsObject obj = new AsObject();
            for (int i = 0; i < values.Length; i += 2)
            {
                String key = (String) values[i];
                Object value = values[i + 1];
                obj.setOwnProperty(key, value);
            }
            return obj;
        }
Пример #3
0
        public static Object createLiteralObject(params Object[] values)
        {
            if (values.Length % 2 != 0)
            {
                throw new ArgumentException("Literal object arguments' length should be even: " + values);
            }

            AsObject obj = new AsObject();

            for (int i = 0; i < values.Length; i += 2)
            {
                String key   = (String)values[i];
                Object value = values[i + 1];
                obj.setOwnProperty(key, value);
            }
            return(obj);
        }
Пример #4
0
 public AsNumber(AsObject _value)
 {
     throw new AsNotImplementedError();
 }
Пример #5
0
 public static String getQualifiedClassName(AsObject obj)
 {
     return(obj.GetType().Name);
 }
Пример #6
0
 public virtual void writeObject(AsObject _object)
 {
     throw new AsNotImplementedError();
 }
Пример #7
0
 public AsNumber(AsObject _value)
 {
     throw new AsNotImplementedError();
 }
Пример #8
0
 public void setData(AsObject _value)
 {
     mData = (AsObject)(_value);
 }
Пример #9
0
 public static String getQualifiedClassName(AsObject obj)
 {
     return obj.GetType().Name;
 }
Пример #10
0
 public virtual void gotoAndStop(AsObject frame)
 {
     gotoAndStop((AsObject)(frame), null);
 }
Пример #11
0
 public virtual void gotoAndStop(AsObject frame, String scene)
 {
     throw new AsNotImplementedError();
 }
Пример #12
0
 public virtual void gotoAndPlay(AsObject frame)
 {
     gotoAndPlay((AsObject)(frame), null);
 }