Old 11-26-2009, 01:04 PM   #1
ahmadjod
Registered User
help

Hello everyone:
i tried to figure out the XML url from fla action script file but i couldnt make it

if any one can help me Please

here is the code :



Code:
function setFeatureData(_node, _val)
{
    featureData = com.dcx.utils.HyperXML.getNodesByAttribute(_node, _val, "id")[0];
    trace ("feature data from function = " + featureData);
} // End of the function
function setFeatureCallout()
{
    var _loc1 = new com.dcx.data.JavascriptGenerator("getFeatureCallout");
    var _loc2 = com.dcx.utils.HyperXML.getNodesByAttribute(featureData, _loc1.getJSResult(), "title")[0].firstChild.toString();
    com.comfort.FeatureOwnershipCallout.currentId = _loc1.getJSResult();
    com.comfort.FeatureOwnershipCallout.resetFeature(_loc2);
} // End of the function
function trackMe(pos, id)
{
    flashTracker.ClickTrack(pos, id);
} // End of the function
function trackMeGo(pos, id, url)
{
    flashTracker.LinkTrack(id, pos, url);
} // End of the function
function fontFix()
{
    _level0.clipLoader.moduleContainer.module.contentMain.suspensionContent.textTreatment.subheadMask._height = 200;
} // End of the function
function fadeClip()
{
    clearInterval(intervalFade);
    caurina.transitions.Tweener.removeTweens(overlay);
    caurina.transitions.Tweener.addTween(overlay, {_autoAlpha: 75, time: 5.000000E-001, transition: "easeOutSine"});
    com.comfort.ModuleFeezer.pause();
    fadedOn = true;
} // End of the function
function fadeClipOut()
{
    clearInterval(intervalFade);
    intervalFade = setInterval(fadeMe, 500);
} // End of the function
function fadeMe()
{
    clearInterval(intervalFade);
    caurina.transitions.Tweener.addTween(overlay, {_autoAlpha: 0, time: 2.000000E-001, transition: "easeOutSine"});
    com.comfort.ModuleFeezer.resume();
    fadedOn = false;
} // End of the function
function init()
{
    com.comfort.DataMigrater.createManifest(scope.hx._xml);
    trace ("load protocal = " + this._url.split(":")[0]);
    _root.log.info("############################# -- parsing xml for ruggedly refined and comfort module -- #############################");
    var _loc42 = com.dcx.utils.HyperXML.getNodesByAttribute(scope.hx._xml, "crawl_nav", "id")[0];
    var _loc4 = com.dcx.utils.HyperXML.getNodesByAttribute(_loc42, "crawl", "class");
    setFeatureData(scope.hx._xml, _root.data_div);
    for (var _loc3 = 0; _loc3 < _loc4.length; ++_loc3)
    {
        var _loc29 = com.dcx.utils.HyperXML.getNodesByAttribute(_loc4[_loc3], "year", "class")[0].childNodes.join("");
        var _loc10 = com.dcx.utils.HyperXML.getNodesByAttribute(_loc4[_loc3], "vehicle_name", "class")[0].childNodes.join("");
        var _loc39 = _loc29 + " " + _loc10;
        var _loc7 = _loc4[_loc3].firstChild.attributes.id;
        _loc7 = _loc7.slice(0, _loc7.lastIndexOf("_crawl"));
        var _loc27 = com.dcx.utils.HyperXML.getNodesByAttribute(_loc4[_loc3], "starting_at_p", "class")[0].childNodes.join("");
        var _loc18 = _loc27.split("<span id=\"starting_at_price\">");
        _loc27 = _loc18.join("");
        _loc18 = _loc27.split("</span>");
        _loc27 = _loc18.join("");
        var _loc34 = "";
        _loc18 = _loc34.split("<span id=\"as_shown_price\">");
        _loc34 = _loc18.join("");
        _loc18 = _loc34.split("</span>");
        _loc34 = _loc18.join("").toLowerCase();
        var _loc25 = com.dcx.utils.HyperXML.getNodesByAttribute(_loc4[_loc3], "epa_title", "class")[0].childNodes.join("");
        var _loc40 = com.dcx.utils.HyperXML.getNodesByAttribute(_loc4[_loc3], "epa_as_shown_title", "class")[0].childNodes.join("");
        _loc25 = createDisclaimerCode(_loc25);
        _loc40 = createDisclaimerCode(_loc40);
        var _loc19 = com.dcx.utils.HyperXML.getNodesByAttribute(_loc4[_loc3], "city_mpg", "class")[0].firstChild;
        var _loc32 = com.dcx.utils.HyperXML.getNodesByAttribute(_loc4[_loc3], "hwy_mpg", "class")[0].firstChild;
        var _loc12 = com.dcx.utils.HyperXML.getNodesByAttribute(_loc4[_loc3], "city_mpg_as_shown", "class")[0];
        var _loc17 = _loc12.childNodes.join("<BR />");
        var _loc14 = com.dcx.utils.HyperXML.getNodesByAttribute(_loc4[_loc3], "hwy_mpg_as_shown", "class")[0].childNodes.join("<BR />");
        var _loc13 = com.dcx.utils.HyperXML.getNodesByAttribute(_loc4[_loc3], "crawl_links", "class")[0];
        var _loc8 = com.dcx.utils.HyperXML.getNodesByName(_loc13, "a");
        var _loc5 = new Array();
        for (var _loc6 = 0; _loc6 < _loc8.length; ++_loc6)
        {
            _loc5.push({href: _loc8[_loc6].attributes.href, txt: _loc8[_loc6].firstChild.toString()});
        } // end of for
        var _loc16 = com.dcx.utils.HyperXML.getNodesByAttribute(_loc4[_loc3], "crawl_thumb", "class")[0];
        var _loc20 = com.dcx.utils.HyperXML.getNodesByName(_loc16, "a")[0].attributes.href;
        for (var _loc6 = 0; _loc6 < modelOrder.length; ++_loc6)
        {
            if (modelOrder[_loc6].vehicle == _loc7)
            {
                var _loc23 = modelOrder[_loc6].y;
            } // end if
        } // end of for
        var _loc15 = {smLabel: _loc10, lgLabel: _loc39, msrpLabel: _loc27, shownLabel: _loc34, mpgCity: _loc19, mpgCityAsShown: _loc17, mpgHwyAsShown: _loc14, mpgHwy: _loc32, epaLabel: _loc25, epaAsShownLabel: _loc40, link1: _loc5[0].href, link1text: _loc5[0].txt, link2: _loc5[1].href, link2text: _loc5[1].txt, link3: _loc5[2].href, link3text: _loc5[2].txt, link4: _loc5[3].href, link4text: _loc5[3].txt, crawlPath: assetPath + "vehicles/" + _loc7 + ".swf", tooltipX: _loc23, mc: _loc7, year: _loc29, URI: _loc20};
        crawlArray.push(_loc15);
    } // end of for
    setUp();
    if (scope._url.split(":")[0] == "file")
    {
        clipLoader.loadMovie(_root.top_asset);
        _cm.loadCrawls();
    }
    else
    {
        var _loc43 = new com.dcx.data.QuerieStringData();
        _loc43.onComplete = function (data)
        {
            _root.log.info("######################## -- requesting query data -- ########################");
            _root.log.info(data);
            _root.log.info("^^^ quiry data ^^^");
            clipLoader.loadMovie(_root.top_asset);
            _root.querieData = data;
            if (_root.querieData.nocrawls != "true")
            {
            } // end if
        };
    } // end else if
} // End of the function
function setUp()
{
    for (var _loc5 = 0; _loc5 < modelOrder.length; ++_loc5)
    {
        var _loc4 = modelOrder[_loc5].vehicle;
        _root.log.info(_loc4);
        for (var _loc3 = 0; _loc3 < crawlArray.length; ++_loc3)
        {
            if (crawlArray[_loc3].mc == _loc4)
            {
                models.push(crawlArray[_loc3]);
                _root.log.info("match");
            } // end if
        } // end of for
    } // end of for
    initDirtBackground();
    initToolTip();
    this.generateNav(this, models, startPosition, spacingX);
} // End of the function 
ahmadjod is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?
 

Old 11-27-2009, 04:34 PM   #2
jase21
 
jase21's Avatar
Location Kerala, India

Posts 268
seems like a decompiled swf

[edit]
is it fair btw.
any way the xml is right in front of you

Last edited by jase21; 11-27-2009 at 04:41 PM.. Reason: ..thinking
jase21 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:16 PM.

SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple. flash components
Creative web apps. Make your own free flash banners and photo slideshows.
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.

Flash Transition Effects

Flash Effect Tutorials

Digicrafts Components
Flash effects. Art without coding. Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com
Streamsolutions Content Delivery Networks Flipping Book - page flip flash component.
Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery Learn how to advertise on kirupa.com
 

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com