Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Listing All Movie Clips



dose anybody know a way of listing all the movie clips in a level in flash?
maybe getting it returned in an array?
a bit like the way you can access all the elements of a html form with java script

just wondering.....



FlashKit > Flash Help > Flash ActionScript
Posted on: 06-29-2004, 05:37 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Listing A Movieclips Child Clips?
I'm trying to put a function togehter that scans through a target movieclip and retrieves the names of movieclips under it. is there some simple way?


also, once that is done is there some way i could include that function in a class later wihtout having to type it in? would i use the import command?

How To Remove All Movie Clips/array: Movie Clips Carry Over To Next Frames/ Scenes
Hi: I am creating a small game. So far so good, but only problem I have come across is when I jump to another frame or scene, previous movieclips (using an array) that are still running carry over to the next frame/scene.

See attached if you have some time- start clicking on answers in the game, and when time runs out some movie clips that are still running will remain on top of my end frame and carry over to the next scene as well.

Is there any sort of remove all movie clips or "clear all" type of actionscript?

thanks in advance!

Maintaining Event Behavior For Movie Clips Nested In Movie Clips
Is there any way to maintain a clip's event callbacks when said clip is nested in a parent clip that has its own definitions for those callbacks?

In other words, if clip B has a definition for .onPress and clip A has a definition for .onPress, is there anyway to maintain clip B's definition if it is nested in clip A?

I have tried doing it by making clips into movie clip subclasses but it doesn't work... but how do components work then?

How Do I Load/stream Individual Movie Clips Within Other Movie Clips
I am using flash 5

I have a movie with a huge movie clip in it and that movie clip has lots of movie clips inside that. how do I load each one individually so when the viewer clicks on abutton it starts to laod the related movie clip.

Please help.. I'm working on borrowed time and borrowed money

Accessing To The X And Y Coordinates Of Movie Clips Inside Of Other Movie Clips
lets say I have a movie clip with an instance name of "char" and another movie clip inside it with an inctance name of "ball" and when I try this I get zero:

_root.char.ball

why?

thanks in advance because you flashkit users know everything about flash in and out.

Movie Clips Within Movie Clips: Text Link Problem
Hello.

I have a Movie Clip that is my main one with another Movie Clip inside of it. In the subordinate Movie Clip, I wish to have text linking frame (13) to frame (14) for instance. The problem that manifests is that while buttons is the subordinate Movie Clip link to frames within it with no complications, the text link from 13 to 14 with its respective code links to the last frame (would be 14) in the main Movie Clip.

Am I doomed to convert all text links to buttons in the subordinate Movie Clip or is there (what I am praying for) a code to work around this and keep frame links confined to the subordinate Movie Clip? I would appreciate any help that anyone can offer regarding this problem. Many Thanks.

Movie Clips Acting As Buttons Can't Load Other Movie Clips
Frame 1 has three movie clips on it, instance names are A, B, C. I have the following actionscript on frame 1 as well:

stop();
import flash.filters.GlowFilter;

ar = [A, B, C];

for(var z=0; z<ar.length; z++) {
ar[z].onRollOver = rollover;
ar[z].onRollOut = rollout;
}

function rollover() {
this.swapDepths(0);
this.filters = [new GlowFilter(0x333333, .20, 7, 7)];
}

function rollout() {
this.filters = null;
}

This code creates a glow, obviously, on whatever movie clip I rollover. What I want to do as well is this:

