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




Having Objects Avoid Each Other



i have a horizontally tweened object, and an object beside it.. I wanted to know if there was a way i could have the object always keep its self only 3 points/pixels away from the moving object.. so they never touch



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 04-09-2007, 04:50 PM


View Complete Forum Thread with Replies

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

Avoid ActiveX Message In IE7 On Flash Objects
Hi,

I've been searching a lot, I really mean a lot and have found millions of ways of avoiding the manual activation of flash objects on my pages but Thought to drop a line here and see what is the best and simplest solution?

Most of the solutions I've found include adding a JavaScript file, but I don't like that, I'm interested to know if there's a better solution for this?!

Regards,
Hadi

How To Avoid Avoid Buttons When Movieclip Is Loaded Over Them
::::::::::SOLVED THANKS TO claudio::::::::::
Kinda hard to explain...
Say I have some buttons on a level 3 movie, then I click on one of those buttons, it loads an external movie on level 4. When the level 4 movie is ontop of the level 3 movie, level 3's buttons still work even though they aren't visible. How do I stop this???

Here's an example:
http://www.bs-ps.com/
when entering, go to Fast(broadband), skip the intro, click Staff and Services link, and you will see that the buttons are still there even though they are not visible. If you float the mouse a bit above the big word STAFF, you will see the cursor turn into a finger and the button will work.

How can I avoid this problem? I've had various situations where I like to load movie clips ontop of others, but the buttons still working annoys me.
Any help appreciated!
Thanks!

Any Way To Avoid?
I am creating a Flash slideshow as an educational tool for our sales force using Flash MX Professional 2004.  Part of the presentation involves demonstrations that use captured screen shots of charts w/ gridlines.  

The screen shots were taken using Capture Professional v5 on a 1024 X 768 resolution screen and saved as JPEG files.  The slideshow is set up for 800 X 600 screens so most viewers can see the full slides in a normal browser window.  The images need to be resized smaller to fit a limited amount of text on each slide.  

Resizing the images in Flash MX Pro 2004 causes some distortion where some grilines in the charts disappear and others remain visible - making the charts look sloppy.  I have noticed that similiar reductions in size when viewing the files in Capture Professional and other programs do not result in the same loss of detail - the lines are still visible even when resized to 50% of the original - much smaller than needed for my slides.  

Is there a way to prevent or limit this distortion?  

Thank you in advance for any suggestions you might have.  

Avoid Mouse
Hi!
Does anyone have a script, which descibes how a picture avoids the mouse? Basically: If the mouse moves to the right, the pict moves to the left....if it moves up left, the pict moves down right!

Thanx

Mouse Avoid ?
Is there a command for mouse avoid? Specifically, I've got a button I want to move whenever the cursor passes over it.

thanks!!

Ben

How To Avoid Cache?
Tried the mx forum, but no one knew...

How do you hide an .swf file from the system folders?
In other words, keep it from being cached in a temp folder.

Avoid Mouse?
Hi all,
new user here.

Just wondering if anyone could help me out with regards to making an object avoid the mouse? Trying to get it to avoid the cursor yet still having an element of control over the objects direction. I.e like pushing a ball with a stick. so that if the right angle isn't hit then the ball would head off in a sideward direction.
Any help or script would be much appreciated.

Cheers

LK

How To Avoid Collision?
Hello again,

I am trying to create a small game where the object in motion should avoid collision(hittest) with another object by running out of that another object when it is to close. Any advise is highly appreciated. Any sample, links or tutorials would be very very helpfull.

Thanks in advance.

Avoid A Preloader?
Hello - is there any way to avoid having to put in a preloader to rid the world of the white box while my movie is loading? The movie is not large and is VERY simple so it seems dumb to have to create a preloader. I would like it to just display the contents of frame 1 while the rest of the movie loads... or even a pretty colored solid background would be fine. After trying several of the tutorials on preloaders and having none of them work I am ready to put on a dunce cap.
Here is the final swf:

http://www.moving-pixels.com

Using flash8 and / or mx.
Thanks, Gina

Avoid AddChildAt
I'm trying to avoiding using addChildAt, because I don't want to have to keep track of numbers if I don't have to.

My sprites form two groups. A group of character tiles and a group of marker tiles. The character tiles should always be on top of the marker tiles. The number of marker tiles changes (although there is a fixed upper limit).

