A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: XML and SWF files

  1. #1
    Junior Member
    Join Date
    Aug 2007
    Posts
    6

    XML and SWF files

    Hi I have just received a xml and flash CS3 file from another client
    They would like me to add some animation in here

    How do I add a Swf or movie into xml scripting without touching my fla file

    Also I can't seem to edit the fla file to add a holder as when I test my movie (make it a swf file) it's all jumbled.

    I'm not sure who created this so I can't ask the designer.

    Hope you can help, thanks heaps
    =)
    anna

  2. #2
    var x:Number = 1; x /= 0;
    Join Date
    Dec 2004
    Posts
    549
    I'm not really sure what you mean about adding a SWF inito XML scripting. Could you explain a little more?

    It would be helpful if you could post the .fla (or a stripped down version of it) or the xml.
    Z¡µµ¥ D££

    Soup In A Box

  3. #3
    Junior Member
    Join Date
    Aug 2007
    Posts
    6
    sorry for not being more in depth =)

    basically I have a .fla file from a client and the whole .fla is using xml externally and I want to add an animation to this .fla through xml like linking it, is this possible or do I have to add it to the .fla stage?

    problem number 2.
    the .fla file that they have given me. I'm unable to export as a swf file, thus meaning I can't change it as when I do export it, it's all jumbled up, is there a simple easy solutions i'm not covering, to not be jumbled!

    thanks for your help =)

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    Animation can only be done in the .fla file. When you say "I'm unable to export as a swf file" it doesn't make sense without more info.

    gparis

  5. #5
    Junior Member
    Join Date
    Aug 2007
    Posts
    6
    okay great thanks. sorry it is a bit confusing.
    Because I can't access the .fla file. is there an easy way to add an image externally without touching the .fla file?
    here is a little of my code

    <data time="8000">
    <slide>
    <date><![CDATA[Avant 1945]]></date>
    <img>flash/module/timeline/data/image1.png</img>
    <titre><![CDATA[Les premiers régimes de retraite]]></titre>
    <texte><![CDATA[Le premier régime, celui des marins, remonte Ã* Louis XIV !<br/>
    <br/>
    En 1910 et en 1928-1930, on s’efforce, sans grand succès, d’établir un système de retraite pour les plus démunis.<br/>
    <br/>
    En 1941 est créée une allocation aux vieux travailleurs salariés, ancêtre du minimum vieillesse.<br/>
    <br/>
    En 1945, plusieurs régimes professionnels disparates coexistent, mais la plus grande partie de la population n’est pas vraiment couverte pour le risque vieillesse.
    ]]></texte>
    </slide>

    <slide>
    <date x="30"><![CDATA[1945]]></date>
    <titre x="30"><![CDATA[Naissance de la Sécurité Sociale]]></titre>
    <texte x="30" width="600" height="200"><![CDATA[Les ordonnances d’octobre 1945 créent la Sécurité Sociale, dont l’assurance vieillesse constitue l’une des principales branches (avec la maladie, la famille et les accidents du travail).<br/>
    <br/>
    C’est la naissance du régime général de retraite, qui s’applique Ã* tous les salariés du secteur privé, hors agriculture, et qui fonctionne par répartition. L’âge minimum pour percevoir une retraite complète est alors fixé Ã* 65 ans.<br/>
    <br/>
    L’idée était de créer un régime unique pour tous ; mais plusieurs professions et organismes ont préféré conserver leur régime : c’est l’origine des régimes spéciaux.
    ]]></texte>
    </slide>

  6. #6
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    is there an easy way to add an image externally without touching the .fla file?
    No. The flash's code is surely set up to display the nodes as they were first written in the xml. Adding a new node won't make the flash display it if there is no code for it. You already have an image named image1.png, you could change that image.

    gparis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center