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




Accessing MC After AttachMovie



Accessing MC after attachMovieHi all,This is a simplified version of the script I'm using.
ActionScript Code:
var aNames:Array = ["Bob", "Carl", "Christopher", "Wayne", "Peter"];for (var i = 0; i<aNames.length; i++) {    nameBtn = mholder.attachMovie("mbtn", "mbtn"+i, mholder.getNextHighestDepth());    nameBtn.tTxt.text = aNames[i];    nameBtn.tTxt.autoSize = "left"    nameBtn._y = 0;    //    //    if (i != 0) {        var nameBtnPrev = nameBtn["mbtn"+(i-1)];//trying to get to previous mc        trace(nameBtnPrev);        nameBtn._x = nameBtnPrev._x+nameBtnPrev._width+20;    }}
I'm trying to make a simple horizontal navigation and the buttons which are MCs need to be spaced evenly with the same space inbetween. I'm trying to do it using the previous clips _x and width and then spacing the next clip after that.The problem is I've forgot (or can't) access the previous clip. I was trying to it this way.
ActionScript Code:
var nameBtnPrev = nameBtn["mbtn"+(i-1)];



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 04-12-2008, 11:54 AM


View Complete Forum Thread with Replies

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

Accessing MC After AttachMovie
Accessing MC after attachMovie

Hi all,

This is a simplified version of the script I'm using.


ActionScript Code:
var aNames:Array = ["Bob", "Carl", "Christopher", "Wayne", "Peter"];
for (var i = 0; i<aNames.length; i++) {
    nameBtn = mholder.attachMovie("mbtn", "mbtn"+i, mholder.getNextHighestDepth());
    nameBtn.tTxt.text = aNames[i];
    nameBtn.tTxt.autoSize = "left"
    nameBtn._y = 0;
    //
    //
    if (i != 0) {
        var nameBtnPrev = nameBtn["mbtn"+(i-1)];//trying to get to previous mc
        trace(nameBtnPrev);
        nameBtn._x = nameBtnPrev._x+nameBtnPrev._width+20;
    }
 
}


I'm trying to make a simple horizontal navigation and the buttons which are MCs need to be spaced evenly with the same space inbetween. I'm trying to do it using the previous clips _x and width and then spacing the next clip after that.

The problem is I've forgot (or can't) access the previous clip. I was trying to it this way.


ActionScript Code:
var nameBtnPrev = nameBtn["mbtn"+(i-1)];

Accessing A Function In A MC After Using AttachMovie
hey there.

I have a MC that i'm attaching using attachMovie. the referencing and everything is correct if the MC is already on the timeline. when i put an image or graphic in the MC, it shows up when i attach it. however, when i try to access a function i have written inside the MC, the function is not accessed.

is there something i should know about using attachMovie and accessing the contents of an attached movie?

Accessing Clips Created With AttachMovie
Hi,

I have a question as to how I would go about accessing the movie clips I'm creating with the following code:


PHP Code:




for (i=0; i<total; i++) {
    _root.attachMovie("thumbButton", "thumb" + i, i);
}







This creates movie clips labeled "thumb1", "thumb2", etc. How would I go about accessing these movie clips?

IE: In the same for loop I want to call .loadMovie from each of them.

thumb1.loadMovie("images/1_gallery_1_thumb.jpg");

How do I dynamically get the 1 in there?

Accessing Height Property Of AttachMovie()
Hi all,

I have a For loop that is using the attachMovie() method to place multiple instances of a movieclip with a dynamic text field. The text field is being populated through an XML file.

I'm trying to access each instance's _height property within the For loop so that I can set each clip's x and y position, but it's not returning the proper height. If I attempt to the access the property before the content is fed into the movieclip, I get the actual height of the movieclip without content. If I attempt to access the property after the content is placed into the movieclip, I get "12" for each instance, even though they are varying sizes.

If I wait 10-20 frames and then attempt to access the instance's height property, it returns correctly. Unfortunately, I have to set the x y position of the instance within the For loop, so waiting 10-20 frames doesn't do me any good.

Has anyone else run into a similiar problem? Is there a workaround? I'm including my AS for reference:


