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




Xml Read From Dynamic Location Or Web Location



hello, i am working on a site which uses a flash menu i was handedi have never worked with flash, but i suspect my problem is really easy to solvethe flash menu uses an xml file to generate, it works fine as long as one stays at the top-level dir of the site, say http://www.example.com/when someone enters a page, say http://www.example.com/test/ the menu stops working, being unable to read the xml which is hardcoded to be in the same directory as the page it's called from (menu.xml is in /)i must say that the locations visible to the browser are not real, everything non-top level in http://www.example.com/test/page/ is just mod-rewrite, thus none of the directories test or page really existi can see the reason why flash looks in the same directory as the one the client requested for the file (instead of looking at the same dir locally in example), but i can't seem to find a workaround to fix the menu myself without touching the flash code, so the two solutions i thought of:1. is there a file_exists function i could use to make the flash recurse upper-level directories until the menu finds the xml file? as in:quote:var menufile = menu.xmlwhile (!file_exists(menu.xml)) { menufile = '../' + menufile}obviously this is not real code2. is there a way to open the xml from a web location and not from a static path relative to the swf itself?i googled for both but i could not find a clean or satisfying solution for either.. any answer on those and/or any other recommendations for a workaround would save me



Adobe > ActionScript 3
Posted on: 01/23/2009 06:47:14 PM


View Complete Forum Thread with Replies

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

How To Read The Location From An Variable In A Url ?
Hi guys,

I'm creating a flash photo gallery reading pics from xml data... And I have two questions...

1. Can I use the same swf file an unlimited amount of times, but each one reads a different xml file, to display the photos???
This is for a CMS (joomla) im building and I need to embed the same swf file in many content items, but each one needs to display a different set of pictures.

2. If #1 above is possible, how then would you pass from a url to the flash movie the location of the that xml file?

Thanks in advance!

How To Move An Object Slowly And Smoothly From Location 1 To Location 2?
Hi,

I am new to ActionScript. I wish to use ActionScript to move an object slowly and smoothly from location 1 to location 2.

I learned that I can use the following to move an object to location 2 (x2, y2):

mThisObject.x = x2;
mThisObject.y = y2;

However the object just "swift" from location 1 to location 2, not moving slowly and smoothly from location 1 to location 2.

Could some experts here provide a guideline for me?

Thanks and best regards

Alex

How To Read The Location From An Xml File In A Variable In A Url ?
Hi guys,

I'm creating a flash photo gallery reading pics from xml data... And I have two questions...

1. Can I use the same swf file an unlimited amount of times, but each one reads a different xml file, to display the photos???
This is for a CMS (joomla) im building and I need to embed the same swf file in many content items, but each one needs to display a different set of pictures.

2. If #1 above is possible, how then would you pass from a url to the flash movie the location of the that xml file?

Thanks in advance!

How To Read Browser Location Url From Within Flash?
Strangely enough I cannot find any information on how to detect or read an information on the browser that embeds a Flash movie. I need url/location - the one that is showing in the browser address bar - not loaderURL. Would be nice to be able to read type of browser, etc. I need to do it without employing JavaScript.

Does anyone knows where this information resides in Flash 9/AS3?

Thank you.





























Edited: 06/20/2008 at 03:21:16 PM by Andrei1

Want To Read Browser Location And Pass To Flash
I am having hard time. all i want to do is read the browser location and pass it as a variable to flash

Seems easy and i downloaded an example that really did not suit my needs

TM
www.tidalwaves.com

Location-location Movement
Well... I'm working on a new game, which is sort of like a pokemon/golden sun etc. style RPG, but isn't tile-based. I have been setting up the actual moving from one screen (location) to another, and it all goes fine if i have just 3 arranged like this:
<1><2>
<3>
but if i add a fourth below screen <2> it all suddenly goes haywire.
move right from <1> and u end up in <4>, move left from <2> and you end up in <3>, move up from <3> and you end up in <2>.... you get the idea. can anyone help?
this is my code:

ActionScript Code:
if (grim._x<0) {
    grim._x = 306;
    if(bg._currentframe=2) {
        bg.gotoAndStop(1);
    }
    if(bg._currentframe=4) {
        bg.gotoAndStop(3);
    }
}
if (grim._x>306) {
    grim._x = 1;
    if(bg._currentframe=1) {
        bg.gotoAndStop(2);
    }
    if(bg._currentframe=3) {
        bg.gotoAndStop(4);
    }
}
if (grim._y<0) {
    grim._y = 212;
    if(bg._currentframe=3) {
        bg.gotoAndStop(1);
    }
    if(bg._currentframe=4) {
        bg.gotoAndStop(2);
    }
}
if (grim._y>213) {
    grim._y = 1;
    if(bg._currentframe=1) {
        bg.gotoAndStop(3);
    }
    if(bg._currentframe=2) {
        bg.gotoAndStop(4);
    }
}

('grim' is the character and 'bg' the set of locations, each location set on a different frame)

Dynamic Menu W/ Location
I need some help figuring out how to accomplish something.

I have various MC on the stage all with a general InstanceName. (Oranges. Apples, Grapes...)
Then I have an XML file which loads data to be used in the movie. The XML looks like this:


PHP Code:





<xml>
<object type="oranges">
        <name>large</name>
        <stat1>""</stat1>
        <stat2>""</stat2>
</object>
<object type="oranges">
        <name>small</name>
        <stat1>""</stat1>
        <stat2>""</stat2>
</object>
<object type="apples">
        <name>red</name>
        <stat1>""</stat1>
        <stat2>""</stat2>
</object>
...
</xml> 







So I am looking to load the XML data and then put a menu with the name characteristic under the specific title.
I have done some XML loading, but nothing like this. I am not quite sure how to start.
Duplicate a MC with a dynamic textbox for each name, and then somehow sort it to each different appropriate MC (apple, oranges, grapes...) depending upon the type value?

I have included a diagram - as I am probably quite unclear.

Thanks for any help you can provide regarding this!

[CS3] Loading A Dynamic Location By Html Var
hello there,
i have some problem...

how can i load location from var in html?
this is the html code that load the flash


Code:
<div align="center" id="flashcontent" class="virtual">This content requires <a href="http://www.adobe.com/go/getflashplayer/">Adobe Flash Player 9</a> and a browser with JavaScript enabled.</div>
<script type="text/javascript">
var so = new SWFObject("vrTapis/pano.swf", "pano", "750", "350", "9", "#FFFFFF");
so.addVariable("xml_file","vrTapis/tapis.xml");
so.addParam("allowFullScreen","false");
so.addParam("allowScriptAccess","sameDomain");
so.write("flashcontent");
try{
window.document["pano"].focus();
}catch(err){
//Do nothing
}
</script>

this is the AS that load the xml file


Code:
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("google_AD.xml");
i want to get a thing like that


Code:
xmlData.load("$var/google_AD.xml");
how i'm doing that?
that the $var load the location from the HTML page.

thanks allot

Loading A Dynamic Location By Html Var
hello there,
i have some problem...
how can i load location from var in html?
this is the html code that load the flash

Code:
<div align="center" id="flashcontent" class="virtual">This content requires <a href="http://www.adobe.com/go/getflashplayer/">Adobe Flash Player 9</a> and a browser with JavaScript enabled.</div>
<script type="text/javascript">
var so = new SWFObject("vrTapis/pano.swf", "pano", "750", "350", "9", "#FFFFFF");
so.addVariable("xml_file","vrTapis/tapis.xml");
so.addParam("allowFullScreen","false");
so.addParam("allowScriptAccess","sameDomain");
so.write("flashcontent");
try{
window.document["pano"].focus();
}catch(err){
//Do nothing
}
</script>
this is the AS that load the xml file

Code:
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("google_AD.xml");
i want to get a thing like that

Code:
xmlData.load("$var/google_AD.xml");
how i'm doing that?
that the $var load the location from the HTML page.
thanks allot

Running Dynamic Movies Based On Location?
Ok bare with me, I've had a slightly crazy idea ... and I don't know whether it's possible or not.

I'm like to try and run a dynamic Flash creative that will include the viewers town/location in a dynamically generated field. So for example, the content would say something like:

"Such and such a band coming to [b]London[/B[" for all those people in London, but

"Such and such a band coming to Reading" for all those people in Reading.

Is this actually possible? And if so how would I go about doing it? Can you get this sort of information from a users IP address or would I have to go about finding it from some other place?

Any suggestions at all would be REALLY welcome.

Thanks,

Flash 8 Input/Dynamic Textbox Location Varies
So I'm working with Flash 7/8, and I have some dynamic/input type text boxes. These boxes are identical copies of each other in terms of size.