I want to click on mc "A" and have it launch a different movie clip (let's say "X") on top of everything else (so that A, B and C are still visible in the background). "X" is in a sub-folder of "A" if that makes any sense or is relevant. Same kind of action for mc's B and C. B should launch mc "Y" and C should launch mc "Z".

What is the actionscript for this? Any questions please let me know. Please respond, I need this info as soon as possible. Much appreciated!!

Text

External Movie Clips With Multiple Menu Movie Clips
It's pretty late and I don't think i have enough time to search this question in the forums but here I go. Sorry If I upset someone for making a topic that already exists.

I have a main timeline that im importing an external movie clip in. This external movie clip is named "members" it has several buttons that load other external movie clips into a window within "members" . What do I need to do to make this work. Do I need to use "this, _parent, _root, level(s) or "whatever.swf". If you can help me out that will be great. I'll make it up to you down the road. No sexual favor please.

I'm using flash mx 2004 btw.

Thanks in advanced

[MX04]Movie That Works Fine When Clips Apart Acts Strange When Clips Are Together.
Hi,

I have a pretty basic movie in which a ball moves along a track.

The track is made up of 3 sections & all I want the movie to do is trace an ID number (num) that is an individual property of that clip when it goes over it.

In the first movie attached below “trackOne” the whole thing works great! However in the other movie “trackTwo” I have moved the clips closer together & the whole thing has gone crazy with the following issues.

1.)The “trace” command fires on every “onEnterClip” event

2.)A text field that is used to show the ID number only changes when the ball is fully over the clip not as it first touches it, as it does in the first movie

3.)Although the ball is full off a clip it keeps tracing it’s ID number together with the new clips number?

Anybody able to help me on this?

Screwy Stuff With Movie Clips Within Movie Clips
This is kind of difficult to explain but here it goes...
I have created a Barney's like slide site and have gotten it to work fine. the problem I'm having is when I take scroll text box and try to place it on the movie clip that is going to be the part of the site that is going to slide out.

The whole thing slides fine and the scroll box is visible. However, the text is not visible therefore I'm not sure if the up/down buttons are actually working.

The scroll box is a movie clip itself with "on(release)" commands on the buttons. The "onClipEvent" commands are added to the textbox when the scroller movie clip is brought into the slider movie clip.

Is this something that just isn't supposed to work or I am doing some thing dreadfully wrong?

Thanks in advance,
Fakeout

Is It Ok To Duplicate Movie Clips Inside Movie Clips?
is it ok to duplicate movie clips inside movie clips? Seems to be a problem here...

[F8] Help Making Movie Clips Load Other Movie Clips...
well i have miraculously figured out how to make my buttons grow and shrink simultaneously reacting to mouse overs... and even stay large when they are clicked on... however the only way i found to do this was by making them movie clips and not buttons...

now luckily the task at hand i'm assuming will be quite a bit easier than what i've already accomplished...

i am looking to now make those movie clip instances (when clicked on)... load photos into an empty movie clip that will be a separate swf... in the same dreamweaver file...

i have made each photo into a small movie clip that simply tweens the photo from alpha 0 to alpha 100 and back to alpha 0...

so i'm hoping for some code that will call up the first part of the movie clip (the fade up) when the corresponding movie clip is clicked on... and hold it... until another button is clicked... making the current movie clip play to end (fade out)... and then load the new movie (up to the middle... alpha 100) into the empty movie clip...

Intersecting Movie Clips/ Dividing Movie Clips
I've bee trying all day to find out how to find the intersection point on two moive clips with non linear lines in them.
If I use the Hit Test method it seems to recognise only the hit point when the imaginary rectangle arounf the two clips collide. Is there any way of determining the point where the lines themselves cross over.

If not I think I've got another method but I can't figure it all out.

