Old 21-08-2008, 14:04   #1 (permalink)
jesusfreak101
ie must die
 
jesusfreak101's Avatar
 
Join Date: Jun 2007
Location: Washington
Posts: 2,120
Send a message via AIM to jesusfreak101 Send a message via MSN to jesusfreak101
i need a flash experts help

okay so i have this AS thats in a button which animates a tween, but then when you roll out the AS just reverses it. heres the code:

Code:
on (rollOver) { _root.mouse_over_HomeNew = true; } on (rollOut) { _root.mouse_over_HomeNew = fstartlse; }

and i created a new button where it stops in the middle, but i want the rollOut AS to play after it stops. Any flash experts know how to do this? i attached an image to get an idea

originally, the button would stop where the AS is, but i wanna change that
Attached Thumbnails
i-need-flash-experts-help-image1.jpg  
  Reply With Quote
Old 21-08-2008, 14:20   #2 (permalink)
eviltwinisdead
I feel sick
 
eviltwinisdead's Avatar
 
Join Date: Aug 2008
Location: Glasgow
Posts: 57
Hmm, I really don't understand what you mean.

What do these do? - _root.mouse_over_HomeNew = true; & _root.mouse_over_HomeNew = fstartlse; (is that meant to say false?)

What is the other actionscript on the page?

Anyway...

I think a Tweener actionscript class might help you - although, this may be a bit too advanced if you are a beginner. Caurina. Have a look, there are help files there as well.

After you've imported the class you could use the class like this:

(This would on on timeline rather than on button)

button.onRollOver = function () {
Tweener.addTween (MovieClip, {_alpha:100, time:5, onComplete:functionToRollOut});
}


function functionToRollOut () {
Tweener.addTween (MovieClip, {_alpha:0, time:5);
}


If you can explain more what you want I could try an think about a more basic solution.
  Reply With Quote
Old 21-08-2008, 14:41   #3 (permalink)
jesusfreak101
ie must die
 
jesusfreak101's Avatar
 
Join Date: Jun 2007
Location: Washington
Posts: 2,120
Send a message via AIM to jesusfreak101 Send a message via MSN to jesusfreak101
i attached one of the buttons that was created.

so basically, i wanted to get the button when it rolls out to play a different kind of tween. But with the AS it somehow reverses the rollover. So the rollout is exactly what the rollover is except its reversed. (i grabbed the AS from a friends site). You can take a look at the FLA file if you'd life. But in the AS, how would i direct them to a different tween?
Attached Files
File Type: zip example.zip (12.4 KB, 1 views)
  Reply With Quote
Old 21-08-2008, 17:04   #4 (permalink)
jesusfreak101
ie must die
 
jesusfreak101's Avatar
 
Join Date: Jun 2007
Location: Washington
Posts: 2,120
Send a message via AIM to jesusfreak101 Send a message via MSN to jesusfreak101
anyways, i found a solution. i went back to an old flash template i had and it had what i was looking for. i attached my navigation if anyone wants a handy one cheers

thanks for the help though, appreciate it
Attached Files
File Type: zip navigation.zip (11.9 KB, 3 views)
  Reply With Quote
Old 21-08-2008, 18:32   #5 (permalink)
eviltwinisdead
I feel sick
 
eviltwinisdead's Avatar
 
Join Date: Aug 2008
Location: Glasgow
Posts: 57
Heh. No problemo. It's great to be completely useless

Will have a look at your file tomorrow out of curiosity. I only have Flash MX 2004 at home, so it won't open.
  Reply With Quote
Old 21-08-2008, 18:35   #6 (permalink)
jesusfreak101
ie must die
 
jesusfreak101's Avatar
 
Join Date: Jun 2007
Location: Washington
Posts: 2,120
Send a message via AIM to jesusfreak101 Send a message via MSN to jesusfreak101
Quote:
Originally Posted by eviltwinisdead
Heh. No problemo. It's great to be completely useless
well you are completely advanced, i was confused just looking at what you wrote. ha ha but thnx for trying
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive
Web Hosting by Heart Internet
Search Engine Optimization by vBSEO 3.0.0 RC8
Web Hosting by Heart Internet