A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: setInterval with xml. . . Is this possible????

  1. #1

    setInterval with xml. . . Is this possible????

    I need a little assistance in creating a setInterval function based on my xml file. If anyone could help, I would really appreciate it!

    Here's a sample of xml file:
    <count id="1">
    <mediatype>1</mediatype>
    <information>Introduction</information>
    <endtime>12</endtime>
    </count>
    <count id="2">
    <mediatype>2</mediatype>
    <information>Clip 2</information>
    <endtime>50</endtime>
    </count>
    <count id="3">
    <mediatype>3</mediatype>
    <information>Clip 3</information>
    <endtime>150</endtime>
    </count>

    This is a sample of my actionscript:
    Code:
    myInterval = setInterval(beginFadeOut, time());
    
    function beginFadeOut() {
    	clearInterval(myInterval);
    	mc.fadeIn(100, 7);
    }
    function time() {
    	sec = ((10/5)*1000);
    	trace("seconds called");
    	return sec;
    }
    eg.
    sec = parent.childNodes[i].firstChild;

    So, the value would be put in an array. I have tried several things, and have tried to ask the form, but no response.
    If I need to post the .fla just let me know. Any assistance would be great!

    Thanks,
    cbs

  2. #2
    Member
    Join Date
    Oct 2003
    Location
    The Netherlands
    Posts
    41
    can you post the fla? i'll have a look

  3. #3
    This link will tell you everything you need to know:

    http://flashkit.com/board/showthread...hreadid=553156

    http://flashkit.com/board/showthread...hreadid=544905

    Sorry for the month tardiness! Just got back from vacation.

    cbs
    Last edited by cbs01; 07-06-2004 at 10:18 AM.

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