A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: flash banner problem

  1. #1
    Junior Member
    Join Date
    Dec 2009
    Posts
    15

    flash banner problem

    I have a flash banner on a website I'm working on. I'm by no means advanced in flash editing unless I start the code myself from scratch.

    I need to make it so the flash only plays through 4 images where its currently set to go through 5 however, I have no idea how to do this and have tried a few things. So far all I can get it to do is run though the first 4 slides and play the last slide twice before stopping.

    I haven't even been told if this was a paid for thing or someone else made it I just got it dumped on me.

    The only code I've found looks like its for buttons only.

    Code:
    if (_root.a == _root.p) {
    	_parent.button_all["item"+_root.a].gotoAndPlay("s2");
    	_root.a = 4;
    	_root.h = 2;
    	_root.sh_all.bt.gotoAndPlay("s1");
    	_parent.button_all.item1.gotoAndPlay("s1");
    	_root.sh_all.aa.gotoAndPlay("s1");
    	_root.sh_all.aa.over.gotoAndStop(2);
    	//trace(_root.a);
    }
    if (_root.a<_root.p) {
    	_parent.button_all["item"+_root.a].gotoAndPlay("s2");
    	_root.a = _root.a+1;
    	_root.sh_all.bt.gotoAndPlay("s1");
    	_parent.button_all["item"+_root.a].gotoAndPlay("s1");
    	//trace(_root.a);
    }
    root.p was set to 5 so I tried setting that to only 4. I'm getting badgered about this and I don't even know where to start so if anyone could point me in the right direction. I don't expect anyone to just fix it for me, thats rude and I'd never learn that way!

    Kind regards,

    Aravona

  2. #2
    Junior Member
    Join Date
    Jun 2005
    Location
    Ludhiana
    Posts
    16
    But you can create this without action script..

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