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




How To Know The Absolute Path



AFAIK, there is no built-in function that can acquire the absolute_path:String of an object.

For example, an object declared like this:

Code:
// Main Timeline (_root)
obj = {a:{b:{c:"obj"}}};
The absolute_path:String is "_root.a.b.c".

Code:
var absolute_path = "_root.a.b.c";
trace(eval(absolute_path)); // will output "obj"
Is there someone out there who created a function which can acquire the absolute_path:String of an object? This is especially useful in nested MovieClips.

The getAbsPath:Function that I am talking about is like this:

Code:
// Main Timeline
obj = {a:{b:{c:"obj"}}};
absolute_path = getAbsPath(obj.a.b.c); // absolute_path = "_root.a.b.c";
trace(eval(absolute_path)); // will output "obj"
I know my example sounds silly, but this is for demonstration purposes only.

It's not difficult to create the getAbsPath:Function. However, if someone has created it already, then I don't have to bother myself doing it.

If there is none of you who knows such function, then never mind this thread, I'll just create my own one.

Thanks!



ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 11-25-2004, 10:09 AM


View Complete Forum Thread with Replies

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

Please Help With Absolute Path
On scene 1 I have an MC "drop", in drop I have an MC "tx" with the instance name "vtext" as below

_root
drop
vtext

within MC "drop" I want to duplicate instance "vtext" and I have been trying to use the code below, it doesn't work. What am I doing wrong?

_root.drop.duplicateMovieClip(_root.drop.vtext, "vtext"+vn, vn)

Thanks

My .swf Needs To Know It's Absolute Path
is there a way that a swf or projector,
can find the drive letter it resides on.


anyone?

Many thanks on any replies,

leon

Absolute Path
I have to realize one swf movie (movie "a") that must load another swf movie (movie "b"). movie "a" is embedded on a html page resident on my desktop, movie "b" is on a server that i can't have access. Movie "a" has a loadMovieNum command to load movie "b" on level_0. My problem is that movie "b" have many loadMovieNum commands that make reference to the server where movie "b" is located. Obviously, movie "a" load the movie "b" but, when movie"b" try to load the others movies nothingh happen couse the absolute reference is the path of movie "a". There is a way to arrange? I can't have acces to the server where movie b is located, I know only the url.

Absolute Path
Absolute path
I have a movie clip with a button in it,
After I press the button, I want it to go to the certain label frame,
I use the path: “_root.mylabel”
It doesn’t work, Could you help me!

Thank you

Help With Absolute Path
Hi everyone. I am new to this forum and I hope someone can help me with what I think is a fairly simple question.

I have completed a flash wewbsite that links to some htm pages on my server. I want to be able to give this out on a CD and rather than using the "Get URL" command and go to the Internet, I just swant to reference the "pagename.htm" file locally.

It's driving me nuts. Can someone please help me.

Thanks,
Peter

Absolute Path?
I have a site that loads a .swf from another server.
The problem is that when loading things from that server into the swf it only works when I use absolute paths…


This wont work
on (release) {
loadMovie("/images/pic1.jpg", "_root.player");
}


