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




Load Movie Based On Explorer Address?



Hi!

I've got a question for all of you FLASH-masters out there.

I'm currently working on a website, based on ASP and a database. It loads the content on the page from a database.

Now to the problem. I've got a flash menu/image viewer at the top of the page. ( ex. When I klick on "About" the menu/movie clip shows an "About" image). The problem is that the website is based on only ONE page (default.asp) So, whenever I klick on a link, let's say "About" the page reloads and the About page is shown, BUT! the flash menu/movie is reloaded and moves back to the start of the timeline ( In this case the "welcome" image).

My question is: Is there a way to tell what part of the movie clip to be shown based on the explorer address, or is there another way around this problem?

I don't want to use frames on my website because then the scroller is "miss placed".

I hope I have explaind my problem fairly well, so you all can understan what the h*ll I'm talking about.

Thank you!



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 03-24-2006, 11:13 AM


View Complete Forum Thread with Replies

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

How To Load A Mc From Explorer Address Bar?
Hi

I saw some site that from adress bar ex. www.dmian.com?link=graphics loads the section or a mc in flash with name graphics


How is this possilbe or done!??


THnx a lot

No Explorer Task Bar, Address Bar Or Buttons
Can anyone please tell me how to create a movie that is played in explorer without showing the Explorer task bar, address bar and buttons (i.e. Back, Forward, Stop, Refresh, Home, etc.)? Also, How can I prevent the user from resizing the window? Finally, how can I make the movie autoplay if I put it on a CD?

Timeline Controlled By Explorer Address?
Hi!

I've got a question for all of you FLASH-masters out there.

I'm currently working on a website, based on ASP and a database. It loads the content on the page from a database.

Now to the problem. I've got a flash menu/image viewer at the top of the page. ( ex. When I klick on "About" the menu/movie clip shows an "About" image). The problem is that the website is based on only ONE page (default.asp) So, whenever I klick on a link, let's say "About" the page reloads and the About page is shown, BUT! the flash menu/movie is reloaded and moves back to the start of the timeline ( In this case the "welcome" image).

My question is: Is there a way to tell what part of the movie clip to be shown based on the explorer address, or is there another way around this problem?

I don't want to use frames on my website because then the scroller is "miss placed".

I hope I have explaind my problem fairly well, so you all can understan what the h*ll I'm talking about.

Thank you!

Absolute Address In Load Movie
sorry for the newbie question, using MX on mac 10.2.6

How do I do an absolute address. Say the file is "menu.swf", and the folder it is in is "source" and I am using the load movie command:

loadMovieNum("menu.swf", 5);

And the file that is loading it is "top.swf" and it resides just outside the "source" folder in the "all" folder.

all (folder)
top.swf
source (folder)
menu.swf

I just don't know what the correct labeling/mark would be ( / , _ " ) etc...

what would be the full load movie command for this example.

thanks in advance for this simple question.

Strange Code Appears In I Explorer Address Bar.
I have the following code which I shamelessly cut and pasted into a swf file (I want it to open an html window of desired size, etc.):

here is the code:
on (release) {
getURL ("javascript:window.open('http://www.yourdomain.com/yourpage.html','windowName','width=400,height=160, top=0,left=0,toolbar=no,scrollbars=no,resizable=no ,menubar=no,status=no,directories=no,location=no') ; void(0);");
}

When I click the button I get:

javascript:window.open('http://www.yourdomain.com/yourpage.html'
in the address bar.

Why?

Chris :-)

Strange Code Appears In I Explorer Address Bar.
I have the following code which I shamelessly cut and pasted into a swf file (I want it to open an html window of desired size, etc.):

here is the code:
on (release) {
getURL ("javascript:window.open('http://www.yourdomain.com/yourpage.html','windowName','width=400,height=160, top=0,left=0,toolbar=no,scrollbars=no,resizable=no ,menubar=no,status=no,directories=no,location=no') ; void(0);");
}

When I click the button I get:

javascript:window.open('http://www.yourdomain.com/yourpage.html'
in the address bar.

Why?

Chris :-)

Yahoo Email Address Brings Up Internet Explorer On Simple Mailto:
I can't get the Email window to come up without an Internet explorer window comming up with it. I'm using a get url action. example... xxxxxx@yahoo.com

Monitoring Load Movie In Internet Explorer ...
Hi,
Does anyone know if you can monitor .swf's that are loaded into a .swf in internet explorer?
E.g. you can see the status bar loading the main flash interface, but if another .swf is loaded into the interface using load movie, can you monitor its download progress in IE?
Any ideas would be great
Thanks
Tim

Load Movie Not Working In Internet Explorer
Strange, the movie works fine in flash but when I test it in the html page made in dreamweaver the load movie button doesn't work at all

Limiting Bandwidth Based On Site IP Address
Hi,

We have a number of sites with different bandwidth capacities ranging fron 256kbps pipes to 1G. We would like to cap the bandwidth used by FMS streaming to each site e.g. stream no more than 384kbps to a site with a 512kbps connection (based on the range of IPs at that site), to protect the performance of other apps sharing the connection.

Can this be done in FMS2?

Thanks!

Load Movie Based On Client's Time Of Day
Code:
if (myHour == 0 || myHour == 1 || myHour == 2
|| myHour == 3 || myHour == 4 || myHour == 5
|| myHour == 6 || myHour == 7 || myHour == 8
|| myHour == 9 || myHour == 10 || myHour == 11)
{loadMovieNum ("change_nav.swf", 1);
}
else if (myHour == 12 || myHour == 13 || myHour == 14
|| myHour == 15 || myHour == 16 || myHour == 17
|| myHour == 18 || myHour == 19 || myHour == 20
|| myHour == 21 || myHour == 22 || myHour == 23 || myHour == 24)
{loadMovieNum ("mission_nav.swf", 1);
}
stop ();
I have a SWF file with one frame with the actions above.
It won't load the external movies.
I'm not sure what I'm doing wrong.
Any help would be appreciated.
Thanks.

Load Movie Based On HTML Page
I have a movie that I want to call another movie into (using load movie) based on the HTML page the original movie is on.

For example, if movie1.swf is on music.html page, then the music.swf will be loaded into the movie. If movie1.swf is on home.html, then I want home.swf to load into the movie.

Is there a way to do this? I know I can call functions and extract variables from text files, but I am not sure what is the best way.

How To Auto-resize Swf Based On Viewer Internet Explorer
Hi,
I am new here.

May i know how to auto-resize swf based on viewer Internet Explorer?

How To Auto-resize Swf Based On Viewer Internet Explorer
Hi,
I am new here.

May i know how to auto-resize swf based on viewer Internet Explorer?

Getting Menu To Load Movie Clips Based On Conditions
Hi all - I'm trying to replicate a cool menu effect I saw on another website; it obviously involves movie clips communicating with one another based on which of them is loaded. You can see the basic effect in action here:

http://www.zerogny.com/zero_gravity_design_group.cfm

And now let me try to explain how I want to adapt it for my project.

What I want is to have four basic buttons - "about us," "portfolio", etc. - to kick off a movie clip that plays beside the button panel. If you press the "about us" button, a movie clip with an animated message "about us" unfolds upon the stage; when you click the "portfolio" button, however, the "about us" animation goes in reverse; when it has completely reversed, then the "portfolio" animation loads onto the stage.

So far, I have figured out how to load four movie clips (plus a fifth, default MC) onto the stage depending on which button is pressed; that's pretty basic stuff, I suppose, although it was hard for a newbie like me (see attachment). Eventually, each of these movie clips will have a "loading" animation that stops at frame 25. At frame 26, the frames are reversed so that, when played, those frames would show the animation "unloading" off the stage. At the current stage of my project, I have only added the "unloading" frames to the second button's action; of course, only the "loading" animation shows, no matter which button is pressed.

To take my movie to the next level, I need help in figuring out how to tell the next button pressed, say "portfolio," to tell the "about us" movie (if that's the one occupying the stage) to play its unloading sequence from frame 26 and then (at frame 52) load the "portfolio" sequence or whichever sequence has been been cued by the user to enter the stage. I know this is an issue involving variables and conditions, but I am such a new newbie I can't figure out how to make this work. I'd surely appreciate any help out there; I know this issue has been dealt with before, as so many menus seem to use the effect I'm after.

Load External Text File (name Based On SWF Movie Name)
Hello,

I am trying to load external text based on the name of the SWF movie. I need to create several SWF files, which will each function as an independent quiz question. Instructors will edit the TXT files without having to work in Flash. If the SWF is named "1" I'd like it to load text dynamically from a text file named "1". This will save me from hard coding what text file will be loaded each time. There could be hundreds of questions total in the end. All of the files will need to exist in one directory.

I managed to trace the name of the SWF file using:

function getFileName(fileUrl) {
var fileName = fileUrl.substr(fileUrl.lastIndexOf("/")+1, fileUrl.length);
return unescape(fileName);
}
trace(this.getFileName(this._url));

Any ideas how I drop the ".SWF" extension and store this file name value as a variable? How can I tell flash to load [variable].txt instead of a known txt file?

Any help would be greatly appreciated. Thank you for your time.

Load Random Movie Based On Interval Time
Hey all, Does anyone know how to correctly load a random movie into an MC based on an interval time? For example: I have three movies. 1.swf, 2.swf and 3.swf that will load into an MC every 10 secs. It should be a completely random event not based on a page refreash. I have attached the code that I'm working with below. The issue that I'm having is that sometimes a movie will load in repeatedly (2-3 times). The movies are roughly the same size.

function randommovie() {
filename = ["1.swf", "2.swf", "3.swf"];
path = "banners/champions/";
i = filename.length;
k = Math.floor(Math.random()*i);
loadMovie(path+filename[k], _root.championStage);
}
randommovie();
setInterval(randommovie, 10000);

Load Random Movie Based On Interval Time
Hey all, Does anyone know how to correctly load a random movie into an MC based on an interval time? For example: I have three movies. 1.swf, 2.swf and 3.swf that will load into an MC every 10 secs. It should be a completely random event not based on a page refreash. I have attached the code that I'm working with below. The issue that I'm having is that sometimes a movie will load in repeatedly (2-3 times). The movies are roughly the same size.

function randommovie() {
filename = ["1.swf", "2.swf", "3.swf"];
path = "banners/champions/";
i = filename.length;
k = Math.floor(Math.random()*i);
loadMovie(path+filename[k], _root.championStage);
}
randommovie();
setInterval(randommovie, 10000);

Load Variables From Address Bar
i founded out, there is a way to load vars from addressbar like ../movie.swf?user=fphilipe .
i don't know how it works but i know it works. ultrashock uses this in the main page:




<param name=movie value="homepage-new78.swf?initData=Hey+Fphilipe%2C+welcome+back+%21%21%21%0AYour+last+visit+was+on%0A2004-01-19+18%3A32">

does somebody knows how it works???

Load Variables From Address Bar
is there a way to load variables from the address bar?
i mean like "../flash.html?name=BlaBla&email=blabla@bla.com"
it shoulds appear in the flash movie inside the html in dynamicfields.

Load Variables From Address + Username Add
i am trying to make a login for my site and i have the save text files to my server and that takes what ever you put in as your username and save a txt file that is username.txt so if you put in steven as your username it would save steven.txt

Any way i have that working and i need a login but i cannot get it to look somewhere on my server and what ever is in username it will load up that file +".txt" can you help me get it looking in say /members/username add ".txt"

[F8] AS2 Load A Variable Via IP Address Link?
Hi All

I'm currently having a problem with loadVariables.
Is it possible to load a variable in a text file into flash player via the IP address to the text file?

i.e.: loadVariables ("\172.17.62.5animation$FSCOMMANDkey.txt", this);
The above code does not work

================================================== ==============
What I'm trying to do:
I have developed Flash projects for a client Company that are run via flash exe's.
These projects sit on a network server. This company is now concerned about the security of these projects.
If someone should copy the files off the server they should not play.
I thought of a solution that has a text file on the server with a variable that is loaded into the player at runtime. The link to this txt should be absolute, so if the folder is copied off the server and taken off site the flash player will no longer be able to find the network folder with the text file.

Does this required php, asp etc?
Or is there another way to load a variable into flash player from a IP addressed folder?

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

PATH on server:
\172.17.62.5animation$FSCOMMAND


Txt file text is:
&Keylock=786


The code in my flash file:

loadVariables ("key.txt", this); //load the Keylock variable into flash

trace(Keylock);//trace "786"

KeyDisplay=Keylock//Dynamic textbox to show 786 on screen

LockVar = parseInt(Keylock);//Set LockVar variable to Keylock value and convert 786 string to int

trace("Lock = "+LockVar);
//


if (LockVar == 786) {//if statement checks value and sends the playhead accordingly
gotoAndStop("Menu", 1);
} else if (LockVar != 786) {
gotoAndStop(20);
}


Thanks for your time and assistance it is appreciated
-Aslam

Load A Variable Via IP Address Link?
Hi All

I'm currently having a problem with loadVariables.
Is it possible to load a variable in a text file into flash player via the IP address to the text file?

i.e.: loadVariables ("\172.17.62.5animation$FSCOMMANDkey.txt", this);
The above code does not work

================================================== ==============
What I'm trying to do:
I have developed Flash projects for a client Company that are run via flash exe's.
These projects sit on a network server. This company is now concerned about the security of these projects.
If someone should copy the files off the server they should not play.
I thought of a solution that has a text file on the server with a variable that is loaded into the player at runtime. The link to this txt should be absolute, so if the folder is copied off the server and taken off site the flash player will no longer be able to find the network folder with the text file.

Does this required php, asp etc?
Or is there another way to load a variable into flash player from a IP addressed folder?

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

PATH on server:
\172.17.62.5animation$FSCOMMAND


Txt file text is:
&Keylock=786


The code in my flash file:

loadVariables ("key.txt", this); //load the Keylock variable into flash

trace(Keylock);//trace "786"

KeyDisplay=Keylock//Dynamic textbox to show 786 on screen

LockVar = parseInt(Keylock);//Set LockVar variable to Keylock value and convert 786 string to int

trace("Lock = "+LockVar);
//


if (LockVar == 786) {//if statement checks value and sends the playhead accordingly
gotoAndStop("Menu", 1);
} else if (LockVar != 786) {
gotoAndStop(20);
}


Thanks for your time and assistance it is appreciated
-Aslam

Load A New Movie At A Certain Frame Based On Current Frame?
hello, i have a 36 frame movie clip

i have a button that is available throughout the 36 frames

if i am on frame 15 of the main movie, can i load in a new movie that opens on it's own frame 15?

whichever frame i am on in the main movie, i want the second movie to open to the matching frame number as the main movie

if this is possible, how would i do it? thanks

Load Variables From What The User Types In Address Bar
Hi,

I was just surfing and suddenly I found this site... www.youaremyfriend.com

How this site function really surprised me and I really want to learn how I can do the same thing myself. I hope some of you help me

What the site does is that you can put your first and last name before the domain name in the address bar and the flash file will use your enterd first and last name in the playing animation! Try this... www.Jack.Smith.youaremyfriend.com

Have any idea how it works?
Hadi

Swf Won't Load In Explorer
I am testing a movie and it loads fine in opera and netscape and firefox but when with explorer the preloader does not come up, only an empty space. Even if I type in a direct route to the swf such as http://mysite.com/introvideo.swf nothing happens. All the other browsers work fine. Any ideas what is causing this?

thanks.

HOW TO : Load Email Address From A .txt File For A Mailto Button
I have been trying to do this for a while and have fallen on my face.
I can't get my head around loadvars..... can't spot similar anywhere on the board, so here goes....

i wish to have a button which on release loads an email address from a text file, then sends using on(release); "mailto:email@email.com"

So that the recipient can be altered in a text file by changing the variable there, not in the flash file.

any ideas how i do that !?!

thanks very much for any hints in advance.... C

Load Variables Email Address From Text File Anyone?
I have the code below attached to a movieclip which i am attempting to use to call in an email address from a text file. The idea being that the textfile can be altered by a luddite, and the recipient email adress changed in the flash file.... but i'm not doing too well...!

The best i have achieved is undefined email or garbage.

all help greatfully received. thanks.

___________________________________
on (rollOver) {
this.gotoAndPlay(2);
}
on (release) {
loadText = function(){
loadText = new LoadVars();
loadText.load("email.txt");
loadText.onLoad = function() {
emailAddress = this.eAddress;
}
}
submit.onRelease = function(){
getURL("mailto:"+emailAddress);
}
}
on (rollout) {
this.gotoAndPlay(1);

Ie Explorer Will Not Load Thumbnails Correctly
sorry to bother you all with this, yet again, but nobody seems to have an answer...In mozilla, the thumbnails on my site work fine. But in IE , they do not scale. Any thoughts on why that is? The photos load from an XML file. each "gallery" is it's own swf, on _level1....the loader for main images is working fine in all browsers. Any help to resolve this annoying piece would be great.

www.foldedmap.com ...click "recent" for an example of the above problem

Scene Won't Load In Internet Explorer, Only In The .swf
Hey everyone:

I'm in a bit of a bind here. My site performs drastically different when it is run in Test Movie (.swf) and when it is run through Internet Explorer.

It has 3 scenes in the following order and no externally loaded .swfs:

Scene 2 (Preloader)
Scene 3 (Intro)
Scene 1 (Content - I originally began with this one but later added the Preloader & Intro)

When I test the movie from Flash CS3 or run the exported .swf, it runs through with no problems. However, as soon as I export it and run it in Internet explorer through .html file, it will only load the preloader, which then transitions to the intro, and then I get a white screen for Scene 3. I cannot get the main content scene to play at all.

It seems the problem starts with the code to embed the .swf into the .html page. If I run the .swf through internet explorer, it is fine, but then it expands to fill the whole page. I think it wouldn't be wise to run just the .swf online.

I would greatly appreciate any help in this manner!

Thank you,
Adam


*** Solution listed below

[F8] Odd Flash Load Behavior In Internet Explorer
Have any of you seen this behavior? In firefox it works fine but in Internet explorer the flash images does not load until you move the mouse over the flash. I tested it with and without the javascript wrapped around. It is most likely related to my actionscript.

here is the website

http://www.death-by-design.net/product.aspx?c=tshirts

thanks for any tips,

-matt

Jpegs Wont Load With Internet Explorer
Hi, I am currently programing my portfolio site and I have tried a couple different ways of loading Jpegs from an images folder into an empty movie clip. Both worked sucessfully everywhere but PCs, which I hear are kind of important. First I tried the basic LoadMovie ("jpegmane.jpg", movieclip_mc) and that was unsuccessful. Next I tried the following code:

ink_mc.cacheAsBitmap = true;
mask_mc.cacheAsBitmap = true;
ink_mc.setMask("mask_mc");



var loader:MovieClipLoader = new MovieClipLoader();
var listener:Object = new Object();

listener.onLoadComplete = function(target:MovieClip) {
trace("LOAD COMPLETE");
target._parent.load_text._alpha = 0;
//target._parent.play();
}

listener.onLoadProgress = function(target:MovieClip, bL:Number, bT:Number) {
trace("PROGRESS: " + (bL / bT) * 100);
}

loader.addListener(listener);

print_btns.print1.onRelease = function() {
loader.loadClip("images/print_philroy.jpg", content_mc);
_root.ink_mc._alpha = 0;
_root.gotoAndStop("print");
}


I haven't had any problems like this before with PCs. Any suggestions out there?

THanks in advance.

Brandon

Dynamic Flash Images Don't Load In Intenet Explorer Until Mouse Over
Has anyone ever seen this behavior before where dynamic flash Images don't load in Internet Explorer until you place the mouse over the flash object? It works fine in Firefox. I am thinking it must be the way I wrote the actionscript. I tested it with and without the javascript wrapper to prevent users from needing to click on the object to activate it.

Here's the page to show you an example...
http://www.death-by-design.net/product.aspx?c=tshirts

Thanks for any leads or information on this issue!
-Matt

Website Doesnt Load In Stupid Explorer Until Refresh Is Hit, Fine On Firefox...
What is IE's deal? Its pants..

www.elbowspin.com/raff

Fine in Mozilla, but when IE is used you have to hit refresh to get the content loaded? Is there anyway to do a page refresh command from actionscript?

Thank you...

Problem Getting Flash/Director Animation To Load In Internet Explorer [renamed]
I am SUPER new, so please don't laugh at me...

I have created a VERY simple animation in MX2004 and placed it in an HTML file using Dreamweaver. When I visit it using Mozilla Firefox, it works fine. However, when I visit the site using Internet Explorer, it shows the Macromedia Shockwave "loadin bar looking" screen and never loads and doesn't display the animation. Please help me, I'm dumb! Thanks!

J

How Do You Load A Xml Based Swf Into A Swf?
how do you load a xml based swf into a swf?
do i need to make a movie clip and call it "holder" or "movieClipLoader", please help me

function loadingFinished(target:MovieClip):Void {
var monoslideshow:Object = new Monoslideshow(target, "monoslideshow.xml");
monoslideshow.start(Stage.width, Stage.height, true);
}
var listener:Object = new Object();
var movieClipLoader:MovieClipLoader = new MovieClipLoader();
listener.onLoadInit = loadingFinished;
movieClipLoader.addListener(listener);
this.createEmptyMovieClip("holder", this.getNextHighestDepth());
movieClipLoader.loadClip("monoslideshow.swf", this.holder);

Help. Dynamic Movie Targeting Address.
here's my problem:

i need goTo to concatenate and becom part of a movie target address in a few different movie addresses see below.

i think it has to be somthing like this sample (unrelated to my stuff below just a sample from moock asdg)
clipcount = "B"
clipA["clipB"+clipcount].stop // invoke method on clipB

i have a function that gets a string passed to it when it is invoked on the main timeline like this:

code:
goTo = "sect2_1";
_level0.doWhat(goTo);

the function doWhat does a bunch of stuff and will do it to different movies based on goTo. i need goTo to concatenate and becom part of the movie target address in a few different ways:


code:

function doWhat(goTo) {

if (goTo == "sect2_1") {
//set repalaceWith to be a path to this sections transControl
//instead of "_level0.sect2_1.holder.transControl"
//i need "_level0.the sting of goTo.holder.transControl"

replaceWith = _level0.sect2_1.holder.transControl;

//put it on top
_level0.swapit();

//setHistory
_level0.setHistory(replaceWho);

//load or play the new section
if (_level0.sect2_1.imThere == false) {
trace("loading "+goTo); //outputs: "loading sect2_1"

//load the movie
//_level0.sect2_1.holder.loadMovie("sect2_1.swf"); <- **this works
[_level0.goTo+".holder"].loadMovie("sect2_1.swf"); //<- not working why?

//show the preloader
preloader();
}

if (_level0.sect2_1.imThere == true) {
//set transition to play through because the movie is loaded
//_level0.sect2_1.transition = "go";

//make them _visible alphafader_as makes 'em _visible false after _alpha hits zero
_level0.makeVisible(replaceWith);
replaceWith.gotoAndPlay("fadeIn");
}
}
}

thanks so much if you can help me with this!
--grish

Address The Frames In A Movie Clip.
Hi there Could someone please help me.

On the main timeline there is one frame with a movie labeled mc. Inside the movie there is 5 frames each with a keyframe and each frame holds a picture. The first frame has been labeled "test"
On the main time line I have a button.
For the button I have put the script
on (rollOver) {
gotoAndStop("test");
}
It doesn't work.
I tried this code.
on (rollOver) {
gotoAndStop("mc.test");
Doesn't work.

If I put the button in the movie it works but I need to have the button on the main time line.
How do I address the frames in a Movie clip.
I'm using script 2

Thanks for your ideas
Tiaka

Using A Variable Name To Address A Movie Clip
I'm stuck on how to refer to a movieclip's name through a variable.

If I set root variable "currentMovie = bigRed_mc;", how can I use that variable name to instruct the movie to address the movie clip name stored in said variable?

for instance "_root.currentMovie.gotoAndPlay("destroy");" wouldn't work because it would simply look for that movie clip name and come up empty.

I thought "_root[currentMovie]gotoAndPlay("destroy"); would work, with or without parenthesis, but it comes up with syntax errors either way. Can you use a variable to store and refer to a movie clip name and it's properties? If so, what is the proper syntax?

Thanks in advance for any help!

How Find The Address Of The Page A Movie Is In?
I'd like my movie to be able to find what page it is sitting in so it can change pictures depending upon the section (it's a HTML hybrid - I don't want to have a different Flash for each section)

Any way to accomplish this at all? Would cookies be the way to go?

How Do I Make A Little Picture Come Up Next To The Address In The Address Bar?
Please can someone tell me how to get a picture coming up next to the address bar in Internet Explorer.

I am designing a website for a company and they really want me to do this!

E.G. Dogpile.com
or flashkit.com has a little F

Pleasee Help!!!

Using An Array To Load An .swf Based On .asp Var
i'm trying to find a way to load a specific .swf based on a variable i'm getting from an .asp file.

i tried to make an array of all of my .swf files and use "loadMovie" to pick the correct one based on what variable is returned from .asp...

anyhow, here's my code


ActionScript Code:
var swfs2Load=new Array("sin.swf","flirt.swf","entertainment.swf","dizzyfunk.swf","aura.swf","privilege.swf","envy.swf");
function dayTest(){
  _root.maincontent_mc.loadMovie(swfs2Load[getData.day])
}
getData = new LoadVars();
getData.load("whatday.asp", getData, "GET");

-i'm kind of a noob but working hard at it... any help would be sweet...

Finding The Address Of Clips In A Loaded Movie
hey there... I am having some troubles with finding the address of some clips in a loaded movie.

Basically I am loading a number of movies into a movie clip on my main timeline, then I want to be able to access the clips at runtime, to play them at different stages of the presentation...

So,

I have my main swf, which at runtime loads a number of secondary swfs (referenced by an xml doc) and in each of those secondary swfs are 3-5 movie clips which I want to be able to manipulate...

How do I do this?
anyone?

How To Address The Main Timeline From The Loaded Movie?
Hi,

i got a movie loaded in my main timeline(_root) in the frame 20.
and i got a stop() action as well in the same frame. Am loading the movie at a level8. now, i want once the loaded movie is finished playing, i want the main timeline's playHead move to frame21.

so, what i did was, i written the code in last frame of the loading movie like this:


_root.gotoAndStop(21);
\this doesn't work.

__root.nextFrame();

\this too doesn't work.

can i use some sort of function, to sort my problem?

How To Address Main Timeline From The Loaded Movie?
Hi,

i got a movie loaded in my main timeline(_root) in the frame 20.
and i got a stop() action as well in the same frame. Am loading the movie at a level8. now, i want once the loaded movie is finished playing, i want the main timeline's playHead move to frame21.

so, what i did was, i written the code in last frame of the loading movie like this:


_root.gotoAndStop(21);
\this doesn't work.

__root.nextFrame();

\this too doesn't work.

can i use some sort of function, to sort my problem?

How Do You Dynamically Address A Movie Clip Via A Variable?
I am having great difficulty trying to figure out how to dynamically address a movie clip by using a variable name that contains the name of the movie clip.

Below is a portion of my code, it works ONLY if I HARDCODE the movie clip instance name into the "gotoAndPlay" line which will not work for my application:

var i:Number = 0;
var lotNum:Number;
var lotNumFlag:Number;
var propStatus:Number;
var currentLot:Number;
var clipPosition:String;

function getTheStatus_Result (re : ResultEvent)
{
lotNumFlag = re.result.items[0].Lot;
propStatus = re.result.items[0].Status;
currentLot = lotNumFlag;
if (propStatus == "active") {
clipPosition = "upGreen";
["Lot_mc"+currentLot].gotoAndPlay(clipPosition);
}
}

In the case above currentLot = 1

if i substitute the last line of the IF statement with:

Lot_mc1.gotoAndPlay(clipPosition);

it will work, but the "Lot_mc*" name must come from a variable, as it needs to be dynamically generated as there will be MANY different movie clips such at Lot_mc1 thru Lot_mc50. And this code is part of a loop that progresses through all of the movie clip names so they cannot be hardcoded..

Any help would be appreciated, I would think what I want to do here should be possible, somehow...?

Steve

Inconsistencies In Flash Movie When WWW Not Present In Address Bar
This is causing me a problem with dynamic text, which does not appear in the
movie (Flash 8 Pro in Firefox/IE/Opera) when www is not used in the address
bar (simondavies.info - Projects page).

Anybody?

Cheers

Tezza

See also a post on 23/04/07 with Subject: What happens differently when
using and not using www in the address bar

Using Actionscript To Load Mc's Based On Frame
hello

i have say for instance a main movie that has frame labels 1-10...say i have three movie clips names mc1, mc2 & mc3...i need mc2 diplayed at frame 3 and mc3 displayed at frame 7 with mc1 being displayed at the rest (1, 2, 4, 5, 6, 8, 9, & 10)...how would i go about using actionscript to do this...thaks a bunch

regards,
mark

Load Swfs Based On Date?
Does anyone know if there's a way to load in an swf based on the date? I want to set up a few seasonal-themed do-dads for a client, but would like to throw them all on the server now so he won't have to worry about it later.

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