Code:
stop();
var overview_xml = new XML();
overview_xml.ignoreWhite = true;
overview_xml.onLoad = function(success){
if (success){
// Create variable to store path to News Items
var newsPath = overview_xml.firstChild.childNodes;

// Begin parsing XML object
for(i=0; i<newsPath.length; i++){

holder.attachMovie("news_mc","mc_item"+i,1000+i); // Attach News Item

var mc_path = holder["mc_item"+i]; // Create variable to store path to News Item

mc_path._y = i*mc_path._height;// Set Y position of News Item

var newsOverview = newsPath[i]; // Store path to individual item in XML Object array

// Set text area properties
mc_path.myText.html = true;
mc_path.myText.wordWrap = true;
mc_path.myText.multiline = true;
mc_path.myText.label.condenseWhite=true;
mc_path.myText.autoSize = true;

//stylesheet stuff
var ss = new TextField.StyleSheet(); //create stylesheet object
ss.load("news.css"); //load css
mc_path.myText.styleSheet = ss; //associate with TextArea

// Declare news item variables
mc_path.itemID = newsOverview.attributes.id;
mc_path.itemYear = newsOverview.attributes.year;
mc_path.itemMonth = newsOverview.attributes.month;
mc_path.itemTitle = newsOverview.attributes.title;

// Create string to populate textbox
mc_path.myText.text = "<date>" + mc_path.itemMonth + " " + mc_path.itemYear + "</date><br><br><br><br><headline>" + mc_path.itemTitle + "</headline>";

}

}
}

// Path to XML file
overview_xml.load("http://staging.outshinewebdesign.com/eyeplay/news.php");


Any help is greatly appreciated!

AttachMovie() Within Another AttachMovie() Created Instance?
I'm still struggling away on my web site, but I've made quite a bit of progress and I think my code has cleaned up quite a bit. I still have the issue of not being able to attach my new content box movie clip when the button is pressed. I am successfully able to load the data for that instance of the tab, and can access the variables. It also is able to run the newContentBox() function inside it with success, but when it tries to run attachMovie(), nothing happens. Could this be a problem with my depth? Or is it my nesting?

I have been thinking about making a global variable for depth that will increment each time anything is created, so every movie clip is guaranteed to be on its own depth. Would this be a solution?

The site can be viewed here.
The source can be viewed here.
All the data files are located in that directory as well.

This is really driving me nuts, and I want to get something solved so I can move onto the submenu creation.

AttachMovie Inside Another AttachMovie
is it possible to attach a movieclip, and then attach another inside of it? i'm trying to load in images via using loadMovie and XML (a little background) i want the image to be dropped in to have a mask applied to it so that the image appears as a rounded rectangle... here's my code for the for loop that attaches the movie clips...


PHP Code:



for (i=1; i<=totalImages; i++) {
                attachMovie("multiplebox", "box_"+i, i);
                movieNamer=_root["box_"+i];
}




is it possible to attach a movie inside of 'box_"+i'?