This works
on (release) {
loadMovie(“http://www.domain.com/images/pic1.jpg", "_root.player");
}


Why is this happening?

Loading SWF From Absolute Path
Well...this simple silly question sure it's a newbie question. I'm wondering if it's posible to load SWF from absolute paths just like images (of course, not with the same code) i.e..if i'm wishing to load an image on HTML i can use the <img src="http://mysite.com/image.gif"> ... so, my girlfriend LOVE this blog stuff and she make me promiss her some cool design befoore 2003...the problem it's that since you can't store anything on blog server, i'll have to use absolute path to load this Mp3 player i 've made... it's that posible?

Absolute Path To PHP Script
Hi!

My problem looks quite simple, yet, I can't seem to find a solution!

Here's the scenario: I have my portfolio hosted at http://homepage.mac.com/trotta. When you click the "e-mail" link, it loads, into a target MovieClip, a different file called e-mail.swf, containing the e-mail form. This server doesn't support PHP, but the script for sending the e-mail message is hosted on a friend's server, where PHP is supported.

So, what I need is to load the script from a different host, using an absolute path. Does anyone know if it's possible?


Code:
on (release) {
loadVariables("http://www.my_friend's_server.com/mail.php", "_root.my_target", "POST");
}
I know the ActionScript dictionary says it can't be done, but there GOT to be a way around!

I also tried to place the e-mail.swf file in the same folder as the script, at my friend's server, and load the SWF file from there, but I got no luck. Appearently, the PHP file has to be placed in the same folder as the site's root SWF file. At least that's what I think.

I can't move my entire site to my friend's server, in order to have the PHP file in the same folder as the root SWF file, so I think I'm really out of options here.

Anyway, I'm stuck with this for months now, and I'm really desperate. Any help is appreciated.

Thanks in advance!

Trotta

Absolute Path Of File
hi,
i forgot the path script that i used couples months ago, what should be the beginning head of absolute path of file in the local disk?

for example,
if i want to loadmovie thro internet

_root.loadMovie("http://www.example.com/filetobeloaded.swf",1)

now i would like to load the path of local disk

_root.loadMovie("file://c:/filetobeloaded.swf",1)

am i wrong?
just knew it's failed to load the file.
i know what i've done is near the real solution.


thanks for your help

Browsers And Absolute Path
Hi!

The problem is I used an ABSOLUTE link to load a .swf within my main movie, but it doesn't work (sort of). Here's the scenario:

1. mymovie.html(embedded flash) + IE6.0 = not working
2. mymovie.swf + IE6.0 = works

but the funny thing is

3. mymovie.html + Netscape7.0 = works

So...is it a problem with the browser? How can I get #1 to work?
Thanks in advance!!

Queenie

PHP: Absolute X Relative Path?
Hi!

I have a simple doubt...
If I run the following command, with the full path to the script:

loadVariables ("http://localhost/azul/pegamedidas.php",_root,"GET");

and then trace the variables (e.g. _root.age), I will have the variables sent by the PHP script.


Otherwise, if I run the same script, but this time ommiting the path, it will tell me that the variable is "undefined":

loadVariables ("pegamedidas.php",_root,"GET");



Why it happens????

Absolute Path Problem
I am trying to change the text size of a dynamic text box's text when a button is released. I am using flash 8.

The problem is the button to change the text size is in a different movieClip than the dynamic text box.

I thought that by using an absolute path to the dynamic text box I could get it to work but no luck.

Here is the code I am using on my button:

on (release) {
var myFormat = new TextFormat ();
myFormat.size = 20;
_root.a.b.c.setTextFormat = (myFormat);
}

a is the instance name of a movieClip on the main timeline

b is the instance name of a movieClip on the a movieClip timeline

c is the instance name of the dynamic text box on the b movieClip timeline

the button is on the a movieClip timeline

How To Use Absolute Url At Local Path?
Hi guys,

I have a small problem (I think) with my .as file in flash CS3. I need to point to a XML file at local using some path..

Here´s the code of .as file what I need to change (look the underlined part)

private const url:String='H:Documents and SettingsadminMy Documentsflash_tyon_allawebsitepoll.xml';

public function LoadingXML(fla:MovieClip)
{
_fla=fla;

no_cache='?cachebuster='+new Date().getTime();

this.loadXML();


Pls help because my project´s deadline is coming closer and closer..

Absolute Path Error
In this file I have several movie clips controlling each other using absolute paths. Then I get to one that just wont work. After a lot of trial and error I decided to try a relative path and that worked. Is there a reason for having to use _root to get something to work?

thanks in advace...

URLLoader And Absolute Path
Hello all,

So basically I am loading XML text via a URLLoader into a scrolling new ticker. Due to the fact that what I am building is a widget hosted on the widget publisher's server, I need to use absolute paths or things will not load properly (that is, at all) when people view the widget hosted on the publisher's server. When I use an absolute path with the URLLoader locally there are no issues. When I use the absolute path to the XML file on the server, the same server holding both the SWF and the XML in the same directory nonetheless, it doesn't load. When I change this to the relative path, it loads fine on the testing/source server. But of course it will not work on the widget publisher's server because of this relative path.

Any ideas why this is happening and/or how to get around this odd relative path limitation?

Thanks in advance.

Loading XML From Absolute Path
I'm trying to load an XML file located at "file:///e:/app/data/myXML.xml" into a flash file located under the root (WEB-INF) of a war file.

Any help would be greatly appreciated.

Absolute Path Problem
I am trying to change the text size of a dynamic text box's text when a button is released. I am using flash 8.

The problem is the button to change the text size is in a different movieClip than the dynamic text box.

I thought that by using an absolute path to the dynamic text box I could get it to work but no luck.

Here is the code I am using on my button:

on (release) {
var myFormat = new TextFormat ();
myFormat.size = 20;
_root.a.b.c.setTextFormat = (myFormat);
}

a is the instance name of a movieClip on the main timeline

b is the instance name of a movieClip on the a movieClip timeline

c is the instance name of the dynamic text box on the b movieClip timeline

the button is on the a movieClip timeline

URLLoader And Absolute Path
Hello all,

So basically I am loading XML text via a URLLoader into a scrolling new ticker. Due to the fact that what I am building is a widget hosted on the widget publisher's server, I need to use absolute paths or things will not load properly (that is, at all) when people view the widget hosted on the publisher's server. When I use an absolute path with the URLLoader locally there are no issues. When I use the absolute path to the XML file on the server, the same server holding both the SWF and the XML in the same directory nonetheless, it doesn't load. When I change this to the relative path, it loads fine on the testing/source server. But of course it will not work on the widget publisher's server because of this relative path.

Any ideas why this is happening and/or how to get around this odd relative path limitation?

Thanks in advance.

Relative Path Vs. Absolute
if i use a .as file for my scripting what would my path be to my movieclip that is on the root timelina and is inside the mc clip in the root timeline'

is this correct.


ActionScript Code:
_root.mcClip._parent.mcClipInside.

How To Use Absolute Url At Local Path? Pls Help
Hi guys,

I have a small problem (I think) with my .as file in flash CS3. I need to point to a XML file at local using some path..

Here´s the code of .as file what I need to change (look the underlined part)

private const url:String='H:Documents and SettingsadminMy Documentsflash_tyon_allawebsitepoll.xml';

public function LoadingXML(fla:MovieClip)
{
_fla=fla;

no_cache='?cachebuster='+new Date().getTime();

this.loadXML();

Do I need to just point like this or what?

i.e. const url:String='poll.xml';



Pls help because my project´s deadline is coming closer and closer.

Absolute Path To Level .swfs
Hi everybody,

how can I give swf-movies, which I want lo load on different levels in a popup window an absolute path?
Unfortunatly, my site seems not find the swfs i want to load on level 2 on release of a certain button.

Please help!

HELP Need To Retrieve Absolute Path To An Object...
Hello all

I need to retrieve a string with the absolute path to an object.

Lets say i have an instance

myObj = new Object();

then, i want to know the absolute path to myObj...
how can I do that?
I need a string with the absolute path (i.e. "_level2.myObj") to pass it to a host application with FSCommand, but I can´t find a way....

please heeeeeeeeeeelp!!!!!!

Absolute And Relative Path Questions.
Hello FK.
I am trying to organize my files in my root directory that my swfs reside in. I have always just kept all my necessary files in one folder, so I don't have to alter paths. Problem is my site is growing and growing using loadMovie commands and I need to divide an conquer. If I want to break up my root folder into subfolders, how do I target them in actionsript. Here's the breakdown:
root (main folder)
>skeleton_folder (inside root)
>picture_folder (insider root)

Say I have a movie called portfolio.swf located in the folder skeleton_folder. I need a button in the portfolio.swf to load a file called building_pic.swf which is located in the picture_folder.

on(press){
loadMovieNum ("building_pic.swf", 6);
}

Thats basically it, but I need to know how to alter the path.

Getting The Absolute Path Of A Function Dynamically
I'm creating a record and playback macro for a swf that records what actions (functions) the user takes and then can play them back to them. The question: is there any way to dynamically obtain the absolute path to the current function being referenced (so that I may play it back) or do I have to hardcode it? What about a relative path?

It seems to me there might be a function like this in flash already, but I haven't found it.

Thanks!

Absolute Path To Target Question
Hi,

I got this code from a FLA file that is part of a tutorial for a mail form.


Code:
on (release) {
if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
EmailStatus = "Please enter a valid E-mail address";
}

else if (!ToEmail.length || ToEmail.indexOf("@") == -1 || ToEmail.indexOf(".") == -1) {
EmailStatus = "Please enter a valid E-mail address that you are sending this to";
}

else if (!ToName.length) {
EmailStatus = "Please Enter the name of how you are sending this to";
}

else if (!FirstName.length) {
EmailStatus = "Please Enter your name before Sending";
}

else if (!ToComments.length) {
EmailStatus = "Please enter some text in you message";
}

else {
loadVariablesNum ("mailform.php", "0", "Post");
EmailStatus = "Sending... one Moment .. or two.. sometimes it's faster then other times";

}
}
Now my question is, if the clip that the mail form is on is actually buried three levels down (movie within movie within a movie etc), then what changes would that make to the above code?

Would it be:

Code:
on (release) {
if (!Email.length || Email.indexOf("@") == -1 || Email.indexOf(".") == -1) {
_root.mainMovie.contMovie.textFade.Mail.EmailStatus = "Please enter a valid E-mail address";
}

else if (!ToEmail.length || ToEmail.indexOf("@") == -1 || ToEmail.indexOf(".") == -1) {
_root.mainMovie.contMovie.textFade.Mail.EmailStatus = "Please enter a valid E-mail address that you are sending this to";
}

else if (!ToName.length) {
_root.mainMovie.contMovie.textFade.Mail.EmailStatus = "Please Enter the name of how you are sending this to";
}
Or would it be something like?


Code:
on (release) {
if (!_root.mainMovie.contMovie.textFade.Mail.Email.length || _root.mainMovie.contMovie.textFade.Mail.Email.indexOf("@") == -1 || _root.mainMovie.contMovie.textFade.Mail.Email.indexOf(".") == -1) {
_root.mainMovie.contMovie.textFade.Mail.EmailStatus = "Please enter a valid E-mail address";
}

else if (!_root.mainMovie.contMovie.textFade.Mail.ToEmail.length || _root.mainMovie.contMovie.textFade.Mail.ToEmail.indexOf("@") == -1 || _root.mainMovie.contMovie.textFade.Mail.ToEmail.indexOf(".") == -1) {
_root.mainMovie.contMovie.textFade.Mail.EmailStatus = "Please enter a valid E-mail address that you are sending this to";
}

else if (!_root.mainMovie.contMovie.textFade.Mail.ToName.length) {
_root.mainMovie.contMovie.textFade.Mail.EmailStatus = "Please Enter the name of how you are sending this to";
}
Any help would be greatly appreciated!

Blastbum

Absolute And Relative Path With URLRequest
Hi
I have a question concerning the use of URLRequest

When I work on my local server, I have to put the absolute address of the file I am calling with URLRequest (the relative path doesn't work)
For example

Code:
urlRequest:URLRequest = new URLRequest("http://127.0.0.1/www/site/test/call.php");
Then I have to modify this address each time I upload the flash file on the production server!

Whereas I would like to just have to put something like this:

Code:
urlRequest:URLRequest = new URLRequest("call.php");
but then it doesn't work in local

Do you know if it is a flash or php problem? What should I change so that my relative path works?

thanks for your help

[F8]ExternalInterface + Href + Absolute Swf Path
Hello,
git a small ExternalInterface problem.
I try to get the href from the window.location object via JS


Code:
import flash.external.*;
trace( ExternalInterface.call("window.location.href.toString") );


It works so far, but if you set an absolute path to the swf in the HTML I only get "null".

Is that something like a Sandbox security thing in flash?
Any solutions/workaround (without touching the html code)

Absolute And Relative Path With URLRequest
Hi
I have a question concerning the use of URLRequest

When I work on my local server, I have to put the absolute address of the file I am calling with URLRequest (the relative path doesn't work)
For example

Code:
urlRequest:URLRequest = new URLRequest("http://127.0.0.1/www/site/test/call.php");
Then I have to modify this address each time I upload the flash file on the production server!

Whereas I would like to just have to put something like this:

Code:
urlRequest:URLRequest = new URLRequest("call.php");
but then it doesn't work in local

Do you know if it is a flash or php problem? What should I change so that my relative path works?

thanks for your help

Absolute Path To Same Folder Not Working
I have a main swf which loads child swfs in sequence. When I don't specify a path (they're in the same folder), the subsequent swfs all load like they should.

BUT, when I give an absolute path to the folder that the main and child swfs are in, something gets messed up, and the communication goes wrong. The first one loads, and then triggers the second load at the end like it should, but at the end of the second one, it stops loading/running the script properly.

What the hell? Why does it work one way when I don't specify a path, but another way when I specify the same path it uses automatically????

Absolute Path Loading Issue
I have a very odd problem with a goto command, hope someone can help!!

I have a movie which has to load in other movies from a folder on the local drive, this is for a special project where the whole thing is installed on the C drive in the inetpub/wwwroot folder.

I have been told by the client that we must use absolute paths, they have had problems using relative paths on these machines before. So I am using the following syntax:
_root.movie_layer.loadMovie("file:///c:/inetpub/wwwroot/courses/client/data/source_movie/hello.swf", 0);

The movies have a stop frame on frame 1 to prevent them from auto running, however when I try: _root.movie_layer.gotoAndPlay(10); it wont run or jump to that frame, it just sits on the stop frame at frame 1.

Now for the odd part, if I change the path to a relative path:
_root.movie_layer.loadMovie("source_movie/hello.swf", 0); and do the _root.movie_layer.gotoAndPlay(10); it works fine!

Anyone any ideas? this affect abouy 50 movies and I can't make them all autorun!!

Absolute And Relative Path With URLRequest
Hi
I have a question concerning the use of URLRequest

When I work on my local server, I have to put the absolute address of the file I am calling with URLRequest (the relative path doesn't work)
For example

Code:
urlRequest:URLRequest = new URLRequest("http://127.0.0.1/www/site/test/call.php");
Then I have to modify this address each time I upload the flash file on the production server!

Whereas I would like to just have to put something like this:

Code:
urlRequest:URLRequest = new URLRequest("call.php");
but then it doesn't work in local

Do you know if it is a flash or php problem? What should I change so that my relative path works?

thanks for your help

MX: Retrieve The Absolute Path To An Object Variable...
Hello,

i cannot see a way to obtain a stirng with the absolute path to a variable...

If i go like:

myObj = new Object();
myObj.myVar = "Hello";

then, i would like to retrieve the full absolute path to the variable myVar. I know I could simply type "_root.myObj.myVar" But I am building a Class which must find the absolute path by itself....
And it must be a string because i have to send it to a host application via a FSCommand.

If i go with "myObj.toString()" I only get the datatype of the object...

For a MovieClip it´s ok to use the "myMovieClip._target"
but i cannot find anything similar for an Object or a variable....

Got any idea?

thanks
Pippo

Absolute Or Relative Path In Include File
Hopefully someone can help me out with a simple problem.

I am having an issue referencing some actionscript in my inlude file.

Currently on my main timeline I have an mc called nav_mc, in that mc I have another called d1.

On my main timeline I am including an actionscript file (#include "timeline.as" )

My actionscript is as follows:

Code:

_root.nav_mc.d1.onRollOver = over;
_root.nav_mc.d1.onRollOut = out;
_root.nav_mc.d1.buttText.buttonText.text = "2006";
_root.nav_mc.d1.onRelease =
function(){ getURL(Links[0]) }
My problem is that I cant get any of my actionscript to work, what am I doing wrong in my paths? Any help is appreciated.

Moviecliploader: Preloader Issue W/absolute Path
I have several html pages located in several folders while master swf located in different folder with essential swfs: preloader, nav, trigger (that are to load into master via moviecliploader function). The master swf ueses the absolute paths instead of relatative paths to load swfs due to pages being located in different folders. It was able to load all essential swfs, bummer the preloader won't show the progress of preloading mc if path's absolute.

Frame 1:

Code:
stop();

// create new mc
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();

myMCL.addListener(myListener);

// preloader function to load mcs
myListener.onLoadProgress = function(target_mc:MovieClip, loadedBytes:Number, totalBytes:Number) {
_level50._visible = true;
var preloadPercent:Number = Math.round((loadedBytes / totalBytes) * 100);
_level50.preloader.gotoAndStop(preloadPercent);
}

// hide preloader after load level5 mc
myListener.onLoadComplete = function(target_mc:MovieClip) {
_level50._visible = false;
}

// trigger level5 to load into stage
myMCL.loadClip("http://www.test/swfs/trigger.swf", 5);

// trigger preloader to load into stage
myMCL.loadClip("http://www.test/swfs/preloader.swf", 50);
Frame 5:

Code:
stop();
myMCL.loadClip("http://www.test/swfs/nav.swf", 5);
any suggestion or alternative to address ths issue?

Jace

Moviecliploader: Preloader Issue W/absolute Path
I have several html pages located in several folders while master swf located in different folder with essential swfs: preloader, nav, trigger (to be load into master via moviecliploader function). So I use the absolute paths instead of relatative paths to load swfs, but the preloader seem doesn't work by show the preloading progress with mc if path's absolute.

Frame 1:

Code:
stop();

// create new mc
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();

myMCL.addListener(myListener);

// preloader function to load mcs
myListener.onLoadProgress = function(target_mc:MovieClip, loadedBytes:Number, totalBytes:Number) {
_level50._visible = true;
var preloadPercent:Number = Math.round((loadedBytes / totalBytes) * 100);
_level50.preloader.gotoAndStop(preloadPercent);
}

// hide preloader after load level5 mc
myListener.onLoadComplete = function(target_mc:MovieClip) {
_level50._visible = false;
}

// trigger level5 to load into stage
myMCL.loadClip("http://www.test/swfs/trigger.swf", 5);

// trigger preloader to load into stage
myMCL.loadClip("http://www.test/swfs/preloader.swf", 50);
Frame 5:

Code:
stop();
myMCL.loadClip("http://www.test/swfs/nav.swf", 5);
any suggestion?

Friggin' Mick

Loading External Text Files From An Absolute Path
Hey Guys.

I'm currently building a little content managment program for some sites that I am working on so that people can update their sites from one location - the problem I'm having is that the SWF file doesnt seem to want to handle an external text file located on a different server.

Here's the situation: (these paths are just examples)

The SWF is located at www.swfhere.com/swf.html

The Text File is located here: www.myadmin.com/content.txt

Is there anyway to get the SWF file to load that text file, or am I out of luck?

Thanks!
Anneka.

Mixing Relative And Absolute Path For External Loading
I have a shell application that loads external movies into it. It is like a movie player that uses loadclip(). When I publish to the server it cannot find the external movie.


Code:
movieFile="1_03_02.swf";
myMC.loadClip(movieFile,"_root.myMC");
On the server both the host wrapper (player.swf) and the 1_03_02.swf movie are in the same folder.

My problem is I must use an absolute path in the HTML to the player.swf because I use an IP replacement function I am using. I want to use a relative path to swf from the application level.

Here is my html object source param:

Code:
<param name="movie" value="http://replaceMyIp/software/player.swf">
replaceMyIp is dynamically inserted in the HTML to find the nearest server's IP.

Does the tilde work for application root level paths in Flash?

Other programs allow you to use the tilde to start at the root level of the application instead of the root level of the server.

So, what I am hoping this or something like it will work:

Code:
movieFile="~1_03_02.swf";
myMC.loadClip(movieFile,"_root.myMC");

Loading External File From Absolute Path On Server
Hi frnds,

I got some problem for loading an external file.

Suppose I have a .swf file hosted on some server.
Let's say the url will be http://www.abc.com/my.swf

The swf file loads a .txt/.xml file from some absolute path on the server
Let's say the location of ab.txt/ab.xml file lies in D:sconfigab.txt

If I try to run swf in the player it loads the ab.txt file fine.
But when I open the .swf file using the above mentioned url it gives error.

I sense that this has something to do with flash player security policy.

How to achieve this task?
Or whether it is at all possible to load a file from absolute path on the server to a .swf file?

Using Eval Function And Variable In A Path (target Path)
Hello,

I have to reprogram some of my website and it calls to conjugate strings in a way that's beyond my understanding. Please help me with some suggestions. Kind regards.

the original code is:

code:
if (_global.useCount<10) {
//hide
var diff = 10-_global.useCount;
for (diff; diff>0; diff--) {
eval(String(11-diff))._visible = false;
}
}

There are buttons named 1 to 10 and this turns off the ones that are not used. Now I want to nest those buttons in subclip "buttonsRow", instead of having them on main timeline. How do I rewrite that code to make it work with new path?

I have already tried the "associative array" method, but it don't really know how to pack the whole eval function in there. I've tried many combinations, like:

code:
this.buttonRow[eval(String(11-diff))]_visible = false;
//or
this.buttonRow["eval(String(11-diff))"]_visible = false;
//or
buttonRow[eval(String(11-diff))]._visible = false;
//or
buttonRow["eval(String(11-diff))"]._visible = false;
//or
buttonRow[eval(11-diff)]._visible = false;
// or
buttonRow[8]._visible = false;
//the last one at least turns off button 8, lol

Some of those return syntax error and some just don't work. Anyone have any ideas? Thank you again.

Cannot Export An Avi Of Motion Along A Path When Path Is Specified With Action Script
Hello!
I have the following problem: I am using Flash 8 Professional to produce a series of avi files showing the motion of a dot along different paths. Whenever I use the drawing tools to draw the path everything is all right: I can export both a swf and an avi file showing the motion. The problems start when I use action acript to specify the path: then a swf can be exported, but not an avi file (Flash acts as if it is exporting but the avi file produced shows only a stationary dot). Can anybody help me?

Absolute _x, _y
I have a need to find the absolute _x, _y position of a movie that is several movieclips deep within a dynamic flashpage. Each of the movieclips prior have been rotated dynamically and I need to find out where my target movie clip is based on the _root context.

I have contemplated creating a function that can handle this but it would probably take a bit of time and there are, I am sure other people who have run across this who have figured out what to do here. Can anyone point me to a script that might save me a small headache? I would much appreciate it!

~Orion

Absolute _x And _y
i need to make a movieclips _x and _y absolute to the stage so that i can duplicate a movie clip to the _x and _y of the mc without it just duplicating to the top of the stage (did anyone get that or was my english too bad?)

Absolute?)
I have a flash movie in an ASP.NET web application (I am software dev not a flash person). The SWF looks at an XML file  that passes in an image url that is then in turn displayed on in that movie:

http://wisetopic.com/profile/index02.aspx?userid=66


In the XML the image path I pass I have tried several options. Here is the image:

http://wisetopic.com/_mediaStore/image/1.jpg

I tried the actual url (above). I tried relative (../../_mediaStore/image/1.jpg) I tried root relative (/_mediaStore/image/1.jpg)

The SWF lives in

root - /profile/userPlayer/UserPlayer.swf

the XML is in the same directory. The HTML page is

root - /profile/


None of them work!! What the heck?! Please heeelp me!

-- jenni





Get.Month() ? And Absolute Value
do i have to set the get month to a veriable, or is it already one?

And, how do i do absolute value in AS?

Thanks
-KeyserSoze

Finding Absolute X And Y
i have a MC which is called 'blast', within it i have another MC called 'shell'. How 'blast' works is two keyframes and frame 1 contains the following code:

setProperty ("shell", _y, shell._y - 10);

every time blast MC loops back to its frame 1 it will alter the y position by minus 10. This works well and projects the 'shell' forward or up. in my movie i have the 'blast' MC rotate so that if it is rotated 45 degrees then it will shoot the shell forward at a 45 degree angle. This also works well.

The problem is when i try to find out the x and y position of the 'shell' i am using the following:

xshell = shell._x;
yshell = shell._y;

This returns with values for x and y, but they are the x and y position relative to the centre point of the 'blast' MC (in which 'shell' is within) and when blast is rotated the x and y of the 'shell' on the screen is different to these. Can anybody tell me how you find the x and y positions of 'shell' on the actual screen.

Absolute Center
Can someone tell me where I can downlaod the html template for Absolute Center (Flash 5)? I recently did a clean start on my computer and misplaced the download.

::relative Or Absolute::
in action scripting is relative path, or absolute path? In html you use relative and its easier, but in flash is it any better?

Thanks
n

sorry ill stop with the dumb quesions soon!

Absolute # Values
Does anyone know how to get the absolute value of a #???

nauhs

Absolute Middle
How can i put mi swf in the absolute middle of the web page,

my file is 800 x 600 and i wanna put in the absolute middle of a 1024 x 768 window

thanks

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