I know at what x point the lines will cross over (the more horizontal of the two lines will be crossed every by one of the verticle lines every 1/108th of it's width) but I can't determine exactly where the Y co-ordinate of this line will be at the time.

I could sort this out if I was able to delete all of the more horizontal move clip except the point of intersection I'm looking for, I'd then then be able to determine the y co-ordinate at this point. But I havn't been able to determine how to delete a move clip for example from x=0 to x=51 but leave the rest of the movie clip on the screen.



Any help with this would be much appreciated.

Cheers

Scifo

Creating Movie Clips Inside Movie Clips
Hello,

I am having difficulties creating movie clips within other movie clips. The following works to create a movie clip on stage with no problems...


Code:
//Create movie clip and load image into it
_level0.createEmptyMovieClip("tn1",this.getnextHighestDepth());
mcl.loadClip(String(albums[0].photos[0].image),"tn1");
However, I want these movie clips inside another movie clip (mcPics1). For this I attempt...


Code:
mcPics1.createEmptyMovieClip("tn2",this.getnextHighestDepth());
mcl.loadClip(String(albums[0].photos[0].image),"myPics1.tn2");
Can anyone tell me where I have went wrong?

Thanks!

Targeting Movie Clips Inside Of Movie Clips
I am a AS3 newbie and am working on an animated cell phone text demo for my company's web site. I have three phones, each are a movie clip with a time line animation. The three phones are all inside of another movie clip where I animate their intro. I have a stop on the first frame of each of the three cell phones so that their screens are static as they fall into place. Their animations begin on the second frame of each of their respective time lines, and I would like the animations to begin when the phones are clicked. I'm not sure if these clips should be targeted from the main time line with the rest of the global script or if it should be on the time line of the nested MC. Even if I knew where to put it, I'm not really sure exactly what the script should be. Please help! My boss wanted this done last week!!!

Movie Clips Controlling Movie Clips, Problem
Hello.

I've been trying to make some drop down menus for awhile and I've run into a snag.

I have a button that when you roll over it, a movie clip appears [jumps to frame 2, frame 1 is blank.] This mc is the drop down menu. The drop down menu mc consists of other buttons that when you roll over them they stay green, but all other buttons go blue. [done by making certain mc jump to frame 2 and others jump to frame 1 to dissappear.]

So this all works fine.

My problem now comes when I try to attach on (release) functionality to the buttons inside the drop down mc. I have the following code on one of the buttons inside the 1st drop down menu:

// Drop down menu colour changes.
on (rollOver) {
_parent.about.gotoAndStop(1);
_parent.what_about.gotoAndStop(1);
_parent.what_else_about.gotoAndStop(1);
_parent.where_about.gotoAndStop(2);
}
// Trying to get wherewestarted movie clip to jump to frame 2 on release.
// Also making other movie clips jump to frame 2 to dissapper.
on (release) {
_parent.wherewestarted.gotoAndStop(2);
_parent.mainlogo.gotoAndStop(2);
_parent.address.gotoAndStop(2);
}

So the on (rollOver) part workds great, and I'm quite pleased with the resluts... however when you click a button in the menu, nothing happens. No movie clips appear, or dissappear. I've tried it without using _parent, I've tried _root... I just don't know what to do.

How can I get a rollover AND a release action?

Help!!



DryCow

How To Make Movie Clips React To Other Movie Clips?
I'm designing this menu system that has four square buttons in a horizontal line. The premise of the menu system is when one button is clicked that button expands horizontally and the other buttons shrink horizontally and slide to the right. How would I go about doing this with actionscript? I'm using Flash 8 and Actionscript 2.0.

Movie Clips Controlling Movie Clips, Problem
Hello.

I've been trying to make some drop down menus for awhile and I've run into a snag.

I have a button that when you roll over it, a movie clip appears [jumps to frame 2, frame 1 is blank.] This mc is the drop down menu. The drop down menu mc consists of other buttons that when you roll over them they stay green, but all other buttons go blue. [done by making certain mc jump to frame 2 and others jump to frame 1 to dissappear.]

So this all works fine.

My problem now comes when I try to attach on (release) functionality to the buttons inside the drop down mc. I have the following code on one of the buttons inside the 1st drop down menu:

// Drop down menu colour changes.
on (rollOver) {
_parent.about.gotoAndStop(1);
_parent.what_about.gotoAndStop(1);
_parent.what_else_about.gotoAndStop(1);
_parent.where_about.gotoAndStop(2);
}
// Trying to get wherewestarted movie clip to jump to frame 2 on release.
// Also making other movie clips jump to frame 2 to dissapper.
on (release) {
_parent.wherewestarted.gotoAndStop(2);
_parent.mainlogo.gotoAndStop(2);
_parent.address.gotoAndStop(2);
}

So the on (rollOver) part workds great, and I'm quite pleased with the resluts... however when you click a button in the menu, nothing happens. No movie clips appear, or dissappear. I've tried it without using _parent, I've tried _root... I just don't know what to do.

How can I get a rollover AND a release action?

Help!!



DryCow

Problems Creating Movie Clips Within Movie Clips
Okay, I'm creating yet another game and need to create a vehicle. So I wanted to create one movie clip for the vehicle and within that movie clip create multiple movie clips for all of the parts.

So I created a new symbol, let's call it vehicle and then within that area I created all of the vehicle parts as symbols within that symbol. At least I think I did. Anyway, when you look at the library, sure enough you see all of parts for the vehicle and the vehicle itself. Within actionscript, however, I can create an instance of the vehicle. I can create instances of all of the parts, but not the vehicle.

The reason why I was going this route is that I wanted more realistic movement. I wanted certain parts of the vehicle to move depending on what the user did, but not other parts. Can anybody shed some light on this subject? Thanks in advance.

Embedding Smart Clips In Movie Clips Causes Crashes...?
i noticed that if you use more than one of those drop-down menu smart clip in the common library, you can't see all the choices...

e.g.
drop in one instance
then another directly below it.
publish the movie
select the third or fourth choice from the second drop-down
let go so that your choice is selected
now re-select the second drop-down menu...
the other choices are hidden by the menu above it.

this is also the case if you try the procedure in reverse...
i.e. if the second instance is on a higher z-plane, the choices in the first will be hidden.

it seemed logical to drop the smart clip into a movie clip then use mc.swapDepth to set the z-index

got swapDepth working perfectly
(thanks, Mac8myPC): http://www.flashkit.com/movies/Scrip...98/index.shtml

but as soon as you put an instance of the smart clip into a movie clip, flash (5 for mac, PPC, OS 9.1, g4 466, 384MB) crashes as soon as you try to publish/export/test movie.

i tried it in a button as well... same thing

i've been trying to rebuild the menu in a normal movie clip form but it seems like more pain than it's probably worth...

any suggestions?

thanks in advance,
--cera

Movie Clips Inside Move Clips. How To Control?
I have an object in this case a foot with toes on it. the toes animate as well as the whole foot moving with the nails on it. I have instance names assigned for all the mc's problem is that the toes are buried about 3 layers down inside the foot_mc so they will move with the foot as well. When I assign a function to them the error compiler does not know where the nails are . What is the best way to fix or re-do this layout?

I am a total newbie to Flash and AS3, so any help would be great


I FIGURED IT OUT.

Aligning Movie Clips To Movie Clips Within Movie Clips?
hi, i want 2 align a movie clip, with a movie clip nested within a movie clip using actionscript. When I try to do this it aligns to the top of the screen. I know movie clips have like different _y and _x cooridnates relative to the stage or whateva or something like that. Neway any one know how to align movie clip with another movie clip within a movie clip like for instance:
_root.ball._y =_root.square.triangle._y
and get them 2 be at equal positions on the stage. If u understand please help
Tanx in advance4

Movie Clips, Vs. Smart Clips Vs My Brain
I am having a difficult time trying to wrap my head around the MC process and its usefulness. I know they are very beneficial, make things easier, file sizes smaller etc. but I can't seem to make logic mesh with my brain cells.

Does anyone have a good way of explaining the "How to's" and "Why for's" of Movie Clip's????

Also, what is the difference between a Movie clip and a Smart clip?? (The latter I have the same questions about as well.)

Thanks,

Controlling Instances In Movie Clips From Other Clips
I am trying to get a button on my level 2 in my main movie to point to a frame inside a movie that has been loaded in on level 3 on the main movie. I have tried all different kinds of combinations and no success. I even tried putting the level 3 movie in an empty movie clip on the root, and naming the instance "music", and then writing in the button _root.music.GotoAndPlay(3); I need it to target frame 3 in my level 3 movie. Should I put the level 3 movie in its own empty movie clip? I was able to get the button to unload movie3, but I don't want it to dissapear, I just want it to go to frame 3 in the movie clip to turn off the music.. You can see what I mean at the address below. I have my audio player in the bottom right with an on/off that works fine, but when I go to the link in my site "Music" there are some downloadble MP3's, and when you click on one I want the "equalizer bars" you see in the audio in the lower right corner to stop, and it means I need it to go to frame "3" of tha movie clip for that to happen, just like it does when you click on "off" in the audio movie. Anyway, sorry this is long winded, but wanted to make sure it was clear as to what I am trying to do..

Thanks in advance,... Here is the link

http://www.incogneato.tv/stales


Mike

Movies Clips Called Within Other Movie Clips
I started this flash porject a while back and haven't touched it in a long time...a few problems to it, that I will fix one problem and then ask for the next problem.

I have a flash file called playin.fla with 2 frames, frame one has a movie clip that is a intro, frame 2 is my main screen with the nav and all the good stuff.

I have 4 buttons on that with a blank screen to load my stuff in, and it is called 'screen'

So here is my code that isn't working:
on (release) {
loadMovie("portfolio.swf", "_root.screen");
}

Easy to fix I am sure, I have tried _parent.screen as well, doesn't work....

Thank you very much for your help in advance.

Clips Within Movie Clips And Instance Troubles
I'm trying to create ultimately 9 seperate instances that function seperate from each other perhaps after being click on within their own hit box.

directions: up and down to cycle squares, click (anywhere) to rotate.

As it stands the first instance is the only one that reacts to the up and down commands and both react at the same time (bad) to the clicking for rotation...

go here http://maroonedmoon.com/cubes.swf to see the swf if action...

I need these two squares to act independent of each other, i've tried naming them different things, and even duplicating the symbol with different names... but it's not working. I imagine the issue is with my simplified actionscript...

any help is greatly appreciated

and here's my .fla

Empty Movie Clips And Duplicating Clips
I've been trying to reproduce an animation effect I've seen on the Armani website, but I'm stuck trying to duplicate an empty movie clip with image loaded into it. The duplicates exist and I can move them, but they are invisible. Since the duplicates reside on depths above the intitial clip I'm confused about why they are invisible. The duplicates are scripted to follow behind the initial clip - each offset by 30 pixels (though I don't have that working perfectly).

I'm attaching a simplified version of my file to isolate just the duplication troubles. Thanks for the help!

Re: Mp3 XML Listing
Good day. I have a problem regarding the mp3 player that uses XML listing and external swf file.Mp3 files were converted to SWF files by SWIFTMP3. The problem is, in the file MP3Player.fla--first open this, then go to action layer and see the codes. Look for //build the list portion of the code. This code will create a music list by using duplicateMovieClip action as you can see if you test the movie. My problem is:

1.) How can i make a list as a text-scroll list using smartclip or dynamic text rather than using duplicate movie clips?

//build the list
function buildMenu(){
tiles = new Array();
for (i=0; i < menuItems.length; i++) {
duplicateMovieClip(master, "tile" + i, 1000 + i);
tiles[i] = this["tile" +i];
//set the master tile position with XML data
tiles[i]._x = Number(menu.attributes.x);
tiles[i]._y = Number(menu.attributes.y) + (i * master._height);
tiles[i].title = "<P ALIGN="CENTER"><FONT FACE="" + menuItems[i].fontFace + "" SIZE="" + menuItems[i].fontSize + "" COLOR="#" + menuItems[i].textColor + "">" + menuItems[i].Artist + "</FONT></P>"
tiles[i]._name = menuItems[i].title.substr(0, 4);
//sets the index value to i so it will work with our internal Array and XML
//sets an i to id so it can be called from our XML playlist Array
tiles[i].index = i;
tiles[i].id = i;
}
moveListIn();
loadTrack(index);
}

this code will create an mp3 list by duplicating movie clip.



You see, if I have many mp3 files and using duplicate movieCLip it will hang up!!

2.) And if it is a mp3 list using text-scroll list, how can i move the list?

