Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 15th, 2011, 09:18 AM
nubianniht nubianniht is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 76 nubianniht User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 46 m 19 sec
Reputation Power: 6
Question ActionScript 2 - Please help with external AS file

I've tried all weekend to get this work.
What I'm trying to do is to get flash to pull the actionscript from an external as file.

Code:
stop();
Stage.showMenu = false;

submit_ta.password = true;

myData = new LoadVars();
myData.onLoad = function() {
	bypass = this.myVariable;
	tempbypass = this.myTempVariable;
};
myData.load("auth_code.php");

submitBtn.onRelease = function() {
	if (submit_ta.text == bypass) {
		getURL("intro.html", "_self");
		trace("rickyandkareine");
	} else if (submit_ta.text == tempbypass) {
		getURL("intro.html", "_self");
	} else {
		gotoAndStop(2);
	}

};


Any help will greatly be appreciated.

Thanks in advance

Reply With Quote
  #2  
Old August 15th, 2011, 12:41 PM
Tann San Tann San is offline
Gotta get to the next screen..
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 6,663 Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)Tann San User rank is General 33rd Grade (Above 100000 Reputation Level)  Folding Points: 14767 Folding Title: Novice Folder
Time spent in forums: 1 Month 1 Week 3 Days 20 h 10 m
Reputation Power: 3163
Facebook MySpace
Hi, you would use the include statement to do that. You can read the full docs page on that here.

If the external file was in the same directory as the fla file and it is called "cats.as" then inside your fla file you would use:

#include "cats.as"
__________________
Quis custodiet ipsos custodes?

Reply With Quote
  #3  
Old August 16th, 2011, 05:50 PM
nubianniht nubianniht is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Posts: 76 nubianniht User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 46 m 19 sec
Reputation Power: 6
thanks i'll give it a try.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > ActionScript 2 - Please help with external AS file

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap