Creative COW SIGN IN :: SPONSORS :: ADVERTISING :: ABOUT US :: CONTACT US :: FAQ
Creative COW's LinkedIn GroupCreative COW's Facebook PageCreative COW on TwitterCreative COW's Google+ PageCreative COW on YouTube
ADOBE FLASH:HomeFlash ForumFlash TutorialsFlash Video TutorialsWeb Streaming ForumAdobe FlashPodcast

Movie works in flash preview, but not HTML Publish

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook
robertsMovie works in flash preview, but not HTML Publish
by on Nov 6, 2005 at 2:18:27 am

Hello Guru's. (Wish I could say, "Fellow Guru's" )
..heh So I have hashed together a button I saw on another site, and am pretty close to the end result. Basically, it's an animated button, and on mouseout, I want to reverse the animation. This works fine previewing in flash with CRTL-ENTER, but if I preview in HTML " F12 " The clicp plays once on mouseOver, but does not reverse itself as it did in the preview.

.FLA file here; http://www.tyfactor.com/no_reverse.fla

This is my script I'm trying to use;

onClipEvent (enterFrame) {
// if the mouse IS over the clip ...
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
// if the last frame of the tween hasn't been reached...
if (this._currentframe // keep playing the next frame to the last and stop...
this.nextFrame();
}
// if the mouse is NOT over the clip
} else {
// if we're past the first frame of the tween...
if (this._currentframe>1) {
// play the previous frame until it reaches frame 1 and stop...
this.prevFrame();
}
}
}
on (release) {

//Goto Webpage Behavior
getURL("http://www.tyfactor.com","_self");
//End Behavior

}

Many thanks for any help you all may be able to provide.


Return to posts index
Reply   Like  

robertsRe: Movie works in flash preview, but not HTML Publish
by on Nov 6, 2005 at 2:46:23 am

Correction on code, bad cut and paste. Should read;

onClipEvent (enterFrame) {
// if the mouse IS over the clip ...
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
// if the last frame of the tween hasn't been reached...
// if (this._currentframe if (this._currentframe < this._totalframes){
// keep playing the next frame to the last and stop...
this.nextFrame();
}
// if the mouse is NOT over the clip
} else {
// if we're past the first frame of the tween...
if (this._currentframe>1) {
// play the previous frame until it reaches frame 1 and stop...
this.prevFrame();
}
}
}
on (release) {

//Goto Webpage Behavior
getURL("http://www.tyfactor.com","_self");
//End Behavior

}


Return to posts index
Reply   Like  

RobertSRe: Movie works in flash preview, but not HTML Publish
by on Nov 6, 2005 at 2:47:07 am

weird, it's cutting off my code. :(

[as]
onClipEvent (enterFrame) {
// if the mouse IS over the clip ...
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
// if the last frame of the tween hasn't been reached...
// if (this._currentframe if (this._currentframe < this._totalframes){
// keep playing the next frame to the last and stop...
this.nextFrame();
}
// if the mouse is NOT over the clip
} else {
// if we're past the first frame of the tween...
if (this._currentframe>1) {
// play the previous frame until it reaches frame 1 and stop...
this.prevFrame();
}
}
}
on (release) {

//Goto Webpage Behavior
getURL("http://www.tyfactor.com","_self");
//End Behavior

}
[/as[


Return to posts index
Reply   Like  

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Share on Facebook


FORUMSTUTORIALSFEATURESVIDEOSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

Creative COW LinkedIn Group Creative COW Facebook Page Creative COW on Twitter
© 2014 CreativeCOW.net All rights are reserved. - Privacy Policy

[Top]