ActionScript 2.0 :: Using A Variable To LoadMovie

Nov 6, 2002

can i use a variable to load a new .swf file? this doesn't seem to work...

[Code]...

View 2 Replies


Similar Posts:


ActionScript 2.0 :: Variable In LoadMovie Function - Load A Variable That Contains An Url To An Image

Jul 28, 2007

I'm trying to combine PHP/SQL and Flash. I've got a problem now. I want to load a variable that contains an url to an image. so the variable is like this: [URL] Now I want flash to load the image, not the text. The variable is called 'img1' but the loadmovie function doesn't work when I put it in.

View 2 Replies

ActionScript 2.0 :: Using A Variable Name In LoadMovie?

Jul 20, 2006

how can you load a Movie clip with a variable name?? My example is that I have a custom menu with png's that are loaded by XML and I need to load a Different submenu/ content depending on which button i Click...

View 1 Replies

ActionScript 2.0 :: Passing Variable On Loadmovie?

Apr 18, 2009

I have several movies (movieA, movieB, movieC) that have a button in them that loads another movieb into the same level thus replacing them. My problem is that i need the movieB to start playing from a particular frame depending on which movie, a, b or c loaded it.

I'm trying to find a way of using variables to make it work or maybe just a simple gotoAndPlay function but with no luck. Can you send a variable via loadmovie function?

View 2 Replies

ActionScript 2.0 :: Variable In Loadmovie Path?

May 15, 2005

I have a variable that is refers to the names of folders, and I need to insert the variable into the pathname when I loadMovie. I cannot seem to get the variable to become part of the pathname

loadMovie('VARIABLE/image.jpg', _root.loadhere);

I've tried parenthesis, [], (), do not know the correct way to call the variable.

View 2 Replies

ActionScript 2.0 :: Trace LoadMovie With URL As Variable

Mar 20, 2006

a) thumbURL is a variable loaded from an XML file. The value is being passed correctly into Flash, as I have traced it and it outputs fine. thumbLoc is a number which increases through a for loop. So thumb0, thumb1, thumb2 etc. are the movie clips I want to load thumbURL into. The thumbURL I'm trying to load is in the format [URL] I have the following code:

[CODE]...

View 1 Replies

ActionScript 2.0 :: Show Variable From Swf File With Loadmovie?

Jan 25, 2010

how to show variable from swf file with loadmovie?if main.swf loadmovie mc1.swf mc1.swf can sent variable in input text to main.swf?if it can how to show variable from mc1.swf in dynamic text in main.swf?

View 2 Replies

ActionScript 2.0 :: Variable To Load External Swf Using LoadMovie?

Jan 29, 2009

i hav one main swf inside which iam loading second swf, but instead of hardcoding it, iwant the secound swf to calldynamically using variables.

The querystring is as follows:
<PARAM NAME=movie VALUE="film.swf?extSwf=movie.swf">
This method works fine:

[code]....

View 2 Replies

ActionScript 2.0 :: Loadmovie - Random Variable Not Working

May 16, 2002

The tutorial in The Best of Kirupa isn't working for me! When I try doing this:

rn = Math.round(Math.random()*1000000);
loadVariablesNum ("flashdata.txt?reload="+rn,0);

I get a debug error: Error opening URL "file:///C|/pathtofolder/flashdata.txt?reload=263757" Where the reload variable is the random number and flashdata.txt is the file that contains the variable I need.

View 9 Replies

ActionScript 2.0 :: LoadMovie Fails When Path Is Passed In Variable

Mar 14, 2009

Oddly if I use a quoted string, like

loadMovie( "http://www.miniclip.com/games/cube-buster/en/cubebuster.swf" , 1);

it works fine

But if I pass in a variable:

var fullpath:String = "http://www.miniclip.com/games/cube-buster/en/cubebuster.swf"
loadMovie( fullpath , 1);

it fails ???

Can't find anyone else's comments on such an issue.

Using flash 8, as2 on Mac osx

The example above remote domain example works fine within flash IDE

My actual application using a relative path to a sub directory, for a little obfuscation.

View 1 Replies

ActionScript 2.0 :: LoadMovie To Load In A Variable Amount Of Movies?

Sep 10, 2010

how do you load in a variable amount of jpgs into an empty movie clip? for example, i have a mc called 'holder' which loads in and replaces the previously loaded jpg every 10 seconds from the folder called 'images'. but how can i make it work if the user first puts in 5 images, but at a later date changes that number to 7 images?

View 1 Replies

ActionScript 2.0 :: LoadMovie - Inject A Variable From The First Movie To The Second One After It Takes Over?

Jan 28, 2009

I'm designing a game where the levels are too big to be in one swf. so each level loads up a new movie- but if my wildest dreams came true i would be able to, for example, load level 2 and have it remember how well you did on level 1.is there any way to do this? to inject a variable from the first movie to the second one after it takes over?

View 3 Replies

ActionScript 2.0 :: [FMX] LoadMovie Pass Frame Label Variable?

Sep 29, 2004

Basically this script works just fine and loads the appropriate movie. The transistion exit frame also works correctly. What I am trying to do is load the movie site_services.swf and jump to frame label "database" after the preloader. I was attempting to use _root.contents.FLabel = "database"; to set the variable.

on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "site_services";

[Code]....

View 2 Replies

ActionScript 2.0 :: LoadMovie + OnClipEvent(load) - Attaching Variable Number Of MCs Dynamically(not In The Library)

Mar 16, 2006

taken from this link:

[Code]....

My problem: I am attaching variable number of MCs dynamically(not in the library), and i have to do so using flash6 or older. How can i use then loadMovie+onClipEvent handler to invoke something, if i am attaching MCs dynamically, and onClipEvent works only on MCs attached on the Stage(actions "on" those mcs, not "inside" them). Probably using classes. Any other option? and if not, can anybody guide me through assigning such class to such mc? EDIT: Ok, i also have done following:

[Code]....

and although the movieClip IS in library, and it DOES have MovieClip class assigned, onData event handler is NOT triggered and nothing is traced. Can the reason be "attachMovie" function?

EDIT2: aha. well, again it happened that attachMovie's methods are not yet initialized, so it was not yet "the proper time to assign" handler onData on those MCs. [only sen knows why ]. So that even trace(mc.stop()); at this point traces undefined, where it should trace [type Function], since stop is MovieClip's class method. Stupidstupidstupid.. relax...

View 3 Replies

ActionScript 2.0 :: Create A String Variable...and Then Use The Value Of That Variable To Declare Another Variable?

Jan 3, 2006

f you know PHP...then you know that you can create a string variable...and then use the value of that variable to declare another variable. like this:

PHP Code:

<?php$foo = "haha";$i{$foo} = "success";print $i{haha};?>

and it would display "success"...or like this:

PHP Code:

<?php$foo = "haha";$$foo = "success";print $haha;?>

and it would also display "success".

View 6 Replies

ActionScript 3.0 :: Variable Take Away Another Variable Which Makes Answer1 Variable

May 15, 2011

i have a variable take away another variable which makes answer1 variable i then want answer1 to be to the power of another variable how can i do this in flash

View 5 Replies

ActionScript 2.0 :: Variable + Variable = Variable. Sort Of?

Aug 29, 2007

Code:
var fruit1:String = "apples";
var fruit2:String = "oranges";
var fruit3:String = "grapes";[code]....

I need the variable fruit1, but for reasons I don't have time to get into, I don't know how to parse these two variables to make a parseable variable.

View 1 Replies

LoadMovie And Preloader - CS3?

Jul 23, 2009

I am really stuck with a loadmovie action that I cannot find the solution to. I have a website that I had to split up as the loading time was too long. I have used a loadMovie function and it loads the external movie but the problem is that the external movie requiring a little bit of time to load I want a preloader to come first.

I have attached screenshots of this (wssmain liks to the arch_mc1) . The problem is that the movie loads but the preloader doesn't play. Anybody has any ideas why?

The first screenshot shows the wssmain whereas the second (preloader2) shows the arch_mc1. If the fla files are required I will make them available for download.

[Code]...

View 2 Replies

LoadMovie Mc Keeps Unloading

May 2, 2011

I load my external image into emptymc which is inside mc_container:loadMovie("myimage.jpg", mc_container.emptymc); //placed on main timeline.This works fine. However when I go to a different frame within mc_container(specifically a frame without an instance of "emptymc") emptymc gets unloaded. As soon as I go back to a frame containing "emptymc" it no longer has the jpg.Is there a way I can keep the jpg loaded in emptymc without having to load it again?

View 2 Replies

Can't Get Swf To LoadMovie When On Server

Jul 2, 2009

I am very new to Flash and have been going around in circles for days trying to figure this out.I can't get swf to loadMovie when on server. I understand I need to use the path relative to the html page.[code]

View 1 Replies

Flash Loadmovie Into A Fla-cs3

Jan 18, 2010

I've been trying to load a simple .swf (home.swf) and have it play automatically on my existing fla project (as2). These are the steps I have taken.. 1) create MC, named "holder" 2) within first frame of MC, entered in.. loadMovie("home.swf","holder"); Nothing is showing, I'm not sure what I'm doing wrong. If you can help, I can send you the files I'm working with.

