NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Need flash assistance!!! Help me someone!!!

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 05-16-2005, 12:46 AM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: Mar 2005
Location: Singapore
Posts: 1,836
1901gt has much to be proud of1901gt has much to be proud of1901gt has much to be proud of1901gt has much to be proud of1901gt has much to be proud of1901gt has much to be proud of1901gt has much to be proud of1901gt has much to be proud of
 



Animal Cruelty

Need flash assistance!!! Help me someone!!!


Code:
onEnterFrame = function () {
	APause = setInterval(GoBack, 2000);
	function GoBack() 
	{
	setProperty(_root.popupBG, _visible, true);
	setProperty(_root.buttonNext, _visible, true);
	setProperty(_root.skipButton, _visible, false);
 	clearInterval(APause);
	stop();
}
};
The above is an actionscript in Frame 1 of the file boy_instructions.swf.
On enter frame, the popupBG and buttonNext will appear after 2 seconds.
????: NamePros.com http://www.namepros.com/programming/90505-need-flash-assistance-help-me-someone.html
When the buttonNext is click, it will go to the next frame. See the code for buttonNext below.

Code:
on (release) {
	setProperty(_root.popupBG, _visible, false);
	setProperty(_root.buttonNext, _visible, false);
	nextFrame();
}
The code for the next frame (Frame 2) is below.
The popupBG and nextButton will disappear and gameinstruc and okButton will appear.

Code:
onEnterFrame = function () {
	APause = setInterval(GoBack, 2000);
	function GoBack() 
	{
 	clearInterval(APause);
	setProperty(_root.gameinstruc, _visible, true);
	setProperty(_root.okButton, _visible, true);
	setProperty(_root.skipButton, _visible, false);
	stop();
}
};
Everything work fine when I Test Movie at my Flash MX 2004 Professional.
I then put the boy_instructions.swf file in boy_instructions.html.

Problem: When I put the .swf file in HTML, instead of stopping after the popupBG and buttonNext appear, it go straight to Frame 2 and stop there instead. Why is that so? Please help someone. Thanks!
1901gt is offline  
Closed Thread


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
A number of Templates for sale - Auction CDImage Web Development Wanted 1 02-13-2005 01:47 AM
Quality Flash LordHaHa For Sale / Advertising Board 0 01-29-2005 12:55 PM
Flash Deadly Sins (that can kill your web business) abacomedia Graphic Design / Flash 2 06-26-2004 10:32 PM
Using Music on your Site - WAV, MP3, MIDI, Flash? abacomedia Web Design Discussion 1 05-20-2004 02:04 PM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 08:53 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger