Multiple StartDrags? How?
Hi! Is it possible to have multiple movie clips on the stage, each containing startDrag? So far I can get only one to work at a time. :?: Thanks!-James
Actionscript 2.0
Posted on: Sun Feb 25, 2007 12:48 am
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
- Multiple Flash VM Instances Running With Multiple Swfs On The Single Webpage
- Multiple Flash VM Instances Running With Multiple Swfs On The Single Webpage
- [CS3] Issues Creating Multiple MC From Multiple Variable Data Arrays.
- Multiple Movie Clips On Multiple Layers (Playing Problem)
- AS3: Load Multiple Variables Into Multiple Dynamic Text Fields
- How To Sync Multiple Flash Players On Multiple Networked Computers
- Mutliple Swfs, Multiple XMLs, Multiple Root Problems
- Mutliple Swfs, Multiple XMLs, Multiple Root Problems
- Mutliple Swfs, Multiple XMLs, Multiple Root Problems
- Single Button, Multiple Action/Multiple Targets
- [MX] Drag And Drop Multiple Targets Multiple Drags
- Listener - Multiple Btns Trigger Multiple Actions
- Using Text Format For Multiple Fields In Multiple Frames
- Changing The Size Of Multiple Objects In Multiple Keyframes
- Organizing Multiple Nodes From Multiple Webservice Calls
- Multiple Users = Multiple File Checks (Log In Stuff)
- Multiple Line Connections Between Multiple Objects
- LoadMove - Multiple SWFs, Multiple Scenes
- Multiple Buttons Multiple Popup Windows?
- Multiple Buttons Multiple Movie Clips - PLEASE HELP ME
- Multiple Bullets, Multiple Enemies, Collision
- Loading Multiple Txt Variables Into Multiple Txt Fields From One Txt Doc - POSSIBLE?
- [MX] Multiple Variables Moving Multiple Clips
- Multiple Multiple Choice Questions On Same Page
- Preloading Multiple External Swf With Multiple Progress Bar
- [CS3] A Question About Using Multiple Scenes Or Multiple Movies...
- Using Multiple Instances Of LoadVars For Multiple Forms
- Multiple Preloaders For Multiple Movie Clips
- Issues With Multiple Possiblities With Multiple Buttons
- How Can I Load, Multiple Images Into Multiple Key Frames At Once..
- Targeting Multiple Preloaders For Multiple Files...
- Multiple Radio Buttons/Multiple Choices
- Issues With Multiple Possiblities With Multiple Buttons
- HELP Multiple Buttons Controlling Multiple Movies
- Controlling Multiple Movies With Multiple Buttons
- Multiple Swf With Multiple Image Load Methodology.
- Multiple Keypresses - Multiple Events... WAA
- Replacing Multiple Url's In Multiple Fla Files
- Preloading Multiple Mc's On Multiple Levels
- Multiple Swfs In Multiple Windows
- Multiple Swfs In Multiple Windows
- Multiple SetRGB For Multiple MC Instances
- [CS3] Help With Using Multiple Scenes Vs Multiple Movies
- Loading Multiple Images Into Multiple MC's
- Multiple SWFs In Multiple MovieClips
- Import Multiple Img To Multiple Frames
- Multiple Sounds, Multiple Frustrations
- Multiple Cue Points In FLV = Multiple Listeners?
- Need Your Help Loading Multiple External Text Into Multiple Dynamic Text Fields
Multiple Flash VM Instances Running With Multiple Swfs On The Single Webpage
Hi all,
I am developing a webpage having multiple swfs interacting with eachother. Not when I load many swfs, is it the case that multiple flash VM instances are running on my machine? Is there any way to check this.
The project I am doing has one of the requirements that only one flash VM should be running.
Please help me in this.
Multiple Flash VM Instances Running With Multiple Swfs On The Single Webpage
Hi all,
I am developing a webpage having multiple swfs interacting with eachother. Not when I load many swfs, is it the case that multiple flash VM instances are running on my machine? Is there any way to check this.
The project I am doing has one of the requirements that only one flash VM should be running.
To summarize my question is:
how to check whether multiple flash VM instances are running on the system when multiple swfs are loaded on the page?
Please help me in this.
[CS3] Issues Creating Multiple MC From Multiple Variable Data Arrays.
I have had some great help with this from some very kind FlashKit members. However I have played with the code extensively and am having an issue getting multiple MC's from the global variable arrays "V_1", "V_2" and "V_3".
Right now I have the code set to build up a scalable graph for array V_1. I have not had it working "properly" to show the other values in graphs side by side for V_2 and V_3. I have had some weird Frankenstein looking results that led me to believe I was on the right track, but only to find that I could not figure it out. I have a g_seperator variable that I was hoping to use to determine the space between each column of data.
Can anyone out there help me please?
Thank you.
here is my code reprinted here, since my flavor of Flash may not export to a version compatible with some of your working versions.
Code:
stop();
//BAR ATTRIBUTES
_global.g_x = 240;// chart starting x position
_global.g_seperator = 130;// distance between bars
_global.g_width = 50;// graph segments width
_global.g_base = 450;// graph starting Y position
_global.g_alpha = 40;
//BOX VALUES
_global.v_1 = new Array(20, 40, 1, 10, 12, 10, 20, 15, 5, 21, 31, 50, 20, 10, 20);
_global.v_2 = new Array(60, 70, 1, 10, 42, 10, 50, 15, 30, 21, 31, 10, 20, 10, 20);
_global.v_3 = new Array(20, 70, 1, 10, 12, 10, 20, 25, 10, 31, 31, 10, 20, 10, 20);
_global.color_set = new Array(0x000099, 0x00FF00, 0xddddd, 0xcccccc, 0x990000d, 0xff9900, 0x99eeee, 0x99cccc, 0xf21000, 0xffdddddd, 0x005900, 0xff00ff, 0x0ff000, 0xff9999, 0xf2f321);
_global.pos_name = new Array("Site3", "Site5", "Site7");
var home = this;
draw1NPositions("mc_pos"+[p],pos_name[p],g_seperator);
function draw1NPositions(mc_pos, positionName, gap) {
this.createEmptyMovieClip(mc_pos,1000);
for (i=0; i<v_1.length; ++i) {
makeBox(i,g_x,g_base,g_width,v_1[i],color_set[i]);
}
}
function drawBox(mc, w, h, color) {
mc.beginFill(color);
mc.lineStyle(0,color,100);
mc.moveTo(0,0);
mc.lineTo(0,-h);
mc.lineTo(w,-h);
mc.lineTo(w,0);
mc.lineTo(0,0);
mc.endFill();
}
function makeBox(num, posX, posY, wide, tall, color) {
var myBox = home.createEmptyMovieClip("box_mc"+num, num);
myBox._x = posX;
myBox._y = posY;
myBox.num = num;
myBox.dragging = false;
drawBox(myBox,wide,tall,color);
myBox.onMouseUp = function() {
this.dragging = false;
};
myBox.onMouseDown = function() {
if (this.hitTest(_xmouse, _ymouse) && !this.dragging) {
this.startY = _ymouse;
this.startX = _xmouse;
this.startH = this._height;
this.dragging = true;
}
};
myBox.onEnterFrame = function() {
for (var i = 1; i<v_1.length; i++) {
boxes[i-1].y = home["box_mc"+(i-1)]._y=home["box_mc"+i]._y-home["box_mc"+i]._height;
}
};
myBox.onMouseMove = function() {
if (this.dragging) {
dist = this.startH-(_ymouse-this.startY);
boxes[this.num].h = this._height=(dist>1) ? dist : 1;
_root.boxValue.text = this._height;
}
};
Mouse.addListener(myBox);
}
Multiple Movie Clips On Multiple Layers (Playing Problem)
Hi dears,
I am also new in flash users. I have created some movie clips and want to play in “mcmovie”. All movie clips are on different layers i.e. movie clips are as follows:
1.mccommercial
2.mccorporate
3.mcenvirnomental…etc
I placed these MCs in on layer1 frame1 mccommercial, on layer2 frame2 mccorporate, on layer3 frame3 mcenvironmental and so on.
I want to play all movies’ clips one by one i.e. mccorporate should be played after completing mccommercial and playing last movie clip, it should be start from beginning.
I will appreciate, if somebody could do me a favor in this regards.
Thank you,
Yasin
AS3: Load Multiple Variables Into Multiple Dynamic Text Fields
I have a php file that makes this list
Code:
Cid1=3
&Lid1=22
&Title1=amazing
&Date1=1212128413
&Ext1=jpg
&Hits1=129
&Rate1=9.5000
&Cid2=1
&Lid2=22
&Title2=cool
&Date2=1212128413
&Ext2=jpg
&Hits2=129
&Rate2=8.5000
Now, I want to load the 7 bits of data into 7 dynamic text boxes.
I have to code to load a movieclip as a button onto the stage.
When I click that button I want the data to load.
I can kind of load all the data as a string into one dynamic field but don't know how to get each variable into a different text box. Any help would be great.
Regards,
Glen Charles Rowell
This is some working code for loading one variable but I need help with the rest please.
Code:
var url:String = "http://www.secretcanttellsorry.php?cid=3&orderby=ratingD&guid=on";
var Cid1:URLLoader = new URLLoader();
Cid1.addEventListener(Event.COMPLETE, completeHandler);
Cid1.load(new URLRequest(url));
function completeHandler(event:Event):void {
poptext.text = event.target.data as String;
}
Mutliple Swfs, Multiple XMLs, Multiple Root Problems
I'm new to these forums and for a good reason, i'm not as smart as you all and i want you to rub off on me
i have a problem i hope you can help me with. I have a Swf that opens other swfs such as:
_root.this.swf
opens
>_root.folder1 hat.swf
>_root.folder2 hus.swf
but in the secondary folders each have an xml file that has to be called upon by the second swf. Instead of trying to open _root.folder2 ext.xml it tries to open >_root.text.xml is there anyway in flash mx(not '04) that i can change the _root for each secondary swf? If you need more explaination just ask.. Its hard to explain confused:
thanx,
jambo
Mutliple Swfs, Multiple XMLs, Multiple Root Problems
I'm new to these forums and for a good reason, i'm not as smart as you all and i want you to rub off on me
i have a problem i hope you can help me with. I have a Swf that opens other swfs such as:
_root.this.swf
opens
>_root.folder1 hat.swf
>_root.folder2 hus.swf
but in the secondary folders each have an xml file that has to be called upon by the second swf. Instead of trying to open _root.folder2 ext.xml it tries to open >_root.text.xml is there anyway in flash mx(not '04) that i can change the _root for each secondary swf? If you need more explaination just ask.. Its hard to explain confused:
thanx,
jambo
Mutliple Swfs, Multiple XMLs, Multiple Root Problems
I have a Swf that opens other swfs such as
_root.this.swf
opens
>_root.folder1 hat.swf
>_root.folder2 hus.swf
but in the secondary folders each have an xml file that has to be called upon by the second swf. Instead of trying to open _root.folder2 ext.xml it tries to open >_root.text.xml is there anyway in flash mx(not '04) that i can change the _root for each secondary swf? If you need more explaination just ask.. Its hard to explain confused:
thanx
Single Button, Multiple Action/Multiple Targets
I originally posted this on the MX board but I think it should be here. It's a difficult one to describe.
I want to assign two separate events to a single action, but I want one event to follow the other. Both targets are MovieClips nested within the same external swf, which has been imported into the main timeline. Follow me?
on (release) {
_root.loadMovieMC.FallMan.gotoAndPlay("end");
}
on (release) {
_root.loadMovieMC.gotoAndPlay("FishGirl");
}
Problem is that once the button is clicked it runs straight to "FishGirl" without playing FallMan("end"). If I take out the second expression, it will play FallMan okay, but not the two together.
I'm in over my head here, Can anyone please help?
[MX] Drag And Drop Multiple Targets Multiple Drags
I have a drag and drop that has six dragable items to six potential targets. Only three of the targets are correct. Any of the six dragable items can hit a correct target. What I am having issues with is let's say after target 1 is hit, I don't want it to be able to get hit again. My code looks like this. But trying to do the enabled false does not work. Any idea how I can disable target 1 below assuming that it was just hit for the first time so it can't be hit again? Thanks.
but1_mc.onRelease = function() {
stopDrag();
if (this.hitTest(target1_mc) || this.hitTest(target2_mc) || this.hitTest(target3_mc)) {
if (this.hitTest(eval("target1_mc"))) {
target1_mc.enabled = false;
}
correct = correct+1;
}
Listener - Multiple Btns Trigger Multiple Actions
Having trouble wrapping my head around this. Here's the sequence:
There are 5 btns (btn1, btn2, btn3, btn4, btn5). When a btn is clicked a short animation plays (animation_mc), then depending on which btn was clicked, play that section mc.
ie. user clicks on "btn1", animation_mc plays, at last frame of animation_mc, play btn1_mc. If btn2 was click, play same animation_mc then at last frame play btn2_mc.
How would this be done?
Using Text Format For Multiple Fields In Multiple Frames
I'm trying to use Text Format to format all of my dynamic text fields in my movie. My code looks like this:
Code:
var content_fmt:TextFormat = new TextFormat();
content_fmt.color = 0x666666;
content_fmt.font = "Arial";
content_fmt.size = 12;
course_txt.setTextFormat(content_fmt);
I put it on the first frame of my movie. Unfortunately with setTextFormat, it needs to be set for every instance of text field. I don't want to have to copy and paste this code into keyframes across my whole movie. Is there a way to have it check for the field in each frame and apply the colors? Maybe with a for loop?
Changing The Size Of Multiple Objects In Multiple Keyframes
I have a movie with 10 keyframes is it possible to resize an image in all of the keyframes, without having to select each keyframe individually?
If you use select an highlight all keyframes it only changes the last keyframe to selected.
Thx
Organizing Multiple Nodes From Multiple Webservice Calls
I have a web service that I need to call that returns a bunch of nodes, each of which contain numbers that need to be sent to other web services to get the detailed info, and then reassembled with the first bunch of nodes data then presented in the flash movie.
I am confused on the best method to organize and manipulate this data. Any suggestions?
Since I am doing multiple URLLoaders and having to wait for multiple Event Listeners to fire, I dunno how to keep everything that is related organized with each other...
Any ideas would be much appreciated!
Thanks so much!
Multiple Users = Multiple File Checks (Log In Stuff)
Code:
on (release) {
//success is true if the file exists
fileExists=new LoadVars();
fileExists.onLoad=function(success) {
if (success && user eq "USER1" && password eq "USER1_PASSWORD_HERE"){
gotoAndPlay ("logging_in");
}
else {
gotoAndStop ("error");
}
}
//initiate the test
fileExists.load("http://www.somewhere.com/Users/USER1FOLDER/FILE_TO_CHECK_FOR.txt");
}
That's the script i've come up with for "USER 1".
See at the bottom is checks for a file so "user 1" can gain access. I'd like to put multiple users in there, and have the code check the specified users "check file", and not the other users files.
User 1 script checks for User 1 File
User 2 script checks for User 2 File
User 3 script checks for User 3 File
...and so forth.
Aside from that, i would like to know if i can have a script that constantly reloads an external .swf file in level 1.
Multiple Line Connections Between Multiple Objects
Hi
I have come across a number of flash movies dynamically connecting a line between 2 objects. where if either object is moved the line connection is maintained.
My application area is a circuit board where users wire up a number of instruments to a number of connection points.
What i need to do is recreate the effect above but allow a user to drag connectors from terminals on the instruments and link to a number of connection points on the circuit while maintaining the wire link in between. Effectively wiring up the circuit. When each connector from the instrument is connected to the test point, it remains in position until moved to a new point.
Is this possible
Thanks in advance
LoadMove - Multiple SWFs, Multiple Scenes
Hey everyone,
I have multiple swf's, each of which as multiple scenes that must be viewed in sequential order whether the user is traveling forward or backward in the project as a whole. Is it possible to return to a particular scene within a swf using loadMovie?
I have tried this: loadMovie("moviename.swf", framelable); to no avail. The only solution I have found is shuffling the scenes and loading a second swf to the server with the scene I need moved to the beginning of the swf. Is there a better alternative?
Thanks
Multiple Buttons Multiple Popup Windows?
I have several buttons on one page. I would like each button to access a new popup window with different window sizing. All the tutorials I've seen here only show the ability to open one popup window. Can this be done?
Digiblu
Multiple Buttons Multiple Movie Clips - PLEASE HELP ME
Hello -
QUICK BACKGROUND: I am working in Flash MX. I have used Flash for over 3 years, however, I am still struggling with Action Scripting. I plan to take some advanced courses this Autumn.
THE PROJECT AND PROBLEM: I am working on a large Flash site for a cosmetic dentist. I have multiple buttons and when you rollover the button, it will play a movie clip. I got this to work okay.
EXCEPT, I want the movie clip to stay in place and then go away when you click on the next button. Currently, I do not really have any Action Scripting involved except for a few STOP actions. The movie clip is attached to the "OVER" state for each button.
I have attached the .fla file for anyone who can take a few moments to review it. I am really at a stand-still and ready to have a nervous breakdown trying to figure this out. I have been up until 3am every night for the last 4 nights researching this and I have come close but still have not figured it out.
Any help is GREATLY APPRECIATED!!
Denise
Multiple Bullets, Multiple Enemies, Collision
I have a game where the user can shoot up to 15 bullets at a time on the screen. Each bullet is a new object created by attachMovie. I also have an unknown number of enemy types which will be determined depending on the level. Now, my question is, is there any way to just determine if a bullet hit SOMETHING, not a specific object? Like some kind of event, onHitSomething(){return the object that it hit}. Basically I just want to know if the bullet is overlapping something, and if it is, tell me what its overlapping. This would be very helpful because then i could use this one function no matter what it hit, and depending on what it hit, take appropriate action. Any ideas??? Thanks ahead of time!
Loading Multiple Txt Variables Into Multiple Txt Fields From One Txt Doc - POSSIBLE?
I'm wondering, for efficiency sake, if it's possible to load into my main timeline multiple text variables from ONE external .txt document then have that information populate multiple dynamic text fields located in an MC within an externally loaded .swf. held in a containerMC on _level0?-eg path. _level0.containerMC.MCInstanceWithinLoadedSwf.???
If this is possible, how would it be done?Would I simply just use one loadvariableNum action for all?How would the text within the .txt doc be formatted?
- would I simply just list what each textfield variable is = to?
[MX] Multiple Variables Moving Multiple Clips
G'day
I'm pretty new to ActionScript and I'm looking for a fix with a variable.
I have 5 movie clips which I am trying to activate at different times as I move my mouse around the stage.
I'm using this code . . .
var outside = true;
this.onEnterFrame = function()
{if (this._xmouse>66 && this._xmouse<177 && this._ymouse>0 && this._ymouse<650)
{if (outside)
{profile.gotoAndPlay("over");
trace("inside");
outside = false;}}
else {if (!outside)
{profile.gotoAndPlay("out");
trace("outside");
outside = true;}}}
which will play any one of the clips (in this case one called profile) fine but if I duplicate the code it wont work for more than one clip. I'm sure that I'm missing a basic concept here.
Can anybody offer me a fix for this and explain where I'm going wrong?
Thanks
Rickibird
Multiple Multiple Choice Questions On Same Page
Hi,
I need to make a slide that is not tracked that will have 11 multiple choice questions on it. I am new at Flash and Actionscript 3 and most of the module I am making I am able to figure out. This is the only thing so far I am having trouble with. I see that Flash CS3 has stand alone learning interactions that I could use, but they would each appear on a different page. I really need them to all be on one page. I did see a posting from 2006 that had code set up for this type of thing using XMl but am not sure if it will apply to the current version of the software.
Are there any tutorials on this type of thing? Can anyone point me in the right direction?
Any help would be greatly appreciated.
Thanks
Amanda
Preloading Multiple External Swf With Multiple Progress Bar
hi guys! I need a tutorial that loads multiple external swf with different progress bar..i tried to search different tutorials but none of them satisy what I'm after..i hope you can help me on this..i really need it for my project..thanks in advance!
[CS3] A Question About Using Multiple Scenes Or Multiple Movies...
If I wanted to creat a personal site, with say my BIO, Resume, etc, and I wanted to use a format similar to what 2advanced.com uses. Would it be best to use multiple scenes or multiple .fla documents.
The idea is, that when I have a user click a button, or a menu item or whatever, it takes them to a different section of my site, but I want a seemless transistion between pages.
Does that make sense?
Using Multiple Instances Of LoadVars For Multiple Forms
Hi,
I've got a microsite with an Enter to Win contest page. On that first page, I ask for the user's name and e-mail. This enters them to win.
Once they've done so, they have the option to tell a friend, where I ask for the user's name, e-mail, friend's name, and friend's email. It will then use this information to send an email to the friend from the user, using asp. This code occurs on the next frame of the file.
Once they've told a friend, it goes to the next frame, which is just another tell-a-friend page, but with different text. There is a 4th frame which simply says "Entry Failed" if this process does not work.
I'm having problems getting past the first page. I've gotten this code to work before, so I'm wondering if it's because I'm using so many instances of LoadVars... I tried changing the variables associated with each page, but that didn't work. Anybody have ideas on how to successfully get through these pages?
Here's the first page:
ActionScript Code:
stop();
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
function f1() {
cbox.setLabel("Checked");
}
submit_btn.onRelease = function() {
status_txt.text = "";
if ((yname.text.length>1) && (yemail.text.length>1)) {
senderLoad.yname = yname.text;
senderLoad.yemail = yemail.text;
senderLoad.femail = "initial";
if (cbox.selected == true) {
senderLoad.newsletter = "Yes";
} else {
senderLoad.newsletter = "No";
}
senderLoad.sendAndLoad("form.asp",receiveLoad,"POST");
} else {
status_txt.text = "Fill out the form completely";
}
};
receiveLoad.onLoad = function() {
if (this.sentOk) {
gotoAndStop(2);
} else {
gotoAndStop(4);
}
trace(this.sentOk);
};
clear_btn.onRelease = function() {
yname.text = "";
yemail.text = "";
};
privacy_btn.onRelease = function() {
getURL("http://www.hmns.org/privacy_statement.asp?r=1", _blank);
};
rules_btn.onRelease = function() {
getURL("dino_contest_rules.pdf", _blank);
};
The second page:
ActionScript Code:
stop();
var sendLoad:LoadVars = new LoadVars();
var recLoad:LoadVars = new LoadVars();
friend_btn.onRelease = function() {
trace("you've hit the dag hum button!");
//getURL("javascript:openNewWindow('friend.html','thewin', 'height=300,width=700,toolbar=no,scrollbars=no')");
status_txt.text = "";
if ((yname.text.length>1) && (yemail.text.length>1) && (fname.text.length>1) && (femail.text.length>1)) {
sendLoad.yname = yname.text;
sendLoad.yemail = yemail.text;
sendLoad.fname = fname.text;
sendLoad.femail = femail.text;
sendLoad.sendAndLoad("form.asp",recLoad,"POST");
} else {
status_txt.text = "Fill out the form completely";
}
};
recLoad.onLoad = function() {
if (this.sentOk) {
gotoAndStop(3);
} else {
gotoAndStop(4);
}
trace(this.sentOk);
};
The third page page looks just like the second, but with different loadVars variables.
And the form.asp code:
Code:
<%@ LANGUAGE="VBScript" %>
<%
dim fs,f, namefill, notefill, body,your_name,your_email,friend_name,friend_email,newsletter,datetime
referers = Array("dinomummycsi.internal.hmns.org", "dinomummycsi.hmns.org")
smtpServer = "mail.hmns.org"
fromAddr = "webmaster@hmns.org"
subject = "“Unearth Your Own Dinosaur Mummy” giveaway!"
Response.Buffer = true
errorMsgs = Array()
'Check for form data.
if Request.ServerVariables("Content_Length") = 0 then
call AddErrorMsg("No form data submitted.")
end if
'Check if referer is allowed.
validReferer = false
referer = GetHost(Request.ServerVariables("HTTP_REFERER"))
for each host in referers
if host = referer then
validReferer = true
end if
next
if not validReferer then
call AddErrorMsg("Invalid referer: '" & referer & "'.")
end if
'get the post fields
your_name = Request.Form("yname")
your_email = Request.Form("yemail")
newsletter = Request.Form("newsletter")
friend_name = Request.Form("fname")
friend_email = Request.Form("femail")
'Check for the recipients field.
if your_email = "" then
call AddErrorMsg("Missing email recipient.")
elseif not IsValidEmail(your_email) then
call AddErrorMsg("Invalid email address: " & your_email & ".")
end if
if friend_email <> "initial" then
if friend_email = "" then
call AddErrorMsg("Missing Friend Email.")
elseif not IsValidEmail(friend_email) then
call AddErrorMsg("Invalid friend email address: " & friend_email & ".")
elseif friend_email = your_email then
call AddErrorMsg("You can't tell yourself!")
end if
end if
'If there were no errors, build the email note and send it.
if UBound(errorMsgs) < 0 then
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.OpenTextFile("N:Webleocontest.txt", 8, true)
f.WriteLine """" & your_email & """,""" & your_name & """,""" & newsletter & """,""" & now() & """"
f.Close
set f=Nothing
set fs=Nothing
'We do the tell a friend processing here
if friend_email <> "initial" then
if (trim(your_name) <> "") then
namefill = ", " & your_name & ","
end if
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.OpenTextFile(Server.MapPath("efriend.html"))
body = f.readall
f.Close
set f=Nothing
set fs=Nothing
body=replace(body,"%%NAME%%",namefill)
recipients = friend_email
str=SendMail()
end if
Response.Write "sentOk=True"
Response.End
end if %>
<html>
<head>
<title>Form Mail</title>
<link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<div id="body" align="center">
<div id="group">
<center>
<% if UBound(errorMsgs) >= 0 then %>
<table border=0><tr><td><font color="#cc0000" face="Arial,Helvetica" size=4><b>
Form could not be processed due to the following errors:</b></font><br>
<ul>
<% for each msg in errorMsgs %>
<li><font color="#cc0000" face="Arial,Helvetica" size=4><% = msg %></font>
<% next %>
</td></tr></table>
<% end if %>
<%=notefill%><br>
<%=namefill%><br><br>
<%=body%><br>
<font color="#cc0000" face="Arial,Helvetica" size=4><br><b><a href="#" onClick="history.go(-1)">Back</a></b></font>
</center>
</div>
</div>
</body>
</html>
<% '---------------------------------------------------------------------------
' Subroutines and functions.
'---------------------------------------------------------------------------
sub AddErrorMsg(msg)
dim n
'Add an error message to the list.
n = UBound(errorMsgs)
Redim Preserve errorMsgs(n + 1)
errorMsgs(n + 1) = msg
end sub
function GetHost(url)
Dim i, s
GetHost = ""
'Strip down to host or IP address and port number, if any.
if Left(url, 7) = "http://" then
s = Mid(url, 8)
elseif Left(url, 8) = "https://" then
s = Mid(url, 9)
end if
i = InStr(s, "/")
if i > 1 then
s = Mid(s, 1, i - 1)
end if
getHost = s
end function
function IsValidEmail(email)
dim names, name, i, c
'Check for valid syntax in an email address.
IsValidEmail = true
names = Split(email, "@")
if UBound(names) <> 1 then
IsValidEmail = false
exit function
end if
for each name in names
if Len(name) <= 0 then
IsValidEmail = false
exit function
end if
for i = 1 to Len(name)
c = Lcase(Mid(name, i, 1))
if InStr("abcdefghijklmnopqrstuvwxyz_-.", c) <= 0 and not IsNumeric(c) then
IsValidEmail = false
exit function
end if
next
if Left(name, 1) = "." or Right(name, 1) = "." then
IsValidEmail = false
exit function
end if
next
if InStr(names(1), ".") <= 0 then
IsValidEmail = false
exit function
end if
i = Len(names(1)) - InStrRev(names(1), ".")
if i <> 2 and i <> 3 then
IsValidEmail = false
exit function
end if
if InStr(email, "..") > 0 then
IsValidEmail = false
end if
end function
function FormFieldList()
dim str, i, name
'Build an array of form field names ordered as they were received.
str = ""
for i = 1 to Request.Form.Count
for each name in Request.Form
if Left(name, 1) <> "_" and Request.Form(name) is Request.Form(i) then
if str <> "" then
str = str & ","
end if
str = str & name
exit for
end if
next
next
FormFieldList = Split(str, ",")
end function
function SendMail()
dim CDOSYSMail, CDOSYSCon
Set CDOSYSMail = Server.CreateObject("CDO.Message")
Set CDOSYSCon = Server.CreateObject("CDO.Configuration")
CDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "web.hmns.org"
CDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
CDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverpickupdirectory") = "c:InetpubmailrootPickup"
CDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
CDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
CDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 0
CDOSYSCon.Fields.Update
Set CDOSYSMail.Configuration = CDOSYSCon
CDOSYSMail.From = fromAddr
CDOSYSMail.To = recipients
CDOSYSMail.Subject = subject
CDOSYSMail.htmlBody = body
CDOSYSMail.Send
SendMail = ""
Set CDOSYSMail = Nothing
Set CDOSYSCon = Nothing
end function
%>
Multiple Preloaders For Multiple Movie Clips
Designed in Flash 8, the site's timeline is all in Scene 1 and is comprised of an introduction, which contains a short video, and 6 movie clip categories that the user selects to view. Since I want the intro to play as soon as possible, I'd like to limit the first preloader to just the video in the intro and not _root.getBytesTotal. Then, as the viewer watches this short video, the rest of Scene 1 movie clips will keep on loading. After the intro, the viewer will choose which of the 6 categories to view. These categories are identified with buttons which play the particular movie clip. Since I don't know the order of the categories they will select, I thought there should be a separate preloader for each category. Hopefully, after they view a category, the rest of the categories will have loaded and the loading time will be nil. The design for the preloader is comprised of a status bar and a percent loaded. Is there a way to limit the _root.GetBytesTotal to specific frames? I know I could break these categories up into separate SWF files but then I loose the advantage of one loading while another is being viewed.
Issues With Multiple Possiblities With Multiple Buttons
here's what I've got:
three buttons (oneBtn, twoBtn, threeBtn). Click a given button, and onRelease a movie clip (noOne, noTwo, noThree) slides from x position 150 to x position 450.
here's what I want to happen:
say movie clip noTwo is already at position 450. When you click oneBtn, clip noTwo slides left to position 150, while clip noOne slides right to 450. And so on, ad nauseum.
I've tried a number of different ways to attack it as an if/else, and/or, etc. Nothing works right.
I'm attaching a . zip with the .fla. I'm using MX 2004, AS 2.
thanks!
How Can I Load, Multiple Images Into Multiple Key Frames At Once..
Hey guys, I have this..pseudo 3d model viewer for my site that I am working on. The only problem is, I don't want to manually add every image to the flash...especially if I have 45 images or so and I am pretty sure there is no way to automate this in actionscript..
http://www.pcgamemods.com/slideshow/revolve.html
this is a pretty crude example but it shows you what I am aiming for. I just wanted to know if there was an easier way to add images to frames or if there was a program to do it for you.
Targeting Multiple Preloaders For Multiple Files...
Hi there!
I just can't figure out how to use a preloader script for multiple loaders displaying at the same time. And I also just don't understand the target movieclip parameter for onLoadProgress. What is this parameter suppose to be?
The movieclip beeing loaded according to Macromedia but if you put mc.swf it gives you an error so it should be mc then or what? I thought I could use this parameter to kind of target and tell flash what file it was suppose to listen to and then control what preloader to start but it just doesn't work. Also what is the function of this parameter - I just don't get it... When I use the script below the loader starts for every file loaded into a listener called myMCL but I would like to have different preloaders that can be seen at the same time.
For example a preloaderbar for background loading and another one for content loading etc. How can I achieve this using something similar to this code...
myListener.onLoadError = function (target){
bkgMCL.loadClip("error/error.swf", bkg);
_root.gotoAndPlay(28);
};
myListener.onLoadStart = function (target){
this.bkgPreloader._visible = true;
}
myListener.onLoadProgress = function(target:MovieClip, loadedBytes:Number, totalBytes:Number){
var preloadPercent = Math.round((loadedBytes/totalBytes)*100);
_root.bkgPreloader.gotoAndStop(preloadPercent);
};
myListener.onLoadComplete = function(target){ //loading contents after bkg loaded
this.bkgPreloader._visible = false;
};
Multiple Radio Buttons/Multiple Choices
I want to create a screen that has 4 radio button groups. Once choices have been made for each group, I need to store those choices somewhere so that when a submit button is selected, it will run a specific movie clip based on the choices made. The choices can be any combination of the buttons (I have already created the movie clips that will run).
This is to run scenarios based on data already collected. The button groups include: Pump Operation (1, 5 or 6 pumps), Tide Cycle Type (typical, wet year or dry year), Debris Load (high, mid or low), and Fisheries Criteria (salmon or other). The choices run a simple animation through a complete tide cycle, and once the animation has been run, the user can select any portion of the tide cycle to see specific information (changing data is displayed for each portion of the tide cycle).
I'm sure I'm overlooking something really simple, help is greatly appreciated!
Issues With Multiple Possiblities With Multiple Buttons
here's what I've got:
three buttons (oneBtn, twoBtn, threeBtn). Click a given button, and onRelease a movie clip (noOne, noTwo, noThree) slides from x position 150 to x position 450.
here's what I want to happen:
say movie clip noTwo is already at position 450. When you click oneBtn, clip noTwo slides left to position 150, while clip noOne slides right to 450. And so on, ad nauseum.
I've tried a number of different ways to attack it as an if/else, and/or, etc. Nothing works right.
I'm attaching a . zip with the .fla. I'm using MX 2004, AS 2.
thanks!
HELP Multiple Buttons Controlling Multiple Movies
I hope someone can either help, or point me in the right direction!
I am trying to do a little program for kids, where there make their own plants. They are to pick from several buttons; the petal, leaf size and stem size. Once they have done that, they have to then click sun and water. Only then does flash fetch the correct movie case that matches with the buttons pressed, and plays it.
My problem is this...i am a total newbie, and have no idea where to start! Any tips would be very appreciated, or if anyone has stumbled across any tutorials that might help, i would be very grateful!
thanks
Controlling Multiple Movies With Multiple Buttons
I am trying to use variables to control mulitple movies with multiple buttons (I think). I can get one button to control all the movies the way i want, but not ALL the buttons to control ALL the movies.
Take a look at the main menu on exopolis.com and you'll see the effect I'm going for
http://www.exopolis.com
I am also using the code from joshua davis' flash to the core (tutorial #8). I'm try to apply this same concept, but with mulitple movies and mulitple buttons.
http://flashtothecore.praystation.com
I have four movies named:
home_mc
work_mc
play_mc
contact_mc
Each movie has a button within them that declares a variable that will be true or false depending on the rollver state. (fade01,fade02,etc.)
In the root, first frame I have the following:
//handle the onEnterFrame event
_root.bt_home_mc.onEnterFrame=function(){
if(_root.fade01){
_root.bt_work_mc.nextFrame();
_root.bt_play_mc.nextFrame();
_root.bt_contact_mc.nextFrame();
}else{
_root.bt_work_mc.prevFrame();
_root.bt_play_mc.prevFrame();
_root.bt_contact_mc.prevFrame();
}
};
//handle the onEnterFrame event
_root.bt_work_mc.onEnterFrame=function(){
if(_root.fade02){
_root.bt_home_mc.nextFrame();
_root.bt_play_mc.nextFrame();
_root.bt_contact_mc.nextFrame();
}else{
_root.bt_home_mc.prevFrame();
_root.bt_play_mc.prevFrame();
_root.bt_contact_mc.prevFrame();
}
};
//handle the onEnterFrame event
_root.bt_play_mc.onEnterFrame=function(){
if(_root.nav_mc.fade03_mc.fade03){
_root.bt_home_mc.nextFrame();
_root.bt_work_mc.nextFrame();
_root.bt_contact_mc.nextFrame();
}else{
_root.bt_home_mc.prevFrame();
_root.bt_work_mc.prevFrame();
_root.bt_contact_mc.prevFrame();
}
};
//handle the onEnterFrame event
_root.bt_contact_mc.onEnterFrame=function(){
if(fade04){
_root.bt_home_mc.nextFrame();
_root.bt_work_mc.nextFrame();
_root.bt_play_mc.nextFrame();
}else{
_root.bt_home_mc.prevFrame();
_root.bt_work_mc.prevFrame();
_root.bt_play_mc.prevFrame();
}
};
On each button I have the following (except the variable is unique....fade01, fade02, etc)
on(rollOver){
_root.fade01=true;
}
on(rollOut, dragOut){
_root.fade01=false;
}
Please help. This is for a personal project. If you need my fla file, i can send it to you. Thanks
Multiple Swf With Multiple Image Load Methodology.
I can't seem to get my head on straight tonight.
My scenario is this…
One main site frame swf and one swf per page, I have a small pre-load anim for the frame itself and one nice pre-load anim in the main frame to use with the subsequent pages.
In the default page I am loading right at the start I have an image gallery with several images loaded using a single MovieClipLoader instance. I'd like to monitor the load of the page and the image loads using the root level preload anim I'm wondering if using a single MovieClipLoader am I precluding this from working since the loads are happening concurrently.
How would/do you handle situations like this?
Thanks,
J.
Multiple Keypresses - Multiple Events... WAA
Hey fellow flashers. I'm programming a little big game here. You control a character (viewed from the top) with the Arrow keys.
- The left/right keys rotates the character 5 degrees
- The up/down keys move the character 1 step forward/backward
The problem: Because rotating and walking are not necessarily combined actions, I separated the keypress captures and the attached action. But when you press both keys at once, the character stands still and wonders why he's programmed the wrong way...
Strange: Of 10 PC's I tested on, there's 1 where combination of keys does work. But I can't figure out the difference in configuration...
Any suggestions are welcome!!!! Thanx!
Replacing Multiple Url's In Multiple Fla Files
Hi, i have multiple .fla files in dutch language with various buttons with an url pointing to a dutch website. Now i need an enlish version but i need to change 200 url's manually. There is only one thing i need to change in the URL and that is t=nl into t=e (language t=nl is dutch and t=e english).
I there a way to find and replace in multiple .fla files to do this action?
Greetings,
Tom Viguurs
Preloading Multiple Mc's On Multiple Levels
Hi folks, there are lots of posts on preloading, which I've waded through, however, I'm having some difficulty with my particular situation.
I would like to preload mc's into levels 0,1 and 2
level 0 never changes
level 1 changes based on selections from level 2
level 2 is the main interface with 'slider's that move over other levels.
I've used oldnewbies preloader succesfully for loading a single mc but I haven't been able to load all three at one time.
The site in question is at http://www.faithbaptistwaterford.org/FBCv2/index.html
Thoughts?
Thanks in advance,
Blue
Multiple Swfs In Multiple Windows
Does anybody know how to get multiple swf files to play simultaneously in separate browser windows. For example, I have four small browser windows open, all side by side, with a separate swf file in each and i want them all to play at the exact same time.
Can someone help me out with this?
Thanks
Multiple Swfs In Multiple Windows
Does anybody know how to get multiple swf files to play simultaneously in separate browser windows. For example, I have four small browser windows open, all side by side, with a separate swf file in each and i want them all to play at the exact same time.
Can someone help me out with this?
Thanks
Multiple SetRGB For Multiple MC Instances
I have an animated MC on my main timeline, and I want to globally change the color of all the instances within it onRelease of a button. I can change a single instance once, but this would be several instances simultaneously in a single MC.. and then do this with three different colors (3 buttons)..Is there a way to set the color of several instances within a MC at once? Thanks.
[CS3] Help With Using Multiple Scenes Vs Multiple Movies
Hi,
I wanted to create a personal site using Flash CS3. I wanted to a site with different sections outlining different things (obviously). I wanted the site to behave similar to 2advanced studios' site (2advanced.com)
Does that make sense? Do you guys think it's best to use multiple movies or multiple scenes using this technique?
Loading Multiple Images Into Multiple MC's
Hiya
Basically I have an image gallery where I want to load jpg's into seperate MovieClips and then have some onRelease, onRollover etc actions attached to them. I've managed to write what I need, but now the problem is that if I have 50 pics in my gallery I will have to repeat this code 50 times!!!
Can someone show me how to put this in a for loop or an array, or whatever I need to do so I can write it once, not 50 x.
Here's what I've got so far...
loadMovie("images/thumbs/thumb1.jpg", this.btnHolder.inside);
btnHolder.onRelease=function (){
_root.select = 1;
if (_root.cur == 0) {
trace("same pic!");
} else {
_root.fadeOut(0);
}
}
btnHolder.onRollOver=function (){
this.gotoAndStop(2);
}
btnHolder.onRollOut=function (){
if(_root.select == 1){
this.gotoAndStop(2);
}else if
(_root.select == 0){
this.gotoAndStop(1);
}
}
PLEASE HELP ME.
thnx
Multiple SWFs In Multiple MovieClips
So I'm trying to load eight swf files at the same time using eight different movie clips (cause i need to move them around) placed in one big movie clip. I'm using a loop that looks like this :
Code:
for (var i = 1; i<=8; i++) {
this.clip_mc.createEmptyMovieClip("spec" + i + "_mc", 10000+1);
this.clip_mc["spec"+i+"_mc"].loadMovie("species/" + i + "_25.swf");
this.clip_mc["spec"+i+"_mc"]._x = 150;
this.clip_mc["spec"+i+"_mc"]._y = 25*i;
}
The problem is that only the last one (number 8 or in fact any number I put as the last one in the loop) shows up on the scene. I'm pretty sure something is wrong with my syntax but I can't figure out what... any tips?
Import Multiple Img To Multiple Frames
Hi all. What I want to do is import multiple images into multiple frames. Geez this is hard to explain.
OK I am useing a 3D modeling and rendering program called Blender to make some small animations. To get the effects I want I am rendering the animations as a series of .PNG image files. Then importing them to the library and placing them 1 at a time into individual frames, this is tedious and time consuming.
I would like to be able to select more than 1 image then place them onto the stage into individual keyframes.
Also after I would like to select all the frames and align the images all at 1 time instead of 1 at a time, is this even posible.
I'm a Flash noobie, I have a pretty good handle on it for only a couple of weeks experimenting with it. I just feel there has to be a better way of doing what I want, the help and tutorials answer most of my ???s.
Multiple Sounds, Multiple Frustrations
Hey all,
I haven't gotten any responses to my previous sound questions, but I assume that is because the answer is obvious and I should know better. However, I am still struggling. I have a few basic questions that make up my lack of understanding of sound in flash. An example is... I have a narrator reading off questions of a quiz. The first time I create the sound object "narrationSound", I have him read an intro. Next, it needs to move on to the first question, etc. I try to detect when the sound ends by using onSoundComplete, which works once it seems. I do use the same sound ID for the next sound, so perhaps I am not deleting the first one properly. I don't want to create a new sound ID for every sound, because the sounds are played on the fly, and could come up in any order. It would be hard to keep checking for the end of every sound, even if only one of 50 were playing. I pasted some code in an earlier post, but have since been changing mine to try different stuff. I think there is an overall understanding of how sound works that I just don't have. I come from Director where you can assign sounds to a sound channel, and when you replace the sound in the channel with a new one, the old one stops and new one starts. So you could control narration by just dealing with one sound channel. I would like to try to do this on some level with the sound ID. Any thoughts?
Multiple Cue Points In FLV = Multiple Listeners?
Hi all -- quick (simple) question.
I've got an flv movie that displays within my flash document. It has multiple cue points that seem to work ok. I'd like to add one towards the end that fades out the movie, do I need another listener object for this? In other words: Is it necessary to attach multiple listener objects for completely seperate cue points? I've attached the code I use to fade out my movie clip here:
Code:
var vid:Object = new Object();
vid.cuePoint = function(cues){
this.onEnterFrame = fade;
}
vid.addEventListener("cuePoint",vid);
function fade();
this._alpha -= 5;
if(this._alpha < 1){
delete this.onEnterFrame;
}
}
Need Your Help Loading Multiple External Text Into Multiple Dynamic Text Fields
Hi all,
I can't seem to get the external tex file loaded into a dynamic text field.
I am trying to display an external text file into a dynamic text field using a next page button. The layout is this I have 80 frames. Frames 1-10 with a static text field with text & a next page button and Frames 11-20 with a dynamic text field with a previous button. I want to onRelease of the next page button in the first set of 10 frames to load the external text file into the dynamic text field of the next set of 10 frames. Also, being able to jump back and forth from next page to next.
Below I layed out all the contents in my test.fla file.
Hope this will give you an understanding of what I am trying to do.
I need to be able to click a next page button and loading an external text file into a dynamic text field, vice versa.
I have set the variable in the text file.
I used this code to try and load the text file into a dynamic text field, using actinscript. Which frame or frames do I need to include this script in? I know it has got to be multiple ones.
var styles = new TextField.StyleSheet();
styles.load("cssdocName.css");
textfieldName.html = true;
textfieldName.styleSheet = styles;
var lv:LoadVars = new LoadVars();
lv.onData = function(content) {
textfieldName.text = content;
}
lv.load("htmldocName.html");
Thanks for your time!
I have 6 different layers with 80 frames:
Layer titles:
- labels
- actions
- next_prev buttons
- contents
- tabs
- outline
Now in each layer:
- outline layer: just an outline border [displayed in Frames 1-80]
- tabs layer: movie clips tab1, tab2, tab3 within each tab is a movie clip
called bottomline [displayed in Frames 1-80]
- contents layer: Static Text Field [displaying text in Frames 1-10]
Frame 1 ActionScript
stop();
Dynamic Text Field instance name dpmoreinfo_txt
[displayed in Frames 11-20]
Frame 11 ActionScript
stop();
Dynamic Text Field instance name dpmoreinfo2_txt
[displayed in Frames 21-30]
Frame 21 ActionScript
stop();
Static Text Field [displaying text in Frames 31-40]
Frame 31 ActionScript
stop();
Dynamic Text Field instance name spmoreinfo_txt
[displayed in Frames 41-50]
Frame 41 ActionScript
stop();
Static Text Field [displayed text in Frames 51-60]
Frame 51 ActionScript
stop();
Dynamic Text Field instance name cmoreinfo_txt
[displayed in Frames 61-70]
Frame 61 ActionScript
stop();
Dynamic Text Field instance name cmoreinfo2_txt
[displayed in Frames 71-80]
Frame 71 ActionScript
stop();
next_prev buttons
layers: dpmoreinfonext_btn [Frames 1-10]
Frame 1 ActionScript
dpmoreinfonext_btn.onRelease = function() {
gotoAndStop("dpmoreinfo");
};
dpprev_btn & dpmoreinfo2next_btn [Frames 11-20]
Frame 11 ActionScript
dpprev_btn.onRelease = function () {
gotoAndStop("DataPulse");
};
dpmoreinfo2next_btn.onRelease = function () {
gotoAndStop("dpmoreinfo2");
};
dpmoreinfoprev_btn [Frames 21-30]
Frame 21 ActionScript
dpmoreinfoprev_btn.onRelease = function () {
gotoAndStop("dpmoreinfo");
};
spmoreinfonext_btn [Frames 31-40]
Frame 31 ActionScript
spmoreinfonext_btn.onRelease = function () {
gotoAndStop("spmoreinfo");
};
spprev_btn [Frames 41-50]
Frame 41 ActionScript
spprev_btn.onRelease = function () {
gotoAndStop("StructurePulse");
};
cmoreinfonext_btn [Frames 51-60]
Frame 51 ActionScript
cmoreinfonext_btn.onRelease = function () {
gotoAndStop("cmoreinfo");
};
cprev_btn & cmoreinfo2next_btn [Frames 61-70]
Frame 61 ActionScript
cprev_btn.onRelease = function () {
gotoAndStop("Courses");
};
cmoreinfo2next_btn.onRelease = function () {
gotoAndStop("cmoreinfo2");
};
cmoreinfoprev_btn [Frames 71-80]
Frame 71 ActionScript
cmoreinfoprev_btn.onRelease = function () {
gotoAndStop("cmoreinfo");
};
labels layer: Frame name is DataPulse [Frame 1-10]
Frame name is dpmoreinfo [Frame 11-20]
Frame name is dpmoreinfo2 [Frame 21-30]
Frame name is StructurePulse [Frame 31-40]
Frame name is spmoreinfo [Frame 41-50]
Frame name is Courses [Frame 51-60]
Frame name is cmoreinfo [Frame 61-70]
Frame name is cmoreinfo2 [Frame 71-80]
Actions layer: Frame 1 ActionScript
contents.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("DataPulse");
};
tab2.onPress = function() {
gotoAndStop("StructurePulse");
};
tab3.onPress = function() {
gotoAndStop("Courses");
};
|