Current location: Hot Scripts Forums » General Web Coding » Flash & ActionScript » ActionScript not working! Runs when published in Flash 6 but not in Flash 8


ActionScript not working! Runs when published in Flash 6 but not in Flash 8

Reply
  #1 (permalink)  
Old 04-04-06, 06:46 PM
Flash_Boi Flash_Boi is offline
Newbie Coder
 
Join Date: Mar 2006
Location: WA state
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Talking ActionScript not working! Runs when published in Flash 6 but not in Flash 8

Hi,

I have this file which I created from http://www.tutorialized.com/tutorial...entation/11499 where the actionscript works in Flash Player 6 but when I publish into Flash player 7 or 8 it does not seem to want to play.

It gets a pop up message stating:
"A script in this movie is causing Flash Player to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort?"

My purpose to get this working in Flash 8 is because I need to incorporate CSS Stylesheets externally.


Here is the following actionscript:

stop();
numberOfTabs = 3;
for (i=1; i<=numberOfTabs; i++) {
line = eval("tab"+i);
line.onRelease = function() {
for (i=1; i<=numberofTabs; i++) {
otherTabs =
eval("this._parent.tab"+i);
otherTabs.bottomLine._visible =
true;
}
this.bottomLine._visible = false;
contentFrame = Number (this._name.substr(3,
1));
this._parent.contents.gotoAndStop(contentFrame);
}
}
tab1.bottomLine._visible = false;

tab1.onPress = function() {
gotoAndStop("tab1");
};

tab2.onPress = function() {
gotoAndStop("tab2");
};

tab3.onPress = function() {
gotoAndStop("tab3");
};


How does it need to be changed?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Php with flash or without tables ? EraseR PHP 0 06-26-04 08:36 AM


All times are GMT -5. The time now is 02:07 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.