XML and Flash Data Retrieval

I am new to flash's dynamic data uses - I have a 100
responses to 23 question form which I wish to display using flash
in a presentation - I wish to sort the info only by either
individuals forms or question/answers. Once created i do not need
to amend the data - i will be delivering this on a cd.
Could I add the 100 responses into an XML File for flash to
read the data from? Is it easy to sort this information?
I just used jen de hanns tutorial with the data wizards - is
this appropriate - or is what I am wanting to do more complex?
Many thanks for any advice

Sorting of data can be done by a database which you are not
using, a
serverside script which you are not using, in your own AS
code or possibly
an Flash UI component.
You might want to post this message in the Flash Actionscript
forum and ask
how you can sort data in As or UI components.
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
"stacyp" <[email protected]> wrote in
message
news:e2371n$n00$[email protected]..
I am new to flash's dynamic data uses - I have a 100
responses to 23
question
form which I wish to display using flash in a presentation -
I wish to sort
the
info only by either individuals forms or question/answers.
Once created i do
not need to amend the data - i will be delivering this on a
cd.
Could I add the 100 responses into an XML File for flash to
read the data
from? Is it easy to sort this information?
I just used jen de hanns tutorial with the data wizards - is
this
appropriate
- or is what I am wanting to do more complex?
Many thanks for any advice

Similar Messages

  • Using XSLT to link XML and ABAP data

    Hi Experts,
    I am using XSLT to deal with XML and ABAP data.
    I using the following statement to convert a Internal Table to XML String:
    CALL TRANSFORMATION id SOURCE  root = lt_sflight RESULT XML l_xml_string.
    And I get the XML String:
    <?xml version="1.0" encoding="utf-16" ?>
    <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    <asx:values>
    <ROOT>
    <SFLIGHT>
    </SFLIGHT>
    <SFLIGHT>
    </SFLIGHT>
    </ROOT>
    </asx:values>
    </asx:abap>
    But What I expected is:
    <?xml version="1.0" encoding="utf-16" ?>
    <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    <asx:values>
    <ROOT>
    <DATA>
    </DATA>
    <DATA>
    </DATA>
    </ROOT>
    </asx:values>
    </asx:abap>
    Could you tell me how to get my dream format using XSLT?
    Best Regards,
    Guo Guo Qing
    Edited by: guoqing guo on Jun 11, 2008 9:58 AM

    Hi Experts,
    I am using XSLT to deal with XML and ABAP data.
    I using the following statement to convert a Internal Table to XML String:
    CALL TRANSFORMATION id SOURCE  root = lt_sflight RESULT XML l_xml_string.
    And I get the XML String:
    <?xml version="1.0" encoding="utf-16" ?>
    <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    <asx:values>
    <ROOT>
    <SFLIGHT>
    </SFLIGHT>
    <SFLIGHT>
    </SFLIGHT>
    </ROOT>
    </asx:values>
    </asx:abap>
    But What I expected is:
    <?xml version="1.0" encoding="utf-16" ?>
    <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    <asx:values>
    <ROOT>
    <DATA>
    </DATA>
    <DATA>
    </DATA>
    </ROOT>
    </asx:values>
    </asx:abap>
    Could you tell me how to get my dream format using XSLT?
    Best Regards,
    Guo Guo Qing
    Edited by: guoqing guo on Jun 11, 2008 9:58 AM

  • XML and Flash - Yikes!

    HELP!
    I think I might be in trouble unless someone brilliant can help.
    I'm working with a flash template that loads external images and text using an xml file.
    Everything works well the only problem is I've promised a client that as well as a "title" and "description" I will also include a clickable URL link. I can edit the flash to a certain extent but I am having a nightmare of a time including a clickable url. Is there anyone out there who can help?
    "photo_description", "photo_title" and "photo_url" are the names of the dynamic text fields.
    XML snippet looks a little like this...
    <title>Title</title>
    <description>Description</description>
    <url>http://</url>     <---- This is the part I'd like to include
    Here is the AS...
    // Copyright © flashmo.com
    // Developed by Min Thu
    // Tweener
    // http://code.google.com/p/tweener/
    import caurina.transitions.*;
    var folder:String = "photos/";
    var follow_mouse:Boolean = true; // true OR false
    var tween_duration:Number = 0.5;
    var default_tn_scale:Number = 0.8;
    var default_pic_alpha:Number = 0.25;
    var new_scale:Number;
    var tn_border:Number = 5;
    var speed:Number = 12; // from 1 to 20
    var i:Number;
    var j:Number;
    var tn:Number = 0;
    var tn_distance:Number;
    var current_no:Number = 0;
    var total:Number;
    var flashmo_xml:XML;
    var flashmo_photo_list = new Array();
    var current_mc:MovieClip = new MovieClip();
    var flashmo_pic:MovieClip = new MovieClip();
    var thumbnail_group:MovieClip = new MovieClip();
    this.addChild(flashmo_pic);
    this.addChild(thumbnail_group);
    this.addChild(flashmo_text_info);
    flashmo_pic.alpha = default_pic_alpha;
    flashmo_pic.x = flashmo_photo_area.x;
    flashmo_pic.y = flashmo_photo_area.y;
    flashmo_pic.mask = flashmo_photo_area;
    thumbnail_group.x = 100;
    thumbnail_group.y = flashmo_thumbnail_area.y;
    thumbnail_group.mask = flashmo_thumbnail_area;
    loading_info.text = "";
    thumbnail_info.text = "";
    flashmo_photo_title.text = "";
    flashmo_text_info.alpha = 0;
    flashmo_text_info.photo_title.text = "";
    flashmo_text_info.photo_description.text = "";
    if( Math.abs(speed) > 20 ) speed = 10;
    speed = Math.abs(speed);
    function load_gallery(xml_file:String):void
    var xml_loader:URLLoader = new URLLoader();
    xml_loader.load( new URLRequest( xml_file ) );
    xml_loader.addEventListener(Event.COMPLETE, create_thumbnail);
    function create_thumbnail(e:Event):void
    flashmo_xml = new XML(e.target.data);
    total = flashmo_xml.photo.length();
    for( i = 0; i < total; i++ )
    flashmo_photo_list.push( {
    thumbnail: flashmo_xml.photo[i].thumbnail.toString(),
    filename: flashmo_xml.photo[i].filename.toString(),
    title: flashmo_xml.photo[i].title.toString(),
    description: flashmo_xml.photo[i].description.toString()
    load_photo();
    load_tn();
    function load_photo():void
    var pic_request:URLRequest = new URLRequest( folder + flashmo_photo_list[current_no].filename );
    var pic_loader:Loader = new Loader();
    pic_loader.load(pic_request);
    pic_loader.contentLoaderInfo.addEventListener(Prog  ressEvent.PROGRESS, on_photo_progress);
    pic_loader.contentLoaderInfo.addEventListener(Even  t.COMPLETE,on_photo_loaded);
    flashmo_text_info.photo_title.text = flashmo_photo_list[current_no].title;
    flashmo_text_info.photo_description.text = flashmo_photo_list[current_no].description;
    flashmo_pic.alpha = 0;
    function unload_photo():void
    flashmo_pic.removeChildAt(0);
    load_photo();
    function on_photo_progress(erogressEvent):void
    var percent:Number = Math.round(e.bytesLoaded / e.bytesTotal * 100);
    loading_info.text = "Loading Image... " + percent + "%";
    function on_photo_loaded(e:Event):void
    loading_info.text = "";
    flashmo_pic.addChild( Bitmap(e.target.content) );
    flashmo_pic.addEventListener( MouseEvent.MOUSE_OVER, pic_over );
    flashmo_pic.addEventListener( MouseEvent.MOUSE_OUT, pic_out );
    Tweener.addTween( flashmo_pic, { alpha: default_pic_alpha, time: tween_duration, transition: "easeOutQuart" } );
    thumbnail_group.addEventListener( MouseEvent.MOUSE_OVER, pic_over );
    function load_tn():void
    var pic_request:URLRequest = new URLRequest( folder + flashmo_photo_list[tn].thumbnail );
    var pic_loader:Loader = new Loader();
    pic_loader.load(pic_request);
    pic_loader.contentLoaderInfo.addEventListener(Even  t.COMPLETE, on_thumbnail_loaded);
    tn++;
    thumbnail_info.text = "Loading Thumbnail " + tn + " of " + total;
    if( tn == 8 )
    thumbnail_group.addEventListener( Event.ENTER_FRAME, fisheye_thumbnails );
    function on_thumbnail_loaded(e:Event):void
    var flashmo_tn_bm:Bitmap = new Bitmap();
    var flashmo_tn_mc:MovieClip = new MovieClip();
    flashmo_tn_bm = Bitmap(e.target.content);
    flashmo_tn_bm.x = - flashmo_tn_bm.width * 0.5;
    flashmo_tn_bm.y = - flashmo_tn_bm.height;
    flashmo_tn_bm.smoothing = true;
    var bg_width:Number = flashmo_tn_bm.width + tn_border * 2;
    var bg_height:Number = flashmo_tn_bm.height + tn_border * 2;
    flashmo_tn_mc.graphics.beginFill(0xFFFFFF);
    flashmo_tn_mc.graphics.drawRect( - bg_width * 0.5, - bg_height + tn_border, bg_width, bg_height );
    flashmo_tn_mc.graphics.endFill();
    flashmo_tn_mc.addChild(flashmo_tn_bm);
    flashmo_tn_mc.buttonMode = true;
    flashmo_tn_mc.addEventListener( MouseEvent.MOUSE_OVER, tn_over );
    flashmo_tn_mc.addEventListener( MouseEvent.MOUSE_OUT, tn_out );
    flashmo_tn_mc.addEventListener( MouseEvent.CLICK, tn_click );
    flashmo_tn_mc.name = "flashmo_" + thumbnail_group.numChildren;
    flashmo_tn_mc.x = thumbnail_group.numChildren * 80;
    flashmo_tn_mc.y = 110;
    flashmo_tn_mc.scaleX = flashmo_tn_mc.scaleY = default_tn_scale;
    thumbnail_group.addChild(flashmo_tn_mc);
    if( tn < total )
    load_tn();
    else
    thumbnail_info.text = "";
    function tn_over(e:MouseEvent):void
    var mc:MovieClip = MovieClip(e.target);
    var s_no:Number = parseInt(mc.name.slice(8,10));
    if( s_no > 1 )
    thumbnail_group.addChild( thumbnail_group.getChildByName("flashmo_" + (s_no-2) ) );
    if( s_no > 0 )
    thumbnail_group.addChild( thumbnail_group.getChildByName("flashmo_" + (s_no-1) ) );
    if( s_no < thumbnail_group.numChildren - 2 )
    thumbnail_group.addChild( thumbnail_group.getChildByName("flashmo_" + (s_no+2) ) );
    if( s_no < thumbnail_group.numChildren - 1 )
    thumbnail_group.addChild( thumbnail_group.getChildByName("flashmo_" + (s_no+1) ) );
    thumbnail_group.addChild(mc);
    flashmo_photo_title.text = flashmo_photo_list[s_no].title;
    function tn_out(e:MouseEvent):void
    var mc:MovieClip = MovieClip(e.target);
    thumbnail_group.addChild(mc);
    flashmo_photo_title.text = "";
    function tn_click(e:MouseEvent):void
    var mc:MovieClip = MovieClip(e.target);
    current_no = parseInt(mc.name.slice(8,10));
    Tweener.addTween( flashmo_pic, { alpha: 0, time: tween_duration,
    transition: "easeInQuart", onComplete: unload_photo } );
    flashmo_pic.removeEventListener( MouseEvent.MOUSE_OVER, pic_over );
    flashmo_pic.removeEventListener( MouseEvent.MOUSE_OUT, pic_out );
    thumbnail_group.removeEventListener( MouseEvent.MOUSE_OVER, pic_over );
    flashmo_text_info.addEventListener( MouseEvent.MOUSE_OVER, info_over );
    flashmo_text_info.addEventListener( MouseEvent.MOUSE_OUT, info_out );
    function pic_over(e:MouseEvent):void
    Tweener.addTween( flashmo_pic, { alpha: default_pic_alpha, time: tween_duration, transition: "easeIn" } );
    Tweener.addTween( thumbnail_group, { alpha: 1, time: tween_duration, transition: "easeOut" } );
    function pic_out(e:MouseEvent):void
    Tweener.addTween( flashmo_pic, { alpha: 1, time: tween_duration, transition: "easeOut" } );
    Tweener.addTween( thumbnail_group, { alpha: 0, time: tween_duration, transition: "easeIn" } );
    function info_over(e:MouseEvent):void
    Tweener.addTween( flashmo_pic, { alpha: 1, time: tween_duration, transition: "easeOut" } );
    Tweener.addTween( thumbnail_group, { alpha: 0, time: tween_duration, transition: "easeIn" } );
    Tweener.addTween( flashmo_text_info, { alpha: 1, time: tween_duration, transition: "easeIn" } );
    function info_out(e:MouseEvent):void
    Tweener.addTween( flashmo_text_info, { alpha: 0, time: tween_duration, transition: "easeOut" } );
    function fisheye_thumbnails(e:Event):void
    thumbnail_group.x -= ( mouseX - flashmo_thumbnail_area.width * 0.5 ) * 0.005 * speed;
    if( thumbnail_group.x > flashmo_thumbnail_area.x + 100 )
    thumbnail_group.x = flashmo_thumbnail_area.x + 100;
    else if( thumbnail_group.x < flashmo_thumbnail_area.x - thumbnail_group.width + flashmo_thumbnail_area.width )
    thumbnail_group.x = flashmo_thumbnail_area.x - thumbnail_group.width + flashmo_thumbnail_area.width;
    if( mouseY > flashmo_thumbnail_area.y && mouseY < flashmo_thumbnail_area.y + flashmo_thumbnail_area.height )
    for( j = 0; j < thumbnail_group.numChildren; j++ )
    current_mc = MovieClip(thumbnail_group.getChildAt(j));
    tn_distance = Math.sqrt(
    Math.pow( Math.abs( mouseX - (current_mc.x + thumbnail_group.x) ) , 2)
    + Math.pow( Math.abs( mouseY - (current_mc.y + thumbnail_group.y) ) , 2)
    new_scale = 1.1 - ( tn_distance * 0.002 );
    current_mc.scaleX += (new_scale - current_mc.scaleX) * 0.2;
    current_mc.scaleY += (new_scale - current_mc.scaleY) * 0.2;
    if( current_mc.scaleX < default_tn_scale )
    current_mc.scaleX = current_mc.scaleY = default_tn_scale;
    else
    for( j = 0; j < thumbnail_group.numChildren; j++ )
    current_mc = MovieClip(thumbnail_group.getChildAt(j));
    current_mc.scaleX += (default_tn_scale - current_mc.scaleX) * 0.2;
    current_mc.scaleY += (default_tn_scale - current_mc.scaleY) * 0.2;
    Thank you! Thank you! Thankyou!

    I´m not quite understanding what you are trying to do here, but in my opinion it would be cleverer to let Flash handle the Link and not the XML.
    Look into the navigateToURL function, formerly (AS2) known as getURL.
    Include your server path as a variable like:
    var baseurl = 'http://www.mypictures.com/descriptions/';
    and in your MouseEventListeners build the path dynamically:
    var descriptionURL:String = aHref();//write a function to get the right Link here;
    var request:URLRequest = new URLRequest(baseurl + descriptionURL);
        try{
            navigateToURL(request,"_blank");
        catch(e:Error){
            trace("An error occurred");
    in your XML you will now only need sth. like  <description>description.txt</description>

  • EBS data and meta data retrieval

    Hi,
    I am into java and my requirement is to retrieve data and meta data of the underlying EBS implementation and make it available to the EBS end users for some kind of processing which is outside EBS.With my limited knowledge of EBS,what I understand is that there is a logical view and a physical view of the data.My queries are as below:-
    1. Is there a way to get the relationship between physical and logical view?
    2. How to get the meta data of the underlying table structures?
    3. Should JDBC drivers be sufficient to retrieve the data or is there any other more efficient means of retrieval.
    Any help on the same is appreciated as I am new into this area and any help is welcome.
    Thanks
    MNG

    Hi,
    1. Is there a way to get the relationship between physical and logical view?
    2. How to get the meta data of the underlying table structures?See Oracle eTRM website.
    eTRM
    https://etrm.oracle.com
    3. Should JDBC drivers be sufficient to retrieve the data or is there any other more efficient means of retrieval. I believe using JDBC drivers should be sufficient. For using JDeveloper, please see (Note: 330236.1 - Configuring JDeveloper For Use With Oracle Applications 11i and R12).
    Regards,
    Hussein

  • Adding CDATA to an existing xml and flash asset

    Hi, I am a front end web designer/developer and
    analyst...struggling with putting an accordian flash xml menu
    together. I have it done except I need to add a simple trademark
    symbol circle with r. I am struggling with how to do this since I
    am not savvy in actioncript. I assume the best way is to add it is
    with a CDATA child node, but do not know how or whatever is the
    best way to get this done since am on a tight deadline. I need
    someone to explain step by step what I have to do to get this
    simple addition resolved. Attached are the links to home page and
    code for the xml file. The left navigation is the asset that I need
    to add the trademark symbol under about, about ADHERE. Thanks so
    much in advance!!!!!!
    [URL=http://www.nodcreative.com/natrecor_sliced/natrecor_index.html]index
    page with flash xml menu asset[/URL]
    xml code:
    <?xml version="1.0" encoding="UTF-8"?>
    <accodion>
    <item name="HOME">
    </item>
    <item name="ABOUT">
    <item name= "ABOUT
    ADHERE<![CDATA[write]]>"></item>
    <item name="Medical Information" url="
    http://www.jnj.com?ref=Random">
    </item>
    <item name="About SCIOS" url="
    http://www.jnj.com?ref=Random">
    </item>
    </item>
    <item name="INTERACTIVE DOSING INFORMATION">
    <item name="Indications and Usage" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="Contraindications" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="Warnings" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="Dosage and Administration" url="
    http://www.jnj.com?ref=Random"></item>
    </item>
    <item name="RESOURCES AND TOOLS">
    <item name="NATRECOR PI" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="About Heart Failure" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="Stages of Heart Failure" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="NATRECOR Dosing Information" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="Patient Management Resources" url="
    http://www.jnj.com?ref=Random"></item>
    </item>
    <item name="US PRESCRIBING INFORMATION">
    </item>
    <item name="IMPORTANT SAFETY INFORMATION
    ref=http://www.jnj.com">
    </item>
    <item name="REGISTRATION ref=http://www.jnj.com">
    </item>
    </accodion>
    FLASH actionscript is as follows:
    // The accordion
    var accordion = this
    // The item list
    var itemList = []
    // SETTINGS
    //-------------PROPERTIES----------------
    // Separation between the buttons
    var separation = 1.5
    // Tabulation between the buttons and the margin
    var tabulation = 10
    // if true, it cant be more than one items opened at the same
    time (only for the first buttons, POWERFUL, MENU ,ACCORDION, ets).
    var autoClose = true
    // if true, it cant be more than one subItems opened at the
    same time.
    var subItemAutoClose = true
    // if true, open and close all the subItems at the same time.
    var openAll = false
    // The height of the button
    var itemHeight = 21
    // The width of the button
    var itemWidth = 230
    // If true, show the light over the button
    var light = true
    // The ease of the menu opening
    var openEase = 2.5
    // The ease of the menu closing
    var closeEase = 2.5
    // The rollOut color fade speed
    var rollOutFade = 8
    //-------------COLORS----------------
    // The color of the button
    var buttonColor = 0xa
    // The roll over color
    var rollOverColor = 0xCCCCCC
    // The arrow color
    var arrowColor = 0xCCCCCC
    // The arrow color on roll over
    var rollOverArrowColor = 0x000000
    // The text color
    var TextColor = 0xFFFFFF
    // The text color on roll over
    var rollOverText = 0x000000
    // LOADING XML
    // The xml data
    var xmlSource:XML = new XML
    // Loading the xml
    xmlSource.onLoad = function(success:Boolean):Void {
    // When the load finishs...
    if (success) {
    // The first node of the xml
    xmlRoot = xmlSource.firstChild
    // The item nodes
    xmlItems = xmlRoot.childNodes
    // The total of items
    total = xmlItems.length
    // Creating the buttons
    for (i=0; i<total; i++){
    // Attaching the buttons
    accordion.attachMovie("item", "item" + i, i)
    // The button reference
    itemList
    = accordion["item"+i]
    // The first node of the item node
    itemList.xmlRoot = xmlItems
    // The separation between subitems
    itemList.separation = separation
    // Tabulation between the subitems and the margin
    itemList
    .tabulation = tabulation
    // subItems auto close
    itemList.subItemAutoClose = subItemAutoClose
    // The subitems height
    itemList
    .itemHeight = itemHeight
    // The subitems width
    itemList.itemWidth = itemWidth
    // shows/hides the subitems light
    itemList
    .light = light
    // The subitems color
    itemList.buttonColor = buttonColor
    // The roll over color
    itemList
    .rollOverColor = rollOverColor
    // The arrow color
    itemList.arrowColor = arrowColor
    // the arrow color on roll over
    itemList
    .rollOverArrowColor = rollOverArrowColor
    // The text color
    itemList.TextColor = TextColor
    // The roll over text color
    itemList
    .rollOverText = rollOverText
    // the opening easing
    itemList.openEase = openEase
    // The closing easing
    itemList
    .closeEase = closeEase
    // The roll over fade speed
    itemList.rollOutFade = rollOutFade
    // open all
    itemList
    .openAll = openAll
    // ignore white
    xmlSource.ignoreWhite = true;
    // Loads the .xml file
    xmlSource.load("accordion.xml");
    // Aligning the items each one below the other
    this.onEnterFrame=function(){
    // Does the align to ALL the items
    for (i=1; i<total; i++){
    // Aligning the items
    itemList._y = itemList[i-1]._y +
    itemList[i-1].mask._height + itemList[i-1].button._height +
    separation
    // The cursor position
    cursor._x = _xmouse
    cursor._y = _ymouse
    // Opens the items
    onMouseDown = function (){
    // Does this to all the buttons
    for (i=0; i<total; i++){
    // If is clicked
    if (itemList
    .button.hitTest(cursor)){
    // Shows the current item
    showCurrent(itemList)
    // Shows the button clicked
    showCurrent=function(current){
    // Does this to all the buttons
    for (i=0; i<total; i++){
    // Does this to all the buttons exept the clicked
    if (itemList
    !=current){
    // Close the other items if autoclose = true
    if (autoClose){
    // Close the other items
    itemList.openBox=false
    // fades the roll over effect of the other items
    itemList
    .over = false
    //Does this to the clcked item only
    } else {
    // If it has sub items
    if (total>0){
    //Hides them if its open
    if (itemList.openBox){
    itemList
    .openBox=false
    //Shows them if its closed
    } else {
    itemList.openBox=true
    // If it has no subitems goes to the link
    } else {
    getURL(xmlRoot.attributes.url, _self)

    Please don't cross-post in a bunch of forums. Also when
    adding code to a post, please use the attach code button. That
    keeps the formatting and makes it easier to read. Your code is far
    too long and way to unformatted to really understand quickly.
    I don't know why you would need a CDATA node to get the
    registered symbol. If the XML file you are working with is saved as
    unicode (UTF-8) the symbol should come across just fine. Just
    putting the UTF-8 at the beginning doesn't tell whatever program
    you are using to save as UTF-8!
    Do you know how to make the registered symbol? On windows it
    is ALT -0174 (use the keypad for those numbers).
    Once you've got the symbol in your XML the next step is to
    check if Flash is loading it correctly. When you are in the testing
    environment go to the Debug menu and select List Variables. The
    trace window will show all the variables -- and there are probably
    a lot! Search/Find something close to the symbol and see if the
    trace window shows the symbol correctly. If it does then Flash is
    readying it correctly and if it isn't showing you have problems
    with your textfield. If it isn't showing correctly then your XML
    file isn't UTF-8.
    If it is textfield problems I wouldn't know what to do since
    it is inside a component. Post back with your findings.

  • In over my head--XML and Flash

    Hi,
    I'm relatively new to Flash and I (foolishly) said that I
    could add a simple link at the end of an existing Flash file. The
    link is no problem, but the movie calls all of its text from an XML
    file. While I'm awed by how this works, I'm also stumped--I can't
    get the movie to actually display the text. Here's the bit of
    actionscript that refers to the XML file in question:
    _level0.displayMode_str="loaded";
    launchFile_str="advice";
    launchFolder_str=""
    xmlFileToLoad = "advice_AM.xml";
    commonFolder_str = "./commonFiles/";
    #include "loader.as"
    I'm pretty sure that it's finding the XML file ok, as it's
    pulling one or two headings from it, but nothing else. I know this
    isn't much to go on, but you guys are my only hope. Is there
    something basic I'm missing?
    Thanks in advance!

    SAVING Flash (AS3) data to XML - Stack Overflow

  • Localdefinitions.xml and format date for Calendar Prompt

    HI!
    1. I change in localdefinitions.xml all dateformats for my locale
    2. I restarted my BI
    3. no effects
    why?

    yes, I restarted presentation server and oc4j.
    but has no effects.
    date prompt has strange behaviour...
    for Administrator user
    in English locale
    default format YYYY-MM-DD
    after change date by calendar, it has M.D.YYYY format
    in my locale
    default format YYYY-MM-DD
    after change date by calendar, it has YYYY.M.D format
    for other users
    in English locale
    default format YYYY-MM-DD
    after change date by calendar, it has YYYY.M.D format
    in my locale
    default format YYYY-MM-DD
    after change date by calendar, it has YYYY.M.D format

  • XML and Flash

    I recently got interested in flash and dove right into with a
    flash template. I have been editing it having some success, but now
    I am having problems. I'm trying to use a simple photo gallery and
    the template didn't come with a caption for the pictures so I added
    a dynamic text box and attempted to use AS. Basically I was trying
    to make it when you moused over the picture the caption appeared
    with the text from the XML files. All I can get to come up is
    undefined when I mouse over it. Here is my AS script, what I
    added is in red so the problem is probably around it.

    Off the bat I can see a syntax error:
    _root.desc = photo_caption[this._parent.tn.no];
    should be:
    _root.desc = photo_caption[this._parent.tn_no];
    with an underscore

  • XML and Flash 8, Windows XP

    I'm using XML to create a gallery in Flash. All is working
    well, however I wish to create a link in the XML file which opens
    and additional swf file in a new window which retains the exact
    dimensions of the swf file. Is this possible?
    Any tips and ticks would be greatly received.
    Thanks

    I have not tried with Flash8 but you used to be able to put
    javascript inside your call to getURL(). Look at the this page for
    code examples that use window.open javascript calls in the flash
    getURL function call:
    http://flashmx2004.com/forums/lofiversion/index.php/t7130.html
    Note that I have run into issues with browser compatibility
    doing this. So in case problems arise try using the Exteranl
    Interface API which will allow you to talk directly to javacript in
    your html.

  • Kirupa  Photo Gallery using XML and Flash

    I learn best by using tutes and figuring out how to make
    changes effectively. i finished the one at
    http://www.kirupa.com/developer/mx2004/thumbnails3.htm
    and managed to change sizes etc but i wanted to change it to a
    symbol to insert it in another flash file. i got that part done
    though the thumbs show up (number 3 to 5) and they do not scroll. i
    figure it has to do with the hit left and hit right and that the
    "path" not sure if i used the term in the right way changes when it
    turns from a scene all by itself to being inserted into a frame in
    a layer. i am not sure if i am explaining this right but i would
    really appreciate any help and I am sorry if this is a duplicate
    post, i have been searching for a long time and cannot find it or
    figure it out.
    jmontyman

    I learn best by using tutes and figuring out how to make
    changes effectively. i finished the one at
    http://www.kirupa.com/developer/mx2004/thumbnails3.htm
    and managed to change sizes etc but i wanted to change it to a
    symbol to insert it in another flash file. i got that part done
    though the thumbs show up (number 3 to 5) and they do not scroll. i
    figure it has to do with the hit left and hit right and that the
    "path" not sure if i used the term in the right way changes when it
    turns from a scene all by itself to being inserted into a frame in
    a layer. i am not sure if i am explaining this right but i would
    really appreciate any help and I am sorry if this is a duplicate
    post, i have been searching for a long time and cannot find it or
    figure it out.
    jmontyman

  • A few questions with XML and Flash

    Hi there.
    I am currently trying to create a 3d carousel using AS2 and XML.  I've made a lot of progress, but there ar e few things I am still struggling with and was hopoing that someone here could please steer me in the right direction.
    Here is a URL where the Carousel can be found:
    http://iongeo.com/ru_innovation_test_dev/carousel_test.html
    Here are a few of the things I am wondering:
    1.  I would like to be ablle to add a back button movide clip, similar to how the tooltip movie clip is presented now; this movie clip would be able to allow users to go back home to the caousel.  I can't seem to get it to load correctly however, I would imagine that it would be set up similarly to how the tooltip icon is set up now, but to be able to have an alpha of 100 when the text is loaded in.
    2.  I was also wondering how I mihgt be able to add links to my .xml document to be able to call in URLs on the web.  I've tried several things using the CDATA approach, but can't seem to get it to work.
    I would greatly appreciate any assistance privded and am very greatful for any consideration thac ould be provided.  Please let me know if there is anything htat I should clarify on.
    Below is my code for AS2 and XML so that you might see how things are currently working.
    import mx.utils.Delegate;
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    var numOfItems:Number;
    var radiusX:Number = 200;
    var radiusY:Number = 75;
    var centerX:Number = 300;
    var centerY:Number = 150;
    var speed:Number = 0.00;
    var perspective:Number = 20;
    var home:MovieClip = this;
    theText._alpha = 0;
    theHeader._alpha = 0;
    var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",8000);
    tooltip._alpha = 0;
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    xml.onLoad = function()
        var nodes = this.firstChild.childNodes;
        numOfItems = nodes.length;
        for(var i=0;i<numOfItems;i++)
            var t = home.attachMovie("item","item"+i,i+1);
            t.angle = i * ((Math.PI*2)/numOfItems);
            t.onEnterFrame = mover;
            t.toolText = nodes[i].attributes.tooltip;
            t.content = nodes[i].attributes.content;
            t.header = nodes[i].attributes.header;
            t.icon.inner.loadMovie(nodes[i].attributes.image);
            t.r.inner.loadMovie(nodes[i].attributes.image);
            t.icon.onRollOver = over;
            t.icon.onRollOut = out;
            t.icon.onRelease = released;
    function over()
        //BONUS Section
        home.tooltip.tipText.text = this._parent.toolText;
        home.tooltip._x = this._parent._x;
        home.tooltip._y = this._parent._y - this._parent._height/2;
        home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
        home.tooltip._alpha = 100;
    function out()
        delete home.tooltip.onEnterFrame;
        home.tooltip._alpha = 0;
    function released()
        //BONUS Section
        home.tooltip._alpha = 100;
        for(var i=0;i<numOfItems;i++)
            var t:MovieClip = home["item"+i];
            t.xPos = t._x;
            t.yPos = t._y;
            t.theScale = t._xscale;
            delete t.icon.onRollOver;
            delete t.icon.onRollOut;
            delete t.icon.onRelease;
            delete t.onEnterFrame;
            if(t != this._parent)
                var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,0,1,true);
                var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,0,1,true);
                var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,100,0,1,true);
            else
                var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,true);
                var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,true);
                var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,100,1,true);
                var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,200,1,true);
                var tw5:Tween = new Tween(theText,"_alpha",Strong.easeOut,0,100,1,true);
                theText.text = t.content;
                var s:Object = this;
                tw.onMotionStopped = function()
                    s.onRelease = unReleased;
    function unReleased()
        var sou:Sound = new Sound();
        sou.attachSound("sdown");
        sou.start();
        delete this.onRelease;
        var tw:Tween = new Tween(theText,"_alpha",Strong.easeOut,100,0,0.5,true);
        for(var i=0;i<numOfItems;i++)
            var t:MovieClip = home["item"+i];
            if(t != this._parent)
                var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,0,t.theScale,1,true);
                var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,0,t.theScale,1,true);
                var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
            else
                var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,100,t.theScale,1,true);
                var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,100,t.theScale,1,true);
                var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
                var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,t.yPos,1,true);
                tw.onMotionStopped = function()
                    for(var i=0;i<numOfItems;i++)
                        var t:MovieClip = home["item"+i];
                        t.icon.onRollOver = Delegate.create(t.icon,over);
                        t.icon.onRollOut = Delegate.create(t.icon,out);
                        t.icon.onRelease = Delegate.create(t.icon,released);
                        t.onEnterFrame = mover;
    function moveTip()
        home.tooltip._x = this._parent._x;
        home.tooltip._y = this._parent._y - this._parent._height/2;
    xml.load("icons.xml");
    function mover()
        this._x = Math.cos(this.angle) * radiusX + centerX;
        this._y = Math.sin(this.angle) * radiusY + centerY;
        var s = (this._y - perspective) /(centerY+radiusY-perspective);
        this._xscale = this._yscale = s*100;
        this.angle += this._parent.speed;
        this.swapDepths(Math.round(this._xscale) + 100);
    this.onMouseMove = function()
        speed = (this._xmouse-centerX)/8000;
    // inactive mouse time (in seconds) to start slowing the carousel
    var inactiveMouseTime:Number =1;
    // rate of slowing carousel;
    var speedDamp:Number = .4;
    var speedI:Number;
    var startSlowTO:Number;
    this.onMouseMove = function(){
    clearInterval(speedI);
    clearTimeout(startSlowTO);
    startSlowTO = setTimeout(startSlowF,inactiveMouseTime);
        speed = (this._xmouse-centerX)/8000;
    function startSlowF(){
    clearInterval(speedI);
    speedI=setInterval(speedF,2000);
    function speedF(){
    speed = speedDamp*speed;
    if(speed<.1){
    clearInterval(speedI);
    speed=0;
    Here is an example of how things are loaded from XML:
    <icons>
    <icon image="Denver_test_icon.png" tooltip="Denver Icon Test" header="test header" content="Test Paragraph. Greeked:. Suspendisse condimentum sagittis luctus." />
    </icons>

    Hi there.
    I am currently trying to create a 3d carousel using AS2 and XML.  I've made a lot of progress, but there ar e few things I am still struggling with and was hopoing that someone here could please steer me in the right direction.
    Here is a URL where the Carousel can be found:
    http://iongeo.com/ru_innovation_test_dev/carousel_test.html
    Here are a few of the things I am wondering:
    1.  I would like to be ablle to add a back button movide clip, similar to how the tooltip movie clip is presented now; this movie clip would be able to allow users to go back home to the caousel.  I can't seem to get it to load correctly however, I would imagine that it would be set up similarly to how the tooltip icon is set up now, but to be able to have an alpha of 100 when the text is loaded in.
    2.  I was also wondering how I mihgt be able to add links to my .xml document to be able to call in URLs on the web.  I've tried several things using the CDATA approach, but can't seem to get it to work.
    I would greatly appreciate any assistance privded and am very greatful for any consideration thac ould be provided.  Please let me know if there is anything htat I should clarify on.
    Below is my code for AS2 and XML so that you might see how things are currently working.
    import mx.utils.Delegate;
    import mx.transitions.Tween;
    import mx.transitions.easing.*;
    var numOfItems:Number;
    var radiusX:Number = 200;
    var radiusY:Number = 75;
    var centerX:Number = 300;
    var centerY:Number = 150;
    var speed:Number = 0.00;
    var perspective:Number = 20;
    var home:MovieClip = this;
    theText._alpha = 0;
    theHeader._alpha = 0;
    var tooltip:MovieClip = this.attachMovie("tooltip","tooltip",8000);
    tooltip._alpha = 0;
    var xml:XML = new XML();
    xml.ignoreWhite = true;
    xml.onLoad = function()
        var nodes = this.firstChild.childNodes;
        numOfItems = nodes.length;
        for(var i=0;i<numOfItems;i++)
            var t = home.attachMovie("item","item"+i,i+1);
            t.angle = i * ((Math.PI*2)/numOfItems);
            t.onEnterFrame = mover;
            t.toolText = nodes[i].attributes.tooltip;
            t.content = nodes[i].attributes.content;
            t.header = nodes[i].attributes.header;
            t.icon.inner.loadMovie(nodes[i].attributes.image);
            t.r.inner.loadMovie(nodes[i].attributes.image);
            t.icon.onRollOver = over;
            t.icon.onRollOut = out;
            t.icon.onRelease = released;
    function over()
        //BONUS Section
        home.tooltip.tipText.text = this._parent.toolText;
        home.tooltip._x = this._parent._x;
        home.tooltip._y = this._parent._y - this._parent._height/2;
        home.tooltip.onEnterFrame = Delegate.create(this,moveTip);
        home.tooltip._alpha = 100;
    function out()
        delete home.tooltip.onEnterFrame;
        home.tooltip._alpha = 0;
    function released()
        //BONUS Section
        home.tooltip._alpha = 100;
        for(var i=0;i<numOfItems;i++)
            var t:MovieClip = home["item"+i];
            t.xPos = t._x;
            t.yPos = t._y;
            t.theScale = t._xscale;
            delete t.icon.onRollOver;
            delete t.icon.onRollOut;
            delete t.icon.onRelease;
            delete t.onEnterFrame;
            if(t != this._parent)
                var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,0,1,true);
                var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,0,1,true);
                var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,100,0,1,true);
            else
                var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,t._xscale,100,1,true);
                var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,t._yscale,100,1,true);
                var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,100,1,true);
                var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,200,1,true);
                var tw5:Tween = new Tween(theText,"_alpha",Strong.easeOut,0,100,1,true);
                theText.text = t.content;
                var s:Object = this;
                tw.onMotionStopped = function()
                    s.onRelease = unReleased;
    function unReleased()
        var sou:Sound = new Sound();
        sou.attachSound("sdown");
        sou.start();
        delete this.onRelease;
        var tw:Tween = new Tween(theText,"_alpha",Strong.easeOut,100,0,0.5,true);
        for(var i=0;i<numOfItems;i++)
            var t:MovieClip = home["item"+i];
            if(t != this._parent)
                var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,0,t.theScale,1,true);
                var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,0,t.theScale,1,true);
                var tw3:Tween = new Tween(t,"_alpha",Strong.easeOut,0,100,1,true);
            else
                var tw:Tween = new Tween(t,"_xscale",Strong.easeOut,100,t.theScale,1,true);
                var tw2:Tween = new Tween(t,"_yscale",Strong.easeOut,100,t.theScale,1,true);
                var tw3:Tween = new Tween(t,"_x",Strong.easeOut,t._x,t.xPos,1,true);
                var tw4:Tween = new Tween(t,"_y",Strong.easeOut,t._y,t.yPos,1,true);
                tw.onMotionStopped = function()
                    for(var i=0;i<numOfItems;i++)
                        var t:MovieClip = home["item"+i];
                        t.icon.onRollOver = Delegate.create(t.icon,over);
                        t.icon.onRollOut = Delegate.create(t.icon,out);
                        t.icon.onRelease = Delegate.create(t.icon,released);
                        t.onEnterFrame = mover;
    function moveTip()
        home.tooltip._x = this._parent._x;
        home.tooltip._y = this._parent._y - this._parent._height/2;
    xml.load("icons.xml");
    function mover()
        this._x = Math.cos(this.angle) * radiusX + centerX;
        this._y = Math.sin(this.angle) * radiusY + centerY;
        var s = (this._y - perspective) /(centerY+radiusY-perspective);
        this._xscale = this._yscale = s*100;
        this.angle += this._parent.speed;
        this.swapDepths(Math.round(this._xscale) + 100);
    this.onMouseMove = function()
        speed = (this._xmouse-centerX)/8000;
    // inactive mouse time (in seconds) to start slowing the carousel
    var inactiveMouseTime:Number =1;
    // rate of slowing carousel;
    var speedDamp:Number = .4;
    var speedI:Number;
    var startSlowTO:Number;
    this.onMouseMove = function(){
    clearInterval(speedI);
    clearTimeout(startSlowTO);
    startSlowTO = setTimeout(startSlowF,inactiveMouseTime);
        speed = (this._xmouse-centerX)/8000;
    function startSlowF(){
    clearInterval(speedI);
    speedI=setInterval(speedF,2000);
    function speedF(){
    speed = speedDamp*speed;
    if(speed<.1){
    clearInterval(speedI);
    speed=0;
    Here is an example of how things are loaded from XML:
    <icons>
    <icon image="Denver_test_icon.png" tooltip="Denver Icon Test" header="test header" content="Test Paragraph. Greeked:. Suspendisse condimentum sagittis luctus." />
    </icons>

  • Whilst updating my boyfriends phone after backing up to iTunes it accidentally got disconnected. when reconnected it synced all contacts from my phone back instead. can this be reversed and his data retrieved ?

    whilst updating boyfriends iPhone 4 it got accidentally unplugged from iTunes's .
    when reconnected it starting syncing all contacts from my phone and did not list his phone in
    the devices drop down bar.
    help everything gone from his phone and now he has some of my contacts and his phone says
    its called Emma iPhone now instead of Tony's iPhone.
    where has his back up data got stored?

    Your only choice at this point is to restore your iphone. Since it appears from your post that you have never synced to this computer, you of course will not have a backup to restore from. That means your only choice is to restore as a new device & re-sync your itunes content. Unfortunately, all of your contacts, calendars, pics in your camera roll, etc., will be lost. Its not a good idea to use the iphone or any phone for that matter as a storage device, as things like this can & do happen. You should be syncing on a regular basis. The first thing done when you do sync is an iphone backup. You should also transfer pics in your camera roll to a supported application on your computer on a regular basis, much like any digital camera. You can always sync pics back to your phone, but if the only copies are on the phone, you run the risk of losing them.
    See if you can force the phone into recovery mode:
    Leave the USB cable connected to your computer, but NOT your phone, itunes running, press & hold the home button while connecting the USB cable to your dock connector, continue holding the home button until you see “Connect to iTunes” on the screen. You may now release the home button. iTunes should now display that it has detected your phone in recovery mode, if not quit and reopen iTunes. If you still don’t see the recovery message repeat these steps again. iTunes will give you the option to restore from a backup or set up as new.

  • Unable to add XML and Webservices Datasource in Crystal Reports

    Hi,
        when I am trying to add a Web service datasource upon clicking the XML and Webservices Datasource in Database Manager I get the following error.
    Invalid Arguments Provided.
    Details: Java server startup failure. Verify PATH (JDK), CLASSPATH, and IORFileLocation properties in the CRConfig.xml file. In addition, verify that you are using JDK 1.5.
    I am using Windows server 2003 OS. Java is version 1.6. I tried the below things but none of them worked.
    1.Edit the crconfig.xml file to add classpath and license information
    2.reverted to java 1.5
    3.uninstalled and installed the CR 2008 software. None of these worked. Please help.

    Thanks Don but my issue is not proxy related.
                        I am not using a proxy though I am using a VPN to be in the network of the Webservice hosting server. Also, my problem is that I am not able to even enlarge the XML and Webservices Data source to add any xml or web service file let alone the one I want to.
    Edited by: iamkhader on May 10, 2010 7:26 AM

  • Saving mouse drawing data in xml and reterive it for edit in as3 flash

    i am wroking in action script 3 with flash i need to save mouse drawing data in xml and retrive it later for edit purpose i have found a good technique -http://memo.tv/drawing_and_exporting_svg_from_flash_as3
    here but not able to make sure how to store in xml and how to retrive it
    thanks for your help in advance

    Hello avneet,
    As you have to use the xml which you store so you have to decide which is the best xml reading logic and same way you have write xml and store it.

  • How to edit bitmap which is imported in flash using xml and save the edited bitmap back to xml in flash.

    hi all
    It would be appreciated if any one let me know how to edit
    bitmap which is imported in flash using xml and save the edited
    bitmap back to xml in flash.
    Is it posible to save the bitmap data in flash?
    thanks in advance

    Yes you can... but like I said before you need to upload the
    data from the changes you make to a server.
    In terms of the solution... its unlikely that you'll find one
    specifically for your needs. You will have to learn whatever you
    don't know how already and maybe adapt some existing examples to
    your needs.
    To change the visual state of a movie clip... you just do all
    the regular things that you want to do to it using flash... scale,
    rotation, drawing API , textfields etc in actionscript. If you
    don't know how to how to do that stuff, then you need to learn that
    first. That's basic actionscript.
    You can capture the visual state of a movieclip using the
    BitmapData class. That includes a loaded jpeg. You can also
    manipulate bimatp data using the same class. You should read up on
    that if you don't know how to use it or check out the examples
    below for uploading info.
    For uploading to the server:
    Here's an as2 solution that took 15 secs to find using
    google:
    http://www.quasimondo.com/archives/000645.php
    If you're using as3, google search for "jpeg encoder as3" and
    look through that info. There are also historical answers in the
    forums here related to this type of thing that might help as
    well.

Maybe you are looking for

  • How to rescrict the user to enter a manual condition type once in pricing

    Hi All, We are using a condition type ZSP1 in our pricing procedure. I want that the user should be able to enter the condition type only once during pricing. eg Suppose the user has entered ZSP1 as 100 in the sales order , then he should not be able

  • Events Sales Information System - Key figures

    What key figure is updated in Net incoming orders 1 and Net incoming orders 2 as defined under update group 000001. I can understand Net incoming order and Gross incoming order.........

  • Ical events not displaying correct time zone

    Hi All, I have a weird issue and I'm not sure if it's an iCal or an entourage problem. When one of our Entourage2008 (exchange) users sends a meeting invite to a user in a different time zone using ical, the meeting shows in ical as the time the ento

  • My MacBook Pro froze during software update 10.9.2. What do I do?

    My current operating system is 10.9.1 and I downloaded the 10.9.2 update. I am now stuck on the Installing Software Update screen that appears during reboot. I have been stuck here for about an hour and don't know what to do. Help, please!

  • Adobe Elements Install Issue

    How do I install Adobe Elements when I do not have the discs, but I have the serial number?