loading XML with flashvars?

Hey people

I have a flash photo gallery that uses XML to indicate the flash the pictures to load and display. Works really well, but I want to take a step further and be able to specify the xml file that is loaded from HTML. I guess that using Flashvars, unless there is another method that works best?

in my actionscript I have this line

xmlData.load ("images.xml");

and who says it load in the xml file that has the info for all the photos

is there a way to replace it with flash vars and actually make it work?

What we are trying to do is a gallery of different pictures on each page, and instead of making a separate flash animation & xml for each of them, we just have 1 'gloabal"FlashVideo, and then just a different xml file for each different gallery.

Anyone got any ideas how I can make it work?

I know that this is probably something easy that I keep missing :(

You just replace the name of the file: xmlData.load ("images.xml"); with
your name of variable, set by FlashVars. I suggest using SWFObject to set the
var Flash - it's really easy.

Example:
Then in Flash:
xmlData.load (xmlFile);

http://blog.deconcept.com/SWFObject/

--
Dave-
Developer leader
http://www.blurredistinction.com
Adobe Community Expert
http://www.Adobe.com/communities/experts/

Tags: Adobe Animate

Similar Questions

  • How to load xml with base64 big element using sqlldr

    Hello
    I'm trying to load xml data into Oracle 10 g 2. I want to use tool standard sqlldr if possible.
    (1) I recorded my schema successfully:
    -Put the 6kbytes schema in a table
    - and
    DECLARE
    schema_txt CLOB.
    BEGIN
    SELECT the text IN schema_txt patterns;
    DBMS_XMLSCHEMA.registerschema ("uddkort.xsd", schema_txt);
    END;
    -Success: I can create table like:
    CREATE TABLE XMLTYPE XmlTest
    XMLSCHEMA 'uddkort.xsd '.
    ELEMENT 'profile '.
    ;
    -USER_XML_TABLES shows:
    XMLSCHEMA, SCHEMA_OWNER, NOM_ELEMENT, TABLE_NAME, STORAGE_TYPE
    "XMLTEST", "uddkort.xsd", "THISE", "profile", "OBJECT-RELATIONAL".

    (2) how can I load XML data into that?
    -An element of the schema is < xs: element name = "billede" type = "xs: base64Binary" minOccurs = "0" / >
    -This data field may be 10kbytes or more

    I tried many control files - search the net but no luck so far.
    Any suggestions?
    / Christmas, DK

    I regret - it seems, Miss me some basic understanding here (XBD is new to me...):

    Reread this part of the documentation on the XML to mappings of SQL types:
    http://download.Oracle.com/docs/CD/B19306_01/AppDev.102/b14259/xdb05sto.htm#sthref831

    When you save the relational storage schema object, Oracle creates SQL object types to support the underlying structure.
    In particular (see table 5-6 in the link), XS: base64Binary is mapped to a compatible SQL binary data type: RAW (default), or BLOB (if we use the annotation).

    In my example, the generated object type is:

    SQL> desc "image888_T"
     Nom                                       NULL ?   Type
     ----------------------------------------- -------- ----------------------------
     SYS_XDBPD$                                         XDB.XDB$RAW_LIST_T
     name                                               VARCHAR2(4000 CHAR)
     content                                            BLOB
    

    I don't understand how this can be (is) done automatically?

    When you load an XML instance in the table, the contents of the string encoded in base64 is automatically converted into format binary original and stored as a BLOB (that's works the mapping).
    Then, when you run:

    select extractvalue(t.object_value, '/image/content') from images_table t;
    

    It follows a BLOB column containing the original image, not the string base64, so you won't need a converter.

  • Loading XML with .AS file

    I am new to writing .as files. I have no problem loading in XML format and analysis it when I do it on the first image of one. IN FLORIDA.

    Im trying to do the same using statements classes, packages.

    Ive tried unsuccessfully

    Can someone tell me how close or how far I get this and give help.

    Thank you.

    package {}
    import flash.display.Sprite;
    import flash.events. *;
    flash.net import. *;
    import flash.utils. *;
    import flash.display.Loader;

    public class productBrochureClass extends Sprite {}
    private var: padding: uint = 10;
    private var listHolder:Sprite;
    private var myXML:XML;
    public var xmlLoader:URLLoader;
    var xmlLoader:URLLoader = new URLLoader();

    public void productBrochureClass() {}
    var xmlloader:URLLoader = new URLLoader();
    listHolder = new Sprite();

    xmlLoader.addEventListener (Event.COMPLETE, handleComplete);
    xmlLoader.load (new URLRequest("xml/productBrochuresDatasheets.xml"));

    addChild (listHolder);
    trace ("listholder")
    trace ("xml loaded")
    }

    }
    public void handleComplete(event:Event): void {}
    myXML = new XML (event.target.data);
    createListFromXML (myXML);
    trace ('handshake Complete')
    }



    private void createListFromXML(myXML:XML):void {}
    for (var i: uint = 0; i < xmlLoader.item.length (); i ++) {}
    var listItem:ListItem = new ListItem();
    listItem.setText ("list item" + i + ":" + xml...) Item[i].@name);
    listItem.setID (i);
    listItem.y = i * listItem.height + i * padding material.
    listHolder.addChild (listItem);
    }

    }
    }

    The error means that you lost a brace and close the class leaving something outside the class, also remember that AS3 is case sensitive, don't forget not the scope of vars, if you define a var inside a function, it will be visible inside that work only. I saw not a type of item in list in AS3, it's probably a var inherited type.

    Here's a modified version of your class, you just need to change the list item for something else.

    package{
    
         import flash.display.Sprite;
         import flash.events.*;
         import flash.net.*;
         import flash.utils.*;
         import flash.display.Loader;
    
         public class productBrochureClass extends Sprite{
              private var padding:uint = 10;
              private var listHolder:Sprite;
              private var myXML:XML;
              private var xmlloader:URLLoader
              //public var xmlLoader:URLLoader;
              //var xmlLoader:URLLoader = new URLLoader();
    
              public function productBrochureClass(){
                   xmlloader= new URLLoader();
                   listHolder = new Sprite();
    
                   xmlloader.addEventListener(Event.COMPLETE, handleComplete);
                   xmlloader.load(new URLRequest("xml/productBrochuresDatasheets.xml"));
    
                   addChild(listHolder);
                   trace("listholder")
                   trace("loaded xml")
              }
    
              public function handleComplete(event:Event): void {
                   myXML = new XML(event.target.data);
                   createListFromXML(myXML);
                   trace("handle Complete")
              }
    
              private function createListFromXML(myXML:XML):void{
                   for(var i:uint=0;i		   
  • Problem loading xml with the method file

    I use this method to insert in the xmltype table

    INSERT INTO xml_table
    VALUES (XMLType (bfilename ('XMLDIR', 'Test_xml.xml'),
    nls_charset_id ('AL32UTF8')));

    XML gives error
    <? XML version = "1.0"? >
    <!-<! DOCTYPE metadata SYSTEM "http://www.esri.com/metadata/esriprof80.dtd" >->
    < metadata XML: lang = "fr" > < Esri > < MetaID > {299847D5-3DDC-4375-9469-607DC669DD6E} < / MetaID > < CreaDate > 20091029 < / CreaDate > < CreaTime > 12035600 < / CreaTime > < SyncOnce > FALSE < / SyncOnce > < SyncDate > 20091029 < / SyncDate > < SyncTime > 12054400 < / SyncTime > < ModDate > 20091029 < / ModDate > < $modtime > 12054400 < / $modtime > < / Esri > < idinfo > < native Sync = "TRUE" > Microsoft Windows XP Version 5.1 (build 2600) Service Pack 3; ESRI ArcCatalog 9.3.0.1770 < / native > < descript > < langdata Sync = "TRUE" > en < / langdata > < summary > REQUIRED: a brief narrative summary of the data series. < / Summary > < point > REQUIRED: a summary of the intentions with which all the data has been developed. < / purpose >

    but when I delete
    <!-<! DOCTYPE metadata SYSTEM "http://www.esri.com/metadata/esriprof80.dtd" >->

    It runs successfully and the value is inserted of xmltype
    Please suggest how can I insert original xml without error.

    First see if you can access the document using HTTPURITYPE() or UTL_HTTP. Once you've taken the necessary step to access the scheam XML using these packages XDB should work. Note that becomes more complex 11.x

  • Loading XML data in ListView of C++ after extraction of http data

    I'm sorry did searh but could not find any refrence related to my problem
    I am trying to load the xml data returned from a web service HTTP Post QNetworkRequest and QNetworkReply in c ++.

    My XML that gets donwloaded is as

    
     http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/">
      
        tu7652
        F
        Marry
        Wijaya
      
      
        23
        F
        Marry
        Wijaya
      
    
    

    In My QML, it comes to the ListView can say SearchResult.qml

    ListView {
              objectName: "resultlist"
              dataModel: feedsdatamodel
              listItemComponents: [
                ListItemComponent {
                            type: "item"
                            PeopleListItem {
                                name: ListItemData.givenName + ", " + ListItemData.sn
                                role: ListItemData.ExtFunction
                                leftPaddingText: 40
                            }
                        }
               ]
            }
     attachedObjects: [
           // The data model that contains the content of a XML file
            GroupDataModel {
                id: feedsDataModel
                sortingKeys: [
                    "givenName"
                ]
                grouping: ItemGrouping.None
            }
        ]
    

    PeopleListItem.qml

    import bb.cascades 1.0
    
    Container {
        property alias name: titleLabel.text
        property alias role: functionLabel.text
        property alias leftPaddingText: textcontainer.leftPadding
    
        layout: StackLayout {
            orientation: LayoutOrientation.TopToBottom
        }
        preferredWidth: 768
        preferredHeight: 135
        Container {
    
            id: textcontainer
            topPadding: 10
    
            layout: StackLayout {
                orientation: LayoutOrientation.TopToBottom
            }
            Label {
    
                id: titleLabel
                textStyle.base: SystemDefaults.TextStyles.TitleText
                textStyle.color: Color.Black
            }
            Label {
                id: functionLabel
                textStyle.base: SystemDefaults.TextStyles.BodyText
                textStyle.color: Color.Gray
            }
        }
        Divider {
            verticalAlignment: VerticalAlignment.Bottom
        }
    }
    

    This is the function I'm using to display the QML it is called from main.qml and works correctly.

    void PeopleFinder::onSearchClicked() {
        qDebug() << "PeopleFinder::PeopleFinder::onSearchClicked::\t" << "begin";
        qDebug() << "PeopleFinder::PeopleFinder::onSearchClicked::\tfname:"
                << m_fname << "\tlname:" << m_lname;
    
        // Create a network access manager and connect a custom slot to its
        // finished signal
        mNetworkAccessManager = new QNetworkAccessManager(this);
    
        // create a data model with sorting keys for lastname and firstname
        Q_ASSERT(
                connect(mNetworkAccessManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(requestFinished(QNetworkReply*))));
    
        //Load the bew QML file of Search from here
        QmlDocument *qml = QmlDocument::create("asset:///SearchResults.qml").parent(
                this);
        qml->setContextProperty("peoplefinder", this);
    
        Page *mypage = qml->createRootObject();
        qml->setParent(mypage);
        qDebug() << "PeopleFinder::PeopleFinder::onSearchClicked::\t s444444";
    
        // Retrieve the activity indicator from QML so that we can start
        // and stop it from C++
    //  mActivityIndicator = mypage->findChild("myIndicator");
    
        // Retrieve the list so we can set the data model on it once
        // we retrieve it
        mListView = mypage->findChild("resultlist");
    
        mNavigator->push(mypage);
    }
    

    Once the page loads in the QML it call the launch request providing c ++ file and once the
    query is completed under function is called with the data. I checked that data are downloaded properly

    void PeopleFinder::requestFinished(QNetworkReply* reply) {
        qDebug() << "PeopleFinder::PeopleFinder::requestFinished::\t"
                << "response received";
        // Check the network reply for errors
        if (reply->error() == QNetworkReply::NoError) {
    
            // Open the file and print an error if the file cannot be opened
            qDebug() << "PeopleFinder::PeopleFinder::requestFinished::\t"
                    << "No error";
    
            // Write to the file using the reply data and close the file
            QByteArray xml = reply->readAll();
            qDebug() << "Data: \n" << xml;
    
            // load the xml data
            XmlDataAccess xda;
            QVariant list = xda.load(xml, "ArrayOfPeople");
    
            qDebug() << "List:::\n" << list;
    
            GroupDataModel *datamodel = (GroupDataModel*)mListView->dataModel();
            // add the data to the model
            datamodel->clear();
            datamodel->insertList(list.value());
            datamodel->setSortingKeys(QStringList() << "givenName" << "sn");
            qDebug() << "PeopleFinder::PeopleFinder::requestFinished::\t"
                    << "Datamodel set size:: " << datamodel->size();
    
            // Set the new data model on the list and stop the activity indicator
    
        } else {
            qDebug() << "\n Problem with the network";
            qDebug() << "\n" << reply->errorString();
        }
    }
    

    But now, the real problem begins as in how to convert QByteArray data type of QVariantList which can be loaded into the datamodel
    I don't want to write the data to the XML file and then pass that as a list his will is very slow, once I move test environment to the production environment.

    Please help me solve this problem

    I got it to work using xml parsing with QXmlStreamReader

  • Store functions/procedures in BI Publisher - failed to load XML

    Hello world

    I am trying to call a function to return a set of rows with BI Publisher. When I want to look at the data on the 'Data' tab, I get "Failed to load XML".

    Here are the steps I took:

    Step 1: created a type

    create type numset_t as table of number;
    

    Step 2: Creating the function

    create or replace function f1(x number) return numset_t pipelined is
    begin
    for i in 1..x loop
    pipe row(i);
    end loop;
    return;
    end;
    

    Step 3: Under "Data sets", I created a SQL query with the following options/code

    Code:

    select * from table(f1(3))
    

    Options: Data Source - my selected schema

    SQL type: Non-standard SQL

    Name of tag line: test

    How can I check my data using the button "data"?

    Thank you

    Here's the steps/documentation on how to call a function from BI Publisher:

    #1) make sure you use SYS_REFCURSOR.

    (#2) create your function as below:

    CREATE OR REPLACE FUNCTION FUNC1 (P1 VARCHAR2) RETURN SYS_REFCURSOR IS
    
       XDO_CURSOR SYS_REFCURSOR;
    BEGIN
     IF P1 = 'USA' THEN
     OPEN XDO_CURSOR FOR
     'SELECT  TO_CHAR(SYSDATE,''MM-DD-YYYY'') AS CURRENT_DATE, X.STATE FROM SchemaName.XX1 X WHERE X.ID IN (100,200,400)';
     RETURN XDO_CURSOR;
     ELSE
     OPEN XDO_CURSOR FOR
     'SELECT  TO_CHAR(SYSDATE,''MM-DD-YYYY'') AS CURRENT_DATE, X.STATE FROM SchemaName.XX1 X WHERE X.ID IN (300,500,600)';
     RETURN XDO_CURSOR;
     END IF ;
    END FUNC1;
    

    (#3) connect as system and grant execute the user to BI

    GRANT EXECUTE ON SchemaName.FUNC1 TO BI_USER;
    

    (#4) under the data model, create a data set with the following (as for example):

    BI requires the variable xdo_cursor as the output, so do not change the name of the variable.

    DECLARE
       type refcursor is REF CURSOR;
       xdo_cursor refcursor;
    BEGIN
       :xdo_cursor := SchemaName.func1(:P1);
    END;
    

    Type of SQL procedure call =

    Thank you. I hope that everything that troubleshoot you.

  • "Error loading XML Document from saw.dll./answers/saw.selections.xml?fmapId=RRxCfQ. "The answer was: ' when you access analytic dashboards

    During these months, we were faced with an error "" error when loading XML Document saw.dll./answers/saw.selections.xml?fmapId=RRxCfQ. "The answer was: ' when you access analytical dashboards OBIEE.

    It is a global problem, and users cannot access any dashboard in OBIEE analytics.

    We used weblogicPlugin 1.1 to configure the reverse proxy for our 64-bit using IIS 7.5 weblogic server. WebLogic Server Version: 10.3.6.0. We see the error "resolveRequest: application ' / analytics/saw.dll/answers/saw.selections.xml' has not been sent." Found OR '?', or ';' in URI "in the IIS Proxy log.

    This question is regardless of the browser and get to each broser we tested. Users should click on the error message loading XML Web page pop for about 20 times to see the dashboard.


    No idea how to solve this problem?

    By Oracle Support suggestion, I installed Oracle HTTP server (OHS) and the problem is solved. For now, the problem is solved but SITEMINDER SSO and Siebel IFRAMES should be tested with OSH being the web server now.

  • BAM-06008: load XML is not valid; additional content was found.

    Hi all

    Version: 11.1.1.6

    We get the BAM error: "BAM-06008: load XML is not valid; "additional content were found" after I have added a field to another in a BAM Object.I have added this extra field to corresponding data objects .wsdl file as well as in the .xsd. I see the new field in the BAM. However, when I used to send a load with the newly added field it fails with the above error. However, if I add a new data object in BAM with the field he works very well.

    Why I get this error?

    Thank you

    Rahul

    I followed the following steps: -.

    1. make sure the new field entry in the ".wsdl" file that is located in the BAM folder.

    2. make entry new class in file ".xsd".

    3 do the mappings in the file ".xsl" corresponding to the action of the probe.

    Initially, I was just restart BAM and was faced with above mentioned error. After the reboot of SOA and BAM server, it started working.

  • Problem loading xml using sql loader file

    I am trying to load data into the table test_xml (xmldata XMLType)

    I have an xml file and I want any file to load in a single column

    When I use the following control file and run from the command-line as follows
    sqlldr $1@$TWO_TASK direct control=$XXTOP/bin/LOAD_XML.ctl = true; :

    DOWNLOAD THE DATA
    INFILE *.
    TRUNCATE INTO TABLE test_xml
    XmlType (XMLDATA)
    FIELDS
    (
    tank fill ext_fname (100),
    XMLDATA LOBFILE (ext_fname) COMPLETED BY expressions of folklore
    )
    START DATA
    U01/appl/apps/apps_st/appl/XXTop/12.0.0/bin/file. XML

    the file is loaded in the table perfectly.

    Unfortunately I can't hard-code the name of file as file name will be changed dynamically.

    so I removed the block

    START DATA
    U01/appl/apps/apps_st/appl/XXTop/12.0.0/bin/file. XML

    control file and tried to run by giving the following command line path

    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl direct data=/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml = true;

    But strangely it attempts to load each line of the xml file in the table instead of the whole file

    Please find the log of the program with the error

    ------------------------------------------------------------------
    Loading XML through SQL * Loader begins
    ------------------------------------------------------------------
    SQL * Loader-502: cannot open the data file ' <? XML version = "1.0"? > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< root >' XMLDATA field table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < Type > forms < / Type > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < / ScriptFileType > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < Type > PLL < / Type > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file ' < / ScriptFileType > ' table field TEST_XML XMLDATA
    SQL * Loader-553: file not found
    SQL * Loader-509: System error: no such file or directory
    SQL * Loader-502: cannot open the data file '< ScriptFileType >' field XMLDATA table TEST_XML

    Please help me how can I load full xml in a single column using command line without Hardcoding in the control file

    Published by: 907010 on January 10, 2012 02:24

    But strangely it attempts to load each line of the xml file in the table instead of the whole file

    Nothing strange, that the data parameter specifies the file containing the data to load.
    If you use the name of the XML here, the control file will try to interpret each line of XML as being separate ways.

    The traditional approach this is to have the name of the file stored in another file, say filelist.txt and use, for example:

    echo "/u01/APPL/apps/apps_st/appl/xxtop/12.0.0/bin/file.xml" > filelist.txt
    sqlldr $1@$TWO_TASK control=$XXTOP/bin/LOAD_XML.ctl data=filelist.txt direct=true;
    
  • Cannot get rid of loaded xml image scroller when navigate off the page.

    I have a thumb wheel loaded xml that stays on the screen when I leave the frames where it exists.

    This is the upward I tried to solve this problem. It has been suggested that I put a mc on the frames with the scrolling of the image and call it dummy_mc.

    Then I put the code on frameworks that are not supposed to have thumb scroller:

    dummy_mc. Visible = false;

    function removeScrollerF2(e:Event=null):void {}

    If (scroller) {//prevents a problem if you were to use the same navigation code after having removed the scroll}

    scroller.removeEventListener (Event.ENTER_FRAME, moveScrollerThumbs);

    removeChild (scroller);

    scroller = null;  If, when you want to create your clipping, it does not need to be re-created, delete this line of code.

    }

    trace ("dummy2_mc works on null");

    }

    dummy_mc.addEventListener (Event.REMOVED_FROM_STAGE, removeScrollerF2);

    ------------------------------------------------------------------------------------------ ---------------------------------

    I have this error of argument in the output panel:

    ArgumentError: Error #2025: the supplied DisplayObject must be a child of the caller.

    at flash.display::DisplayObjectContainer/removeChild()

    at acolyte51c_AppsPopUpsThumbs_fla::mainsite_mc_2/removeScrollerF2() [acolyte51c_AppsPopUpsTh umbs_fla.mainsite_mc_2::frame73:399]

    at flash.display::MovieClip/gotoAndPlay()

    at acolyte51c_AppsPopUpsThumbs_fla::mainsite_mc_2/gotoFrame2() [acolyte51c_AppsPopUpsThumbs_f the. mainsite_mc_2::frame73:372]

    It's the frame73:399
    removeChild (scroller);


    on mainsite_mc section 73:

    replace line 38:

    this.addChild (scroller);

    with

    dummy_mc. AddChild (scroller);

    and replace the code of 407 + with:

    dummy_mc. Visible = false;<- remove="" the="" graphics="" from="" the="" stage="" of="">

    dummy_mc.addEventListener (Event.REMOVED_FROM_STAGE, removeScrollerF2);

    function removeScrollerF2(e:Event=null):void {}

    scroller.removeEventListener (Event.ENTER_FRAME, moveScrollerThumbs);

    }

  • How to 'Allow smoothing' for the loaded XML .jpg?

    I have a thumb wheel image that loads a bunch of jpg. They are be enlarged rollover in 1,05.

    I've seen pixelated at scale 1 x 1 as well as expanded.

    I'm happy prettey how Flash renders the images with "Allow smoothing" on.

    How would I do it for the loaded xml jpg? Would it be as a script in the main folder or in the xml file?

    Here's how to load images in AS3:

    function completeHandler_AppPopUps(e:Event):void{
              //trace("thumbnail complete "+e.target.loader.parent.parent.name)//tells us when the loading is complete
    
              //size image into scroller (need only if I will have images at different sizes)
              resizeMe(e.target.loader.parent, 60, 90, true, true, false);
    
              TweenMax.to(e.target.loader.parent.parent, .5, {alpha:.7});//makes all thumb images at alpha=.7 after they are fully loaded
              //Tweener.addTween(e.target.loader.parent.parent, { alpha:1, time: .5 } );//caurina version
    
              TweenMax.to(e.target.loader.parent.parent, .5, {colorMatrixFilter:{contrast:1.1, brightness: .7, saturation: .5}});//makes all thumb images at brightness:0.5 after they are fully loaded
    
    
    }
    
    

    I don't want to complicate things more than necessary, but just in case it's needed here is the complete code for the edification of the wheel section:

    /////Parse XML
    //build scroller from xml
    function buildScroller(imageList:XMLList):void{
              trace("build Scroller");
    
              for (var item:uint = 0; item<imageList.length();item++) {
                        var thisOne:MovieClip = new MovieClip();
    
                        //outline
                         var blackBox:Sprite = new Sprite();
                        blackBox.graphics.beginFill(0xFFFFFF);
                        blackBox.graphics.drawRect(-1, -1, 62, 92);//-1,-1 places rectangle 1px left and up.62, 92 draws rectangle 1px wider on all sides of placed image dimenstions of 60x90
                        blackBox.alpha = thumbFadeOut;//setting Border Tweens
                        thisOne.addChild(blackBox);
                        thisOne.blackBox = blackBox;//setting Border Tweens
    
                          thisOne.x = thisOne.myx = (60 + padding) *item;//replaces the line above for scale tweenw roll over calculation. "myx" is a made up term which defines the position. 61 is the width of the thumb
                        thisOne.itemNum = item;
                        thisOne.title = imageList[item].attribute("title");
                        thisOne.link = imageList[item].attribute("url");
                        thisOne.src = imageList[item].attribute("src");
                        thisOne.alpha = 0;//makes all thumb images at alpha=0 before they are fully loaded
    
                        //Loading and Adding the Images
                        //image container
                        var thisThumb:MovieClip = new MovieClip();
                        //add image
                        var ldr:Loader = new Loader();
                        //var url:String = imageList[item].attribute("src");
                        var urlReq:URLRequest = new URLRequest(thisOne.src);
                        trace("loading thumbnail "+item+" into Scroller: " + thisOne.src);//url
                        ldr.load(urlReq);
                        //assign event listeners for Loader
                        ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler_AppPopUps);//tells us when the loading is complete
                        ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler_AppPopUps);//tells us if there are any typo errors when the loading is complete
                        thisThumb.addChild(ldr);
                        thisOne.addChild(thisThumb);
    
                        //create listeners for this thumb
                        thisOne.buttonMode = true;//makes boxes act as buttons
                        thisOne.addEventListener(MouseEvent.CLICK, clickScrollerItem_AppPopUps);//makes boxes act as buttons
                        thisOne.addEventListener(MouseEvent.MOUSE_OVER, overScrollerItem_AppPopUps);//traces the title when the mouse is over the bounding box in the Output Panel
                        thisOne.addEventListener(MouseEvent.MOUSE_OUT, outScrollerItem_AppPopUps);//traces the title when the mouse is out the bounding box in the Output Panel
    
    
    
                        //add item
                        scroller.addChild(thisOne);
              }
              scroller.addEventListener(Event.ENTER_FRAME, moveScrollerThumbs);//adding movement on mouse position
              trace("termination of build scroller");
    
    }
    
    
    

    in your listener to full charge, enable the property smoothing to the content of your charger (expressed as a bitmap).

    function completeHandler_AppPopUps(e:Event):void{

    Bitmap(e.currentTarget.loader.content).smoothing=true;
              //trace("thumbnail complete "+e.target.loader.parent.parent.name)//tells us when the loading is complete

    //size image into scroller (need only if I will have images at different sizes)
              resizeMe(e.target.loader.parent, 60, 90, true, true, false);

    TweenMax.to(e.target.loader.parent.parent, .5, {alpha:.7});//makes all thumb images at alpha=.7 after they are fully loaded
              //Tweener.addTween(e.target.loader.parent.parent, { alpha:1, time: .5 } );//caurina version

    TweenMax.to(e.target.loader.parent.parent, .5, {colorMatrixFilter:{contrast:1.1, brightness: .7, saturation: .5}});//makes all thumb images at brightness:0.5 after they are fully loaded

    }

  • Connection was Timed out [loading XML] error in the browser of BI Publisher

    Hi all

    I have a report from the editor with "concatenated SQL" as the source of data. It uses about 30 SQL queries. I downloaded applications, model initially. I am able to view the report in the BI Publisher but when I try to edit it, it throws the error "the connection has been exceeded. (Loading XML)

    BI Publisher Version - 10.1.3.4
    OS - Windows XP Professional

    I tried many many times to refresh the edit page, but this random allows me to edit [as once out of 50 tests].

    Can you please help me fix this error? I don't know if I need to implement the option of delay in BI Publisher.

    Any suggestions?

    Thank you...

    OK, I understand,
    Try this
    You must change the property in this file
    $J2EE_HOME/applications/xmlpserver/xmlpserver/js/XDOReportModel.js

    Property name: XDOReportModel.TIMEOUTMSEC
    set the value in milliseconds, like "XDOReportModel.TIMEOUTMSEC = 15000;" -gives you 15 seconds

    don't forget, resume and modify this file, and you must restart the server after making this change.

    This custom be supported by Oracle, since you play in their field.

  • help to load xml data into a loop

    Hola amigos, acudo a ustedes porque estoy doing a small application that muestre archivos para mi nueva zona of descargas, esta take utilizando diagramacion paint (gracias por los slideshows as against aqui) y los archivos los carga desde los datos a xml file.
    I have a movieclip cargado con addChild, y knew vez dentro carga tambien con addChild varios insert utilizando UN loop, the cosa are what who use ese mismo loop para as cada vez shouts the panel of the United Nations, are the cargue los datos xml, pero no puedo hacerlo, sale me el error 1009 respond el object are nulo. ACA the dejo parte del codigo, por if any of ustedes me can help con eso.
    Por adelantado the agradesco.

    Hello people, I come to you because I do a small application that shows the files for my new download area, it is made using liquid layout and files information loading from a xml file.
    I have a movieclip loaded with addChild and Interior load also with addChild several panels by using a loop, the thing is that I wanted to use the same loop for each time to add a new Panel, also load information to an xml file, but I can't do it every time show my 1009 error saying that the object is null (void). Here I leave you a part of the code for them if anyone of you can help me with this.
    Thank you in advance for the help, and here is a sample of the API: http://nesmothdesign.com/Media/home.swf

    set the XML

    var imgLoader:Loader;
    var xml;
    var xmlList:XMLList;
    var xmlLoader:URLLoader = new URLLoader();
    xmlLoader.load (new URLRequest ("listado.xml"));
    xmlLoader.addEventListener (Event.COMPLETE, xmlLoaded);
    function xmlLoaded(event:Event):void
    {
    XML = XML (event.target.data);
    xmlList = xml.children ();
    trace (xmlList.length ());
    }

    Add counter to the panns
    var miContenedor:contenedor;
    miContenedor = new contenedor();
    addChild (miContenedor);
    Tweener.addTween(miContenedor,{x:stage.stageWidth/2-465,time:1,transition:"easeIn"});)
    miContenedor.y = body_mc.y + 10;
    Add container´s children-
    var miPartA:panelTipoA;
    var miPartB:panelTipoB;
    for (var a: int = 0; has < = 3; a ++)
    {
    miPartA = new panelTipoA();
    miPartB = new panelTipoB();
    miContenedor.addChild (miPartA);
    miContenedor.addChild (miPartB);
    miPartA.y = a * miPartA.height + (a * 10);
    miPartB.y = a * miPartB.height + (a * 10);
    miPartB.x = miPartB.width + 15;
    imgLoader = new Loader();
    imgLoader.load (new URLRequest (xmlList [a] .attribute ("thumb")));
    miContenedor.miParteA.addChild (imgLoader);
    }

    Atention: las 3 of code lines should add the respective to the pannel xml file data.

    miContenedor.miParteA.addChild (imgLoader);

    is the problem.  There is no miContenedor.miParteA.  use:

    miParteA.addChild (imgLoader);

  • custom preloader (loading xml files)

    Hello :)

    I want to create the preloader to load xml before application initialization files, I havn't could find no solution on any internet site :(?

    I tried to extend the DownloadProgressBar and then load the xml in the constructor, but systemManager starts initialization of my Application right after that, and before that the preloader is finished, how can I force him to wait until I'm done with loading XML?

    Thanks for any help :) I hope someone can help me :)

    My request and the rest of my containers needs these xml files to initialize.

    Thank you once again :)

    Kind regards
    HW2002

    For other issues with the same problem, which is a lot :)

    You can load your XML files inside createChildren() (), you must override it in your application class and once that the XML file is loaded, call you super.createChildren ();

    and it's all :)

  • control of Instruments of California 3091LD load Programmable with LabVIEW

    I need to check a California Instruments programmable load 3091LD with LabVIEW. It will be connected with GPIB. Can anyone provide me with the help on this please? It will be very appreciated if someone could give some example for the device codes.

    Thank you.

    Hello Niyam,

    I found directly a driver for LabVIEW Instrument for this specific instrument, but there are some other devices of California Instruments for:

    http://search.NI.com/nisearch/app/main/p/bot/no/AP/tech/lang/NL/PG/1/SN/ssnav:IDR/q/California%20ins...

    Beside that, I also found this page on their Web site:

    http://www.acdcelectronicloads.com/products/3091LD/3091LD_Downloads.htm

    Here, they do not mention a LabVIEW driver, but they have a driver of the CVI.

    Do you find yourself however the manual there, which may be useful to evry.

    Can you check with the manufacturer (California Instruments) if they have a Driver of Instrument LabVIEW?

    Beside that, it would also be a good idea (totally) go through this tutorial of LabVIEW:
    http://www.NI.com/gettingstarted/labviewbasics/

    This should teach you a few basics in LabVIEW.