AttachMovie Within An AttachMovie? Not Working
So I've finished a project (let's call it Project Blue) where I use attachMovie which references a folder (of swf's) to place each page of the swf. It worked fine. Next, I made a master 'shell' to place this project (among others) into. To do that I used attachMovie again to place Project Blue in the shell.

But now my attachMovie pages for Project Blue won't show up. Does Flash have a problem with using an attachMovie within an attachMovie?

Thanks for any insight on this....

AttachMovie Nested AttachMovie...
I have in the root timeline an empty movie clip that loads other movies inside of it. Using the attachMovie function.

Inside one of these attachMovie clips I have a nest "attachMovie" clip as well but for some odd reason it's not working. Is there anything I should be aware of when nesting an attached movie?

Accessing The Reg From Mx
Does antbody know how i can access the windows registry from flash mx? I need to do this so i can check a cd-key from an install program. I can get the key in the reg but cant use it. Anyone know?

Accessing Net
Hi,

I have a .exe that everytime I run it, it asks to access the net, even though I'm pretty sure theres nothing in the .swf that wants to access the net, could this have something to do with the Flash player??

thanks for any help
boombanguk

Accessing Xml-tag By Name?
Hey everyone

I have an XML-file, where I dont' know which order the tags comes in.
Is there any way to access a tag by the name? E.G if the file is like this:

<root>
<news>
....
</news>
<pictures>
....
</pictures>
</root>

Is there an way to do this:
xml.firstChild.pictures

Can't get it to work, but I think I have seen someone do something like that..

thanks.

Accessing XML
XML Code:

<aboutUs>

<team>

<scott><![CDATA[Scott]]></scott>

<dave><![CDATA[David]]></dave>

</team>

</aboutUs>


AS variable:

var aboutUsXML:XML;

The variable which is in a frame on the main timeline holds the XML code and upon testing works.

Question:

How do I target specific elements from within a MC...meaning the script is loacted in a movie clip and targeting XML on the root?

Targeting using root.aboutUsXML returns and error 1120.

Accessing A MC Within An MC
Hi All,

I’ve had this problem for some time now, and was wondering if someone could spare some time to help me out…

I’m trying to make a dropdown menu using a handful of movie clips (“MC_base” holds “MC_button1”, “MC_button2” and “MC_button3”) but I’m not sure how to target the button MCs with actionscript to change their RollOver and RollOut states.

What I’ve got so far is this:

The “MC_base” movie clip on the root timeline with the following code in an “Actions” layer.

MC_base.onRollOver = function () {
MC_base.gotoAndPlay("dropdown_over");
}
MC_base.onRollOut = function () {
MC_base.gotoAndPlay("dropdown_out");
}

When I put my mouse over “MC_base”, it then plays the animation within it (The 3 buttons sliding down from the top of the page)

Now here is where I have my problem. In “MC_base” I have the 3 button MCs (MC_button1, MC_button2 and MC_button3) each with their own RollOver and RollOut effect, as well as an actions layer with following:

MC_base.MC_button1.onRollOver = function () {
MC_button1.gotoAndPlay("button1_over");
}

MC_base.MC_button1.onRollOut = function () {
MC_button1.gotoAndPlay("button1_out");
}

(I left out button 2 and 3 to save space)

This is obviously wrong, otherwise I’d be up and running, so what am I doing wrong? I’m sure it’s something silly, but it’s got me stumped.

Any help would be appreciated.

- Scattered.

Accessing Mc:s...How?
I have this line of code:

endX = _root.followme_mc_0._x;

if i in a for-loop would like to adress, say 10 of these mc:s how do i write the code so i dont need to do like this:

endX0 = _root.followme_mc_0._x;
endX1 = _root.followme_mc_1._x;
endX2 = _root.followme_mc_2._x;
endX3 = _root.followme_mc_3._x;
endX4 = _root.followme_mc_4._x;
.
.
.


I would like to do it in a for loop instead
the problem is: How do i target the mc?

I have tried this:
for(t=0;t<10;t++)
endX[t] = _root.followme_mc_[t]._x


but that doesnt work!

Any ideas??

Help Accessing Mc From Another Mc
Hi!
pretty new to Flash, real new to AS, so please forgive the ignorance.
Setup: stage holds 2 MC's one named main_mc, one named window_mc.
main_mc holds a single MC named button_mc.
All AS is in timeline.
Frame 1 of window_mc has:

var myLoader:Loader = new Loader();
addChild(myLoader);

in button_mc actions:

button_mc.addEventLister((MouseEvent.CLICK, buttonClick);

function buttonClick (event:MouseEvent):void
{
button_mc.enabled = true;
event.target.enabled = true;
MovieClip(?????????????).myloader.load (new URLRequest(event.target.name + ".swf"));

***question marks indicate problem area***



every way I try to access window_mc through is failing miserably with:

1119: Access of possibly undefined property some through a reference with static type flash.displayisplayObjectContainer

or a null object error.

HELP!!!

pulling my hair out.

thanx in advance!

Accessing Mc:s...How?
I have this line of code:

endX = _root.followme_mc_0._x;

if i in a for-loop would like to adress, say 10 of these mc:s how do i write the code so i dont need to do like this:

endX0 = _root.followme_mc_0._x;
endX1 = _root.followme_mc_1._x;
endX2 = _root.followme_mc_2._x;
endX3 = _root.followme_mc_3._x;
endX4 = _root.followme_mc_4._x;
.
.
.


I would like to do it in a for loop instead
the problem is: How do i target the mc?

I have tried this:
for(t=0;t<10;t++)
endX[t] = _root.followme_mc_[t]._x


but that doesnt work!

Any ideas??

Accessing URL Via AS2
In an attempt to make a usable flash site, I want users to be able to easily email, copy/paste links to the inner workings of a flash site I'm working on.

What's the easiest way to get the url in actionscript? Hand it off to php?

I'm also debating on whether or not to pass it via GET variables or actually make it more readable.

http://mysite.com/index.html?content=contact&page=1

--OR--

http://mysite.com/contact/1 (and have a redirect to my flash movie that passes these variables along)

I'm hoping that making the url change and using it to parse the info will also help me solve the back button problem. One worry though is that the whole page will refresh...thoughts?

Thanks for the input and let me know if I haven't expressed this well enough.

Accessing A MC, Which Is One Level Below...
How do I access a MC which is one level below the main time line?
I tried with the following statement...
With(_parent.mc1)
{
GotoAndStop(2);
}
and It doesn't work. I think _parent is meant for one level above mc.
Thanks,
FK

Accessing <PARAM>
Is it possible to create a custom Param value for the Flash object within an asp page and then access that value withini Flash via ActionScript code...

Accessing Variables From A '.fat' Or '.txt'
I would like to access variables from a '.fat' or '.txt' file and based on the variable values I would like to hide or show the buttons present in my movie and load an inactive graphic in that place.

Accessing Sub Functions
hi all!

i really have problem to get access to functions which i defined in the onClipEvent(load) section.

maybe some of my steps are not correct plz help me:

1. first i created a new Symbol and give them a valied name,instance and so on.

2. set the link to export this symbol with a valied name

3. i wrote the functions

onClipEvent(load){

Variable1 = 0;
...

function SetCurrentSize(size){
Variable1 = size;
}
}

onClipEvent(enterframe){
.. doing some thing which are running very well
.. without any problems
}

//this was for the object source

now i have this in the main timeline :

_root.attachMovie("exportname","newname",999);

//999 is a valied nr !

//now we come to the problem:

// i would like to add something like that
// but it does not work ???

_root.newname.SetCurrentSize(10);

// i can set the x position by
_root.newname._x = 100;

// how can i get access to the function ?

thank you for helping and plz apolognize my bad english

Flash Accessing PHP
I want flash to be able to display information from a PHP file. I want the information from the file to be shown within the flash movie, in other words, not
getURL (blah blah blah). Help please? No one has been giving me any help on this one and I really want to do this is flash.

Accessing Cd Drives
Is there a way to access a cd drive in flash 5?

Accessing Arrays
ok Ii'm messing around with arrays and duplication
I have populated the array successfully but I want to set the duplicated sq's _x in a row with space 20 between them . Now I know your going to say you don't need an arry but what i'm trying to do is learn how to access the sq's properties through the array array .
Code:
mcArray=new Array();
function populate () {
for ( i=0; i<10; i++ ) {
duplicateMovieClip ( _root.screen.sq, "sq"+i, i );
mcArray[i]="sq"+i;
mcArray[i]._x+=i*20;

}
}
populate();
trace(mcArray);

Accessing Arrays
Why is this not working?!!!

---------------------------------------------------------
bongo[0] = ["bongo0"];
bongo[1] = ["bongo1"];
bongo[2] = ["bongo2"];
for (skupina = 0; skupina <= 2; skupina++) {
trace(eval("_root:bongo[" + skupina + "]"));
}
---------------------------------------------------------

In debugger I get 3 x "udefined"...


thx!

Accessing Swf Loaded In Mc
How can I access and control an swf that I have loaded into a holder movieclip? I know how to control the properties of the holder, but can I tell the swf to goto and play?

Accessing A File On MAC
Is it possible to read a file from a Mac HD through a Flash Mac Projector? I am trying to load some variables from a file, and in the PC, it's no problem accessing and reading a file. But apparently, this is not the case for a Mac. Has anyone had an experience with this problem or know how to tackle this situation? Thanks!

Accessing Children Of MC
i want to write a function that clears all input - textfields in a movieclip automaticlly. it should iterate through all objects within a movieclip, find out if it is a dynamic textfield and if then it should set it's text to "". is this possible?
thanx

Accessing A Variable
I'm sending a value to a duplicate movie clip using the line:

_root["boxx"+count].recordnumber = 15;

In my movie clip I want to retreive the value of recordnumber, at the moment I'm using the script:

loadVariables ("getdetails.asp?Record="recordnumber", this);

which doesn't work. If I substitute trhe value in maually it works fine.

loadVariables ("getdetails.asp?Record=15", this);

so the problem's with my syntax. What should it be?

Ta !

MX- Accessing My Array
Hi,
In this code first loop creates an array of x and y values for 20 points in a circle.
second loop attaches 20 mc's and positions them at those 20 points.
at the moment as you can see in the second loop I extract the x and y values in to variables sid and nancy then locate the mc using those.
can I do away with sid and nancy and reference the array directly on the end of the line...
this["h" add i]._x ?

I couldnt figure out a syntax.
as the code stands it works.

thanks mark

MAX = 20;
oneSlice = Math.PI*2/MAX;
Radius = 100
points_array = new Array();
for (i=0; i<MAX; i++){
Angle = oneSlice * i;
xPos = Math.cos(Angle)*Radius+185;
yPos = Math.sin(Angle)*Radius+160;
points_array[i] = {x:XPos, y:yPos};
}
for (i=0; i<MAX; i++) {
_root.attachMovie("squareHandle", "h" add i, i);
sid = (points_array[i].x);
nancy = (points_array[i].y);
this["h" add i]._x = sid
this["h" add i]._y = nancy
}

Accessing Collections
I've created a subclass of the movieclip object and can create it dynamically based on a comma separated list.

I'm trying to write a function that will "find" all instances of this object and change thier properties.

Is there a way to scroll through the children of an object in FlashMx to get references to those children?

OOP ?: Accessing Variables
hi, im still really new to oop, and cant seem to figure out the following problem.
i create a new class and in that class a new xml object is also created, but i can seem to get to the classes properties when dealing with the xml onload function.

function myClass(){
this.thing="hello!";
this.bigO=new XML();
this.bigO.ignoreWhite=true;
this.bigO.load("test.xml");
this.bigO.thing="good-bye!";

this.bigO.onLoad=this.yload;
}
myClass.prototype.yload=function(){
trace(this.thing);
//displays "good-bye"
trace(this.firstChild.nodeName)
//displays the root element name of test.xml
}
myxml=new myClass();

the trace outputs "good-bye" since this is referring to the XML object. So my question is how do i access the property "thing" from "myClass" while in the yload function?

i also tried the changing the following
this.bigO.onLoad=this.yload();
myClass.prototype.yload=function(){
trace(this.thing);
//displays "hello"
trace(this.firstChild.nodeName)
//displays undefined
trace(this.bigO.firstChild.nodeName)
//displays undefined
}

if any part of the problem doesnt seem clear please tell me and ill try to give a more indepth example
any help is greatly appreciated.

Accessing Object Name
Is there a way to access the name of an object? Specifically, I need to have access to the name of a TextFormat object. Here is simple version of what I would like to accomplish:

var Foo = "The name of this object is: " + TextFieldInstance.getTextFormat(x)

However, this returns "The name of this object is: [object Object]"


Any suggestions?


Thanks in advance!
-Aaron

Accessing Xml Nodes
Hi

I have a file like:
code:
<xml>

<item1>
<item1.1 test="text1">
</item1>

<item2>
<item2.1 test="text2">
</item2>

<item3>
<item3.1 test="text3">
</item3>

</xml>

I can access text 1 like this:

this.firstChild.firstChild.childNodes;

text 2 like:

this.firstChild.firstChild.nextSibling.childNodes;

but how do I acces text 3?

this.firstChild.firstChild. nextSibling. nextSibling.childNodes;

would be the obvious choice but doesn't work.

thanks

Accessing Arrays
I have created 2 arrays. One is filled with first names and the other with last names. I want to generate full names by using the Math.random function.
Basically, here's what I've done:

//
MaleFirstNames = [Tom, Dick, Harry]
LastNames = [Williams, Smith, Johnson]

first = Math.Random();
if (first <=.3) {
firstname = MaleFirstNames[0]
}else if (first >=.3 || first <=.6){
firstname = MaleFirstNames[1]
}else{
firstname = MaleFirstNames[2]

}

And the same basic process goes for the getting the last names.
Then later I put both first and last names into the variable "fullname" and trace the variable. I keep getting the undefined error. I must be doing something wrong. Does anyone have any suggestions? I am probably making things too complicated with the random stuff but I want to generate random names.

Thanks a lot

Accessing A Picture Thru A Url
Is there a way to dynamicly use a bitmap from a website.

I.E. I want to be able to show a jpg from the parent directory that the flash website is in, and beable to put that image inside a movie clip or inside one inside another, and still make the picture work and not streak?

And also on a very unrelated note (and this must be debated on here alot, but which is better MX 2004, or regular MX?)


Thanx Much

Accessing Value Of String
This is doing my nut in!

I can do this in java but cant suss it in AC.
I want to access a value of a String variable in one frame and pass it to another frame.
What I have already is near enough it but I get the output " you are staying _level0.text2 days".

Here is my code:

================================================== ====================
on (press) {
if (text1.length != 4) {
output = "Error. Please check and re-enter pin number";
} else {
if (text2.length<"1") {
output = "Error. Please check and re-enter the duration of stay";
} else {
output3 = "you are staying " +text2+ " days";
gotoAndStop(10);
}
}
}

================================================== ===============

Accessing Arrays
hi.

i've got a class file and in that file i declare a variable:
code:
private var ArrDate:Array;

then i have a function where i define the elements in the array:
code:
function myFunction(){
ArrDate = new Array();
for (var i=0; i < rootNode.childNodes.length; i++) {
ArrDate[i] = (whatever, i , want);
}
}

now, later on in my program i want to retrieve the elements in the array (from another loop in another function). i do it like this:
code:
function myOtherFunction(){
for(var j:Number=1; j <= lastDay; j++){
trace(ArrDate[j]);
}
}

and it traces 'undefined'. what important concept am i missing here? i know i should be able to access the elements in this array somehow. any ideas?

thanks. - fumeng.

Accessing CD Rom Files
Can anyone help with this?
I have a project which was done using Flash MX (Projector). I am planning on using an installer to load this .exe and the larger files (video, animation, etc.)to the hard drive then launch the program. I need the application to also access the smaller files stored on the cd. How do I get access to the CD rom since the drive letter could be different on many computers.
Any help would be greatly appreciated.

lorni

Accessing Cd Roms
Can anyone help with this?

I have a project I'm doing with Flash MX. The project needs to access files store on a cd. What is the action script to locate these files on the cd in the cd rom since rom drives may have different drive letters on different machines. I've named the cd to access the particular file and also by using the getURL action, but nothing works. Any help would be most appreciated!
Thanx.

Accessing Timelines
For some reason I can't fiddle with the timeline of a swf I've loaded into my main movie. Can anyone see anything wrong with the following?

<code>
//create empty clip
_level0.createEmptyMovieClip("mc_EmptyClip", 2);

//populate it
_level0.mc_EmptyClip.loadMovie("myfolder/mynewclip.swf");

//position it
setProperty(_level0.mc_EmptyClip,_x,20);
setProperty(_level0.mc_EmptyClip,_y,26);

//now go to the right section of the clip - this bit don't work!
_level0.mc_EmptyClip.gotoAndStop("myframelabel");
</code>

I can load it and move it about, but it won't goto anything, label or frameno. The first frame of the loaded clip plays a short intro, I want to skip to a frame further on.

Any help would be smashing!

Levels Accessing CSS
hi peeps,

I have 2 levels, 0=root/main contents, 1=submenu, 2=articles,
I am a beginner in flash although i have a project. Is it the right way of doing leveling in flash where i call the next level as a swf? is this correct? on my 2nd level where the article is, i have an article which i retrieve from an html/css file. if I run this article alone it is working ok, if I run it in my 1st level, still it is ok, but when I integrate it with my 0level, the css file is not working. why is this? How can I make it work?

Thanks!

Accessing Instances
Hi,
I am having troubles chaning the properties of an instance within another instance. I want to change the visability of the instance within a movie clip.

How do i define its path (target)/ access the instance when setting the property of the instance?
setProperty("target", property, value);

Cheers

Daniel

Accessing XML Attributes
I am having a problem with accessing the attributes of a 3rd level child node.
If anyone could help me on this, it would be great.
It's probs staring me in the face but i just can't get it working.

Here is some of the XML:

[HTML]<?xml version="1.0"?>

<projects>
<project>
<projectname>Some Project 1</projectname>
<projectclient>Some Client 1</projectclient>
<projectstatus>Some Status 1</projectstatus>
<projectinfo>lorem ipsum dolor sit amet.</projectinfo>
<projectthumb1>thumbimage1.jpg</projectthumb1>
<projectthumb2>thumbimage2.jpg</projectthumb2>
<projectthumb3>thumbimage3.jpg</projectthumb3>
<projectthumb4>thumbimage4.jpg</projectthumb4>
<projectthumb5>thumbimage5.jpg</projectthumb5>
<projectthumb6>thumbimage6.jpg</projectthumb6>
<projectthumb7>thumbimage7.jpg</projectthumb7>
<projectthumb8>thumbimage8.jpg</projectthumb8>
<projectimage1 imglabel="image one imglabel">projectimage1.jpg</projectimage1>
<projectimage2 imglabel="image two imglabel">projectimage2.jpg</projectimage2>
<projectimage3 imglabel="image three imglabel">projectimage3.jpg</projectimage3>
<projectimage4 imglabel="image four imglabel">projectimage4.jpg</projectimage4>
<projectimage5 imglabel="image five imglabel">projectimage5.jpg</projectimage5>
<projectimage6 imglabel="image six imglabel">projectimage6.jpg</projectimage6>
<projectimage7 imglabel="image seven imglabel">projectimage7.jpg</projectimage7>
<projectimage8 imglabel="image eight imglabel">projectimage8.jpg</projectimage8>
</project>
</projects>[/HTML]

Here is part of the actionscript:

x = this.firstChild.childNodes[0].childNodes[13].firstChild.nodeValue; //this is working OK.

n = this.firstChild.childNodes[0].childNodes[13].firstChild.attributes.imglabel; //this returns undefined???
trace(x);
trace(n);



thanks for any help!
ps: I have also posted this in Help/XML

Accessing Parsed Xml
hi all... i posted this in the backend forum but there seems to be kinda quite..

here is a porblem i have - i've done a script to parse an xml into an multidimensional array - for different elements and children. that part works fine.
then i have a movie that is been duplicated and should be populated with data from the array. the problem is that the new movies are not in the main scene but one level down. i can do the duplication and populate the duplicated movies with static data but can not use the array. it appears that the movie in the second level is rendering faster then the xml gets parsed and i don't know now how to deal with this...

***********************************
update: a way i found to do it is by doing functions in the movies on the second level and then calling them from withim each other or from the root level. the retarded part is that since the xml is parsed once the main movie loads, the only way the movies on the lower levels can see it is if i pass it within a function on the main level that calls a function from a movie from the lower levels... so basically what i have to do is call a global/root function from a level 2 movie_1 that then calls a function from the lower movie - level 2 movie_2 to pass the array down... does this make sense to anybody?!
************************************

is there a more civilized way of doing this....

thanks...

Accessing External URL's In .exe
I have a .exe that is being downloaded locally off of a server to run, but I have been told that I cannot reference the server address in my actionscript. Is there a way to do this? I would be surprised if I cannot reference any URL's in a .exe. Thanks!,
Mike

Accessing Data
First of all thank you for reading this. My question is a little complicated. I'm currently undergoing a project in Flash MX. I want to create a slideshow on my website for advertising products. I was wondering if anybody could put me in the right direction on how to be able to access data from my SQL so that I won't have to update images all the time and waist valuable time. Thanks in advance for your replys.

Accessing Php Scripts
I am trying to put my highscore php scripts on a different website, (to save room and bandwidth )

But when I try to run

if (_root._url.indexOf('http://www') == 0) {
fakeVars.sendAndLoad('http://www.site.com/genvars.php', result_lv, 'POST');
} else {
fakeVars.sendAndLoad('http://site.com/genvars.php', result_lv, 'POST');
}



it doesn't work, meaning that I cannot access those .php pages from a different website.

What am I doing wrong?

[AS3] Accessing URL Variables
I understand that root.loaderInfo.loaderURL will display the URL that called the current flash movie.

Now, how do I access any name-value pairs that are part of the calling URL?

if the root.loaderInfo.loaderURL is "www.domain.com/myMovie.swf?var1=value1&var2=value2"

what is the AS3 syntax for accessing var1 and var2?

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