I used to create all the marker tiles, then do visible=false on them all. However, I have been advised it is faster to do removeChild, then addChild them back when I want to use them. However that puts them on top by default.

I thought I could inherit two new sprites from my root, called TileSheet and CharacterSheet, and then attach the character and marker tiles to those. As a sanity check, is that a reasonable thing to do, and is there a generally accepted best way to do this kind of thing?

[F8] How To Avoid Scrollbar?
Hi,

I am currently trying to figure it out how to create a flash bubble in html file without the scrollbar across the bottom and the side (resizable window without any scrollbar appear) which similar to the site www.ilovehachi.com.

I have no clue how to set up this document without the scrollbars in any window sizes. My flash size at the bottom is 1024 pxl now. I havent started my flash animation to avoid to re-do process. Should I do the sizing in flash or in html?

See my file attachment.

Please help. I appreciate it.

Glazeginger

How To Avoid This Using Classes
So I have made a class and need access to the stage to talk to movie clips and whatnot. In my flash movie, here is my new class instance:


Code:
var doc1:VTODDocument = new VTODDocument(this,"Sample Document 1111","somepdf1.pdf");
You see I have to pass 'this' in order to have access to my stage. In my class use 'this' as a stage reference.

Code:
public function VTODDocument(stage:MovieClip,title:String,url:String)
{
_p = (stage as MovieClip);
_title = title;
_url = url;
initDocs();
}
From that I can call _p.SomeMovieClip.anotherMovieClip and so on. Is their anyway I can avoid entering 'this' in all my class constructors? I would like to just use

Code:
var doc1:VTODDocument = new VTODDocument("Sample Document 1111","somepdf1.pdf");
but still have access to movie clips on the stage. Any ideas?

Avoid Multiple Log-ins
Hello friends,

I am making use of a cursor component in the Scene 3 where I have the whiteboard. when I surf to other Scenes of the website, and com back to Scene 3, the cursor duplicates itself as if I have logged in again; My log in name is duplicated as well as the cursor.
If I re-enter the Scene 3 x number of times, I will be logged in x times and even x number of cursors will appear.
Kindly advise how to avoid these multiple duplication.

H

Avoid Object
hi all,

I have a object (let's call it "A") which follows the mouse (with an ease motion) and i have other objects (let's call them "B") on the screen that move randomly. What i am trying to achieve is to get the object "B" to avoid "A" when "A" come to colse to them. As in they go around "A" like if they were affected by the wind that "A" produces when it moves about.

i have been trying several thing and nothing really works poroperly and looks quite crap... I need someone who is like propre good in math or physics.

thx in advance

Avoid Stretching
i have made an input field, but i only made one. however, i need more than one different input field size. when i resize the smaller input field, the text field stretchs so there is an indent. is there a way to avoid this?

p.s. the same problem happens with a symbol of just a box and a line, when you resize it, the line gets bigger two.

Avoid Click
Hi everyone??

I need to keep the things working in the same way if I have a second click.

In Director there is a command called "nothing", that makes exactly
nothing when needed.

Is there something similar in flash??


Thanks everyone!!!!

Avoid Click
Hi everyone??

I need to keep the things working in the same way if I have a second click.

In Director there is a command called "nothing", that makes exactly
nothing when needed.

Is there something similar in flash??


Thanks everyone!!!!

AVOID Key To Be Pressed
I used to do it in jscript, but doesn't work the same in AS2
I have an Imultiline nput text field on the stage, and I want that when user Press "ENTER" key nothing happens in the text field. I mean like a "return false" (which worked in Jscrip).
I have an onKeyDown event that triggers when ENTER is pressed and i'd like to remove that ENTER or that it didn't occur at all when pressed.

REgards :)

Avoid Mouse
Hello,

as someone have a script to attach to mcīs, that avoids the mouse?


thanks

Trying To Avoid Re-loading Same Swf
hi all,

firstly, i did try to search for my answer already in the forums, but i didn't know what to search for, to get a specific answer to my problem...

i'm working on my first real flash site, and i've created all the buttons and the various pages (individual swf's) to load for each button... it's all working fine.

however, since i'm planning to use a transition, i want to make it so that if they're already on a page (say "about") then they click the 'about' button again, it won't re-play the transition/loading bit.

i thought i could just make a variable called 'currentclip' and make it so that when they click a button, that section becomes the 'currentclip' and if they then click that button again, it won't reload... but it isn't working.

here's my code at the moment (on the 'main' button):


ActionScript Code:
on (press) {if (currentclip!=main) {        loadMovieNum("main.swf", "_root.capsule.host");        currentclip=main;    }}


host is the clip host, and capsule is a MC in which host sits.. and that's been working fine, until i added the stuff about currentclip.. now the "main" page just won't load

anyone got some suggestions?
thanks a lot
Stuart

Mouse Avoid
who knows how they did this?

http://amontobin.com/

How Do You Avoid NaN%loaded
I am trying to avoid NaN%loaded showing up on my preloader when loading images before the image loads.

I tried adding this if() statement, but it still shows NaN%loaded for a short while.

ActionScript Code:
circs.onEnterFrame = function() {
t = this._parent.container2.getBytesTotal();
l = this._parent.container2.getBytesLoaded();
loaded = l/t*100;
if (loaded == 100 && l>4) {
bars._visible = false;
loaded_txt._visible = false;
this.removeMovieClip();
delete this.onEnterFrame;
} else if (this.circle._xscale<900) {
if (loaded!==undefined) {
bars.bar1._xscale = Math.round(loaded);
loaded_txt.text = Math.round(loaded)+"%loaded";
} else {
loaded_txt.text = "0%loaded";
}



What's the proper way to code that so it displays "0%loaded" until it starts loading?

thanks!

Avoid And Constrain...
hi everyone-
ive got a question. i have a large .jpg (1600x1200) and a stage size of 700x410 with a mask of those exact porportions masking the .jpeg. what im trying to do is this: i want the large .jpg to move around (basically avoiding the mouse) but i dont want the .jpg to move completely off the stage. in other words when the large .jpg's edge meets the edge of the stage (on any side) i want it to stop. i know i should probably be using getBounds but im unsure of how it actually works. ive searched the forums with no luck. any help would be awesome!!!

thanks!

How To Avoid Flickering
hi Guys,

I have a problem during , load external XMl data's, i get the content from xml and dynamically generate the text box using html text. Xml content with external bullets(Png,Jpeg,etc.,). i got the result but, its always flickering see this code.
xml file:
<textContent>
<img src="Bulletsullet.png"/> aaaaa
<img src="Bulletsullet.png"/>bbbb
<img src="Bulletsullet.png" />cccc
</textContent>

coding:
var textContent_txt:TextField= new TextFiled();

textContent_txt.htmlText=slideArray[0]["textContent"];

need immediate solution.

Thanks

Avoid Mouse
Hi everyone,
I am not so good at flash and i really have to learn as soon as i can, but now i need some help with one problem, i need to make something very similar to the moving petals in this website http://www.chromazone-imaging.co.uk/flashindex.html

Thanks everybody

Trying To Avoid Re-loading Same Swf
hi all,

firstly, i did try to search for my answer already in the forums, but i didn't know what to search for, to get a specific answer to my problem...

i'm working on my first real flash site, and i've created all the buttons and the various pages (individual swf's) to load for each button... it's all working fine.

however, since i'm planning to use a transition, i want to make it so that if they're already on a page (say "about") then they click the 'about' button again, it won't re-play the transition/loading bit.

i thought i could just make a variable called 'currentclip' and make it so that when they click a button, that section becomes the 'currentclip' and if they then click that button again, it won't reload... but it isn't working.

here's my code at the moment (on the 'main' button):


ActionScript Code:
on (press) {if (currentclip!=main) {        loadMovieNum("main.swf", "_root.capsule.host");        currentclip=main;    }}


host is the clip host, and capsule is a MC in which host sits.. and that's been working fine, until i added the stuff about currentclip.. now the "main" page just won't load

anyone got some suggestions?
thanks a lot
Stuart

Trying To Avoid Python Esq
currently working on this, at the moment just trying to get bits and pieces down roughly where i want them


www.5ylac.biz/flashing/ant.swf


Problemn is with my atillery gun, does anyone have any tips or examples of anything simliar.




Chance,

Filmmaker, gentlemen and www.media.5ylac.biz

Avoid Loading Jgp Twice
hello everyone.


I have a problem that I really can't solve.

I've loaded 9 pictures into my flash-movie using this code:

ActionScript Code:
//preload de 9 billeder------------------------------------------------------------
var my_mcl:MovieClipLoader = new MovieClipLoader();
 
// Create listener object:
var mclListener:Object = new Object();
mclListener.onLoadError = function(target_mc:MovieClip, errorCode:String, status:Number) {
    trace("Error loading image: " + errorCode + " [" + status + "]");
};
 
mclListener.onLoadStart = function(target_mc:MovieClip):Void {
    trace("onLoadStart: " + target_mc);
};
 
mclListener.onLoadProgress = function(target_mc:MovieClip, numBytesLoaded:Number, numBytesTotal:Number):Void {
    var numPercentLoaded:Number = numBytesLoaded / numBytesTotal * 100;
    trace("onLoadProgress: " + target_mc + " is " + numPercentLoaded + "% loaded");
    _root.display_field.text = numBytesLoaded+" bytes loaded / "+numBytesTotal+" bytes total";
};
 
mclListener.onLoadComplete = function(target_mc:MovieClip, status:Number):Void {
    trace("onLoadComplete: " + target_mc);
    _root.display_field.text = "";
};
 
my_mcl.addListener(mclListener);
 
my_mcl.loadClip("billed-setup_billeder/spring02.jpg", alle_billeder_mc.billede01_mc);
my_mcl.loadClip("billed-setup_billeder/spring10.jpg", alle_billeder_mc.billede02_mc);
my_mcl.loadClip("billed-setup_billeder/spring17.jpg", alle_billeder_mc.billede03_mc);
my_mcl.loadClip("billed-setup_billeder/spring19.jpg", alle_billeder_mc.billede04_mc);
my_mcl.loadClip("billed-setup_billeder/spring21.jpg", alle_billeder_mc.billede06_mc);
my_mcl.loadClip("billed-setup_billeder/spring22.jpg", alle_billeder_mc.billede07_mc);
my_mcl.loadClip("billed-setup_billeder/spring25.jpg", alle_billeder_mc.billede08_mc);
my_mcl.loadClip("billed-setup_billeder/spring27.jpg", alle_billeder_mc.billede09_mc);
my_mcl.loadClip("billed-setup_billeder/spring20.jpg", alle_billeder_mc.billede05_mc);
//---------------------------------------------------------------------------------
 



now I need to make 9 thumbnails, using the same jpg's... but can I use the nine jpg's already loaded using some kind of copy/pasting them from one movieClip to another, and then scaling it?


so far I'm just loading every picture once again, but it's not the right way of doing it, i presume.
here's the way i'm doing it right now:

ActionScript Code:
this.controller_mc.billedvalg01_mc.createEmptyMovieClip("holder", 1).loadMovie("billed-setup_billeder/spring02.jpg");
this.controller_mc.billedvalg01_mc.scaleTo(10);



hope I've explained this properly


kind regards
felisan

How To Avoid A Pop Up Been Blocked?
Hai, I would like to avoid a new window been blocked by the browser.
I'm using :
In a button:
getURL ("javascript:NewWindow=window.open('http://www.site.com/video.htm','window1','width=800,height=500,left=0,top=0,toolbar=No,location=No,scrollbars=yes, status=No,resizable=no,fullscreen=yes'); NewWindow.focus(); void(0);");
in the html:
<SCRIPT LANGUAGE="JavaScript">
function popup() {
window.open('video.htm','','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,width=800,height=500,left=0,top=0') ;
}
</script>

Random Avoid Zero
I have this code for a random loading script:

MovNumber=Math.ceil(Math.random()*5-1)

the thing is sometimes MovNumber takes value 0 and i need to avoid that. Can this be done? (i dont want to use an if conditonal if = 0 convert to 1)

thanks in advance

Mouse Avoid
Hello All,

I have searched for a tutorial for this but have been unsuccesful.

Basically, i'm looking for a mouse avoid script that also has an elastic effect (when you rollout, brings the MC back to it's original position).

I would love to add a shaky movement when the MC is rollOvered.

Can anyone help?

Thanks!

[tip] Avoid IsNaN()
If you need to check if a number is not a number ( NaN ) then avoid using the isNaN() function if at all possible, especially if you are doing a lot of checks. Instead of checking if a number is NaN, check if the number is a number ( not NaN ) using the less/greater than operators.


ActionScript Code:
var a:Number = NaN;
var b:Number = 123;
 
trace( isNaN( a ) ); // true (is not a number)
trace( isNaN( b ) ); // false (is a number)
 
trace( a <= 0 || a >= 0 ); // false (is not a number)
trace( b <= 0 || b >= 0 ); // true (is a number)
 

The reason? Using the less/greater than operators is about 15 times faster than using the isNaN() function.

Avoid Resize
Dear friends:
I made a portfolio of my work as a photographer, when I designed it I specified the scene with a size of 800 x 600 pixels to ensure its quality in most of the monitors.
I would like to include a script to avoid that the user can resize the scene when playing to avoid the images get pixelates.
Any idea ?.

Thanks in advance for your support

Variables To Avoid Repetition
Hi all,
I'm currently working on a site that has a number of buttons that when pressed load up another scene. My problem is this:

At the moment when you press a button there is a short 'outro' sequence before you are taken to the next scene. Currently I have simply repeated this animation in the main timeline for each button. However, I have been informed that I can use variables so that I only need to do the outro animation once.

I've tried setting variables to each button and then at the end of the outro sequence use an 'if variable=' action but this doesn't seem to work. The aforementioned action is in my 'Actions' layer whilst the variables are attached to the buttons themselves.

Can anyone tell me what I'm doing wrong? I'm stumped!

Cheers,

SamB

How To Avoid Cashe Of External.swf
hello everyone

i have few external .swfs movies called from my main movie.
which gets loaded on different levels
my problem is that when the external movies gets loaded
it shows the preloader running and takes appropriate time
but after completion , the same old movie is loaded.
i dont know how to manage this ,
pls help me,

it is confirmed that the updated movies are uplaoded properly,

How To Avoid A Bitmap From Resizing ?
When we change the size of the screen, the flash is automatically rescaled, but is it possible to specify that the bitmaps within the flash keep the same size regardless the size of the window.

thanks a lot

Avoid Mouse Randomly?
I posted here a couple of days ago and am still working on a problem. I want a symbol (graphic, button, movieclip...whatever it takes) to avoid the mouse randomly. It can jump any where on the stage. I'm workiing in Flash MX. I was given this script to solve the problem:


//On the movie clip that avoids the mouse
on (rollOver)
{
this._x = random(movieWidthGoesHere);
this._y = random(movieHeightGoesHere);
}


This hasn't worked in the Output window I keep getting a message that says:

"Symbol="Click Here", Layer=Layer 1, Frame=1: Line 2: Mouse events are permitted only for button instances
on (rollOver)


I've tried it with a button instance but it doesn't seem to work. I'm running out of time. This is supposed to be done for a class website and we are supposed to launch it in the next couple days and I'm stuck. Any golden hearted Flash helpers out there. Thanks!

Avoid Windows Sounds
Hi, im spanish so first of all, pardon for my english

Well, what i wanna do is to avoid the click sound of windows when you click a button in a swf cause i want to ear my own sound(the sound i put in my button). The swf movie is inside a dreamweaver frame, maybe this is the reason but i dont know.Is it possible?

Someone could help me? Lots of thanks.

Mouse / Cursor Avoid
I have found numerous files teaching how to make objects chase your mouse, but what about us who want stuff to run away from your mouse?

I need to make movie clips run away from the cursor on a x axis. Does anyone know a simple actionscript for this?

How To Avoid Google Scaning Swf's ?
Hi,

google appears to scan swf files now, this means that on some searches, i will find my sites but with the direct swf file url and not the index html page .. is there a way to avoid this (maybe some sort of meta tag) ?

thanks for your help!

Help How To Avoid The Right Click Menu?
Hi:

The problem is I donīt want flash to show the right click menu that always appears in flash movies. Is there a way to avoid this?

Thanks in advance

Help How To Avoid The Right Click Menu?
Hi:

The problem is I donīt want flash to show the right click menu that always appears in flash movies. Is there a way to avoid this? or is there a way to customize this menu?

Thanks in advance

How Can I Avoid BLURRY FONTS?
is there any font i can use that does not show up blurry when used at a smaller size?????

Avoid Proxy Caches With AS?
hi!
Iīm having big problems to update contents on a flash site, at least to watch'em updated, due to a proxy my internet company has installed between me and the internet.grrrrr!

iīve used php header ("Cache-Control: no-cache, must-revalidate") but it seems to work only for the first swf to load, the rest come directly from their cache which lasts for a day or two.

so, is there any script checking my loadmovienums get'em from the right place?

thanks in advance!!

(mx2004 pro on macOSx)

Avoid Popup After LoadVars()
i made a flash movie with a form to submit data to php,
i would like to avoid the blank window open after submit.
I want to show the next flash frame instead of using PHP to redirect the page.
so, what should i set in parameters of the following:

myData.send("add_process.php", "_blank", "POST");

thanks

How To Avoid The Flash-Decompilers?
Hello!

Now is very easy with *******-Decompiler or others to open your original flash file from a SWF and change it . It is great tool for all of us, but sometimes you donīt want to share that information.

I had been trying to avoid it with an empty base flash that call the real movie and the decompiler just can get the empty movie. But when i do it i can not call another movies from the real movie.

Someone know how to solvent this problem or how to avoid the decompilers?

Thanks!

[F8] Mouse Avoid In Flash 8?
Hello all,
the attached zip contains a mouse avoid FLA downloaded from the movie samples on Flash Kit. It works great with Actionscript 1.0 and in Flash MX, but doesn't work in Flash 8. Can anyone tell what's wrong with the scripting, and what must be changed to make it work in Flash 8?

I've figured out a roundabout way of doing it, but I love the physics in this one. The scripting for the movie clip that should avoid the mouse is as follows:

onClipEvent(load){
homeX = this._x
homeY = this._y
magnet = 5000
}
onClipEvent(enterFrame){
x0 = this._x
y0 = this._y
x1 = _root._xmouse
y1 = _root._ymouse

distancex = x1-x0
distancey = y1-y0

distance = Math.sqrt((distancex * distancex) + (distancey * distancey))

powerx = this._x - (distancex / distance) * magnet / distance
powery = this._y - (distancey / distance) * magnet / distance

forcex = (forcex + (homex - x0) / 2) / 1.66
forcey = (forcey + (homey - y0) / 2) / 1.66

this._x = powerx + forcex
this._y = powery + forcey
}


Thanks very much!

Avoid Distortion When Resizing
hello guys! i was doing a component that can be extended at runtime, but the problem is the assets i am using (iamges) are being distorted when i resize the component, is there any way to avoid this behavior? i mean the assets keep being the same size?

Avoid Using Multiple Listeners On Top Of Each Other?
Hi

I might be misunderstanding the OOP concept

I have written an XML class (XMLParser)
this should take care of loading, adding and removing xml data from an xml file.
from my document class:

var xmlObject:XMLParser = new XMLParser // ok we're off..

xmlObject.loadXML("URLstring") //this adds an event listener. loads the xml and when loaded, parses it into my var xmlData:XML , no problem so far.

xmlObject.addXML("test1", "test2", "test3") //Oops! my XML has not loaded yet? and therefore can not be manipulated.

Should I now set up a second event handler? thus making my code look more and more like my class, loosing encapsulation by each keystroke?

In procedural programming the program would not return to the "main timeline" before having executed whatever code there was in the function called, meaning xmlObject.addXML() would not be called before xmlObject.loadXML(); had finished.

I have been trying to take time to mentally upgrade to AS3 for a couple of weeks, and I can see this problem turning up all the time. Is there some grand solution for all theses cases where I need an instance method to finish what it is doing before returning to the "timeline" (document class).

I have experienced this a few times, also when making multiple instances it seems AS3 will just pump them out regardless of the order the objects finishes what ever constructor code there is. I cant seem to get my head around this part..

Here is the relevant things for the XMLParser class:


Code:
public function XMLParser():void{

xmlLoader.addEventListener(Event.COMPLETE, XMLloaded);

}

public function loadXML(pathXML:String):void{

xmlLoader.load(new URLRequest(pathXML));

}

private function XMLloaded(e:Event):void{

xmlData = new XML(e.target.data);

}
pretty much from the help file..

and the calls from my document class:


Code:
public function AccessXML():void{
var xmlObject:XMLParser = new XMLParser();
trace("step 1:");
xmlObject.loadXML(URL);
trace("step 2:");
xmlObject.addXML("001","002", "hello world");
trace("step 3:");
}
}
}
the trace commands shows me that step 1, 2 and 3 all gets outputted before the XML has even loaded.

Please point me in the right direction as Im sure this is a very bad thing to get wrong from the start

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