A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: image timed to change with AS

  1. #1
    stef - digital-farm.co.uk Stefan150's Avatar
    Join Date
    Mar 2002
    Location
    London
    Posts
    325

    image timed to change with AS

    Hello fellow flashers,

    Its been a while since I've been on here. I used to live here so it feel like going back to visit our old school or something.

    Anyway I have a question for you smart types.

    I need an image in my flash to change every 30 minutes but as I'm a designer type I would normally just extend the timeline but there is probably a better way with AS.

    Can anyone help.

    Thanks,

    Stef

  2. #2
    Banned deepakflash's Avatar
    Join Date
    Aug 2007
    Location
    [Object not found]
    Posts
    1,160
    every 30 mins? or 30 secs???

    just make use of setInterval.

    example,
    PHP Code:
    loadImgIntrval=setInterval(this,"loadImg",30000);// for 30 seconds
    function loadImg(){
    i++
    mcloader.load("img"+i+".jpg");//if your images are named as img1.jpg, img2.jpg......and so on


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