Maybe you are looking for

  • 400 bad Request HTTPS on FF 10.0.1, 1o.0.2 vital security Proxy

    I use Firefox on W7 in the office. Our company uses a Proxy of vital for Internet access security. After the upgrade from 9.0.1 to 10 FF FF (10.0.2 including), I have problems to access HTTPS sites. The proxy returns the following error message: HTTP

  • Setup.exe does not properly

    I'm trying to upgrade to Windows 7, and at one point in the configuration of several programs are listed to be uninstalled, when it gets to the Realtek USB 2.0 card reader a pop window that says setup.exe does not properly.  Cannot uninstall in Contr

  • CD DVD problem

    After a recent upgrade Vista on my Dell XPS1330, DVD readers no longer appear in Windows Explorer, nor do they operate. They also show that problems in Device Manager. I used system restore to go to a March 13 last restore point, and then it was norm

  • Slider Windows Mail

    Recent updates have caused my cursor behave strangely - a form of large ring around it that shrinks and then in the location of the cursor. then the reforms concerning every 5 sec (narrowing bullseye).  This happens whenever Windows Mail is open, any

  • missing Ntoskrnl.exe and other errors when who reinstall windows 7 pro 64-bit

    I had windows installed on a HARD drive and received an SSD and I decided on the SSD HARD drive image, so I wouldn't have to reinstall. As I suspected it might that cause some problems and I decided to simply wipe the SSD drive and attempt to reinsta