When I use Flash to test the program these appear exactly as they should, however when I publish it and test it a few of the textboxes decide to slightly change their location. I have checked and these boxes have the exact same X/Y location where needed, yet they still move a few pixels to the right or left occasionally.

What could be causing this? Thanks for any help.

Controlling Clip Location With Other Clip Location
That title was admittedly confusing...but I don't know a better way of putting it. I want to create an effect like is on http://www.lennon.net/familytree/familytree.html The small map in the right hand corner controls the large map in the middle. I have a version that is a little bit different, but essentially the same. It has a clip in the middle (mine is a drag and drop instead of having scrolling buttons), and it has a zoom in and out function. The zoom is where I get completely lost because I don't know how to relate the two objects with the correct equation especially when the size will be changable. If anyone can point me to a tutorial or another thread that discusses any of this, that would be fantastic...I don't expect you to write all of the script for me, but just point me in the right direction.

Thanks.

Location, Location
I have a cd presentation where I have loaded an external .swf into scene 4 of my main movie in a new layer using :

on (release) {
loadMovieNum ("indo.swf",1);
gotoAndPlay ("Scene 4", 2);
}

The .swf positions it self as default in the top left hand corner. I have tried to repositioning it by adding:

on (release) {
loadMovieNum ("indo.swf" , 1);
_level1._x=350;
_level1._y=275;
gotoAndPlay ("Scene 4",2)
}

It still shows the .swf in the top left corner. Is this the right action script in the wrong palce or the wrong action script in the wrong palce?? I want the .swf to play roughly in the centre of the screen. Any suggestions.....
Thanks.

Location, Location
I have a cd presentation where I have loaded an external .swf into scene 4 of my main movie in a new layer using :

on (release) {
loadMovieNum ("indo.swf",1);
gotoAndPlay ("Scene 4", 2);
}

The .swf positions it self as default in the top left hand corner. I have tried to repositioning it by adding:

on (release) {
loadMovieNum ("indo.swf" , 1);
_level1._x=350;
_level1._y=275;
gotoAndPlay ("Scene 4",2)
}

It still shows the .swf in the top left corner. Is this the right action script in the wrong palce or the wrong action script in the wrong palce?? I want the .swf to play roughly in the centre of the screen. Any suggestions.....
Thanks.

This.location();
In flash MX I was wondering how to get tell flash to return the current URL location.

For example in php the var $PHP_SELF would return the current URL location. Or in javascript it would be something like this.location.

Does flash MX have some sort of function that would return the current URL? Thanks in advance..

Location Chk
Hello,

how can i know if my swf file is loaded on my domain name and if its not i wish to know how to redirect to my domain name

thank you for any input,
George

Get Location Of MC
I am unsure how to make an MC appear at the location of another MC, I am unsure how to put it on the MC without interfering with the MC's other animations for example if going left, play left animation etc etc, or if that is even the proper way to do it,
unless there is a simple way Get MC coordinate command?

and if so how to put it on a specific part of the MC

Location Of A Hit
Hi,

I'm doing some physics simulation work, and I want to be able to find tangent lines to points of collision for arbitrary shapes. I'm thinking about doing this by manually trying to find points on the boundary lines of the shapes near the point of the collision. However, at this point I don't even know of a simple way to get the coordinates of where a collision happens (for a hitTest collision with another clip as an argument). I'd appreciate any suggestions for this. Thanks.

X And Y Location Between MCs
I want an MC that will remain locked within the bounds of another MC's perimiter once its dragged in. To do this, I set bounds as follows below:

this.startDrag(false, _parent._parent.PL_Drop_Zone._x-6, _parent._parent.PL_Drop_Zone._y-40, _parent._parent.PL_Drop_Zone._x-6, (_parent._parent.PL_Drop_Zone._y+_parent._parent.P L_Drop_Zone._height-60));

Two questions:
1)
To get the line above, I spent some time tweaking, as for some reason

_parent._parent.PL_Drop_Zone._y

didn't exactly mean the top of the other MC (where the other MC is PL_Drop_Zone).

Why did I need to do this tweaking? Why does the difference of the upper bounds and lower bounds of the PL_Drop_Zone not match the height of it?

2)
I have duplicates of the original MC I want to move. I have found that their location determines the bounds also. For example, after I tweaked the above line to display correctly, I put the same code in a duplicate movie, positioned right below the first one. It moves the bounds down just a little, equal to it difference in position relative to the first MC.

Why would an MC's position affect the startDrag boundaries, if its properties are not used in the actual bounds?


Sorry for the longwinded explanation! Even a link to a page explaining coordinates and MC location properties could be helpful.

Thanks!

Location Of The Pop Up
Hi!
I just have one question is there a way to give the pop up window loacation where on screen it has to pop up....

CSS Var Location?
How do you change this code so that it works when the swf timeline its on, is loaded into a movieclip on a main swf stage (_root.loadarea)

It works fine on its own but dont when loaded into the loadarea mc.


Code:
var format = new TextField.StyleSheet();
var path = "http://www.kirupa.com/developer/mx2004/code/flash.css";
var quick = "<br><p class='one'>The quick Kirupa jumps over the lazy dog.</p>
format.load(path);
format.onLoad = function(success) {
if (success) {
output.styleSheet = format;
output.text = quick;
} else {
output.text = "Error loading CSS file!";
}
};
Also can someone alter it for text that's being loaded in from txt file?!.....ta!

HELP : X, Y Location
Hello,

I have a MENU that only plays if an INVISIBLE BUTTON is hovered. However, I wanted that there will be no invisible buttons but when the MOUSE moves around the entire movie area, it will play the MENU.

Any tutorial for this?


Thanks

CSS Var Location?
How do you change this code so that it works when the swf timeline its on, is loaded into a movieclip on a main swf stage (_root.loadarea)

It works fine on its own but dont when loaded into the loadarea mc.


Code:
var format = new TextField.StyleSheet();
var path = "http://www.kirupa.com/developer/mx2004/code/flash.css";
var quick = "<br><p class='one'>The quick Kirupa jumps over the lazy dog.</p>
format.load(path);
format.onLoad = function(success) {
if (success) {
output.styleSheet = format;
output.text = quick;
} else {
output.text = "Error loading CSS file!";
}
};
Also can someone alter it for text that's being loaded in from txt file?!.....ta!

Mc Location Help

Hey everyone I have a scroller which works fine but im looking to update text in a dynamic text box depending on the position of the scrollbar movie clip

im guessing that i need to use something like:

if (dragMC._x = 100){
title_txt.text = "hello";
}

i know that is terribly sloppy but im new to this xpos stuff

anyone have any ideas on this? any input greatly apreciated!

download file: www.vectorsesh.com/printscrollertest.fla

CSS Var Location?
Hey up all!

Ive got this code:


ActionScript Code:
var.format = new TextField.StyleSheet();
var.path = "http://www.mywebsite.com/flash.css";
var.quick = "<br><p class='one'>The quick Fox jumps over the lazy dog.</p>
format.load(path);
format.onLoad = function(loaded) {
    if (loaded) {
        output.styleSheet = format;
        output.text = _global.quick;
    } else {
        output.text = "Error loading CSS file!";
    }
};


Which is loading in the var.quick as CSS formatted txt. which works fine when tested at _root level....but the swf file I have it in is being loaded into:


ActionScript Code:
_root.loadarea


Which makes it stop working. Ive figured its down to the level where the variables are being stored....but Im having a bit of a thick moment and forgotten how to target them with this code!

Any ideas?

Also....if I want to CSS format some dynamic txt loaded in from a txt file....what do I need to change/add above?

Thanks all!

Specifying Location For LoadMovie
I'm using a loadMovie script to load a new .swf file on level 1. It works but it loads the newmovie in the top left corner of screen (or over the top left corner of level 0 movie) I want to specify where I want the movie to load on the screen.. How do I do that....

help please..

thanx....

Location Information
Hi a friend told me that I could find a flash tutorial that consists of working with databases by using ASP i was just wondering if someone new where it was i can;t seem to find it.

How To Loadmovie At A Particular Location In A MC?
I have been able to use loadmovie option and play an external swf file over my current movie, it loads the movie and plays it, with the source movie bkgd behind it.
But it plays the external swf on the left hand top corner of my original MC. I want the movie to play at a specific location and also in a smaller size than its original file.
How do I specify that in the actionscript ?

Location Value As A String?
heres what I have.

a text box value in this case b1 on _level0
ontop of that is a movieclip whose location is _level0.b1
this is repeted 38 times so the next text box is b2 movie clip _level0.b2 etc etc...

What I want to do.

So I only need one symbol for the movie clips that go ontop of the textboxes im trying to read its location, and from that i can get a value for which text box it represents.

What I have done.

in the movie clip is the following action script

