Xml in scroller

Here is an example of
the xml flash site.
please help! This is desperate! I have an xml flash file and
I want to put all the thumbnails into a scrolling bar. I can do a
scrolling bar and xml but unlike Dr. Frankenstien, I can't put it
together.
Please help! I've attached the code. I would like a simple
scrolling bar for thumbnails. It should extend to the length of the
xml file, however long that is.

Okay, evidently Preview is never to be trusted. Published
both the test and the scroller and it behaved as expected.
Thanks for the response.

Similar Messages

  • XML based scrolling thumbnails

    IMPORTANT: My first time with flash and actionscript but am a computer science student so code is ok.
    that said I wanna build a xml based scrolling thumbnails in an horizontal bar.
    each pic should have some effect when the mouse is over it +
    the scrolling bar should scrol left or right depending on the mouse pos+
    the bar stops when am over a pic (with some conditions)
    I think this i all
    PS: I have only two days to do it :s
    I know it would be better if I do it from scratch this is how I do normaly but here am completly snowed under
    plz help thx

    Your best bet for getting a solution handed to you is to do a Google search for "AS3 scrolling menu tutorial"  Since code isn't an issue for you, you should be able to modify whatever you find to suit your detail needs once you understand how it is designed.

  • Controling an XML based scrolling thumbnails

    hi!
    this is my code so far:
    import caurina.transitions.*;
    var xmlRequest:URLRequest = new URLRequest("scrolling.xml");
    var xmlLoader:URLLoader = new URLLoader(xmlRequest);
    var imgData:XML;
    var imageLoader:Loader;
    var rawImage:String;
    var rawH:String;
    var rawW:String;
    var pos:Number;
    var imgNum:Number = 0;
    xmlLoader.addEventListener(Event.COMPLETE, xmlLoadedF);
    Tweener.addTween(Bar_am, {x:-1000, time:10, transition:"linear"});
    function xmlLoadedF(event:Event):void{
    imgData = new XML(event.target.data);
    rawImage = imgData.image[imgNum].imgURL;
    rawW = imgData.image[imgNum].imgW
    rawH = imgData.image[imgNum].imgH
    imageLoader = new Loader;
    imageLoader.load(new URLRequest(rawImage));
    Bar_am.addChild(imageLoader);
    imageLoader.x = stage.stageWidth;
    imageLoader.y = (stage.stageHeight - Number(rawH)) / 2;
    am trying to make that object to scrol depending on the mouse pos:
    ex:
    if mouse pose < 50 scrol ight
    if mouse pos >500 scrol left
    and when am out off the scrolling bar the bar goes to the normal scrolling
    thx in advance
    PS: tryed many functions not working

    hi!
    basacly am trying to have a list of pics then every single pic must be clickable and have some effect when the mouse is over it
    but am stuck!
    should I load everything first?
    thx
    otherwise, since I must get it done by the end of the I have this code that am trying to change
    but don't know how to transform the function responssible for the movement!
    plz help
    the code:
    picData = new XML();
    picData.ignoreWhite = true;
    picData.onLoad = loadXML;
    picData.load("xmlArtData.xml");
    function loadXML() {
    runScript();
    function runScript() {
    _root.createEmptyMovieClip("bg", 1);
    _root.createEmptyMovieClip("image", 3);
    _root.createEmptyMovieClip("thumbnails", 2);
    images = new Array();
    for (i=0; picData.firstChild.childNodes[i].firstChild.nodeValue != undefined; i++) {
      images.push(picData.firstChild.childNodes[i].firstChild.nodeValue);
    thumbnails._x = 280;
    thumbnails._y = 375;
    imageLoading = true;
    numObjects = images.length;
    objectsInScene = new Array();
    focalLength = 800;
    spin = 0;
    _root.thumbnailSize = 125/((numObjects)/9);
    displayPane = function () {
      var angle = this.angle+spin;
      var x = Math.cos(angle)*this.radius;
      var z = Math.sin(angle)*this.radius;
      var y = this.y;
      var scaleRatio = focalLength/(focalLength+z);
      this._x = x*scaleRatio;
      this._y = y*scaleRatio;
      this._xscale = -(this._yscale=100*scaleRatio);
      this._xscale *= Math.sin(angle);
      this.swapDepths(Math.round(-z));
    angleStep = 2*Math.PI/numObjects;
    for (i=0; i<numObjects; i++) {
      thumbnail = thumbnails.createEmptyMovieClip("thumbnail_"+i, i);
      myPic = thumbnail.createEmptyMovieClip("picHolder", 1);
      myPic.loadMovie(images[i]);
      thumbnail.angle = angleStep*i;
      thumbnail.radius = 250;
      thumbnail.x = Math.cos(thumbnail.angle)*thumbnail.radius;
      thumbnail.z = Math.sin(thumbnail.angle)*thumbnail.radius;
      thumbnail.y = 40;
      thumbnail.display = displayPane;
      thumbnail.drawBox(_root.thumbnailSize);
      thumbnail.buttonize(i);
      thumbnail.notLoaded = true;
      objectsInScene.push(thumbnail);
    panCamera = function () {
      spin -= this._xmouse/10000;
      for (var i = 0; i<objectsInScene.length; i++) {
       objectsInScene[i].display();
    thumbnails.onEnterFrame = panCamera;
    _root.onEnterFrame = function() {
      for (i=0; i<images.length; i++) {
       if ((_root.thumbnails["thumbnail_"+i].picHolder.getBytesLoaded()/_root.thumbnails["thumbnail _"+i].picHolder.getBytesTotal() == 1) && _root.thumbnails["thumbnail_"+i].notLoaded) {
        if (_root.thumbnails["thumbnail_"+i].picHolder._width>=_root.thumbnails["thumbnail_"+i].picH older._height) {
         _root.thumbnails["thumbnail_"+i].picHolder._yscale = _root.thumbnails["thumbnail_"+i].picHolder._xscale=(100*(1-(_root.thumbnails["thumbnail_" +i].picHolder._width-_root.thumbnailSize)/(_root.thumbnails["thumbnail_"+i].picHolder._wid th)));
         _root.thumbnails["thumbnail_"+i].picHolder._y = (_root.thumbnailSize-_root.thumbnails["thumbnail_"+i].picHolder._height)/2;
        if (_root.thumbnails["thumbnail_"+i].picHolder._width<=_root.thumbnails["thumbnail_"+i].picH older._height) {
         _root.thumbnails["thumbnail_"+i].picHolder._yscale = _root.thumbnails["thumbnail_"+i].picHolder._xscale=(100*(1-(_root.thumbnails["thumbnail_" +i].picHolder._height-_root.thumbnailSize)/(_root.thumbnails["thumbnail_"+i].picHolder._he ight)));
         _root.thumbnails["thumbnail_"+i].picHolder._x = (_root.thumbnailSize-_root.thumbnails["thumbnail_"+i].picHolder._width)/2;
        if (_root.thumbnails["thumbnail_"+i].picHolder._width == _root.thumbnails["thumbnail_"+i].picHolder._height) {
         _root.thumbnails["thumbnail_"+i].picHolder._yscale = _root.thumbnails["thumbnail_"+i].picHolder._xscale=(100*(1-(_root.thumbnails["thumbnail_" +i].picHolder._width-_root.thumbnailSize)/(_root.thumbnails["thumbnail_"+i].picHolder._wid th)));
         _root.thumbnails["thumbnail_"+i].picHolder._x = _root.thumbnails["thumbnail_"+i].picHolder._y=0;
        _root.thumbnails["thumbnail_"+i].picHolder._alpha = 60;
        _root.thumbnails["thumbnail_"+i].notLoaded = false;
       if ((_root.thumbnails["thumbnail_"+i].picHolder.getBytesLoaded()/_root.thumbnails["thumbnail _"+i].picHolder.getBytesTotal()<1)) {
      if (_root.image.getBytesLoaded()/_root.image.getBytesTotal() == 1) {
       if (imageLoading == true) {
        _root.image._alpha = 0;
        if (_root.image._width>_root.image._height) {
         _root.image._yscale = _root.image._xscale=(100*(1-(_root.image._width-400)/_root.image._width));
        if (_root.image._height>_root.image._width) {
         _root.image._yscale = _root.image._xscale=(100*(1-(_root.image._height-400)/_root.image._height));
        if (_root.image._height == _root.image._width) {
         _root.image._yscale = _root.image._xscale=(100*(1-(_root.image._height-400)/_root.image._height));
        _root.image._x = (625-_root.image._width)/2;
        _root.image._y = (425-_root.image._height);
        imageLoading = false;
       _root.image._alpha += 5;
       if (image._alpha>100) {
        image._alpha = 100;
    MovieClip.prototype.buttonize = function(num) {
    this.onPress = function() {
      imageLoading = true;
      _root.image.removeMovieClip();
      _root.createEmptyMovieClip("image", 3);
      _root.image.loadMovie(images[num]);
    this.onRollOver = function() {
      this.picHolder._alpha = 100;
    this.onRollOut = function() {
      this.picHolder._alpha = 60;
    MovieClip.prototype.drawBox = function(boxSize) {
    this.lineStyle(1, 0x000000, 0);
    this.beginFill(0x000000, 100);
    this.lineTo(boxSize, 0);
    this.lineTo(boxSize, boxSize);
    this.lineTo(0, boxSize);
    this.lineTo(0, 0);
    this.endFill();

  • XML and scrolling text

    Hi,
    My flash movie contains a text field and a scrollbar, when i
    simply write the text in the text field and then publish the movie
    the scrollbar works fine. However i need to read in the text
    through XML but when i do this the scrollbar does not work. Is
    there code that i need to implement to make the scrollbar
    automatically scroll....
    All help is appreciated,
    Thanks

    Okay found this:
    [Dynamic Text Box Name].autoSize = "center";
    [Dynamic Text Box Name].wordWrap = true;
    however, the height really doesn't adjust when the copy does.
    If I start
    off with the dynamic text box at 50 pixels high, it remains
    that way
    when calculated in ActionScript using the [MovieClip]._height
    even
    though it is much taller than 50 pixels with the copy in
    there.
    So I'm back to the drawing board. I want to have an XML file
    with
    Headline, BodyCopy, and disclaimer copy. I want to call the
    nodes into
    Flash and stylize them.
    I DO NOT want to use CSS since I am using funky fonts that
    will not be
    available on all machines. Want those fonts embedded in Flash
    so it
    shows the same on any computer.
    -Kirk
    W. Kirk Lutz wrote:
    > I am brand new to XML and pulling in text to Flash from
    it. So far so
    > good. The text shows. The only thing I'm having trouble
    with is the
    > height of the text box the imported text sits in. I want
    it to
    > dynamically expand if the text is long.
    >
    > How can I go about importing text into a text Dynamic
    text box and have
    > the box expand if the text is too long for the manual
    setting?
    >
    > -Kirk

  • XML FORM SCROLLING

    Dear Experts,
    We have already designed a XML form but how i can scroll down these forms can anyone tell me abt not through HTML.
    Regards
    Rajat

    Hi Rajat,
    maybe I missed the point, but scrolling is done automatically by the browser. There's no need to define it in the XMLForms builder or in the XML itself.
    Regards, Roland

  • Adding xml to scrolling text window

    The problem is, I used this tutorial to make my scroll
    window. It seems to coding method isn't the best way to do it, as
    it makes it a pain in the *** to update. The guy didn't even put it
    in as an actionscript text, I would have to open up the text layer
    every time.
    I'm trying to modify it, but I'm really new at flash and
    kinda stuck..
    heres the tutorial (you can view the working example here):
    http://www.stilva.com/smooth-scrollbar/
    I think its more of a layering issue thats causing me
    problems...
    anyways, i want to load my text externally into the text
    thats inside the mc txthold which is inside the container. How
    would I approach this? Please use the link to view the sample and
    see the source info.

    what the ***, i never get a reply. I must have helped like 5
    people on this forum...

  • XML - thumbnail scroller loading out of order on browser refresh

    I have a thumbnail scroller that is loading in random order
    on the browser refresh. I don't want
    it to do this. I have no clue what to change in the file to
    prevent it.
    Can I get some help?? ( Safari load it correctly each time.
    IE and Firefox renders wrong )
    www.crystalgraphix.net/test/scroll1.html

    In the top right of the media browser, there is a little icon called the flyout menu...  click it and choose 'Edit Columns'.
    Put a checkmark in the box called 'date Created'and then click ok
    Now, at the top of the media browser the columns 'Name', FilePath, 'DateCreated' should be listed.  You can sort your media by any of those columns by clicking on them.
    Not sure about bridge... maybe someone else can help you with that.
    David

  • Need help with a xml photo gallery

    First, hello to everyone. My name is Tudor , i'm from Romania and i have a flash project which implies building an XML driven scrolling photo galery. Very sorry if my english will slip in some phrases. Well , the question for which i must get an answer is: I already built the gallery, everything works ok.... but ... when i want to make some changes when the pictures load .... well here is the problem. I will print the code and briefly explain and ask at the end....
    import com.greensock.TweenLite;
    import com.greensock.TweenMax;
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.*;
    import fl.containers.UILoader;
    var MASK_WIDTH:Number = myMask_mc.width;
    var menuHolder:MovieClip = new MovieClip();
    //menuHolder.x = myMask_mc.x;
    //menuHolder.y = myMask_mc.y;
    addChild(menuHolder);
    var mouseIsOver:Boolean = false;
    var oldX:Number = menuHolder.x;
    menuHolder.mask = myMask_mc;
    import flash.filters.ColorMatrixFilter;
    import fl.motion.AdjustColor;
    var color : AdjustColor;
    var colorMatrix : ColorMatrixFilter;
    var matrix : Array;
    var filterBW : Array;
    color = new AdjustColor();
    color.brightness = 20;
    color.contrast = 20;
    color.hue = 0;
    color.saturation = -100;
    matrix = color.CalculateFinalFlatArray();
    colorMatrix = new ColorMatrixFilter(matrix);
    filterBW = [colorMatrix];
    /// HERE i read and parse the XML
    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
    xmlLoader.load(new URLRequest("C:/Documents and Settings/Sm/Desktop/feteModel.xml"));
    function LoadXML(e:Event):void
    xmlData = new XML(e.target.data);
    ParsePictures(xmlData);
    function ParsePictures(input:XML):void
    var mainPictures:Array = new Array();
    var firstPictures:Array = new Array();
    var secondPictures:Array = new Array();
    var thirdPictures:Array = new Array();
    var forthPictures:Array = new Array();
    var dimensiuniArray:Array = new Array();
    var heightArray:Array = new Array();
    var eyeColorArray:Array = new Array();
    var hairColorArray:Array = new Array();
    var numeArray:Array = new Array();
    var mainPicturesList:XMLList = input.fata.pozaPrincipala;
    var firstPicturesList:XMLList = input.fata.poza1;
    var secondPicturesList:XMLList = input.fata.poza2;
    var thirdPicturesList:XMLList = input.fata.poza3;
    var forthPicturesList:XMLList = input.fata.poza4;
    var dimensiuniList:XMLList = input.fata.dimensiuni;
    var heightList:XMLList = input.fata.inaltime;
    var eyeColorList:XMLList = input.fata.culoare_ochi;
    var hairColorList:XMLList = input.fata.culoare_par;
    var numeList:XMLList = input.fata.nume;
    for each (var element1:XML in mainPicturesList)
    mainPictures.push(element1);
    for each (var element2:XML in numeList)
    numeArray.push(element2);
       /////////// HERE I LOAD THE PICTURES ...... i must say that menuItem is a mc - exported as a class , which basically has inside a textfield, a UILoader and a preloader - also movieclip. Also i need the pictures to be black and white when they are displayed and when the mouse is over to color
    for (var i=0; i < mainPictures.length; i++)
    var menuItem:MenuItem;
    menuItem = new MenuItem();
    menuItem.y = 200;
    menuItem.x =(i * (menuItem.width+1))+150;
    menuItem.itemLoader.filters = filterBW;
    menuItem.itemText.text = numeArray[i];
    menuItem.itemLoader.source = mainPictures[i];
    menuItem.itemLoader.maintainAspectRatio = false;
    menuItem.itemLoader.addEventListener(Event.COMPLETE, completeHandler);
    //menuItem.itemLoader.addEventListener(Event.COMPLETE,uiLoaded, false, 0, true);
    //menuItem.itemLoader.addEventListener(ProgressEvent.PROGRESS, progressHandler);
    //menuItem.itemLoader.load();
    //menuItem.preloader_mc.visible = true;
    function completeHandler(event:Event)
         //trace(menuItem.itemText.text);
    menuItem.mouseChildren = false;
    menuItem.buttonMode = true;
      menuItem.addEventListener(MouseEvent.MOUSE_OVER, mouseOverItem);
      menuItem.addEventListener(MouseEvent.MOUSE_OUT, mouseOutItem);
      //Add the menuItem to the menuHolder
      menuHolder.addChild(menuItem);
    menuHolder.addEventListener(MouseEvent.MOUSE_OVER, mouseOverMenu);
    menuHolder.addEventListener(MouseEvent.MOUSE_OUT, mouseOutMenu);
    function mouseOverMenu(e:Event):void
    mouseIsOver = true;
    //Calculate the vertical distance of how far the mouse is from
    //the topleft  of the mask.
    var distance:Number = mouseX - myMask_mc.x;
    //Calculate the distance in percentages
    var percentage:Number = distance / MASK_WIDTH;
    //Save the holder's old y coordinate
    oldX = menuHolder.x;
    var targetX:Number = -((menuHolder.width - MASK_WIDTH +150) * percentage) + myMask_mc.x;
    //Tween the menuHolder to the target coordinate
    TweenMax.to(menuHolder, 5, {x: Math.round(targetX)});
    //This function is called when the mouse is out of the menu
    function mouseOutMenu(e:Event):void
    mouseIsOver = false;
    var tw1:Tween;
    var tw2:Tween;
    function mouseOverItem(e:Event):void
    var item:MenuItem = e.target as MenuItem;
    menuHolder.addChild(item);
    item.itemLoader.filters = [];
    //trace(item.itemText.text);
    tw1 = new Tween(item,"scaleX", Strong.easeInOut,1, 1.25,0.25,true);
    tw2 = new Tween(item,"scaleY", Strong.easeInOut,1, 1.25,0.25,true);
    //This function is called when mouse moves out of the item
    function mouseOutItem(e:Event):void
    var item:MenuItem = e.target as MenuItem;
    item.itemLoader.filters = filterBW;
    tw1 = new Tween(item,"scaleX", Strong.easeInOut,1.25, 1,0.25,true);
    tw2 = new Tween(item,"scaleY", Strong.easeInOut,1.25, 1,0.25,true);
    Now , i want each picture to scale when it fully loads ... i thought it will be enough to put it on the completeHandler function , but here is the problem - it scales only the last picture ..... eg. if there are 5 , it scales only the 5th ..... i tried to trace the name of the picture inside the completeHandler and also , i got 4 identical names - the name of the last picture ...... my question  is : why is the completeHandler firing only for the last item?   anyone has any idea why this is hapening? and more how can i fix it? PLEASE ... i'm burning my brain here for half a day here ..........  THANKS in advance!!!!!!!!!!!!!!!!!!   
                                                                                                                                                                    REGARDS, Tudor

    If you are using a "for" loop to do the loading, it can process thru the entire set of loops before the first image is loaded.  If you want to have control over the loading you should load things sequencially.
    So instead of using a for loop, build a pseudo loop using an array of the files to load, a counter variable, a loading function, and a loadComplete function.  Have the loading function load just one image using the counter variable to identify which image in the array to load.  Have the loadComplete function process the one image that was just kloaded, increment the counter, and call the loading function if the counter value does not equal the length of the array.

  • Thumbnails in List

    I'm currently making a playlist out of the component List and I want to add in thumbnails in there.
    The playlist shows the choice of videos that can be played.
    Does anyone know of any tutorials or how to do this?
    help please anyone?

    Sorry, but i know tutorials in as3 only
    http://active.tutsplus.com/tutorials/actionscript/build-a-dynamic-video-player-with-action script-3-part-1-of-3/
    http://active.tutsplus.com/tutorials/xml/hot-products-list-with-caurina-tweener-class/
    horizontal:http://active.tutsplus.com/tutorials/xml/create-a-responsive-xml-image-scroller-in-actions cript-3-0/

  • SQL generation failed see your business objects administrator (Error:WIS 00

    I have a user who in WEBI has refreshes report frequently.
    :stupid: . After 5-10 minutes of inactivity it will toss out this error:
    SQL generation failed. See your business objects administrator. Error: WIS 00013 Error: INF

    Hi Rohit,
    could you please test the following settings to resolve the issue.
    1. CORBA
    -requestTimeout
    This is the default CORBA timeout which can be set on any BOE services through command lines in CCM. And this switch is in millisecond.
    Registry CORBA Timeout
    This is a default hard coded 10 mins timeout for CORBA. WebI and DeskI did get integrated into this regkey:
    (1) Go to HEKY_LOCAL_MACHINE -> SOFTWARE -> Business Objects -> Suite 11.5 -> CER.
    (2) Modify ConnectionTomeout from 600000 to higher value.
    (3) Restart all services in CCM.
    2. Infoview Java Application (For example, Tomcat) Session Timeout If a user idles in Infoview for longer than this timeout, the session will be killed automatically. The default session timeout is 20 mins. To change the default session time out for InfoView:
    (1) Go to u201Cu2026\Tomcat\webapps\businessobjects\enterprise115\desktoplaunch\WEB-INF\web.xmlu201D
    (2) Modify web.xml. Scroll to the following section:
    <session-config>
    <session-timeout>20</session-timeout>
    </session-config>
    (3) Edit the <session-timeout> value to the desired value. Save the web.xml file.
    (4) Restart Tomcat.
    If you meet their sessions are not getting released when they log out, here are two things to check in web.xml:
    (1) If the below configuration was set by true, that means they will have another session allocated to them once they begin to move around in Infoview after the user times out. If it was
    set by false, the user have to re-logon after they times out.
    <context-param>
    <param-name>logontoken.enabled</param-name >
    <param-value>true</param-value >
    </context-param>
    (2) All sessions will be cleanup after they times out if uncommented the below configuration. If you are having issues with sessions staying in CMS, try to uncomment the below line and
    restart tomcat.
    <listener>
    <listener-class>com.businessobjects.sdk.ceutils.SessionCleanupListener
    </listener-class>
    3. Tomcat
    ConnectionTimeout
    The default value is 20000 milliseconds. To disable it, try to set the value to -1 as below:
    (1) Go to u201Cu2026\Tomcat\conf\server.xmlu201D.
    (2) Find line u201CConnector on port 8080u201D.
    (3) Modify connectiontomeout = u201C20000u201D to ConnectionTimeout = u201C-1u201D.
    4. Universes
    Execution Timeout
    (1) Go to Universe Designer -> File -> Parameters -> Controls.
    (2) Check the value of u201CLimit execution time tou201D.
    5. WebI
    Connection Timeout
    The number of minutes before an idle connection to the WebI Report Server will be closed. When Java Report Panel, it is now controlled by this timeout switch:
    (1) Log into CMC
    (2) Go to Servers -> WebI Report Server
    (3) Set Connection Timeout
    WebI Report Timeout
    WebI designers have the ability to set a limit on how long a query can be run on a database before the query is stopped:
    (1) Edit/Create a new WebI report using Java Report Panel.
    (2) Choose Edit Query -> Properties.
    (3) Now deselect/increase the "max retrieval time" value.
    Swap Timeout
    In Java Report Panel and you leave it idle for more than 5 minutes (Default), you will notice that you will no longer be able to save your WebI report into CMS or your report will take longer
    to generate. This is because SwapTimeOut setting which controls the flushing interval of WebI temp files:
    (1) HKEY_LOCAL_MACHINE\SOFTWARE\Business Objects\Suite 11.5\default\WebIntelligence\Server\Admin\SwapTimeOut
    Regards,
    Sarbhjeet Kaur

  • Why won't JavaFX programs run?

    I'm running Ubuntu 10.04 and firefox. If I go to http://javafx.com/samples/ and try to launch one of the samples I get redirected to a page that says I need a newer version of java.
    If I run java -version from the command line I get:
    java version "1.6.0_20"
    Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
    Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)
    This is the same version as the one the web page wants me to download. Why won't these demos launch?
    thanks,
    William
    Edited by: wwuster on Jun 16, 2010 7:13 AM

    Generally, there are some additional steps to configure the sun java plugin for firefox browsers on Unix systems
    http://java.com/en/download/help/linux_install.xml. Scroll down to the firefox section to get a sense of how to do it.
    A quick and fast solution (without configuration) to see the demos is to click on the launch button above each demo sample and then open it with javaws (from the bin directory of your java installation). Hope this helps!
    -Dhruva
    Edited by: d2j on Jun 16, 2010 10:29 PM

  • Unable to start Tomcat 5.5

    hello friends
    when I install and gave http://localhost:8080 I am unable to get the home page of tomcat. can any one solve me this problem

    hi,
    u have a problem with 8080.isnt it?
    8080 is the default port number of http.u must change the default to ur own number.
    change the port number to 9900.
    inorder to change,u have one file called server.xml.u have to change the port number in that file
    In tomcat folder->conf->server.xml
    Edit server.xml. Scroll till u get a tag <Connector port ="8080">;
    U'll have so many Connector tags,but u must change the first Connector tag.change this to 9900 and save the file.now u can run http:\\localhost:9900 to check whether tomcat is working fine or not.

  • ASPE8 crippleware

    I have downloaded ASPE8 to compare it with our current production application server, with a view to convincing the business to move from Orion (blech!).
    I am having nothing but trouble trying to deploy a real-world app to this apparently crippled appserver.
    Does anyone know if it is possible to configure IP virtual hosts (ie HTTP/S listeners on multiple virtual IPs) on PE? I can't and there is no Sun documentation mentioning any specific limitation of PE in this regard.
    <rant>
    I have gotten past the inability to create more than one server instance despite the lack of any mention of this fact in any of the included documentation and the contradictory asadmin help.
    But it seems I cant even configure IP virtual hosts (an obvious necessity if your virtual hosts all listen on the same port numbers).
    Sun pitched PE as a development platform - for what? ... HelloWorldEJB?
    Tomcat5 is apparently the web container and yet I can't even accomplish simple configuration tasks which are trivial in the free Tomcat server.
    I can appreciate the need to protect the relative value of the Standard Edition - but do it by adding value to the free components not subtracting it.
    Having given up on PE I have downloaded the Standard Edition to my Debian box.
    OH GREAT - seems if you don't use RatHead you're pretty well stuck.
    Yes, I know Redhat is the only SUPPORTED linux distro - but guys, there is a difference between officially supporting a platform and making it impossible for someone to even try it on another linux distro without the support.
    I'm not even anti-Sun. The point of this whole exercise was to convince my employer to use Sun's App server on our $1000,000+ Sun production hardware.
    Sun please sort out your distribution model. Why can't I get SE as a tarball like PE? A tarball would be just fine - worked well for over 20 years. Why the sudden fascination with RPMs and vendor lock-in. The whole point of Java and Linux from the customer point of view is to avoid it.
    </rant>

    SE is actually available as "tar ball" (well, not exactly tar ball, but in the same non-RPM format as PE), so you should be able to try it out on Debian. This distribution is available on JES3 companion CD. To download go here:
    http://www.sun.com/software/javaenterprisesystem/get.xml
    and scroll down to "Accessory CD, Volume 1" and follow the download link.

  • Equal spacing between the images of uniformed height but variable widths with AS3?

    I have to figure out how to insert images with variable width with equal spacing intervals.
    Here is where I got so far:
    function buildScroller(imageList:XMLList):void{
              trace("build Scroller");
              for (var item:uint = 0; item<imageList.length();item++) {
                        var thisOne:MovieClip = new MovieClip();
      var currentX = 90;
                        var spaceBetween = 20;
      var currentImageWidth = Number(imageList[item].attribute("width"));
    thisOne.x = currentX;
    thisOne.x = (currentImageWidth+spaceBetween)*item;
    I can see that my images are being spread out on the page and if I change the number in var spaceBetween it affects the spacing. However the spacing is not uniformed. I can not figure why. Perhaps because I can not properly retrieve the image widths from the xml file. I assigned a width in xml file in the following manner:
    <images>
    <image src="appThmb_imgs/A-illuminatorUpLit_xsm.jpg" title="UpDownGlowingVase" url="http://www.888acolyte.com" width="132"/>
    <image src="appThmb_imgs/ATI-1-bgpA_xsm.jpg" title="CoolingReflections" url="http://www.888acolyte.com" width="117"/>
    <image src="appThmb_imgs/ATI-2-zenC_xsm.jpg" title="OrchidsUnderGlass" url="http://www.888acolyte.com" width="263"/>
    <image src="appThmb_imgs/SilverBloom_RGB_xsm.jpg" title="SilverBloom" url="http://www.888acolyte.com" width="148"/>
    </images>
    they correspond to actual image width. I do however want them to be scaled at 50% of their actual width.
    Any ideas if I am missing a line of code or don't call out images properly?

    Thank You for your reply.
    I tried to implement it but images are still jambled together.
    Perhaps it has something to do with the fact that I specify the actual width of the image in the XML file but then define it as a scaled value in the code later on (11th line at the bottom of the code):
        mc.height = 110;
    This height definition will just give the width proportional to the height. Does it mean that I can not specify the height as it is?
    Also can be there a mistake in the XML file? I just assigned the width number as it is in pixels for each image. Here is an example:
    <images>
    <image src="appThmb_imgs/RosesGallasGalore_RGB_xsm.jpg" title="RosesGallasGalore" url="http://www.888acolyte.com" width="131"/>
    <image src="appThmb_imgs/SangriaBling_RGB_xsm.jpg" title="SangriaBling" url="http://www.888acolyte.com" width="233"/>
    <image src="appThmb_imgs/SilverBloom_RGB_xsm.jpg" title="SilverBloom" url="http://www.888acolyte.com" width="148"/>
    </images>
    There were no errors in the output or compiler errors tabs.
    Here is my code in its entirety:
    import com.greensock.*;
    import com.greensock.easing.*;
    //load xml
    var xmlLoader:URLLoader = new URLLoader();
    /////Parse XML
    var xmlData:XML = new XML();
    var xmlPath:String = "app_thmbs_imgsModfd.xml";
    xmlLoader.load(new URLRequest(xmlPath));
    trace("loading xml from: " + xmlPath);
    xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
    function LoadXML(e:Event):void {
              trace("xml load complete");
              xmlData = new XML(e.target.data);
              buildScroller(xmlData.image);
    /////Build Scroller MovieClip to Contain Each Image
    var scroller:MovieClip = new MovieClip();
    this.addChild(scroller);
    scroller.y = 30;
    /////Parse XML
    //build scroller from xml
              var spaceBetween:int = 20;
              function buildScroller(imageList:XMLList):void{
              trace("build Scroller");
              var nextX:int=spaceBetween; //not sure where you want to start;
              for (var item:uint = 0; item<imageList.length();item++) {
                        var thisOne:MovieClip = new MovieClip();
                        thisOne.x=nextX;
                        nextX=int(imageList[item].attribute("width"))+spaceBetween;
                        //outline
                        var blackBox:Sprite = new Sprite();
                        blackBox.graphics.beginFill(0xFFFFFF);
                        blackBox.graphics.drawRect(-1, -1, 124, 107);
                        thisOne.addChild(blackBox);
                        thisOne.itemNum = item;
                        thisOne.title = imageList[item].attribute("title");
                        thisOne.link = imageList[item].attribute("url");
                        thisOne.src = imageList[item].attribute("src");
                        thisOne.alpha = 0;
                        //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(url);
                        trace("loading thumbnail "+item+" into Scroller: " + url);
                        //assign event listeners for Loader
                        ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler);
                        ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);
                        ldr.load(urlReq);
                        thisThumb.addChild(ldr);
                        thisOne.addChild(thisThumb);
                        //create listeners for this thumb
                        thisOne.buttonMode = true;
                        thisOne.addEventListener(MouseEvent.CLICK, clickScrollerItem);
                        thisOne.addEventListener(MouseEvent.MOUSE_OVER, overScrollerItem);
                        thisOne.addEventListener(MouseEvent.MOUSE_OUT, outScrollerItem);
                        //add item
                        scroller.addChild(thisOne);
              trace("termination of build scroller");
    function clickScrollerItem(e:MouseEvent):void{
              trace("clicked item " +e.currentTarget.itemNum + " - visit url: " +e.currentTarget.link);
    function overScrollerItem(e:MouseEvent):void{
              trace("over"+e.currentTarget.title);
    function outScrollerItem(e:MouseEvent):void{
              trace("out"+e.currentTarget.title);
    function completeHandler(e:Event):void{
              //trace("thumbnail complete "+e.target.loader.parent.parent.title)
              TweenMax.to(e.target.loader.parent.parent, .5, {alpha:1});
              //size image into scroller
              resizeMe(e.target.loader.parent, 140, 105, true, true, false);
    function errorHandler(e:IOErrorEvent):void{
              trace("thumbnail error="+e);
    function resizeMe(mc:DisplayObject, maxH:Number, maxW:Number=0, constrainProportions:Boolean=true, centerHor:Boolean=true, centerVert:Boolean=true):void{
        maxH = maxH == 0 ? maxW : maxH;
        mc.width = maxW;
        mc.height = 110;
              mc.scaleX=mc.scaleY
              if (centerHor) {
                        mc.x = (maxW - mc.width) / 2;
              if (centerVert){
                        mc.y = (maxH - mc.height) / 2;

  • Need help scrolling dynamic content from XML

    I am trying to make a photo gallery and I have succeed in
    importing the pictures from XML into Flash. There are still two
    problems:
    1. The content is loading into a movieclip and I tried to
    place a scroll pane on the stage to adding scrolling capabilities.
    I set the parameters to control the movieclip that holds the
    thumbnails but it is not making a scroll bar. I can see the
    pictures inside of the scroll pane but it will not scroll to show
    the rest of the pictures.
    2. I can not figure out how to space the thumbnails evenly. I
    made a variable and multiplied the x position of each picture by it
    but there are large differences between landscape and portrait
    pictures.
    Thanks for the help

    You need to switch from using loadMovie to using the
    MovieClipLoader object. This object has a listener called
    "onLoadInit" that allows you to get the size of your photo when it
    comes in, but before it appears on stage, so that you can adjust
    its placement. Check out the help docs for info on usage.
    WL

Maybe you are looking for

  • Vendor Invoice - FB60

    Hi All this maybe a really basic Qs - but i am so stuck on it i am tryin to make the Reference field of FB60 transaction as mandatory - but am simply not able to find the place to do it for MIRO, its a Required Field, through the movement type, but a

  • Bugs iBooks Author review widgets and text sections

    This week since updating software iTunes and on iPad 3 using Mac bookpro with Mac OS 10.7.5 the review widgets in iBook Author has a bug, which removes part of the questions and part of the answers. I am using the most recent version of iBooks Author

  • Mail Subject column

    In the mailbox view, when the subject of a message is longer than the column width you can hover the cursor over the subject an in a second or two you are shown the complete subject. Is there a key combination that can be used to see the complete sub

  • Latest iTunes Questions

    Hello, This morning I updated iTunes 10.7.0 to 11.0.1. On previous versions of iTunes, the Music playlist contained ALL my tracks from all my albums. After this recent update: I noticed that all my eMusic albums have been separated into their own pla

  • WebEx user license

    Good day! I need to understand user license for WebEx Meeting Server. I understand that only presenter requires user license, therefore WebEx doesn't requires license for attendees during a weebinar. I'm also wondering about users who requires host m