View 2 Replies

IDE :: LoadMovie Is Being Resized?

Jan 30, 2009

I am working on my first flash website and have been working on loadMovie & unloadMovie. The commands have been working for me and it will load & unload the external .swf in a contentHolderMC. The problem that I am encountering is the loaded .swf width is correct but the height is being reduced, I would guess to about 75%. Is there a way to maintain the external .swf's size? Even if I need to put the code into the external .swf.

I have tried creating a mask inside the contentHolderMC to match the size of the external .swf. When I have looked around for clues to the resizing, I am finding tutorials on how to resize the external .swf into a smaller Movie Clip. That's not what I am trying to do.

View 2 Replies

IDE :: Set Size Of Swf Using LoadMovie?

Feb 11, 2009

I have this problem: in my swf on frame 100 is a code:

Code:
loadMovie("second.swf", _root.clip1);

I have mc with isntance name: clip1 The movie second.swf loads into the position of clip1 but it's originally very big and I want it to make it smaller so it will fit to my site, if possible i would also like it not to be resizeable (so when someone will have smaller browser window it wouldnt move)

View 4 Replies

ActionScript 2.0 :: LoadMovie Over Top Of One Another?

Oct 1, 2003

I need to be able to load the movies over the top of one another so that you can still see the movie under it....Can this be done ?????

View 8 Replies

ActionScript 2.0 :: Loadmovie With Its Background?

Feb 15, 2009

I am using loadmovie AS2 function PHP Code:

stop ();blankmov.loadMovie("newmovie.swf") to load external movie in my main flash file and it works fine, except one problem which is the new movie that loads in the main movie becomes transparent so there is no background displaying in this new external movie. Is there a way to use loadmovie function so that new movie holds its background and it does not become transparent?

View 1 Replies

ActionScript 2.0 :: Using LoadMovie In Advance?

Aug 18, 2009

I'm making a game where every level is a separate swf. The problem is, when each level starts, it doesn't load entirely before displaying on the screen, and gives me unpredictable results. I also don't want load waits between each level.Is there some way to do all my loadMovie's at the start, loading them into some place where they wont actually be on the stage, and then calling them out one by one as you play each level of the game?

View 3 Replies

ActionScript 2.0 :: LoadMovie .swf From Another Folder?

Dec 4, 2009

I'm having a problem loading a external.swf from another folder outside of my main.swf. This external.swf is being loaded into a empty.swf movie clip. It works when the external.swf and the main.swf are in the same folder, but when i place the external.swf into a images/folder and change the action toloadMovie ("images/external.swf", "main"); it no longer works. Did i target it wrong?

View 1 Replies

ActionScript 3.0 :: LoadMovie From Php Data

Jul 20, 2010

I'm not much of a flash programmer, and am a bit lost. What I want to do is the following. I'll have a SWF with two layers, which is being called from a PHP page on my site. The top layer is just an invisible button, and I'd like it to link to a URL that I provide from the PHP page. The bottom layer I would like to load a separate SWF file, whose path I can also provide from the PHP page. I have the URL and the SWF path working just fine in PHP, but I don't know how to pass those values to flash, or how to get loadMovie to work like I want it. Can anyone provide some guidance?

View 7 Replies

ActionScript 2.0 :: Preloader For LoadMovie?

Jun 4, 2011

First things first, please don't recommend I change to AS3 for this. I know, but It's far too late for that and not my project to be dictating..So I'm loading some external swfs in with the loadMovie command, in the normal manner with a button:

Code:
on (release) {
loadMovie("swfs/example-1.swf", _root.container);
}

But what I need, is to wedge a preloader in there somehow. As the swfs are around 1mb each.I'm already using the following as a preloader for the main file, so an adaptation of it would be very welcome so I can co-ordinate the graphics.With this on frame 1:

Code:
var amountLoaded:Number = _root.getBytesLoaded() / _root.getBytesTotal();
preloaderText.text = Math.round(amountLoaded * 100) + "%";
And this on frame 2:[code].....

View 1 Replies

ActionScript 1/2 :: LoadMovie Without Container Mc

Oct 9, 2009

Im using AS2. Now, i got this trouble: when i load an external movie into the main one, i had some errors if i put it into a containter mc, with this code: Code: loadMovie ("movie.swf", containter_mc); The scroll bar not only move the movie.swf object, but the container_mc too... So, i just load the movie without using a container, with this code: Code: loadMovie ("movie.swf", 2); And suprise! now the scroll bar works just fine. But... How can i position the movie into the main one? Like: movie._x = 200; movie._y = 200; How can i do that in the right way? (Sorry, but my english its not good enough ha! )

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved