Loading External Movie Content
Hey, I need some information on how to load an external swf file into an existing movie with the click of a button. I'll try and make that sound a bit clearer. Basically when you have a website with frames you can click links and the content is told to load in a target frame. Thats basically what i want to do in flash. If anyone could throw some information my way i'd be greatful.
Thanks
FlashKit > Flash Help > Flash MX
Posted on: 08-27-2002, 03:05 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
External Content Loader With Multiple Content Types (trouble Loading Graphics)
Hey all!
I am yet another new project. Our flash designer here isn't a big AS guy, and asked me to write a reusable class so that he can load a variety of content types using minimal amount of code on his part. It's also going to be the main component piece in a larger external content player once I'm done with the class itself, so I am making the loading functions into public methods of the loader object than can be called from a button, etc.
I have the code for the text and html parts working (although I can't get stage.width and stage.height to work in the class or from the frame).
The problem I have is that I can't get the graphics content to load (the swf/pic content). Could you please check my code and tell me what I'm missing? I'm sure it's something simple, like it always is.
thanks a million!
-Fish
-----------------------------
ActionScript Code:
package
{
/**
* External Multimedia Loader Class
* @author $(DefaultUser)
* Add new MultiLoader object and insert media type (all lowercase) and object path to control initial loaded object
* To load a new object, call the MultiLoader.load* methods (loadText, loadPic, loadSwf, or loadHtml as appropriate), passing the path to the external file.
*/
import flash.display.*;
import flash.events.*;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.text.TextField;
public class MultiLoader extends MovieClip
{
private var media:String;
private var path:String;
public var textObj:TextField = new TextField;
public var picObj:MovieClip = new MovieClip;
public var swfObj:MovieClip = new MovieClip;
public var htmlObj:TextField = new TextField;
private var objLoader:Loader = new Loader();
private var objType:String;
private var textLoader:URLLoader = new URLLoader();
public function MultiLoader(mediaType:String,objPath:String)
{
media = mediaType;
path = objPath;
if (media == "text" || media == "TEXT" || media == "Text")
{
loadText(objPath);
}
else if (media == "pic" || media == "PIC" || media == "Pic")
{
loadPic(objPath);
}
else if (media == "swf" || media == "SWF" || media == "Swf")
{
loadSwf(objPath);
}
else if (media == "html" || media == "HTML" || media == "Html")
{
loadHtml(objPath);
}
else
{
trace("ERROR: Media type not supported. Media type must be 'text', 'pic', 'swf', or 'html'.");
}
}
public function loadText(txtPath):void
{
objType = "text";
if (this.numChildren > 0)
{
this.removeAllChildren();
}
this.addChild(textObj);
this.textLoader.load(new URLRequest(txtPath));
this.textObj.wordWrap = true;
this.textObj.multiline = true;
this.textLoader.addEventListener(Event.COMPLETE, addTextContent);
//this.textObj.width = this.width;
//this.textObj.height = this.height;
}
public function loadPic(picPath):void
{
trace("loadPic started");
objType = "pic";
if (this.numChildren > 0)
{
this.removeAllChildren();
}
this.addChild(picObj);
this.objLoader.addEventListener(Event.COMPLETE, addObjLoader);
this.objLoader.load(new URLRequest(picPath));
trace("loadPic completed");
}
public function loadSwf(swfPath):void
{
trace("loadSwf started");
objType = "swf";
if (this.numChildren > 0)
{
this.removeAllChildren();
}
this.addChild(swfObj);
this.objLoader.addEventListener(Event.COMPLETE, addObjLoader);
this.objLoader.load(new URLRequest(swfPath));
trace("loadSwf completed");
}
public function loadHtml(htmlPath):void
{
objType = "html";
if (this.numChildren > 0)
{
this.removeAllChildren();
}
this.addChild(htmlObj);
this.textLoader.load(new URLRequest(htmlPath));
this.htmlObj.wordWrap = true;
this.htmlObj.multiline = true;
this.textLoader.addEventListener(Event.COMPLETE, addTextContent);
}
private function removeAllChildren():void
{
if (objType == "pic")
{
this.picObj.removeChild(objLoader);
}
else if (objType== "swf")
{
this.swfObj.removeChild(objLoader);
}
else
{
trace("objType != 'pic' or 'swf.' objType = '" + objType + "'.");
}
while ( this.numChildren > 0 )
{
this.removeChildAt(0);
}
}
private function addObjLoader(event:Event):void
{
trace("addObjLoader started");
if (objType == "pic")
{
trace("trying to load pic");
this.picObj.addChild(this.objLoader);
this.picObj.objLoader.removeEventListener(Event.COMPLETE, addObjLoader);
}
else if (objType== "swf")
{
trace("trying to load swf");
this.swfObj.addChild(this.objLoader);
this.swfObj.objLoader.removeEventListener(Event.COMPLETE, addObjLoader);
}
else
{
trace("ERROR: Cannot add object loader. The 'objType' variable does not contain correct media type. The function 'addObjLoader' should only be called when objType is 'pic' or 'swf'. In this case, objType is '" + objType + "' .");
}
trace("addObjLoader completed");
}
private function addTextContent(event:Event):void
{
if (objType == "text")
{
this.textObj.text = event.target.data as String;
this.textLoader.removeEventListener(Event.COMPLETE, addTextContent);
}
else if (objType == "html")
{
this.htmlObj.htmlText = event.target.data as String;
this.textLoader.removeEventListener(Event.COMPLETE, addTextContent);
}
else
{
trace("ERROR: Cannot add text content. The 'objType' variable does not contain correct media type. The function 'addTextContent' should only be called when objType is 'text' or 'html'. In this case, objType is '" + objType + "' .");
}
}
}
}
Loading External Content
Hi. I am making my first site using the loadMovie(); action (pretty sad...). Anyway, since I'm to this, (loadMovie), I was wondering, first of all, what the best way of doing this would be. Secondly: what are levels? And thirdly how do I preload external content...do I just put a preloader within the movie I'm loading, ect... Lastly, what should the actions on my menu be (ie. load this movie, unload all other movies, if that's even possible ).
Thanks,
Sportzguy933
Loading External Swf With XML Content
I'm having issues after loading an external .swf into my main movie. Here are the specifics -
The external .swf contains a flash mp3 player that I built which brings in two mp3's via a small xml script.
Upon loading which works fine it seems like the xml part is not getting triggered.
Any help would be appreciated....
Flash 6 Loading External Content With ASP
Hey I got this movie Im trying to create were I load some information from a ASP file now I can do that but Im not good at the duplicating part. I included the file to help. What Im trying to do is load it in the second movie clip within the root then duplicate it down creating a scroll bar. then I have another clip info2 that I want to duplicate and it tell the text movie clip which to show text1 text 2 text 3. If anybody could pleeeeeeeease help me. It would greatly be appreciated. Thanks in advance for everything. I hope I made this understandable not sure how to explain it.
Dynamically Loading Content To An External Swf
hey,
i'm importing an external swf to a movieclip. In the imported swf is a text box which is populated using content from a xml doc, this information is called through the main swf. this works fine if the swf is exported from another .fla. but if i create this external swf within the main fla and exported from the library the xml content isn't loaded into the textfield. anyone know why this is.
The reason that it is important is because i need the registration point to be the centre of the swf.
thanks
adam
Loading External Swf With Offstage Content In It
Hi!
I have several swf:s created by another guy which I want to use. These external swf:s are basically slideshows with sliding and scaling sprites + texts. We have decided to work in 800 x 600 and to fill out this area the sprites are a bit larger, making sliding them possible.
The problem is, when I load these swf:s, ALL content is shown, even parts of sprites that were hidden off stage in the external swf.
Is there a way to prevent this?
Thanks!
/Bo
Loading External Content Over The Web Problem
I've developed a basic flash interface that loads external banner type swf animated movies (averaging 35k) into an empty container, which accompany dynamically loaded xml content.
This resides on our internal server and is functioning fine when played locally in any browser window.
There is a problem however, when I access this externally it doesn't function properly and either freezes or part loads any content. This seems to vary from computer to computer...
Is this a web/server access issue?...
If anybody has any ideas – please!
Not Loading External Content On Refresh
Ok. this is a new problem for me. I have an swf that loads images from a directory within the site. If I click on a link that takes me to the site, the images load. If I then try to refresh, the images no longer load. What the hell....
Here's my mess of as2.0 (I understand much of it is of no consequence to this problem, but wanted to make sure I had it all here for you) Thanks for any light anyone can shine apon this problem:
Code:
var loaded:MovieClipLoader = new MovieClipLoader();
var mclListener:Object = new Object();
/////////////////////////////////////////////////////////////////////////////////////
var Image1:String = "images/flash/play_9.jpg";
var Image2:String = "images/flash/play_ace.jpg";
var smimg1:String = "images/flash/play_img1.jpg";
var smimg2:String = "images/flash/play_img2.jpg";
var smimg3:String = "images/flash/play_img3.jpg";
//////////////////////////////////////////////////////////////////////////////////////
//var back_screen:MovieClip = this.createEmptyMovieClip("back_screen", 1);
var bg_img:MovieClip = this.createEmptyMovieClip("bg", 50);
var bg_img2:MovieClip = this.createEmptyMovieClip("bg2", 49);
var small1:MovieClip = this.createEmptyMovieClip("sm1", 20);
var small2:MovieClip = this.createEmptyMovieClip("sm2", 30);
var small3:MovieClip = this.createEmptyMovieClip("sm3", 40);
//////////////////////////////////////////////////////////////////////////////////////
//back_screen.beginFill(0x000000,100);
//back_screen.lineTo(800,0);
//back_screen.lineTo(800,268);
//back_screen.lineTo(0,268);
//back_screen.lineTo(0,0);
//////////////////////////////////////////////////////////////////////////////////////
//back_screen._alpha = 0;
bg_img._alpha = 0;
bg_img2._alpha = 0;
small1._alpha = 0;
small2._alpha = 0;
small3._alpha = 0;
//////////////////////////////////////////////////////////////////////////////////////
loaded.loadClip(Image1,bg_img);
loaded.loadClip(Image2,bg_img2);
loaded.loadClip(smimg1,small1);
loaded.loadClip(smimg2,small2);
loaded.loadClip(smimg3,small3);
///////////////////////////////////////////////////////////////////////////////////////
function load_the_three() {
small2._x = 252;
small3._x = 508;
small1.onEnterFrame = function() {
this._alpha += 2;
if (this._alpha>=100) {
delete this.onEnterFrame;
}
if (this._alpha>=25) {
small2.onEnterFrame = function() {
this._alpha += 2;
if (this._alpha>=100) {
delete this.onEnterFrame;
}
if (this._alpha>=25) {
small3.onEnterFrame = function() {
this._alpha += 2;
if (this._alpha>=100) {
attachMovie("grand_statement","grand_statement",100,{_x:331, _y:210});
three_sat = setInterval(fading_up1, 5000);
delete this.onEnterFrame;
}
};
}
};
}
};
}
function fading_up1() {
fading_up_last = setInterval(fading_up2, 10);
clearInterval(three_sat);
}
function fading_up2() {
bg_img._alpha++;
if (bg_img._alpha>=100) {
clearInterval(fading_up_last);
bg_img2._alpha = 100;
curr_image = "9";
switching = setInterval(switch_pics, 10000);
}
}
function fading_up3() {
bg_img._alpha--;
if (bg_img._alpha<=0) {
clearInterval(fading_up_last);
curr_image = "a";
}
}
function switch_pics() {
if (curr_image == "9") {
fading_up_last = setInterval(fading_up3, 20);
}
if (curr_image == "a") {
fading_up_last = setInterval(fading_up2, 20);
}
}
mclListener.onLoadProgress = function(target_mc:MovieClip, numBytesLoaded:Number, numBytesTotal:Number):Void {
mc1perc_loaded = (Math.ceil((numBytesLoaded/numBytesTotal)*100));
if (target_mc == _level0.bg) {
barz.gotoAndStop(mc1perc_loaded);
if (mc1perc_loaded>=100) {
barz.play();
load_the_three();
//fading_up = setInterval(fading_up2, 20);
}
}
};
mc1Listener.onLoadComplete = function(target_mc:MovieClip):Void {
trace("Done");
};
loaded.addListener(mclListener);
I Have Problem With Loading External Content
Hi
My movie is a textarea that loads its content from this url :
Content.load("http://me.googlepages.com/mytext.xml");
When I compile it on my PC it shows me XML content ,
but when I upload it in my website , nothing loads in textarea !
What could I do ?
Loading External SWF Into Sliding Content -help
please point me to any tuts .
project:
---------
5 menu button:
Each button will slide the long background image to a certain x-postion. Once it slides into the appropriate x-postion, contents will start to animate and load.
Currently I have a MC movie sitting at each x-position so when it slides to it.. contents are there and already playing.. which i dont want.
In this method, the file is too heavy and very slow in sliding back and forth.
How do I only load the content needed for that particular section and when another sectioin is clicked, the current loaded content dissappear, making scrolling faster?
basically, I have a long widescreen background scene that will have content loaded when slide to a particular segmented area of the background.
I hope my descriptiion is clear.
thx
Dynamically Loading External Content
I already know the basics behind loading content. So what I would like to do is to create a "parent" swf file, and then this "parent" swf file would externally load "child" swf files that have images and or dynamic text. Each "child" swf file would be like a self-contained module.
Now the only catch here is there are several different "child" swf files, and an external text file would determine which "child" swf files would be displayed.
Is this possible with Flash MX? Can anyone point me in the right direction?
Thanks!
Loading Content From An External Text File?
I want to load up a welcome message into two dynamic text boxes one for the title and the other for the bulk content, how do set up the text file and link it to the text boxes?
Thanx
How'd They Do That? - Loading External Content With Transitions [renamed]
This is the site: http://www.void.pt/void.php?lng=en
the opening squence i suppose it's all just movie tweens between files, but how is this thing done, when you click a button, the middle screen/part of the site, has a transition effect, loads, and there is a new page! i know how to do the transitions, and the loading bar, but how do i exactly tell my button, where to load an external movie file!...
basically, i want it when somone goes to the site, the while site opens, there are transition effects, and three different movies open at three different spots on the site...just like it happens at www.void.com when you enter their site, they got the main window, and the botton right and left windows!
Please if someone could give me a helping hand on this i would really appriciate it!!!!
-AlBERT
Problems Loading News Content Through External SWF
What up everybody, I hope someone can help me on this problem I've been workin on for the past week.. I've tried different things to fix this but no luck..
The news content loads up perfectly fine when u pull up the swf directly.. for example:
http://flaremedia.com/dalab/ral/newz02.swf
but once its being loaded through the mainframe, we start having issues..
http://flaremedia.com/dalab/ral/home.html
Click on the News button
Here's the link to download the News FLA file:
http://flaremedia.com/dalab/ral/news.fla
Now I know this could be something simple such as Path Issues.. but I've never been 2 much of a code guy, but I would greatly appreciate if someone would drop some knowledge on this matter.. Thank you.
JH
Loading External SWF File Displays Content Outside Swf-box
Hi guys
I'm having a "problem" with loading an external .swf in my main flash swf movie (which is a website).
When the external .swf loads and displays itself on the main swf (website), the complete external swf file is viewable. To clarify: this external .swf has a world map that moves with a tween. If the animation is played within the main swf, I can see the whole world map and not just only that specific part of the world map that is visible on the "original" .swf
How do I solve this best?
- Make a mask over the complete external.swf? Where should i make the mask in the external .swf itself or on the movieclip in my main swf (website)?
- Is there a parameter that i can use?
- Is there a export option for this?
Thanks in advance
Arcko D
How'd They Do That? - Loading External Content With Transitions [renamed]
This is the site: http://www.void.pt/void.php?lng=en
the opening squence i suppose it's all just movie tweens between files, but how is this thing done, when you click a button, the middle screen/part of the site, has a transition effect, loads, and there is a new page! i know how to do the transitions, and the loading bar, but how do i exactly tell my button, where to load an external movie file!...
basically, i want it when somone goes to the site, the while site opens, there are transition effects, and three different movies open at three different spots on the site...just like it happens at www.void.com when you enter their site, they got the main window, and the botton right and left windows!
Please if someone could give me a helping hand on this i would really appriciate it!!!!
-AlBERT
Loading Content From External Link HEEELP
Hi there,
Here is my situation.
I have a flash movie that I am going to be distributing as a tool to about 1000 people to begin with for use on their websites.
My 2 options are, having them download the swf and run it off their webserver... or
Have the swf located on my servers and have these sites link to it.
The file is roughly 300kb in size. I worry that if I have it on my server, that the thousands of sites linking to it, and all of their visitors will cause some latency / overload problems on my server.
If I were to have them host it on their servers, there are a few things that I need to figure out how to do.
1. ) I want to load in an advertisement in the swf, however, I believe that swfs cannot load in anything outside the domain without a certificate, which I cannot make for each and every site.... am I able to make a global certificate allowing any site to load content from my server?
2.) I want to be able to do some basic version checking if they host it on their server... alerting them that a new version is available if it is... I know I can have a static file that has a version number in it, and load the vars, but this leads me back to #1 above.
please help, I am stuck stuck stuck!
Thanks a ton!
Loading Content Into Containers From External Swf Loaded Movies.
Maybe someone can help me out, I'm a little confused: I have a movie which initializes, then loads home, and from there, home loads the content.
Each movie is supposed to be loaded from init.swf into a container; however, i am unable to load content from home. My movie just hangs.
I'm using the LoaderClass: com.qlod.LoaderClass.as
and i have three movies
init.swf = root layer (FLA attatched)
home.swf = navagation layer (loaded from init) (FLA attatched)
news.swf = content, loaded from home (SWF attatched)
The init has global functions, such as _global.LoadNext()
home is able to load into init's container, but home.swf is not able to load news.swf
I dont get it? I through some traces in to see if the function from home.swf was even calling the LoadNext() located in init.swf but i dont think it was? Any ideas?
thanks
Altering Static Content When Loading External Swf Files.
OK, so Im working on a project and am going to have animations that transition between pages.. Like this www.ashevillebrewing.com/test ..
I usually have a master.swf that calls the rest of the pages including a static.swf that holds all the things that do not change throughout the site..
When the master.swf is loaded, it calls the first page (home.swf) and the static.swf. on the other pages there are elements that are in different positions than they are on the home page..
What I want is to be able to animate these items into thier new location while the other pages are being viewed, but then animate them back to their original position when you go back to the home page..
The pages in the example site transition pretty much the way I want, but say I wanted to animate the logo to a different spot on the stage during one page and have it return to its original spot when the visitor leaves that page and returns to the home page?
All ideas welcome, thank you in advance..
Aaron
Loading External XML Formatted Content In Several Text Boxes
i've had followed the tutorial
http://www.actionscript.org/tutorial...nt/index.shtml
all works fine ,
but i have several textarea and want re-use a single xml file to load several piece of text in different text boxes,
how to assign portion of xml into different text boxes
<kungfu1>
<text>lorem ipsum</text>
</kungfu1>
<kungfu2>
<text>lorem ipsum</text>
</kungfu2>
where kungfu1 text go to textbox 1 and kungfu2 text go to textbox 2
thanks
Altering Static Content When Loading External Swf Files.
OK, so Im working on a project and am going to have animations that transition between pages.. Like this www.ashevillebrewing.com/test ..
I usually have a master.swf that calls the rest of the pages including a static.swf that holds all the things that do not change throughout the site..
When the master.swf is loaded, it calls the first page (home.swf) and the static.swf. on the other pages there are elements that are in different positions than they are on the home page..
What I want is to be able to animate these items into thier new location while the other pages are being viewed, but then animate them back to their original position when you go back to the home page..
The pages in the example site transition pretty much the way I want, but say I wanted to animate the logo to a different spot on the stage during one page and have it return to its original spot when the visitor leaves that page and returns to the home page?
All ideas welcome, thank you in advance..
Aaron
Altering Static Content When Loading External Swf Files.
OK, so Im working on a project and am going to have animations that transition between pages.. Like this www.ashevillebrewing.com/test ..
I usually have a master.swf that calls the rest of the pages including a static.swf that holds all the things that do not change throughout the site..
When the master.swf is loaded, it calls the first page (home.swf) and the static.swf. on the other pages there are elements that are in different positions than they are on the home page..
What I want is to be able to animate these items into thier new location while the other pages are being viewed, but then animate them back to their original position when you go back to the home page..
The pages in the example site transition pretty much the way I want, but say I wanted to animate the logo to a different spot on the stage during one page and have it return to its original spot when the visitor leaves that page and returns to the home page?
All ideas welcome, thank you in advance..
Aaron
Old-fashioned Swf Loading Bar In Flash Player 9? (Can't Use External Content)
Hey. I'm making a AS 3.0 game. I'm making it a self-contained SWF so it'll be compatible with NewGrounds's flash portal. How do I create a pre-loader for it? I'm pretty sure I can't use the Loader class, because Loader requires a URL, which implies that the content it's loading must be external to the swf. (Not, for example, Library content.) My game is a 4mb SWF, so a pre-loader is a must. I just can't figure out how to do it, and all the documentation I can find seems assume that my content is all external SWFs and JPEGs residing on a web server or something. How am I supposed to make this work?
Help With Making Content For Pages On External Swf Files And Loading Them
I'm currently making my first flash website. I do have some knowledge in flash, but I wanted to make a swf file for each content of a page so it will only have to load page by page instead of a huge big single swf file.
this is the layout:
_______________________________________________
.
. Header
.
_______________________________________________
.
.
. Content
.
.
_______________________________________________
. Footer
_______________________________________________
I want to have a main swf with the header and layout and all and I only want the content part to load in and out. So how would I set it up so when a button is clicked in the navigation, it plays animation of the current content part of the page unloading and then loads the swf of the page that was clicked? I hope what I said makes sence.
If anyone has a fla file of this or know any good tutorials on this or would like to explain, I would really appreciate it!!!!!!
Thanks guys!!
Loading Content From External Text/html File
I am trying to load content from an external text file.
(It would be great if i could format it with html code, is this possible)
I have the following code on frame 1 (Thanks to "nebrekab")
Code:
// array of button names
var btn_arr:Array = ["email","contact"];
// vars to be used in for loop
var i:Number, btn:MovieClip;
// loop array of buttons
for ( i = 0; i< btn_arr.length; i++ ){
// get ref to each button movieclip
btn = dottedPlants_mc[ btn_arr[ i ] + "Ani_mc" ];
// store button name as property
btn.name = btn_arr[i];
// give button roll over effect
btn.onRollOver = function() {
this.gotoAndPlay("shake");
}
// give button roll out effect
btn.onRollOut = function() {
this.gotoAndPlay("start");
}
// give on release method
btn.onRelease = function() {
trace( this.name + " clicked");
}
}
I have modified the onRelease to the following as i want it to go to a particular frame and load the text there
Code:
btn.onRelease = function() {
cont = this.name + ".txt";
gotoAndStop("container");
}
on the frame labled "container"
I have the following code (sourced from the adobe website)
Code:
this.createTextField("my_txt", 10, 10, 10, 320, 100);
my_txt.autoSize = "left";
my_txt.border = true;
my_txt.multiline = true;
my_txt.wordWrap = true;
var envirText_lv:LoadVars = new LoadVars();
envirText_lv.onData = function (src:String):Void {
if (src != undefined) {
my_txt.text = src;
} else {
my_txt.text = "Unable to load external file.";
}
}
lorem_lv.load(cont);
trace(cont);
now this works fine for the first click.
but when i click any other btn it does not work
is it becasue the codes are on different frames?
when i put the code from the container frame to the frame 1
it still wont work ;(
any help with this?
thank you
External Movie With PHP Dynamic Content Into Existing Movie
I downloaded Jeff's flash Guestbook from Flashkit.com, and adjusted the graphics to my liking and it works perfectly well. It's PHP and Flash based. The whole guestbook has been put into 1 .swf file (the PHP function works correct) and when i run it online with my browser it works.
so far so good.
Now i wanted to load this seperate "guestbook.swf" into my existing Flash site. It shows up everything, except the dynamic data that should be read from .txt file on my server. It fails to load the text into the dynamic text box.
This is very strange, because if I only run "guestbook.swf" with my browser, it does work, but if I add/load the .swf movie into my existing website, it does NOT load.... no editing has been made on "guestbook.swf"
what could be the problem? I tried everything I could, hope one of you guys knows the answer.
Mojokin
Loading Content Into Movie Clips
sorry to ask this question again, but i didnt receive clarification on this question. i have buttons(pictures with the GotoWebpage Behaviour) on the side of my website. however, i want to load the HTML pages into a movie clip or Window content inside an actual .fla?
can anyone tell me a quickfire way to do this please??
many thanks in advance.
Loading A New Movie In The Current Content Loader
Hello..I've done a search to the best of my ability but can't seem to find exactly how solve this problem. I'm quite the beginner and just purchased the book How to Wow with Flash and have followed the steps to create "shell-based navigation" for my website.
Here is the link to the website: http://erc.southern.edu
I have a template page with several permanent links that load the various sub-pages using a content loader movie(which I named cloader_mc). For example, for the DVDs link, here is the script I am using:
dvds.onRelease = function(){
cloader_mc.loadMovie("dvds/dvds.swf");
}
This works beautifully, but I don't know how to make new links in the dvds.swf movie load in the same "frame". When I make a link, it displays the movie in completely replaces the entire site. Basically, I need links in my subpages to point to the very same content loader that they themselves are nested in.
From searching, I know I have to point to the parent first or something like that but I have no idea how to do this. Any help would be awesome!
P.S.--to be more specific, I have another swf in the dvds folder named ERCTestimonial.swf that I want to link to from the the initial dvds subpage.
Loading A New Movie In The Current Content Loader
Hello..I've done a search to the best of my ability but can't seem to find exactly how solve this problem. I'm quite the beginner and just purchased the book How to Wow with Flash and have followed the steps to create "shell-based navigation" for my website.
Here is the link to the website: http://erc.southern.edu
I have a template page with several permanent links that load the various sub-pages using a content loader movie(which I named cloader_mc). For example, for the DVDs link, here is the script I am using:
dvds.onRelease = function(){
cloader_mc.loadMovie("dvds/dvds.swf");
}
This works beautifully, but I don't know how to make new links in the dvds.swf movie load in the same "frame". When I make a link, it displays the movie in completely replaces the entire site. Basically, I need links in my subpages to point to the very same content loader that they themselves are nested in.
From searching, I know I have to point to the parent first or something like that but I have no idea how to do this. Any help would be awesome!
P.S.--to be more specific, I have another swf in the dvds folder named ERCTestimonial.swf that I want to link to from the the initial dvds subpage.
Loading A New Movie In The Current Content Loader
Hello..I've done a search to the best of my ability but can't seem to find exactly how solve this problem. I'm quite the beginner and just purchased the book How to Wow with Flash and have followed the steps to create "shell-based navigation" for my website.
Here is the link to the website: http://erc.southern.edu
I have a template page with several permanent links that load the various sub-pages using a content loader movie(which I named cloader_mc). For example, for the DVDs link, here is the script I am using:
dvds.onRelease = function(){
cloader_mc.loadMovie("dvds/dvds.swf");
}
This works beautifully, but I don't know how to make new links in the dvds.swf movie load in the same "frame". When I make a link, it displays the movie in completely replaces the entire site. Basically, I need links in my subpages to point to the very same content loader that they themselves are nested in.
From searching, I know I have to point to the parent first or something like that but I have no idea how to do this. Any help would be awesome!
P.S.--to be more specific, I have another swf in the dvds folder named ERCTestimonial.swf that I want to link to from the the initial dvds subpage.
Hiding/Masking Off-stage Content (external Content)
Hi,
I'm loading an image gallery into another movie. The image gallery itself uses XML to generate a row of thumbnails dynamically. In it's own player, this is fine, but when loaded into the larger movie, the row of thumbnails extends far beyond the container clip.
I've set the size of the container clip with an onLoad function, but I have no idea how to appropriately mask it so there is no spillover. Using a mask in the gallery clip doesn't work because the gallery is 100% scripted (unless I'm missing something terribly basic).
Is there a general method to use, aside from creating infinitely large opaque boundaries around the stage?
Thanks for any tips or insight!
Loading A Frame In _root And Also Loading An External Movie Problems.
First of all, hello everyone and nice to meet you
I have been hacking at a problem for a couple of days now and I am in need of help to solve it. Please excuse my noobishness, but I have a lot to learn when it comes to flash.
Here is my scenario:
I have my main movie (_root)
In the actions layer of my main movie I have:
Code:
this._lockroot = true;
I have a button that loads a new external movie at the end of which I want to load a particular frame in the main movie. I call this from the external movie:
Code:
on (release) {
_root.gotoAndPlay(610);
}
Everything up to here works brilliantly....But my problem arises when I also try to load an external movie onto level 5 at the same time as I am instructing the main movie to play frame 610 from an external movie. I want the external movie to call frame 610 in main, and also load a new external movie on level 5 in the main movie. I have tried about every way of loading movies that I can think of but I can never get the external movie to load along with frame 610 of the main movie. I even tried _root.loadMovieNum("myexternalmovie",5) right after my first root call, like this:
Code:
on (release) {
_root.gotoAndPlay(610);
_root.loadMovieNum("myexternalmovie",5)
}
Is that possible or do I have to approach this entirely differently? Thanks for any responses
Help Problems Loading External Text And Loading The Movie Into The Explorer
Hola a todos!
I have some troubles with my movies. I'll explain.
(Sorry for my poor English - I'm Spanish!)
I'm developing a website for a Real State Agency in Spain. My idea is make it enterely with Flash, but It's the first time I face Flash. I've found in the tutorials of kirupa.com the greatest help! But, still that, I need more help!
My first problem comes when loading the .swf into the explorer. I made a simple .html file that calls the .swf file to be loaded. The explorer says it's loaded, but I have to press the "Reload" button to see the movie. Can you say me why?!!!!
My second problem... well. I'll need a few minuts to explain it!
I have created a main scene. Inside the main scene I load the movies of the different sections of the site. This new movies loaded onto the main movie contain texts from external .txt files. There's no problem with the texts that are just a few words, as in the section "Acerca de". But when I need a bar to show the whole text I find that the bar doesn't work in the first time that the movie is loaded, and you have to click again in the section to access the whole text, I mean, to make the bar work. Have I explain myself?
Well. I think you should visit the site to see my problems.
Is this: http://www.wk-inmobiliaria.com/FLASH
This website is, of course, incomplete. I'm still working on it.
Could someone help me????
---- Help me Obi Wan: You're my only hope!!!!
Thanks a Lot.
Raul.
Loading An External Movie Through An External Movie To The Main Movie
I hope I can explain this well enough for someone to understand.....Here it goes
I am creating a full site in flash. The main movie has an empty movie clip in the middle of the movie to load external movies as the user clicks on the links. Everything has worked good so far as the linking has only gone 1 level deep. However, when I created a new external movie, and had buttons on it for another external page, but yet to open in the main movie, I can't get anything to work. Example.... In the main movie, the user clicks on the archive link, and the external archive movie is loaded into the main movie. Now, on this archive movie, there is a button on it that links to a another movie (say text effects.swf). However, when they click this button for text effects, I can't get it to load into the main movie clip and replace the archive movie that was currenlty there. Can anyone help me figure out how I need to go about doing this?
I hope I have been pretty clear on my problem. You can always visit www.davidgreer.home.dixie-net.com to see the movie and how it works. I can always post the .fla if I need to.
If anyone can help, please let me know. Thanks.
Loading An External Movie Inside An External Movie?
This is my problem.
First my nav buttons load an external movie to a container movieclip. However in this loaded movie I am using another container to load in other movieclips (I am loading a movie in turn that movie contains buttons which loads in other movies to another container in that movie).
I'm using the following code on the buttons -
on (release){
_root.container.loadMovie("test.swf");
}
however when I click on the button in the movie clip it just goes white. Is my code wrong? Can you only load one movieclip using containers? I know I've explained it very complicated.
1. I click a button.
2. That button loads an external file to a container.
3. In that external file there is another button, when clicked loads another external file into it using another container.
Please someone help!!!
Loading An External Movie Inside An External Movie?
This is my problem.
First my nav buttons load an external movie to a container movieclip. However in this loaded movie I am using another container to load in other movieclips (I am loading a movie in turn that movie contains buttons which loads in other movies to another container in that movie).
I'm using the following code on the buttons -
on (release){
_root.container.loadMovie("test.swf");
}
however when I click on the button in the movie clip it just goes white. Is my code wrong? Can you only load one movieclip using containers? I know I've explained it very complicated.
1. I click a button.
2. That button loads an external file to a container.
3. In that external file there is another button, when clicked loads another external file into it using another container.
Please someone help!!!
Loading External Images Loading Bar (Movie Clip)
I have managed to have external images loaded with the progress bar. However, when I place these items into a movie clip the preloader no longer works. can someone please take a look at the flash file for me.
http://www.bloggot.co.uk/file.zip
Having Problems Loading An External File Into A Blank Movie Clip In The Parent Movie.
alright I have a main swf. and there is an empty movie clip called window1.
I have an external swf that is loaded that contains the menu. i have the clip loaded into level 14.
i am having problems having the menu load an swf into the empty movie clip.
Code:
on (release) {
loadMovie("about.swf", _parent.window1, "GET");
}
in firefox, the code above loads the swf, but it replaces the menu. it does the same thing in ie.
Code:
on (release) {
loadMovieNum("contact.swf", _parent.window7, "POST");
}
and this bit of code makes the swf open in another browser tab in firefox, and in ie it replaces the whole parent movie.
I need the menu and the parent movie to stay intact.
i really need help with this asap.
Having Problems Loading An External File Into A Blank Movie Clip In The Parent Movie.
alright I have a main swf. and there is an empty movie clip called window1.
I have an external swf that is loaded that contains the menu. i have the clip loaded into level 14.
i am having problems having the menu load an swf into the empty movie clip.
Code:
on (release) {
loadMovie("about.swf", _parent.window1, "GET");
}
in firefox, the code above loads the swf, but it replaces the menu. it does the same thing in ie.
Code:
on (release) {
loadMovieNum("contact.swf", _parent.window7, "POST");
}
and this bit of code makes the swf open in another browser tab in firefox, and in ie it replaces the whole parent movie.
I need the menu and the parent movie to stay intact.
i really need help with this asap.
Problem Loading External Movie Clips Into Target Movie Clip
Hello,
I've been desperately trying to figure how to get this function to work. I created a target movie clip, then assigned an external one to it, but I can't seem to get it to work. Can anyone help me with this and fully explain it so I don't miss anything? I'm using flash professional 8.
Thanks so much!
Rob
Loading An External Movie Into A MC - Part Of The Movie Vanishes. Why?
Hi!
I'm loading an external movie into a mc so that I can scale the external movie down in size. But when the external movie loads some of it vanishes.
For example - at http://www.halfmoon.org.uk/HMScreensaver4.swf -you can see what the full movie I'm trying to load does (sorry its around 55k).
As you can see i have one of those mouse following style MCs -except that instead of following the mouse it moves around the screen randomly.
But at http://www.halfmoon.org.uk/scalemovie.swf
-when its loading into another movie you don't see the randomly moving MC -It just dissappears.
The actionscript I used to load HMScreensaver4.swf into the other movie was:
loadMovie ("HMScreensaver4.swf", _root.targetMc);
_root.targetMc._xscale=60;
_root.targetMc._yscale=60;
I've got a couple of other movies that its doing the same thing to.
Is there any way around this?
For example - is it possible to load the movie into a level instead of a mc and then scale it? Or is there some scripting I need to include that will allow me to view the rest of my movie?
Thanks for any help in advance!
-Tosca
HOW? Retaining Movie Size Upon Loading External Movie.
I have run into a problem creating a stand alone presentation ,, when a swf (movie) is loaded into the stand alone player, any re-sizing of the origanal is lost and reset to what the loaded movie is set to...
I know there is a way to cure this, but my referance books do not talk about this particular issue.
Please let me know what i should do via action script.
~Chris Rosenau
__________________
Chris Rosenau
Rosenau Productions
webmaster@rosenauproductions.com
Loading External Movie From A Movie Clip In The Root
Hey, I ran into some problem with the webstie that I'm designing.
Let's say the root movie is main.swf and within the main.swf, there is a movie clip called buttom that controls the buttom animation. when I push that buttom, I want it to load an external movie, say, external1.swf into the main.swf.
I have the empty movie clip on the stage on main.swf . When I try to load external1.swf, it just wouldn't do it? (I'm using the loadMovie("url","target")command)
Is there anything wrong?
Thanks
Problems With Loading External Movie From A Button In Another Movie....
Hi,
I am working on a scrolling thumbnail movie clip, that when you click on the thumbnail button inside the movie clip it will load an external movie clip. I have an empty movie clip on the main stage, and have been trying all sorts of code, but for some reason it doesn't like that I am inside a movie clip using buttons. It can't seem to find the external swf.
I have tried:
on (release) {
loadMovie (ithink.swf, "loader");
and
on (release) }
if (firstTime == true) {
loadMovie("ithink.swf", _root.loader);
firstTime = false;
} else {
_root.clicked = "ithink.swf";
_root.loader.gotoAndPlay("goback");
}
}
and so far nothing, for some reaosn when I click on a button outside of the movie clip with the above code it loads... and than the other works too, but if I click on the buttons inside the scolling movie clip first they won't work.
Any suggests or ideas!!?
I would really appreciate it... I am beyond frusterated!!
|