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


Similar Posts:


ActionScript 2.0 :: LoadMovie From Internal Data?

Oct 29, 2006

well my title may be kind of cryptic but... heres what i mean.i've got a main.swf file which loads in a spaceData.swf file intosystemData movieclip ActionScript Code: systemData.loadMovie("data/spaceData.swf"); now there is a movieclip in the 'spaceData.swf' which was loaded into 'systemData' i want to load onto 'myMc'..the mc in spaceData.swf i want to load onto myMc is called 'ss'.how would i accomplish that?i want 'spaceData.swf' to contain all my data and external mc's (atleast most of them) so it can easily be loaded into the main movie.

View 1 Replies

Data Integration :: XML LoadMovie - Getting Undefined Error Message?

Jun 1, 2007

I am in the middle of making an xml driven menu. Each button has an image which loads from an external folder and 3 dynamic text fields. The content for the text fields is taken from an external XML file and I would also like the image to be defined in the XML file. The problem I am having is when I use the code attached below .I get the following error message; :

'Error opening URL
'file:///C|/Documents%20and%20Settings/barry.gee/Desktop/undefined'

However when I manually enter the image url as commented out in the attached code the image loads fine.

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 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

ActionScript 1/2 :: LoadMovie - How To Know Which Is Loaded

Feb 16, 2011

I'm loading many movies in a moan movie into mc instance name "movieHolder" I need something to happen only IF the first movie is not loaded. How can I check WHAT movie is currently loaded in movieHolder?

View 14 Replies

ActionScript 2.0 :: CreateEmptyMovieClip + LoadMovie?

Jun 22, 2011

The "scroll_right" image shows up, but in Debug, _root.win_Main.scroll_right.bar does not exist after this code is called. However, _root.win_Main.scroll_right DOES exist.

Code:
var win:Object = _root.win_Main;
win.createEmptyMovieClip( "scroll_right", win.getNextHighestDepth() );

[code].....

View 5 Replies

LoadMovie Won't Work On Second Jpg Load?

Mar 10, 2011

I have a flash movie that loads an external image into a movieclip with the following code:

Code:
//Load image
loadMovie("myimage.jpg",_root.moviebox.picturebox);

[code].....

View 1 Replies

ActionScript 2.0 :: Loading 2 Swf With LoadMovie?

Feb 24, 2009

I want is it load an external swf on the click of a button, then unload it to load another swf on the click of another button. heres a sample code of what did.

Code:
stop();
//loading first movie
container.loadMovie("movie.swf");

[Code]....

View 0 Replies

ActionScript 2.0 :: LoadMovie Without Using Container MC

Oct 9, 2009

I am using AS2 to create the whole movie. 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 de 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 surprise! 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;

View 1 Replies

ActionScript 2.0 :: Output To LoadMovie?

Oct 23, 2009

Im working on a site with influences from this tutorial[URL]..It is basically a tutorial how you can make a 3D rotating carousel witch picturens from an external xml-file.

Although in the tutorial he makes the "buttons/pictures" go to an "output". I whould like it to go to another movie (loadMovie)

[Code]...

View 9 Replies

ActionScript 2.0 :: Resize Through LoadMovie?

Jan 13, 2010

I am using the folling to load a game into my flash site

ActionScript Code:
var container:MovieClip = this.createEmptyMovieClip("container", this.getNextHighestDepth());
container._lockroot = true;
container.loadMovie("Mobile2.swf");

It works fine but I have another game which is too big in its raw state. Is it possible to scale it using actionscript so when it loads it loads with requested dimensions?

View 3 Replies

ActionScript 2.0 :: Loading SWF With LoadMovie

Jan 23, 2010

I'm currently working on a school project and have come to the stage where I need to put all of my swf's together. But I'm running into an issue with getting the swf's in my file.I've at first tried to do the same thing using scenes, but this didn't work either. I've read on several fora's that the scene thing in flash had some weird things and was recommend to use loadMovie instead.Now I'm trying to use loadMovie, but I can't get this to work either. I've tried the exact same code with an image and this is working. As soon as I try to do it with a swf file, the file loads and leaves a complete blank. I've read the list of objects in the swf and all variables are undefined, could this be related?I'm currently using AS 2.0.

View 7 Replies

ActionScript 2.0 :: Adding URL In LoadMovie With Var?

Mar 24, 2010

I have one main swf called index.swf that links to other 5 swf. The name of the external file are 1.swf, 2.swf up until 5.So the actual coder apparently using var n = 1

if (IndexLoaded >= total) {
var n = 1;
gotoAndPlay(3);

and then do the following (loadMovie):

var movie:MovieClip = _root.StoredActions.Movies.CMovie.duplicateMovieCl ip("CMovie" + n,n);
loadMovie(n+".swf", _root.StoredActions.Movies["CMovie"+n]);
var MovieLoaded = 0;

[code]....

to call the 1.swf, 2.swf etc.

I need to specify the exact location of the external swf (i.e: http://www.mydomain.com/swf/), rather than doing it as above (root). How do i add that exact URL on that line? i tried the following and ended with error

loadMovie(http://www.mydomain.com/swf/n+".swf", _root.StoredActions.Movies["CMovie"+n]);

View 2 Replies

ActionScript 2.0 :: Slideshow From Loadmovie .swf -> Xml?

Jun 2, 2010

i just created a sample of slideshow after reading a lot of tutorials.i created 1.swf(1st photo with sliding effect)which uses loadmovie to call 2.swf(2nd photo ..) which uses loadmovie again to call 3.swf (3rd photo..) which finaly uses loadmovie and calls 1.swf and there is a loop all the time. When i tested this on my server i saw from the web inspector that i download the swf everytime that loadmovie is being used. Is there a way to make this simpler with a xml file?

View 1 Replies

ActionScript 2.0 :: Mac OS X LoadMovie On Release?

Apr 6, 2011

I've got a movie control which loads different .swf files into a blank movie when the user click an image below the main view. In windows it works fine and also in Safari 5 for Windows but I've been told it will just not work on a Mac in any browser.

Actions for Frame 1
loadMovie("movie1.swf","mainView");
bnt1
Actions for bnt1

[code]....

The frame 1 action works on the Mac but the mouse will not interact with the buttons to load the other movies when the user tries to click them.

I have other similar controls which work on the Mac but they are using on release get url functions for the interaction. All the swf files are loaded from the same directory as the control on the web server.

View 0 Replies

ActionScript 2.0 :: Loadmovie/ External Swf Or Fla?

Apr 30, 2011

but i just can't figure it out. I've made a website in flash, with a button. The purpose is when you click one button, a portfolio will open. This portfolio is xml driven and i've got the FLA file and the SWF file.

But.. when i put the portfolio FLA file in my website timeline it won't work, and when i try to use the SWF file instead and connect it to the button using AS2.. it won't work at all. The last option i used the following AS2 codes and put the code on the button frame.. that didn't work (not at the same time offcourse ):

[Code]...

This last code did work.. but for some strange reason this last code loaded the SWF again and again...

Is there someone who knows what i'm doing wrong? I just want that the portfolio opens when you click on the button.. and opens in a container with certains measures.

View 3 Replies

ActionScript 2.0 :: LoadMovie Swf Resizes?

May 12, 2004

i have made a menu which is made up of 4 movieclips. its a sliding menu. so when you click a button the other movieclips slide to show the corresponding section (movieclip).within each section (movieclip) i want to load different content so i used the loadMovie code.at first i couldn't get this to load within my "container" mc but eventually i got it to work by putting the code on the main timeline instead of within the certain movie clip (I'm sure theres a way to put the loadmovie code within each section .

so my problem is, when my the swf loads it is has increased in size and the borders around the dynamic text fields wont show up.I have tried putting the noscale fs command in the .swf that i load but that didn't work.anyway i attacked a zip with the files incase someone wants to check it out for me."version2.fla is the main file with the menu etc."contact.fla" is the .fla file for the .swf that i want to load.

*you'll notice 4 movieclips.the only movieclip i'm concerned with at the moment is window1 (the movieclip that says'contact' on it). it contains my blank movieclip (container) and is where i'm trying to load my .swf

View 6 Replies

ActionScript 2.0 :: LoadMovie But Don't Have It Play

May 27, 2004

I am loading an external SWF using loadMovie. I do not want the movie clip to start playing because I will be controlling it, but I can not figure out how to load it without having it play automatically. Below is the actionscript I am currently using and for some reason it still plays.

Code:
loadMovie("file.swf","empty");
empty.stop();

View 8 Replies

ActionScript 2.0 :: LoadMovie In A Button?

May 31, 2004

Im trying to do a photographic gallery with infinite scroll, ok? Im loading the differents photos from a url and with duplicatemovie make as movieclips as photos i have got.The problem is when i load a photo in a button, the button is dissable....why?? I cant hit it!

[Code]...

View 1 Replies







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