location = this;
day = location.toString();
day1 = day.indexOf("b") +1;
gridday = day.slice(day1);

for some reason it fails from day = location.toString(); instead of the variable day being "_level0.b2" its "[Object object]"

This i cant understand, as the variable location does equal _level0.b1 so why once made a string does it change to [Object...

Any help most appreciated on how i can solve this problem, or maybe another soloution to what id like to do.

Thanks everyone!!

Danny

Location - Get Url - Pop Up Size
my flash button suppose to pop up a window with width=320 height= 240 with no status or toolbars or menubars.
and the file that the button is link to is in a sub folder. so wats the actionscript? this is wat i have below. but i cant load this up cos the link is local harddisk.


------------------------------------------------
getURL ("file:///C|/Sutzdesign/Web projects/mila closet/htdocs/tvc/tvc.html", "_blank ");
------------------------------------------------

please help!


thanx

Movie Location
im using the loadMovie action to load an swf, but it always loads it at 0,0. how can i change this. also, ive seen this atachmovie method around but dont see how it works. i would preferable like to be able to have one swf with several mc, then from another swf, load any mc of my chossing fromt he first. which is a better way? and how can i tell it where to go?

Random Location
hi guys,

I am making the following movieclip

several buttons and a plane which flies above a map.

I want to following to happen

I click on button 1 and the plane goes to location 1
I click on 2 and the plane goes tol ocation 2
I click on 3 and the plabe goes to....yes to location 3
I click on 4 and the plane goes to location 4
I click on 5 and the plane goes to location 5
etc..

it's easy to make if the user will use the buttons from 1- 5. Unfortunately this is not going to happen...the user will go from 1-3-2-1-4-3-5 or something.
But I want the plane to fly to the correct location...from every point

Unfortunately I have NO clue on how to start...I downloaded MX trial version now ( i have Flash5 experience, but i am not a good programmer)

Can somebody help me on the way?

Thnx!
Joris


PS. if somebody has a wordl map that is vector based and is willing to share it with me....please let me know, still looking for it

External Swf Location
i want to load an external swf file in my project in a particual place on my stage for example on the right side... but i tried doing it and it resizes the stage according to the external swf's size.. how to over come that`?
urgent
thnx

Movieclip's Location
Hi all,
I would like to ask how i can get a x position of an object which reside in a movie clip to a global x position

Document.location?
Hi all

Is there a quick way in Flash 5.0 I can get the URL of the page the flash file is embedded in?

Thanks

Steve

LoadMovie Location
attached are the files.

I cannot for the life of my get the crew.swf to load into the movie clip at the right location. With or without quotes for 'target'.
Would it be that the movieClip has to have certain properties in order for another movie to be loaded into it?

Basically I am having a hard time positioning the movie in the right location. Thanks in advance everyone/anyone

LoadMove Location
okay, i have a movie "links" that is 400px tall, and i want to load a movie "player" that is like 60 tall at the bottom of the links movie.
i've made a button to load the movie and this is the scripting
with it:

on (release) {
loadMovieNum("player.swf", 1);
}

i dont know anything about levels at this point, except for what happens on level 0, thanks for your help






i had to edit this because i called the movie something different than i called it in the actionscripting. thanks again

LoadMovie Location
Is there a way to tell flash exactly where you want a loadMovie to be placed (ex x=35, y=45)

Using The Location Of The Mouse
i have this simple movie with a beem of light that i want to follow the mouse. Download it please and let me know a way i could do this. On the right side of the movie is where i want to have various buttons to be highlighted by beem.

SharedObjects Location
I have a customizable menu system using SharedObjects to store the x and y co-ordinates of the items. Now I read that the SharedObject is stored in C:Documents and SettingsusernameApplication DataMacromediaFlash

Now I had a look in that folder as well as the subfolders, and there is nothing that resembles it. As what type of file is it stored and what is it called?

Thanks

MC Location Control
i am kinda a newb at actionscripting, but i have experience in other program languages so bear with me

how can i make a frame in actionscript generate a random number out of only a selected few numbers (as in frames)?

ex.

mc plays frame 1, actionscript tells it to jump to either frame 5, 10, 15, 20, 25... etc. then it hits another actionscript frame which jumps to 5, 10, 15, 20, 25... etc. i am trying to get the matrix effect going with numerous characters

Mc Location In Movement
im trying to make a simple minimize and maximize buttons to a MC window. when minimized it moves to the top left, and back when maximized. The window can be dragged so i have to set it up so the _x and _y are kept before minimizing, so that when you mazimize it can go back to the same spot that you stopdrag()

heres what i got
//
//_root.itemAbout MC
//

onClipEvent(load)
{
//declair variables
var iSpeed = 2;
var iActualPosX = this._x;
var iActualPosY = this._y;
var locationX =null;
var locationY =null;

//location function
currentLocation = function(locationX, locationY){
locationX = itemAbout._x
locationY = itemAbout._y
}

//movement function
function fInverseX()
{
if (this._x != this.iActualPosX)
{
this._x += (this.iActualPosX - this._x) / this.iSpeed;
}
}

function fInverseY()
{
if (this._y != this.iActualPosY)
{
this._y += (this.iActualPosY - this._y) / this.iSpeed;
}
}

}

//initialize functions
onClipEvent(enterFrame)
{
this.fInverseX();
this.fInverseY();
}

//
//then on the minimize
//
on(release){
gotoAndStop("minimized")
//get current location
locationX=this._x;//should this be = trace(this._x)
locationY=this._x;//again?
currentLocation(this._x, this._y)
//change location
_root.itemAbout.iActualPosX = 70// Position u want on the X_root.itemAbout.iActualPosY = 50// Position u want on the Y
}

//
//and maxamize
//
on(release){
_root.itemAbout.iActualPosX = locationX;
_root.itemAbout.iActualPosY = locationY;
gotoAndPlay("open");
}

any help would be apprechiated

thanks
Kent Farst
noob

Goto Location Help
Can you guys take look at this FLA and tell me what is wrong with it?

Currently I have it set up to go to a certian point when the mouse is pressed.

However, I want the object to tween or slide to the location when pressed rather than jumping from point A, to point B.

Does anyone have an idea of how to do this?

Mouse Location
Hi all,

Hope someone can help with this one.

Im trying to get the mouse cursor to change it's position on the screen when a button is clicked and another scene appears on the screen.

So when u click the button, the mouse jumps to any other position on the screen instead of being on top of the button pressed.

any ideas?

Thank you all in advance.

Location Issues
i have made a movie with a button which loads another swf. how do i get it to appear in the same window? it appears in a seperate one and as allowscale is set to true its very annoying. Also, Is there any way of getting rid of the second movie when it is finished as it then jumps to an html page so there is no need for the flashplayer window anymore. im using flash mx

thanks

Specifying Location With Actionscript
I'm setting up a simple scramble activity.
I have placed the tiles properly on screen however when I test the movie they fall out of center.

I've tried to edit the size of the tiles in Actionscrip but still doesn't work.
How can I fix this problem?
Please see file attached.

Dani

Array Location
Where in an application such as an mp3 player should I put an array? Does it go in the first frame of the player movie?

Location Of Containing Document
We have the following script to determine wich navigation should be displayed in our flash movie. Unfortinatly the _url returns the location of the flash movie not the document that contains it. Is there any way to detirmine the location of the page in flash? This must work with players 4 and higher.

Thanks
RnK

navurl = substring(_url,29,4);

switch(navURL){
case navURL == 'mort':
case navURL == '/mor':
nav = 'mort';
break;
case navURL == 'chec':
case navURL == '/che':
nav = 'check';
break;
case navURL == 'elec':
case navURL == '/ele':
nav = 'elec';
break;
case navURL == 'loan':
case navURL == '/loa':
nav = 'loan';
break;
case navURL == 'auto':
case navURL == '/aut':
nav = 'auto';
break;
case navURL == 'inve':
case navURL == '/inve':
nav = 'invest';
break;
case navURL == 'memb':
case navURL == '/mem':
nav = 'member';
break;
case navURL == 'what':
case navURL == '/wha':
navurl = substring(_url,29,4);
if(navURL == 'comm'){
nav = 'community';
}else{
nav = 'new';
}
break;
default:
nav = 'home';
}


if(_framesloaded >= _totalframes){
gotoAndStop(nav);
}

Location, Scrollbars And The Like...
Quote:




<SCRIPT LANGUAGE="javaScript">

function Start(page) {
OpenWin = this.open(page, "CtrlWindow", "height=500,width=550,location=no,"
+ "toolbar=no,menubar=no,location=no,scrollbars=no,r esizable=no");
}

</SCRIPT>




Does anyone know the flash/Action Script equilivant? And also how can I assign the code to a button?

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