ActionScript Parser in ActionScript?

Hi all,
      In the previous and old post (http://forums.adobe.com/message/223435) , people (and I) asked about a parser for ActionScript. My post was never  responsed, I am not sure whether the forum is still activated or not?
       I need if there is an ActionScript parser written in ActionScript. I know there are (almost complete) parsers for ActionScript (FlexPMD), but this one is in Java and is not very documented (the parser API at least).  I need the parser to modify source code (eg. wrap functions). If anybody has an idea, I would apreciate to hear it.
       PS: I looked about metaprogramming in AS3 as well, but it seems to be limited
Thanks in advance,
Paul 

I don't know anything about that parser. But Java comes with a compliant XML parser built into it. Unless you have some special requirements for parsing you could just use that.

Similar Messages

  • Problems with the Actionscript parser

    We just upgraded to MX 7.02 from MX 6.1 here. I've been
    playing around with the new flash forms and actionscript to see how
    easy it would be to replicate some of the things we did with
    javascript in actionscript.
    While debugging one of the scripts I noticed that whatever
    parses the actionscript for syntax errors was picking up illegal
    keywords in areas where keywords aren't typically allowed. It finds
    them in comments, strings, tooltips, and just about anywhere
    actionscript is allowed. Unfortunately, three of the keywords
    (import, new, and delete) are pretty common in comments and
    tooltips.
    I didn't notice anything about this in the known issues for
    7.02. Is anyone aware of a current hotfix or one coming soon to fix
    this issue? Are there any workarounds or should I just try to avoid
    the use of those words until the next update?

    We just upgraded to MX 7.02 from MX 6.1 here. I've been
    playing around with the new flash forms and actionscript to see how
    easy it would be to replicate some of the things we did with
    javascript in actionscript.
    While debugging one of the scripts I noticed that whatever
    parses the actionscript for syntax errors was picking up illegal
    keywords in areas where keywords aren't typically allowed. It finds
    them in comments, strings, tooltips, and just about anywhere
    actionscript is allowed. Unfortunately, three of the keywords
    (import, new, and delete) are pretty common in comments and
    tooltips.
    I didn't notice anything about this in the known issues for
    7.02. Is anyone aware of a current hotfix or one coming soon to fix
    this issue? Are there any workarounds or should I just try to avoid
    the use of those words until the next update?

  • ActionScript parser?

    I was looking for an ActionScript and syntax color
    highlighter. Several places I read about one by Brett Errington
    which should be downloadable from his website
    http://be.nw.com.au/ but this
    address is not working. Is there anybody who has the parser and
    would be willing to send it to me?
    Please contact me at www.winternet.no
    Regards,
    Allan Jensen

    I have a copy.  you can email me at [email protected] if it is urgent.
    otherwise I'll be putting a copy up on my asp4hs site.  I had been linking to Brett's site, but that's obviously not working right now.
    it'll be here... probably later tonight when I can fix it.
    http://www.wilk4.com/asp4hs/list2.htm#flmxact_parser
    jeff
    -- Jeff Wilkinson
    volunteer for HomeSite
    see Asp4Hs: ASP/PHP/.Net/etc Development Extensions for HomeSite
    http://www.wilk4.com/asp4hs

  • WSDL Parsing in ActionScript

    Hi...
    I want to parse WSDL url and show the user the list of
    methods ,parameters and data type for each method using
    actionscript.I s there any parser available for doing so?

    When you issue a CREATE OR REPLACE PROCEDURE (or function or package), the PL/SQL code is "compiled" - i.e. full parsing and scope checking are done and the result saved (if successfully compiled) in executable p-code format. The code itself is however not executed.
    If there are any syntax or object reference errors, these will be displayed.
    Thus if you want to parse your code without executing it, the norm is to simply save the code to the database - where it belongs anyway.
    Note that this parsing and compiling does not ensure that your code works "properly".
    The correctness, efficiency and scalability of your code is your responsibility. A parser cannot report on business logic errors.

  • How to reference a Constants.as actionscript in another actionscript class

    Hi,
    How can I use constant variables from a Constatnst file (.as file) in another actionscript class?
    Thanks.

    What id I don't have the Constants.as not defined as a class.
    Constants.as
    public static const BASE_NAME = "ABC";
    public static const EQUIPMENT_NAME = "777";
    I can't import is file as its not a class file, right?
    So, how can I access BASE_NAME, etc.
    In a mxml file, I use the <mx:Script source="/../Constants.as"/>
    but how about in an actionscript class file.

  • Actionscript 2 versus Actionscript 3

    I am currently trying to embed an Adobe Flash file into Captivate 5.5 that contains Actionscript 2 while my current project is in Actionscript 3.  This is causing the flash file not to work.  Help?

    Hi There,
    Welcome to Adobe Forums.
    We have tested the same on our end and the flash file of Actionscript 2 would not work in Captivate 5.5 because it has Actionscript 3.
    Thanks
    Vikas

  • Converting from actionscript 2 to actionscript 3

    I found a program online thats sapoesed to do a lot of the converting for you and it did it converted more than 1000+ lines without any errors but not all of them... I am getting 2 errors in the code listed below and they are1084: Syntax error: expecting identifier before import.  this is on line 3 of the code below and 1084: Syntax error: expefcting rightbrace before function. this i on lines 7 and 8 of the code below.  i think there is a simple fix to these but cant figure out where to put the right brace and the identifier.  Any help is highly appreciated.
    Marcus
    package  {
    if (_global.hasLoaded_XML == undefined)
    import flash.display.MovieClip;
    import flash.display.Stage;
        _global.hasLoaded_XML = true;
        Object.prototype.handleXML = public function (xmlNode, xmlPath, doneFunc)
            xmlNode.ignoreWhite = true;
            xmlNode.onLoad = function (success)
                addTier = function (currentPath)
                    for (var _loc2 in currentPath.attributes)
                        currentPath[_loc2] = currentPath.attributes[_loc2];
                    } // end of for...in
                    for (var _loc2 in currentPath.childNodes)
                        if (currentPath.childNodes[_loc2].childNodes.length >= 0)
                            addTier(currentPath.childNodes[_loc2]);
                        } // end if
                        currentPath[currentPath.childNodes[_loc2].nodeName + _loc2] = currentPath.childNodes[_loc2];
                        currentPath[currentPath.childNodes[_loc2].nodeName] = currentPath.childNodes[_loc2];
                    } // end of for...in
                addTier(xmlNode);
                doneFunc();
            xmlNode.load(xmlPath);
        Object.prototype.set_nodeText = public function (textPass)
            return (textPass);
        Object.prototype.get_nodeText = public function ()
            return (this.firstChild.nodeValue);
        Object.prototype.addProperty("nodeText", Object.prototype.get_nodeText, Object.prototype.set_nodeText);
        ASSetPropFlags(Object.prototype, ["get_nodeText", "set_nodeText", "nodeText"], 1);
    } // end if
    if (_global.hasLoaded_TWEENING == undefined)
        _global.hasLoaded_TWEENING = true;
        MovieClip.prototype.propTween = public function (id, propArray, valueArray, duration, method, nextStep, offset, nextParams)
            var hasTripped = false;
            if (this.loopHolder == undefined)
                this.createEmptyMovieClip("loopHolder", this.getTopDepth());
            } // end if
            if (method == undefined)
                var method = "linearTween";
            } // end if
            if (this.loopHolder["loopCounter_" + id] != undefined)
                this.loopHolder["loopCounter_" + id].removeMovieClip();
            } // end if
            var _loc3 = this.loopHolder.createEmptyMovieClip("loopCounter_" + id, this.loopHolder.getTopDepth());
            if (offset != undefined)
                _loc3.duration = Math.max(duration, duration + offset);
                if (offset < 0)
                    _loc3.rollBack = duration + offset;
                else
                    _loc3.rollBack = 0;
                } // end else if
            else
                _loc3.duration = duration;
            } // end else if
            _loc3.count = 1;
            _loc3.onEnterFrame = function ()
                if (this.count <= this.duration)
                    if (this.count <= duration)
                        for (var _loc2 = 0; _loc2 < propArray.length; ++_loc2)
                            if (this[b + "_" + propArray[_loc2]] == undefined || this.count == 1)
                                this[b + "_" + propArray[_loc2]] = this.parent.parent[propArray[_loc2]];
                            } // end if
                            this.parent.parent[propArray[_loc2]] = Penner[method](this.count, this[b + "_" + propArray[_loc2]], valueArray[_loc2], duration);
                            if (propArray[_loc2] == "scaleX" || propArray[_loc2] == "scaleY")
                                if (this.parent.parent[propArray[_loc2]] == 0 && this.parent.parent.visible == true)
                                    this.parent.parent.visible = false;
                                } // end if
                                if (this.parent.parent[propArray[_loc2]] != 0 && this.parent.parent.visible != true)
                                    this.parent.parent.visible = true;
                                } // end if
                            } // end if
                        } // end of for
                    } // end if
                    if (this.rollBack == this.count && nextStep != undefined)
                        nextStep(nextParams);
                        hasTripped = true;
                    } // end if
                    ++this.count;
                else
                    this.removeMovieClip();
                    if (nextStep != undefined && hasTripped != true)
                        nextStep(nextParams);
                    } // end if
                } // end else if
        MovieClip.prototype.killTweens = public function ()
            this.loopHolder.removeMovieClip();
        MovieClip.prototype.tweenScale = public function (xscale, yscale, duration, method, nextStep, offset, nextParams)
            var _loc2 = "Scale";
            var _loc4 = ["scaleX", "scaleY"];
            var _loc3 = [xscale - this.scaleX, yscale - this.scaleY];
            this.propTween(_loc2, _loc4, _loc3, duration, method, nextStep, offset, nextParams);
        MovieClip.prototype.tweenPosition = public function (xVar, yVar, duration, method, nextStep, offset, nextParams)
            var _loc2 = "Position";
            var _loc4 = ["x", "y"];
            var _loc3 = [xVar - this.x, yVar - this.y];
            this.propTween(_loc2, _loc4, _loc3, duration, method, nextStep, offset, nextParams);
        MovieClip.prototype.tweenRotation = public function (rotation, duration, method, nextStep, offset, nextParams)
            var _loc2 = "Rotation";
            var _loc4 = ["rotation"];
            var _loc3 = [rotation];
            this.propTween(_loc2, _loc4, _loc3, duration, method, nextStep, offset, nextParams);
        MovieClip.prototype.tweenAlpha = public function (alpha, duration, method, nextStep, offset, nextParams)
            var _loc2 = "Alpha";
            var _loc4 = ["alpha"];
            var _loc3 = [alpha - this.alpha];
            this.propTween(_loc2, _loc4, _loc3, duration, method, nextStep, offset, nextParams);
        MovieClip.prototype.tweenSize = public function (width, height, duration, method, nextStep, offset, nextParams)
            var _loc2 = "Size";
            var _loc4 = ["width", "height"];
            var _loc3 = [width - this.width, height - this.height];
            this.propTween(_loc2, _loc4, _loc3, duration, method, nextStep, offset, nextParams);
        MovieClip.prototype.tweenTint = public function (rtint, gtint, btint, duration, method, nextStep, offset, nextParams)
            var _loc2 = "RGB";
            var _loc4 = ["_rtint", "_gtint", "_btint"];
            var _loc3 = [rtint - this._rtint, gtint - this._gtint, btint - this._btint];
            this.propTween(_loc2, _loc4, _loc3, duration, method, nextStep, offset, nextParams);
    } // end if
    if (_global.hasLoaded_TMATH == undefined)
        _global.hasLoaded_TMATH = true;
        _global.ranNum = public function (low, high)
            return (Math.round(Math.random() * (high - low)) + low);
    } // end if
    if (_global.hasLoaded_PENNER == undefined)
        _global.hasLoaded_PENNER = true;
        _global.Penner = {};
        ASSetPropFlags(_global, "Penner", 1, true);
        Penner.linearTween = public function (t, b, c, d)
            return (c * t / d + b);
        Penner.easeInQuad = public function (t, b, c, d)
            t = t / d;
            return (c * (t) * t + b);
        Penner.easeOutQuad = public function (t, b, c, d)
            t = t / d;
            return (-c * (t) * (t - 2) + b);
        Penner.easeInOutQuad = public function (t, b, c, d)
            t = t / (d / 2);
            if (t < 1)
                return (c / 2 * t * t + b);
            } // end if
            return (-c / 2 * (--t * (t - 2) - 1) + b);
        Penner.easeInCubic = public function (t, b, c, d)
            t = t / d;
            return (c * (t) * t * t + b);
        Penner.easeOutCubic = public function (t, b, c, d)
            t = t / d - 1;
            return (c * ((t) * t * t + 1) + b);
        Penner.easeInOutCubic = public function (t, b, c, d)
            t = t / (d / 2);
            if (t < 1)
                return (c / 2 * t * t * t + b);
            } // end if
            t = t - 2;
            return (c / 2 * ((t) * t * t + 2) + b);
        Penner.easeInQuart = public function (t, b, c, d)
            t = t / d;
            return (c * (t) * t * t * t + b);
        Penner.easeOutQuart = public function (t, b, c, d)
            t = t / d - 1;
            return (-c * ((t) * t * t * t - 1) + b);
        Penner.easeInOutQuart = public function (t, b, c, d)
            t = t / (d / 2);
            if (t < 1)
                return (c / 2 * t * t * t * t + b);
            } // end if
            t = t - 2;
            return (-c / 2 * ((t) * t * t * t - 2) + b);
        Penner.easeInQuint = public function (t, b, c, d)
            t = t / d;
            return (c * (t) * t * t * t * t + b);
        Penner.easeOutQuint = public function (t, b, c, d)
            t = t / d - 1;
            return (c * ((t) * t * t * t * t + 1) + b);
        Penner.easeInOutQuint = public function (t, b, c, d)
            t = t / (d / 2);
            if (t < 1)
                return (c / 2 * t * t * t * t * t + b);
            } // end if
            t = t - 2;
            return (c / 2 * ((t) * t * t * t * t + 2) + b);
        Penner.easeInSine = public function (t, b, c, d)
            return (-c * Math.cos(t / d * 1.570796E+000) + c + b);
        Penner.easeOutSine = public function (t, b, c, d)
            return (c * Math.sin(t / d * 1.570796E+000) + b);
        Penner.easeInOutSine = public function (t, b, c, d)
            return (-c / 2 * (Math.cos(3.141593E+000 * t / d) - 1) + b);
        Penner.easeInExpo = public function (t, b, c, d)
            return (t == 0 ? (b) : (c * Math.pow(2, 10 * (t / d - 1)) + b));
        Penner.easeOutExpo = public function (t, b, c, d)
            return (t == d ? (b + c) : (c * (-Math.pow(2, -10 * t / d) + 1) + b));
        Penner.easeInOutExpo = public function (t, b, c, d)
            if (t == 0)
                return (b);
            } // end if
            if (t == d)
                return (b + c);
            } // end if
            t = t / (d / 2);
            if (t < 1)
                return (c / 2 * Math.pow(2, 10 * (t - 1)) + b);
            } // end if
            return (c / 2 * (-Math.pow(2, -10 * --t) + 2) + b);
        Penner.easeInCirc = public function (t, b, c, d)
            t = t / d;
            return (-c * (Math.sqrt(1 - t * t) - 1) + b);
        Penner.easeOutCirc = public function (t, b, c, d)
            t = t / d - 1;
            return (c * Math.sqrt(1 - (t) * t) + b);
        Penner.easeInOutCirc = public function (t, b, c, d)
            t = t / (d / 2);
            if (t < 1)
                return (-c / 2 * (Math.sqrt(1 - t * t) - 1) + b);
            } // end if
            t = t - 2;
            return (c / 2 * (Math.sqrt(1 - (t) * t) + 1) + b);
        Penner.easeInElastic = public function (t, b, c, d, a, p)
            if (t == 0)
                return (b);
            } // end if
            t = t / d;
            if (t == 1)
                return (b + c);
            } // end if
            if (!p)
                p = d * 3.000000E-001;
            } // end if
            if (!a)
                a = 0;
            } // end if
            if (a < Math.abs(c))
                a = c;
                var _loc7 = p / 4;
            else
                _loc7 = p / 6.283185E+000 * Math.asin(c / a);
            } // end else if
            t = t - 1;
            return (-a * Math.pow(2, 10 * (t)) * Math.sin((t * d - _loc7) * 6.283185E+000 / p) + b);
        Penner.easeOutElastic = public function (t, b, c, d, a, p)
            if (t == 0)
                return (b);
            } // end if
            t = t / d;
            if (t == 1)
                return (b + c);
            } // end if
            if (!p)
                p = d * 3.000000E-001;
            } // end if
            if (!a)
                a = 0;
            } // end if
            if (a < Math.abs(c))
                a = c;
                var _loc7 = p / 4;
            else
                _loc7 = p / 6.283185E+000 * Math.asin(c / a);
            } // end else if
            return (a * Math.pow(2, -10 * t) * Math.sin((t * d - _loc7) * 6.283185E+000 / p) + c + b);
        Penner.easeInOutElastic = public function (t, b, c, d, a, p)
            if (t == 0)
                return (b);
            } // end if
            t = t / (d / 2);
            if (t == 2)
                return (b + c);
            } // end if
            if (!p)
                p = d * 4.500000E-001;
            } // end if
            if (!a)
                a = 0;
            } // end if
            if (a < Math.abs(c))
                a = c;
                var _loc7 = p / 4;
            else
                _loc7 = p / 6.283185E+000 * Math.asin(c / a);
            } // end else if
            if (t < 1)
                t = t - 1;
                return (-5.000000E-001 * (a * Math.pow(2, 10 * (t)) * Math.sin((t * d - _loc7) * 6.283185E+000 / p)) + b);
            } // end if
            t = t - 1;
            return (a * Math.pow(2, -10 * (t)) * Math.sin((t * d - _loc7) * 6.283185E+000 / p) * 5.000000E-001 + c + b);
        Penner.easeInBack = public function (t, b, c, d, s)
            if (s == undefined)
                s = 1.701580E+000;
            } // end if
            t = t / d;
            return (c * (t) * t * ((s + 1) * t - s) + b);
        Penner.easeOutBack = public function (t, b, c, d, s)
            if (s == undefined)
                s = 1.701580E+000;
            } // end if
            t = t / d - 1;
            return (c * ((t) * t * ((s + 1) * t + s) + 1) + b);
        Penner.easeInOutBack = public function (t, b, c, d, s)
            if (s == undefined)
                s = 1.701580E+000;
            } // end if
            t = t / (d / 2);
            if (t < 1)
                s = s * 1.525000E+000;
                return (c / 2 * (t * t * ((s + 1) * t - s)) + b);
            } // end if
            t = t - 2;
            s = s * 1.525000E+000;
            return (c / 2 * ((t) * t * ((s + 1) * t + s) + 2) + b);
        Penner.easeInBounce = public function (t, b, c, d)
            return (c - Penner.easeOutBounce(d - t, 0, c, d) + b);
        Penner.easeOutBounce = public function (t, b, c, d)
            t = t / d;
            if (t < 3.636364E-001)
                return (c * (7.562500E+000 * t * t) + b);
            else if (t < 7.272727E-001)
                t = t - 5.454545E-001;
                return (c * (7.562500E+000 * (t) * t + 7.500000E-001) + b);
            else if (t < 9.090909E-001)
                t = t - 8.181818E-001;
                return (c * (7.562500E+000 * (t) * t + 9.375000E-001) + b);
            else
                t = t - 9.545455E-001;
                return (c * (7.562500E+000 * (t) * t + 9.843750E-001) + b);
            } // end else if
        Penner.easeInOutBounce = public function (t, b, c, d)
            if (t < d / 2)
                return (Penner.easeInBounce(t * 2, 0, c, d) * 5.000000E-001 + b);
            } // end if
            return (Penner.easeOutBounce(t * 2 - d, 0, c, d) * 5.000000E-001 + c * 5.000000E-001 + b);
    } // end if
    if (_global.hasLoaded_COLOR == undefined)
        _global.hasLoaded_COLOR = true;
        MovieClip.prototype.apply_rtint = public function (value)
            var _loc2 = new Color(this);
            var _loc3 = {rb: value};
            _loc2.setTransform(_loc3);
        MovieClip.prototype.fetch_rtint = public function ()
            var _loc2 = new Color(this);
            return (_loc2.getTransform().rb);
        MovieClip.prototype.addProperty("_rtint", MovieClip.prototype.fetch_rtint, MovieClip.prototype.apply_rtint);
        ASSetPropFlags(MovieClip.prototype, ["apply_rtint", "fetch_rtint", "_rtint"], 1);
        MovieClip.prototype.apply_gtint = public function (value)
            var _loc2 = new Color(this);
            var _loc3 = {gb: value};
            _loc2.setTransform(_loc3);
        MovieClip.prototype.fetch_gtint = public function ()
            var _loc2 = new Color(this);
            return (_loc2.getTransform().gb);
        MovieClip.prototype.addProperty("_gtint", MovieClip.prototype.fetch_gtint, MovieClip.prototype.apply_gtint);
        ASSetPropFlags(MovieClip.prototype, ["apply_gtint", "fetch_gtint", "_gtint"], 1);
        MovieClip.prototype.apply_btint = public function (value)
            var _loc2 = new Color(this);
            var _loc3 = {bb: value};
            _loc2.setTransform(_loc3);
        MovieClip.prototype.fetch_btint = public function ()
            var _loc2 = new Color(this);
            return (_loc2.getTransform().bb);
        MovieClip.prototype.addProperty("_btint", MovieClip.prototype.fetch_btint, MovieClip.prototype.apply_btint);
        ASSetPropFlags(MovieClip.prototype, ["apply_btint", "fetch_btint", "_btint"], 1);
    } // end if
    if (_global.hasLoaded_DEPTHS == undefined)
        _global.hasLoaded_DEPTHS = true;
        MovieClip.prototype.getTopDepth = public function ()
            var _loc3 = 0;
            for (var _loc4 in this)
                var _loc2 = this[_loc4];
                if (_loc2.getDepth() != undefined && _loc2.getDepth() > _loc3)
                    _loc3 = _loc2.getDepth();
                } // end if
            } // end of for...in
            return (_loc3 + 1);
    } // end if
    var tick = 0;
    var transMethod = "easeInOutExpo";
    var openClip = null;
    _global.selectProject = function (whichClip)
        if (!whichClip.isOpen)
            lockMovie();
            selectedProject = whichClip;
            panelOpen = true;
            closeProject(openClip);
            openClip = whichClip;
            whichClip.isOpen = true;
            whichClip.fetchContent();
            dropMe(whichClip);
        } // end if
    _global.deselectProject = function (whichClip)
        delete selectedProject;
        unlockMovie();
        panelOpen = false;
        closeProject(whichClip);
        whichClip.setRollOvers();
    _global.closeProject = function (whichClip)
        whichClip.dropContent();
        if (whichClip.isOpen)
            whichClip.isOpen = false;
            dropMe();
        } // end if
    dropMe = function (whichClip)
        if (!whichClip)
            deselectProject(selectedProject);
        } // end if
        public var _loc7 = [];
        public var _loc5 = 0;
        for (public var _loc2 = 0; _loc2 < projectArray.length; ++_loc2)
            var _loc4 = projectArray[_loc2].dataObject.category;
            if (projectArray[_loc2] != whichClip)
                if (_global["filter_" + _loc4] == true)
                    _loc7.push(projectArray[_loc2]);
                    projectArray[_loc2].isOpen = false;
                    projectArray[_loc2].isOut = false;
                    continue;
                } // end if
                if (!projectArray[_loc2].isOut)
                    _loc5 = _loc5 + 2;
                    var _loc3 = 10 + _loc5;
                    projectArray[_loc2].isOut = true;
                    projectArray[_loc2].tweenScale(0, 0, _loc3, "easeInOutExpo");
                    projectArray[_loc2].tweenPosition(0, 0, _loc3, "easeInOutExpo");
                } // end if
            } // end if
        } // end of for
        orderArray = _loc7;
        false;
        whichClip.tweenPosition(0, 0, 20, transMethod);
        whichClip.tweenScale(100, 100, 20, transMethod);
        whichClip.tweenAlpha(100, 20, transMethod);
        root["alignObjects_" + currentMode]();
    _global.hideAll = function ()
        for (public var _loc1 = 0; _loc1 < projectArray.length; ++_loc1)
            projectArray[_loc1].tweenTint(-150, -150, -150, 10);
        } // end of for
        displayPlane.tweenTint(-30, -30, -30, 10);
    _global.showAll = function ()
        for (public var _loc1 = 0; _loc1 < projectArray.length; ++_loc1)
            1;
            projectArray[_loc1].tweenTint(0, 0, 0, 10);
        } // end of for
        displayPlane.tweenTint(0, 0, 0, 10);
    alignObjects_horizontal = function ()
        delete displayPlane.onEnterFrame;
        public var range = 0;
        setPos = public function (jump)
            for (var _loc2 = 0; _loc2 < orderArray.length; ++_loc2)
                var _loc1 = orderArray[_loc2];
                var _loc8 = orderArray[_loc2 - 1];
                if (_loc2 == 0)
                    range = range - (range - (displayPlane.width + 80 - stage.stageWidth)) * 1.000000E-001;
                    var _loc7 = range / stage.stageWidth;
                    var _loc9 = _loc1.x - (_loc1.x - (80 - stage.stageWidth / 2 + -mouseX * _loc7)) * 1.000000E-001;
                else
                    _loc9 = _loc8.x + _loc8.width / 2 + _loc1.width / 2 + 10;
                } // end else if
                var _loc4 = 0;
                var _loc11 = Math.sqrt(Math.pow(displayPlane.mouseX - _loc1.x, 2) + Math.pow(displayPlane.mouseY - _loc1.y, 2)) / 4;
                if (Math.abs(displayPlane.mouseY) < 80 && !navOpen)
                    var _loc10 = 150 - Math.max(0, Math.min(100, _loc11));
                    if (_loc2 == 0)
                        _loc9 = _loc1.x - (_loc1.x - (100 - stage.stageWidth / 2 + -mouseX * _loc7)) * 1.000000E-001;
                    } // end if
                else
                    _loc10 = _loc1.scaleX - (_loc1.scaleX - 100) * 2.000000E-001;
                    _loc9 = _loc1.x - (_loc1.x - (-orderArray.length * 120 / 2 + _loc2 * 120)) * 2.000000E-001;
                } // end else if
                var _loc5 = _loc1.scaleX - (_loc1.scaleX - _loc10) * 3.000000E-001;
                var _loc6 = 100;
                if (jump)
                    _loc1.y = _loc4;
                    _loc1.x = _loc1.x - (_loc1.x - _loc9) * 9.000000E-001;
                    _loc1.scaleX = _loc1.scaleY = _loc5;
                    _loc1.alpha = _loc6;
                    continue;
                } // end if
                if (panelOpen)
                    _loc5 = 0;
                else
                    _loc5 = 100;
                } // end else if
                _loc9 = -orderArray.length * 120 / 2 + _loc2 * 120;
                var _loc3 = 5 + _loc2;
                if (_loc2 == orderArray.length - 1)
                    _loc1.tweenPosition(_loc9, _loc4, _loc3, transMethod, setMotion);
                else
                    _loc1.tweenPosition(_loc9, _loc4, _loc3, transMethod);
                } // end else if
                _loc1.tweenScale(_loc5, _loc5, _loc3, transMethod);
                _loc1.tweenAlpha(_loc6, _loc3, transMethod);
            } // end of for
        setMotion = public function ()
            if (panelOpen != true)
                displayPlane.onEnterFrame = function ()
                    setPos(true);
            } // end if
        setPos();
    _global.root = this;
    if (_root.swfRoot)
        _global.swfRoot = _root.swfRoot;
    else
        _global.swfRoot = "";
    } // end else if
    setProperty("", _quality, "BEST");
    var stageListener = new Object();
    stageListener.onResize = function ()
        layoutScreen();
    Stage.addListener(stageListener);
    layoutScreen = function ()
        navBar.x = Math.round((stage.stageWidth - 1072) / 2);
        navBar.y = Math.round((stage.stageHeight + 600) / 2);
    displayPlane.BG.width = displayPlane.slug.width = stage.stageWidth;
        displayPlane.BG.height = displayPlane.slug.height = stage.stageHeight;
    navBar.mainNav.grabber.x = stage.stageWidth/2;
        navBar.mainNav.BG.height = 30;
    navBar.mainNav.BG.width = stage.stageWidth/2;
    beginMovie = function ()
        populatePanel();
        createObjects();
        layoutScreen();
        displayPlane.tweenAlpha(100, 10);
    populatePanel = function ()
        createInterfaces();
    createBackgrounds();
        createFilters();
    createInterfaces = function ()
        _global.interfaceArray = [];
        public var _loc5 = interfaceNode.data0;
        public var _loc6 = navBar.mainNav.attachMovie("interfacePanel", "interfacePanel_1", 0);
    navBar.mainNav.BG.x
        _loc6.y = 1;
        _loc6.x = 1;
        for (public var _loc4 = 0; _loc4 < _loc5.childNodes.length; ++_loc4)
            var thisObject = _loc5["interface" + _loc4];
            var _loc3 = _loc6.attachMovie("navClip", "navClip" + _loc4, _loc4);
            _loc3.thisObject = thisObject;
            interfaceArray.push(thisObject);
            _loc3.x = _loc4 * 150+ 1;
            _loc3.textClip.displayText.text = thisObject.title.toUpperCase();
            _loc3.textClip.displayText.autoSize = true;
            _loc3.onRollOver = function ()
                this.gotoAndPlay("in");
            _loc3.onRollOut = function ()
                this.gotoAndPlay("out");
            _loc3.onPress = function ()
                _global.currentMode = this.thisObject.id;
                dropMe();
                root["alignObjects_" + this.thisObject.id]();
                setInterfaceRollovers(currentMode);
        } // end of for
        _global.currentMode = interfaceArray[ranNum(0, interfaceArray.length - 1)].id;
        setInterfaceRollovers(currentMode);
    setInterfaceRollovers = function (id)
        public var _loc4 = interfaceNode.data0;
        public var _loc3 = navBar.mainNav.interfacePanel_1;
        for (public var _loc1 = 0; _loc1 < _loc4.childNodes.length; ++_loc1)
            var _loc2 = _loc3["navClip" + _loc1];
            if (id == _loc2.thisObject.id)
                _loc2.toggleClip.gotoAndStop(1);
                continue;
            } // end if
            _loc2.toggleClip.gotoAndStop(2);
        } // end of for
    createBackgrounds = function ()
        _global.backgroundArray = [];
        public var _loc5 = backgroundNode.data0;
        public var _loc6 = navBar.mainNav.attachMovie("interfacePanel", "interfacePanel_2", 1);
        _loc6.y = navBar.mainNav.interfacePanel_1.height + 50;
        _loc6.x = 1;
        for (public var _loc4 = 0; _loc4 < _loc5.childNodes.length; ++_loc4)
            var thisObject = _loc5["interface" + _loc4];
            var _loc3 = _loc6.attachMovie("navClip", "navClip" + _loc4, _loc4);
            _loc3.thisObject = thisObject;
            backgroundArray.push(thisObject);
            _loc3.y = _loc4 * 23 + 34;
            _loc3.textClip.displayText.text = thisObject.title.toUpperCase();
            _loc3.textClip.displayText.autoSize = true;
            _loc3.onRollOver = function ()
                this.gotoAndPlay("in");
            _loc3.onRollOut = function ()
                this.gotoAndPlay("out");
            _loc3.onPress = function ()
                changeBG(this.thisObject.path);
        } // end of for
        changeBG(backgroundArray[ranNum(0, backgroundArray.length - 1)].path);
    setBGRollovers = function (path)
        public var _loc4 = backgroundNode.data0;
        public var _loc3 = navBar.mainNav.interfacePanel_2;
        for (public var _loc1 = 0; _loc1 < _loc4.childNodes.length; ++_loc1)
            var _loc2 = _loc3["navClip" + _loc1];
            if (path == _loc2.thisObject.path)
                _loc2.toggleClip.gotoAndStop(1);
                continue;
            } // end if
            _loc2.toggleClip.gotoAndStop(2);
        } // end of for
    changeBG = function (path)
        setBGRollovers(path);
        public var imageHolder = displayPlane.BG.createEmptyMovieClip("imageHolder", 0);
        if (path)
            imageHolder.alpha = 0;
            imageHolder.loadMovie(swfRoot + path);
            displayPlane.BG.onEnterFrame = function ()
                if (imageHolder.getBytesLoaded() == imageHolder.getBytesTotal() && imageHolder.getBytesTotal() > 10)
                    imageHolder.x = -imageHolder.width / 2;
                    imageHolder.y = -imageHolder.height / 2;
                    imageHolder.tweenAlpha(100, 10);
                    delete this.onEnterFrame;
                } // end if
        } // end if
    createFilters = function ()
        public var _loc6 = projectsNode.data0;
        for (public var _loc4 = 0; _loc4 < _loc6.projects.childNodes.length; ++_loc4)
            var _loc5 = _loc6.projects["category" + _loc4];
            _global["filter_" + _loc5.type] = true;
        } // end of for
    createObjects = function ()
        _global.projectCount = 0;
        _global.projectArray = [];
        public var _loc8 = projectsNode.data0;
        for (public var _loc7 = 0; _loc7 < _loc8.projects.childNodes.length; ++_loc7)
            var _loc5 = _loc8.projects["category" + _loc7];
            for (var _loc4 = 0; _loc4 < _loc5.childNodes.length; ++_loc4)
                var _loc6 = _loc5["project" + _loc4];
                _loc6.category = _loc5.type;
                var _loc3 = displayPlane.attachMovie("displayNode", "displayNode_" + projectCount, projectCount);
                _loc3.scaleX = _loc3.scaleY = 0;
                _loc3.dataObject = _loc6;
                projectArray.push(_loc3);
                ++projectCount;
            } // end of for
        } // end of for
        _global.orderArray = projectArray;
        public var _loc9 = displayPlane.attachMovie("slug", "slug", projectCount);
        _loc9.visible = false;
        _loc9.onRollOver = public function ()
        _loc9.useHandCursor = false;
        displayPlane.createEmptyMovieClip("topClip", projectCount + 1);
        displayPlane.createEmptyMovieClip("topClip2", projectCount + 2);
        this["alignObjects_" + currentMode]();
    _global.bumpToTopLevel = function (whichClip)
        if (whichClip.getDepth() < displayPlane.topClip.getDepth())
            displayPlane.topClip.swapDepths(whichClip);
        } // end if
    _global.bumpToOrgLevel = function (whichClip)
        if (whichClip.getDepth() > displayPlane.topClip.getDepth())
            displayPlane.topClip.swapDepths(whichClip);
        } // end if
    _global.bumpToTopLevel2 = function (whichClip)
        if (whichClip.getDepth() < displayPlane.topClip2.getDepth())
            displayPlane.topClip2.swapDepths(whichClip);
        } // end if
    _global.bumpToOrgLevel2 = function (whichClip)
        if (whichClip.getDepth() > displayPlane.topClip2.getDepth())
            displayPlane.topClip2.swapDepths(whichClip);
        } // end if
    _global.lockMovie = function ()
        displayPlane.slug.visible = true;
    _global.unlockMovie = function ()
        displayPlane.slug.visible = false;
    _global.setTag = function (textPass)
        nameTag.displayText.text = textPass.toUpperCase();
        nameTag.displayText.autoSize = true;
        nameTag.BG.width = nameTag.displayText.width + 20;
        nameTag.BG.height = nameTag.displayText.height + 6;
        nameTag.displayText.x = -Math.round(nameTag.displayText.width / 2);
        nameTag.displayText.y = -Math.round(nameTag.displayText.height / 2) + 1;
        public var X = Math.round(nameTag.displayText.width / 2) + 30;
        public var Y = Math.round(nameTag.displayText.height / 2) + 30;
        if (nameTag.visible != true)
            nameTag.visible = true;
            if (mouseX > 500)
                var hTag = "left";
                nameTag.x = mouseX - X;
            else
                var hTag = "right";
                nameTag.x = mouseX + X;
            } // end else if
            if (mouseY > 100)
                var vTag = "bottom";
                nameTag.y = mouseY - Y;
            else
                var vTag = "top";
                nameTag.y = mouseY - Y;
            } // end else if
            nameTag.y = mouseY;
            nameTag.onEnterFrame = function ()
                if (hTag == "left")
                    var _loc4 = _root.mouseX - (this.x + X);
                else
                    _loc4 = _root.mouseX - (this.x - X);
                } // end else if
                if (vTag == "bottom")
                    var _loc3 = _root.mouseY - (this.y + Y);
                else
                    _loc3 = _root.mouseY - (this.y - Y);
                } // end else if
                this.x = Math.round(this.x + _loc4 * 1.000000E-001);
                this.y = Math.round(this.y + _loc3 * 1.000000E-001);
        } // end if
    _global.killTag = function ()
        _root.nameTag.visible = false;
        delete _root.nameTag.onEnterFrame();

    First off i would like to thank you for your reply!  Second i am new to adobe flash and actionscript so let me explain to you what i trying to do.  I downloaded a horizontal button menu and a photo slideshow made in flash and i have been trying to get them both to work in the same file.  They both have xml's that i edited with my own stuff.  Everything for the current web page i am createing right now is done its just getting them all together.  I think the buttons that i downloaded are in as2 and im trying to get them into as3 with the slideshow.  I am not 100% sure the buttons are as2 or not but i know when i import the slide show and change the setting in the publish settings to as3 the buttons dont show up but as long as its in as2 they will show up.  Is there any easy way around this?
    Thanks!
    Marcus

  • Urgent! :Getting Actionscript to 'pause' - actionscript 2.0

    Hi guys,
    I need the actionscript to carry out a piece of code, then
    pause for 0.5 seconds, then carry out the next piece of code, then
    pause, then next code e.t.c
    There will be twenty pieces of code that build up an
    animation with tweens that need to start at different times.
    I guess its something to do with setInterval, but I'm not
    sure on the syntax, as there 20 pieces of code I don't want lots of
    nested code (though if thats the only way to do it then so be it!)
    I'd really appreciate your help guys
    cheers

    Ok, I've put it into my movie and the box2 drops perfectly
    after the first interval. However, instead of box falling after the
    second interval, box 2 keeps repeating its tween!
    Its probably something very simple and I'm being rather
    stupid! Thanks for all your help, I wouldn't be reaching my
    deadline without your advice!
    Heres the code:
    import mx.transitions.easing.Bounce;
    import mx.transitions.Tween;
    //following code defines the tweens that control the boxes
    //row 1
    var drop1:Tween = new Tween(box1, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 330, 20, false);
    var drop2:Tween = new Tween(box2, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 330, 20, false);
    var drop3:Tween = new Tween(box3, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 330, 20, false);
    var drop4:Tween = new Tween(box4, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 330, 20, false);
    //row 2
    var drop5:Tween = new Tween(box5, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 256, 16, false);
    var drop6:Tween = new Tween(box6, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 256, 16, false);
    var drop7:Tween = new Tween(box7, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 256, 16, false);
    var drop8:Tween = new Tween(box8, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 256, 16, false);
    //row 3
    var drop9:Tween = new Tween(box9, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 182, 12, false);
    var drop10:Tween = new Tween(box10, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 182, 12, false);
    var drop11:Tween = new Tween(box11, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 182, 12, false);
    var drop12:Tween = new Tween(box12, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 182, 12, false);
    //row 4
    var drop13:Tween = new Tween(box13, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 108, 8, false);
    var drop14:Tween = new Tween(box14, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 108, 8, false);
    var drop15:Tween = new Tween(box15, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 108, 8, false);
    var drop16:Tween = new Tween(box16, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 108, 8, false);
    //row 5
    var drop17:Tween = new Tween(box17, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 34, 4, false);
    var drop18:Tween = new Tween(box18, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 34, 4, false);
    var drop19:Tween = new Tween(box19, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 34, 4, false);
    var drop20:Tween = new Tween(box20, "_y",
    mx.transitions.easing.Bounce.easeOut, -70, 34, 4, false);
    //stops the tweens from starting
    drop2.stop();
    drop3.stop();
    drop4.stop();
    drop5.stop();
    drop6.stop();
    drop7.stop();
    drop8.stop();
    drop9.stop();
    drop10.stop();
    drop11.stop();
    drop12.stop();
    drop13.stop();
    drop14.stop();
    drop15.stop();
    drop16.stop();
    drop17.stop();
    drop18.stop();
    drop19.stop();
    drop20.stop();
    onEnterFrame = function () {
    drop1.start();
    delete this.onEnterFrame;
    drop1.onMotionStarted = function() {
    myInterval = setInterval(pauseTween, 500);
    function pauseTween() {
    drop2.start();
    clearInterval(myInterval);
    drop2.onMotionStarted = function() {
    myInterval = setInterval(pauseTween, 500);
    function pauseTween() {
    drop3.start();
    clearInterval(myInterval);
    Its probably soemthing to do with where I've put the second
    section. Any ideas?

  • Actionscript 2 or actionscript 3

    Dear All,
    haven't used Flash for several years having to relearn it. Dusted down my books and am working my way through them. Would it be worth my while to learn AC 3 - means buying BIG books. I am obviously not an advanced pro. Haven't finally decided what I will do. Possible a movie to showcase and demonstrate  some art work I intend to promote. This would include text, navigational elements, galleries and possibly demonstrations of the techniques I use. I might put this on a disc that I would distribute. This might translate/develop wholly or partially into a web site. Would AC2 be sufficient or would there be benefits to AC3?
    Thanks

    All of what you describe can be done using AS2, so if the intentions are not to pursue a career as a Flash designer, and you don't mind saving some money on books (or software if you still have an old version), then learning AS3 would only be a nice to do but not a need to.
    There are benefits to AS3 but they might not be relevant to your current needs.

  • Parser similar to Actionscript 3(Standard ECMA-357)

    Hi i've used the xml parser in Actionscript 3 extensively and i'm wondering if there is a similar parser i Java(it seems to be kind of a jungle)
    Edited by: Kribba on Oct 25, 2007 1:59 AM

    I don't know anything about that parser. But Java comes with a compliant XML parser built into it. Unless you have some special requirements for parsing you could just use that.

  • Flex RPC mapping Java nested classes to ActionScript classes

    We are calling a Java method in our project using
    RemoteObject the value returned by the java method is a ArrayList
    containing instances of a class say ParentClass with some nested
    classes.
    The structure of ParentClass(Java) is something like this
    class ParentClass {
    //some primitives
    private ChildClassA childAInstance;
    private ChildClassB childBInstance;
    //getters setters
    We have created similar class structure on the ActionScript
    side, the ActionScript classes(ParentClass,ChildClassA
    ,ChildClassB) have been properly annotated with the [RemoteClass]
    metadata tag,
    The problem is that though i'm getting the primitive data
    members of the ParentClass through RPC in my corresponding AS
    ParentClass class i'm getting an runtime exception trying to access
    ChildClassA,ChildClassB members.
    Am i missing something, exactly the same scenario is
    mentioned in this article
    http://www.adobe.com/devnet/flex/articles/complex_data.html
    But the Object.registerClass method mentioned in the tutorial
    is giving me compilation error, the sample code attached with the
    article is corrupt zip too.
    Please help me out on this

    JAXB will create classes from an XML schema, SAX is a parser library and JAXP is a library of XML a bunch of XML tools.
    I don't care for JAXB too much. I would skip it and go right to the JAX-RPC spec (WebServices).

  • How can I convert an ActionScript 2 website to ActionScript3?

    I have a website which currently uses Action Script 2.
    When I change the Publish settings from Flash 7 to Flash 9
    and from ActionScript 2 to ActionScript 3, then publish the file, I
    get the following warning:
    WARNING: Actions on button or MovieClip instances are not
    supported in ActionScript 3.0. All scripts on object instances will
    be ignored.
    What can I do to correct this error?
    Is there a simple tutorial that explains how to make the
    changes?
    I subscribe to Lynda.com but I haven't seen useful there.
    I should warn you that I am a beginner when it comes to
    coding.
    Thank you

    Hi NickLW,
    In AS3 there's (like the error mentions) no attaching script
    to
    instances directly. You probably have something like:
    on(release){
    gotoAndPlay( 5 );
    well, atleast the "on( something )" part...
    That's a nono in AS3.
    You'd have to change it to code in a keyFrame in the timeline
    like:
    my_btn.addEventListener( MouseEvent.CLICK, onClick );
    function onClick( e:MouseEvent )
    gotoAndPlay( 5 )
    where my_btn is the instancename of the button.
    Look for migration from as2 to as3 in available resources
    (like:
    http://www.mandalatv.net/fcny/)
    Sure there's no mention on the Lynda courses?
    NickLW wrote:
    > I have a website which currently uses Action Script 2.
    > When I change the Publish settings from Flash 7 to Flash
    9 and from
    > ActionScript 2 to ActionScript 3, then publish the file,
    I get the following
    > warning:
    >
    > WARNING: Actions on button or MovieClip instances are
    not supported in
    > ActionScript 3.0. All scripts on object instances will
    be ignored.
    >
    > What can I do to correct this error?
    > Is there a simple tutorial that explains how to make the
    changes?
    > I subscribe to Lynda.com but I haven't seen useful
    there.
    > I should warn you that I am a beginner when it comes to
    coding.
    >
    > Thank you
    >
    Manno Bult
    http://www.aloft.nl

  • Can't access object using "id" or "name" if created with actionscript

    How can you register an instance of an object with actionscript so that it's id or name value is accessible?
    I included a simple example where a Button is created using mxml and in the same way it is created using actionscript.  The actionscript object is inaccessible using it's "id" and "name" property.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
                   creationComplete="application1_creationCompleteHandler(event)">
        <fx:Script>
            <![CDATA[
                import mx.events.FlexEvent;
                protected function application1_creationCompleteHandler(event:FlexEvent):void
                    import spark.components.Button;
                    var asBtn:Button = new Button();
                    asBtn.label = "actionscript";
                    asBtn.x = 200;
                    asBtn.id = "asButton";
                    asBtn.name = "asButtonName";
                    addElement(asBtn);
                    trace("mxmlButton="+this["mxmlButton"].label); // returns: mxml  label
                    //trace("mxmlButton="+this["asButton"].label); // returns runtime error: ReferenceError: Error #1069: Property asButton not found on TestId and there is no default value.
                    //trace("mxmlButton="+this["asButtonName"].label); // returns runtime error: ReferenceError: Error #1069: Property asButtonName not found on TestId and there is no default value.
            ]]>
        </fx:Script>
        <s:Button
            id="mxmlButton"
            label="mxml label"
            alpha="0.8"/>
    </s:Application>

    Hi Dan,
    It is a very rare occurrence when I miss not being able to access an object (object property, really) using the ["name"] notation for objects created using actionscript.
    In MXML the compiler is conveniently adding an attribute to the class with the same name as the id, so you can conveniently refer to it using the [] notation. While we explicitly specify an application container to use, the MXML compiler creates a custom container which is a derivative of the base container and to that it adds properties for the children declared in MXML. I guess it also effectively calls "addElement" for us when  the container is being constructed.
    Your example assumes that using "addElement" to add the button to the application container is the same as declaring a variable (ie property ). It isn't, so there's no point in looking for an property of the name "as3Button" using the [] notation, because it doesn't exist. The container is managing a collection of children in it's display list and that's not the same as being accessible as properties of the container.
    Generally speaking, accessing properties using the ["name"] syntax isn't necessary.
    Paul
    [edit: you may wonder why "addElement" doesn't conveniently also add the "id" attribute to be an property of the container class. Unfortunately, it can't because the container class would need to be dynamic and it's not. A further complication would be that adding properties at runtime would invite naming clashes at runtime with associated mayhem. MXML can do this because the compiler generates the class and can trap name duplication at compile time.
    Great question, BTW.
    -last edit changed my "attributes" to be "properties" in line with Adobe's terminology]

  • Using SWL files with ActionScript 2

    Hi,
    Hopfully this wont get too drown out..I have a cisco DMP-4310g that can use flash files localy on the device i'm tring to find out what type of SWF files can be used. Here is a link to help... refer to the shockwave part  http://www.cisco.com/en/US/docs/video/digital_media_systems/5_x/5_2/dmd/user/guide/playlis ts.pdf
    In the document it says the device dont support ActionScript 3 only ActionScript 2. So that bring me to my next question what do I need to create the SWF files this device can play. I'm not too savy with creating the files and thought I would ask couse I'm not too sure I know what I need to create them. 
    Thanks in advance

    The info you cited answers your wondering... you can only use swf's that use Actionscript 2.  You can use any version of Flash greater than Flash MX to do that.  Prior to that version (inclusive) there was no AS2.

  • AdvancedDataGrid - Add columns with ActionScript

    I'm trying to add columns to an AdvancedDataGrid via ActionScript.
    I can't get it to work.
    I've tried two approaches -- One with an intermediary array to store the columns then set the adg's columns to the array; One where I assign the columns directly to the adg's columns array.
    They both fail in their own way.  The columns don't "take" and the adg uses the dataProviders defaults, or there are no columns at all.
    "adg_test.mxml" has the AdvancedDataGrids/code. 
    "adg_test_renderer.mxml" is a renderer for one of the columns.
    Would appreciate learning what I'm doing wrong.
    Thanks for any help.
    === START adg_test_renderer.mxml  ===
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
         <mx:Button id="btnTest" label="Renderer Working"/>
    </mx:VBox>
    === END adg_test_renderer.mxml  ===
    == START adg_test.mxml ====
    <?xml version="1.0"?>
    <mx:Application
        xmlns:mx="http://www.adobe.com/2006/mxml"
        initialize="init()">
        <mx:Script>
          <![CDATA[
             import mx.collections.ArrayCollection;
             [Bindable]
             private var dpADGExplicit:ArrayCollection = new ArrayCollection([
               {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99},
               {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99},
               {Artist:'Saner', Album:'A Child Once', Price:11.99},
               {Artist:'Saner', Album:'Helium Wings', Price:12.99},
               {Artist:'The Doors', Album:'The Doors', Price:10.99},
               {Artist:'The Doors', Album:'Morrison Hotel', Price:12.99},
               {Artist:'Grateful Dead', Album:'American Beauty', Price:11.99},
               {Artist:'Grateful Dead', Album:'In the Dark', Price:11.99},
               {Artist:'Grateful Dead', Album:'Shakedown Street', Price:11.99},
               {Artist:'The Doors', Album:'Strange Days', Price:12.99},
               {Artist:'The Doors', Album:'The Best of the Doors', Price:10.99}
             [Bindable]
             private var dpADGActionScript:ArrayCollection = new ArrayCollection([
               {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99},
               {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99},
               {Artist:'Saner', Album:'A Child Once', Price:11.99},
               {Artist:'Saner', Album:'Helium Wings', Price:12.99},
               {Artist:'The Doors', Album:'The Doors', Price:10.99},
               {Artist:'The Doors', Album:'Morrison Hotel', Price:12.99},
               {Artist:'Grateful Dead', Album:'American Beauty', Price:11.99},
               {Artist:'Grateful Dead', Album:'In the Dark', Price:11.99},
               {Artist:'Grateful Dead', Album:'Shakedown Street', Price:11.99},
               {Artist:'The Doors', Album:'Strange Days', Price:12.99},
               {Artist:'The Doors', Album:'The Best of the Doors', Price:10.99}
            private function init():void
                var arr:Array=[];//Intermediary array that will become the AdvancedDataGridColumn array
                var col:AdvancedDataGridColumn = new AdvancedDataGridColumn();
                col.dataField = "Artist";
                arr.push(col);
                col.dataField = "Album";
                col.visible = false;
                arr.push(col);
                col.dataField = "Price";
                col.itemRenderer = new ClassFactory(adg_test_renderer);
                arr.push(col);
                adgActionScript.columns = arr;
                //ALTERNATE UNSUCCESFUL APPROACH
                col.dataField = "Artist";
                adgActionScript.columns.push(col);
                col.dataField = "Album";
                col.visible = false;
                adgActionScript.columns.push(col);
                col.dataField = "Price";
                col.itemRenderer = new ClassFactory(adg_test_renderer);
                adgActionScript.columns.push(col);
          ]]>
        </mx:Script>
        <mx:Label text="Explicit Columns"/>
        <mx:AdvancedDataGrid
            id="adgExplicit"
            width="100%" height="100%"
            sortExpertMode="true"
            dataProvider="{dpADGExplicit}">
            <mx:columns>
                <mx:AdvancedDataGridColumn dataField="Artist" />
                <mx:AdvancedDataGridColumn dataField="Album" visible="false"/>
                <mx:AdvancedDataGridColumn dataField="Price" itemRenderer="adg_test_renderer"/>
            </mx:columns>
       </mx:AdvancedDataGrid>
       <mx:Label text="ActionScript Columns (If ActionScript works: Arist column should be hidden. Should see Album column with data and Price column with buttons."/>
        <mx:AdvancedDataGrid
            id="adgActionScript"
            width="100%" height="100%"
            sortExpertMode="true"
            dataProvider="{dpADGActionScript}">
       </mx:AdvancedDataGrid>
    </mx:Application>
    == END adg_test.mxml ====

    Thanks so much for your help.
    Here's how I altered your code for my example.  This logic allows easier assignment of additional column parameters.
    === START adg_test_renderer.mxml  ===
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml">
        <mx:Button id="btnTest" label="Renderer Working"/>
    </mx:VBox>
    === END adg_test_renderer.mxml  ===
    == START adg_test.mxml ====
    <?xml version="1.0"?>
    <mx:Application
        xmlns:mx="http://www.adobe.com/2006/mxml"
        initialize="init()">
        <mx:Script>
          <![CDATA[
             import mx.collections.ArrayCollection;
             [Bindable]
             private var dpADGExplicit:ArrayCollection = new ArrayCollection([
               {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99},
               {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99},
               {Artist:'Saner', Album:'A Child Once', Price:11.99},
               {Artist:'Saner', Album:'Helium Wings', Price:12.99},
               {Artist:'The Doors', Album:'The Doors', Price:10.99},
               {Artist:'The Doors', Album:'Morrison Hotel', Price:12.99},
               {Artist:'Grateful Dead', Album:'American Beauty', Price:11.99},
               {Artist:'Grateful Dead', Album:'In the Dark', Price:11.99},
               {Artist:'Grateful Dead', Album:'Shakedown Street', Price:11.99},
               {Artist:'The Doors', Album:'Strange Days', Price:12.99},
               {Artist:'The Doors', Album:'The Best of the Doors', Price:10.99}
             [Bindable]
             private var dpADGActionScript:ArrayCollection = new ArrayCollection([
               {Artist:'Pavement', Album:'Slanted and Enchanted', Price:11.99},
               {Artist:'Pavement', Album:'Brighten the Corners', Price:11.99},
               {Artist:'Saner', Album:'A Child Once', Price:11.99},
               {Artist:'Saner', Album:'Helium Wings', Price:12.99},
               {Artist:'The Doors', Album:'The Doors', Price:10.99},
               {Artist:'The Doors', Album:'Morrison Hotel', Price:12.99},
               {Artist:'Grateful Dead', Album:'American Beauty', Price:11.99},
               {Artist:'Grateful Dead', Album:'In the Dark', Price:11.99},
               {Artist:'Grateful Dead', Album:'Shakedown Street', Price:11.99},
               {Artist:'The Doors', Album:'Strange Days', Price:12.99},
               {Artist:'The Doors', Album:'The Best of the Doors', Price:10.99}
            private function init():void
                var arrCols:Array = adgActionScript.columns;
                var col:AdvancedDataGridColumn;
                col = new AdvancedDataGridColumn;
                col.dataField = "Artist";
                arrCols.push(col);
                col = new AdvancedDataGridColumn;
                col.dataField = "Album";
                col.visible = false;
                arrCols.push(col);
                col = new AdvancedDataGridColumn;
                col.dataField = "Price";
                col.itemRenderer = new ClassFactory(adg_test_renderer);
                arrCols.push(col);   
                adgActionScript.columns = arrCols;
                adgActionScript.validateNow();
          ]]>
        </mx:Script>
        <mx:Label text="Explicit Columns"/>
        <mx:AdvancedDataGrid
            id="adgExplicit"
            width="100%"
            height="100%"
            dataProvider="{dpADGExplicit}">
            <mx:columns>
                <mx:AdvancedDataGridColumn dataField="Artist" />
                <mx:AdvancedDataGridColumn dataField="Album" visible="false"/>
                <mx:AdvancedDataGridColumn dataField="Price" itemRenderer="adg_test_renderer"/>
            </mx:columns>
       </mx:AdvancedDataGrid>
       <mx:Label text="ActionScript Columns"/>
        <mx:AdvancedDataGrid
            id="adgActionScript"
            width="100%"
            height="100%"
            dataProvider="{dpADGActionScript}">
       </mx:AdvancedDataGrid>
    </mx:Application>
    == END adg_test.mxml ====

Maybe you are looking for

  • How do you construct a web form using coldfusion??

    How do you construct a web form using coldfusion?? any examples? thanks in adv.

  • Hi i can't reinstall windows vista home os on my moms laptop

     the last computer repair man took out windows vista home premium and put windows 7 home premium upgrade but she has a vista laptop and i dont have windows 7 upgrade disk how do i get it to vista again please help me fix it and i will show u how to f

  • HT4367 I don't think I have an open outlet for a micro USB cable on my apple tv

    I understand that I need to connect a micro usb cable from my apple tv to my computer to restore, but i don't have an outlet on the back of my apple tv to do so.  Am i missing something?

  • Long start up after I Login

    Hi Macbook Air 11 takes along time to get to the desktop after I enter my password 2-3 minutes. this is the same even if i creat a new user.. This happened about 5 months ago and an Apple repair shop reinstalled Lion over my current setup and all was

  • Photos, .lrcat and .lrdata on Dropbox

    Anyone tried to use dropbox as the location for photos and catalog files? I'm trying to do this, but everytime I open Lightroom from a diferent machine, it creates conflicting .lrdata and .lrcat files on Dropbox folder. Any tips? Or any other idea to