Please help, I hoping for your solutions to this.
Thank you very much.

Track Listing
Thanks to NTD and flashkit I have now got a different, randomly selected, mp3 playing each time I load up my site usin this code...

filePath = "http://markwaterfield.com/music/";
mySound = new Sound();
myList =["summersongedit.mp3","Fascination.mp3","wkol.m p3"];
myRandom = random(myList.length);
trace(myList[myRandom]);
mySound.loadSound(filePath+myList[myRandom], true);
mySound.onSoundComplete = function() {
mySound.load(filePath+myList[myRandom]);
}

However I now want to be able to list the details of the track currently playing. At the moment I am trying to do this using a dynamic text box with a var of 'track' and the following code....

if (myRandom="summersongedit.mp3") {track = "Track playing - Summersong"
}else if(myRandom = "Fascination.mp3"){track = "Track playing - Fascination"}
else if(myRandom = "wkol.mp3"){track = "Track playing - wkol"}

The text box comes up with "Track playing - Summersong" no matter which is selected.
Any ideas where I'm going wrong?
thanks
Mark

Mail Listing ....
Hi Friends,
i m receiving mails in php using imap function. i want to show these mails in Flash just like mails shown in Hotmail or Yahoo mail inbox. i want to know that how can i make list(to show mail headers like we see in hotmail or yahoo) dynamically. i want to show the full mail on click of any list.

Thanx in Advance,
IFFY

Listing Variables
I've got two text fields displaying info from the databse. Each field currently displays the last item of the variable name, but I want it to list all of them.
Here is the ASP...

Code:
<%
'Specific Database Path.
Const DatabasePath = "d:/wwwroot/gal/NewSites/Flash/software.mdb"



'//Check to see if there is a Globally Open DB
dim NewDb
dim SurveyConn
dim BookRS
dim Query

'//Connect to DB
set SurveyConn=server.createobject("adodb.connection")
SurveyConn.mode = 3
SurveyConn.Open "DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=" & DatabasePath & ";"

Query = "SELECT * FROM SoftwareList"
set BookRS = SurveyConn.Execute(Query)

if not BookRS.eof then

Response.Write "Software=" & Server.URLEncode(BookRS("Software")) & "&" & "&Numbers=" & Server.URLEncode(BookRS("Numbers")) & "&"
BookRS.MoveNext
end if

do while not BookRS.eof

Response.Write "Software=" & Server.URLEncode(BookRS("Software")) & "&" & "&Numbers=" & Server.URLEncode(BookRS("Numbers")) & "&"
BookRS.MoveNext

loop

SurveyConn.close
set SurveyConn = nothing
set BookRS = nothing
%>

Listing Classes
Is it it all possible to list the classes used by a program ?

So say I've got a quiz, The quiz is made up of questions, and each question gets it's data from a selection of "Maths" classes which build the questions. Is it possible to list the selection of Maths classes available ?

... I think this question sounds a bit vague - Sorry!

Listing Fonts
Hi!
I am new. I have a combo box and a dynamic text field on stage. I was to list my system fotns in the combo and on selecting a font from combo, i want to change the dynamic text font-family with the selected new font. It is been two day i am still trying. Can somebody help me please.
Thank you
Krs

Directory Listing
Hi guys,

Is there anyway to know that how many file exist in a particular folder.? let say how many files and folders are exist in "c:windows" folder?

can we know through flash?

Thanks in advance.

Textbox Listing
I've got a list of things in a textbox and would like to have each one of them display a set of information in the current slide when you click on it. I'm wandering if this is even possible, there are a numerous amount of things, so seperate slides for each item wouldn't be an option.

Jtviper456

Help For Folder Listing
i must create a script that read all folders and subfolders on a server

i found this script :

(PHP)
<?php
// Note that !== did not exist until 4.0.0-RC2
$dir=$_POST['dir'];

if ($handle = opendir($dir)) {
echo "Directory handle: $handle
";
echo "Files:
";

// Counter
$i=0;

/* This is the correct way to loop over the directory. */
while (false !== ($file = readdir($handle))) {
$return.="&item".$i."=".$file."
";
$i++;

}


closedir($handle);

}
echo $return."&n=".$i;
?>


(FLASH)
var lv = new LoadVars();
lv.onLoad = function() {
var count:Number = parseInt(this['n']);
for (var i = 0; i<count; i++) {
var currItem = this['item'+i];

//Check to see if its a folder or not
if (currItem.indexOf(".") == -1) {
var Branch = myTree.addTreeNode(currItem, "/"+currItem);
myTree.setIsBranch(Branch, true);

} else {
myTree.addTreeNode(currItem, "/"+currItem);
}
}
};
lv.dir = "prova";
lv.sendAndLoad("dir.php", lv, "POST");

but this script read only the first folder.
ther's a way to read (with php) all folders and subfolders on server and publish somthing like:

firstfolder/firstsubfolder/etc...
secondfolder/firstsubfolder/etc..
etc..

thanks for help

(sorry for my english)

XML Listing Problem
hi all, i know how to solve this problem using AS2 but am trying out AS3 as it seems a lot better...

here's the code i'm using:


Code:
var textLoader:URLLoader = new URLLoader();
var textRequest:URLRequest = new URLRequest("list.xml");

textLoader.load(textRequest);
textLoader.addEventListener(Event.COMPLETE,fileLoaded);

var xml:XML;

function fileLoaded(e:Event):void {
xml = new XML(e.target.data);
var il:XMLList = xml.person;
for (var i:uint=0; i<il.length(); i++){
text_field.text = il.text()[i]+"
";
//trace(il.text()[i]+"
");
}
text_field.wordWrap = true;
}
ok, it all works fine in the trace output window but in the dynamic text box, it just shows the last XML entry where i need it to show the complete list
so i'm guessing it is just overwriting each entry instead of registering the line break but i can't figure out why...

the XML code is like this


Code:
<list>
<person>lastname1,firstname1 - phonenumber</person>
<person>lastname2,firstname2 - phonenumber</person>
<person>lastname3,firstname3 - phonenumber</person>
</list>

can someone please help me out with this?

Textbox Listing
I've got a list of things in a textbox and would like to have each one of them display a set of information in the current slide when you click on it. I'm wandering if this is even possible, there are a numerous amount of things, so seperate slides for each item wouldn't be an option.

Jtviper456

Listing All Tweens
Hey all!

Does anybody know of a way to list all tweens currently running? They're not children of the timeline that I can see (at least not display objects), so I'm not sure how to find them.

Thanks!

Jay

Controlling Movie Clips With Movie Clips...?
I have created four movie clips which appear on stage together. They are still images which become active when clicked. (first frame in each clip is a button). How can I make each movie clip return to its initial inactive state when another clip is clicked.?
i.e. only one clip is active at a time..the others always revert to initial frame 1 position..

Help very much appreciated!!

Refering To Other Movie Clips From Movie Clips
how do i refer to a movie clip from another movie clip using instances.
i presume it is something like _root. uses?

Controlling Movie Clips In Movie Clips
Hi there,

I have an array of movie clips in a grid 4 x 5
so I have 20 movieclips looping themselves on a page.
I want to be bale to pause, and resume play of all these movieclips as one.
Is it as easy as making the movieclips one BIG movieclip and then just assigning the stop, play, rewind commands to it?
Is this possible?

Thanks!

Glynis the Menace

Movie Clips Controlling Other Movie Clips
I am having problems.

I have 2 movie clips in the main timeline. One MC is a bunch of links and is named "topnavbar", and the other MC is the content pages for each of those links and is named "content".
How do I code the links so that when one of the links is clicked the "content" mc jumps to a specific frame?

Thanks in advance for the help

Dropping Movie Clips On Movie Clips
When I select a movie clip and drag and drop it over another movie clip sometimes when I release the mouse button the movie clip is not released. Has anyone seen this before? Any suggesstions would be great.

My movieclip contains a button that contains a text box with a number. So whats happening is when I drop one number on top of another the number is sometimes not realesed when I release the mouse button.

Thanks

Movie Clips Controlling Movie Clips
Hi i'm creating a game which involves hitting meteorites but i keep hitting the same problem (notice the rubbish pun there). I need the 'hittest' function to only work on the meteror and not on it's trail (see picture below):



i think the way to do this is to add the trail separately after the metoer (which falls down from the top of the screen) but i have no idea how to make a movie follow another movie plus there will be multiple meteors.

also when the meteor is hit it needs to dissapear (to stop the 'hittest' working when it shouldn't PLUS open a movie showing an explosion).

hope i've explained that all well, spent days trying to get the code for it,
basically ......... hit-test on metoer (not it's trail) set's another movie clip off which will not respond to the original hit-test

thanks, Explosive Sheep

Movie Clips Inside Of Movie Clips
I'm having a dilemma using movie clips inside of movie clips, and I'm sure you can do this, right?

I'm creating my website, and all the actionscript is coded the way it should be. What I have is the first movie clip (we'll call it "clip1" with buttons, and when you click the buttons, they are supposed to move clip1 to a certain frame, and this works fine. But it is also supposed to move "clip2" (which is inside of clip1) to a certain frame as well, and this does not work. Here is the code for the button as follows:

on(release) {
clip2.gotoAndPlay(80); //move clip2 to certain frame
this.gotoAndPlay(60); //since buttons are inside clip1
}

I've also tried this with frame labels and that does not work either. If you want, I can post the project for you to take a look at and I appreciate all the help you can offer. Thanks!

Movie Clips Calling Movie Clips
help..... please ....

I can't get my Nav to work the way I want it to. Would somebody please take a look at www.MissMaryMac.org. this is my portfolio site. On the nav box you will notice three sections 1. print 2. web and 3. Graphics & Illustration. Notice that this nav is a draggable movie clip. Below the nav (because I can't figure out how to make it work from within the nav movie clip) are the next and back arrows. right now the next and back buttond are placed inside of each of the three sections and their code looks like this:

on (press){
slideClick = 1;
transition.gotoAndPlay("start");
}

This works fine but I would like to take the next and back buttond and place it within the draggable nav movie clip and have them work from there but have been unsuccessfull in speaking to the different sections from within the nav movie clip. Woe is me

P.S. The different sections are movie clips placed on the main timeline and the nav is also a movie clip placed on the main time line. each movie clip is named ie; web, print & Ilustration

When I place the next and back buttons inside the Nav movie clip this script did not work:

on(press){
tellTarget(_root.print){
slideClick = 1;
transition.gotoAndPlay("start");
}
}

Any Ideas???
Thanks much!
-M

Do Movie Clips Not Work Within Another Movie Clips?
I'm using Flash 8, AS 2.0...

Is it possible to have an action on a movie clip that is INSIDE another movie clip.

I created a drop down menu movie clips with the following code. I have a simple 15 frame timeline that when you rollover it, it tweens and when you rollout is rewinds...


Code:
stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}
I want this same effect and code on a nested movie clip. But I'm having trouble figuring out how to make the movie clip work inside this movie clip. It would be the same code... it just doesn't seem to work... and any other things I've tried and read about hasn't yet worked.

Please help me!

Attaching Movie Clips Over Movie Clips...
The swf is supposed to be some sort of image gallery with 2 levels. Here is the image illustration of the movie structure (I would upload the fla but its too big for the site)



Everything works just the way I want it too. After about 20 seconds of constant clicking and loading new movie clips the load to the root gets really sluggish.

I am pretty sure the problem is all of the movie clips are loading over top of one another so after time it gets to crowded. I am not sure how to fix it though.

My code to get to the first level movie clips looks like this:


PHP Code:




on (release) {    _root.attachMovie ("image 4 att", "newatt", _root.getNextHighestDepth(), {_x:302.7, _y:209.6});}







My code to get to the next movie clip on that level looks like this:


PHP Code:




on (release) {    _root.attachMovie ("image 5 att", "newatt", _parent.getNextHighestDepth(), {_x:302.7, _y:209.6});}







My code to get back to the main level looks like this:


PHP Code:




on (release) {    _root.attachMovie ("mainMovie2", "newatt",  _root.getNextHighestDepth(), {_x:302.7, _y:209.6});}

Copyright © 2005-08 www.BigResource.com, All rights reserved