Problem Controlling Loaded .swf
Hi, I'm new to AS3.0 and am having major difficulties controlling a loaded .swf file from my main class code (I have been successful controlling the .swf from timeline code, but want to be able to migrate to OOP-- it seems as though similar code just doesn't work from my main class).
I wanted the .swf loading code to be reuseable, so I created a MovieLoader class as follows:
ActionScript Code:
package _classes {
import flash.display.*;
import flash.net.URLRequest;
import flash.events.Event;
public class MovieLoader extends MovieClip {
private var loader:Loader;
// Initialize the loadedMovie variable which contains the loaded content from the URL
private var loadedMovie:MovieClip;
public function MovieLoader (url:String) {
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.INIT, onInit);
var urlRequest:URLRequest = new URLRequest(url);
loader.load(urlRequest);
}
private function onInit (e:Event):void {
loadedMovie = MovieClip(e.target.content);
}
public function getContent ():MovieClip {
return loadedMovie;
}
}
}
The main class code that calls it is:
ActionScript Code:
package {
import flash.display.*;
import flash.net.*;
import flash.events.*;
import flash.text.*
import _classes.*
public class Map extends MovieClip {
// Initialize the consoleLoader variable that will load console.swf
private var consoleLoader:MovieLoader;
// Initialize the console variable that refers the the console.swf content
private var console:MovieClip;
public function Map () {
// Set Flash Player to "no-scale" mode
stage.scaleMode = StageScaleMode.NO_SCALE;
// Load console.swf
consoleLoader = new MovieLoader("_assets/console/console.swf");
console = MovieClip(consoleLoader.getContent());
addChild(console);
console.y = 100;
}
}
}
When I test it, I get the following runtime error message:
Quote:
TypeError: Error #2007: Parameter child must be non-null. at flash.display: DisplayObjectContainer/addChild() at Map$iinit()
This happens no matter how I write the code (most of which is taken directly out of Colin Moock's "Essential ActionScript 3.0"). What am I missing?
ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 11-06-2007, 03:29 PM
View Complete Forum Thread with Replies
Sponsored Links:
Urgent Loaded Movie Controlling Other Loaded Movi
I need this one done today!
I have two holder movie clips in my main .swf. One is selectloader, the other is normloader.
So selectloader.loadMov..... that works
In the select I load a selection with three boxes, the user chooses one.
When the user clicks one of the boxes I do
_root.normloader.loadMovie...
and it doesn't work!
So I created a new frame on the holder .swf for each of the three buttons so all the selectino has to to is go to another frame.
That works, but I also want each of the boxes to direct to a certain frame in normloader
so the problem comes back again
I can't get one loaded movie to control another loaded movie
I'm assuming it has to do with levels, and I need to do more then just _root.normloader.gotoAndPlay(3);
what do I have to do?
View Replies !
View Related
Controlling Loaded Movies That Arent Quite Loaded Yet
Hello everyone. I am having an issue with loading an swf into an MC and having it go to a specific frame. The problem is I have one long on (press) thing going on where on press approx. 15 things happen like unloading movies loading movies etc.. The path I am using is correct I think the problem is the movie hasnt loaded yet by the time this line in the acionscript is hit. So it's like I am asking it to play a frame in a movie that hasnt loaded yet. I cant really think of a solution to this and was hoping someone here could. I thank anyone in advance for their help. I was thinking an if frame loaded thing but I really just dont know.
View Replies !
View Related
Controlling A Loaded Swf From Another Loaded Swf (both In Index.swf)
I have an index.swf that loads the menu.swf (level4)and the info.swf (level5)
the info.swf had buttons in it that controlled it (slides info across page):
on (press) {
/:Box_RollBack = 1;
/:destination_menu = 2;
/:menu_rollback = 1;
/:menu_difference = /:current_position-((/:destination_menu-1)*/:menu_width);
}
All works good... till
I want to do the same thing but have the button that did that in the menu.swf
Is there a quick fix here or not? What can i do?
View Replies !
View Related
I Still Here & No Help With Controlling Loaded Certain Swf
In my main movie there are 4 buttons each of them load a different movie into the same level(level10).
Now lets say that i clicked button nr 1 and it loaded a movie called firmast.swf the button also sets my backround to alpha 30.
Now when i scroll over the button that just loaded the movie called firmast.swf i want it understand that it has loaded a movie and not set backround`s alpha back to 100.
Ok lets presume that i click button nr 2 that loads tooted2.swf into level 10. and sets backround`s alpha to 30.
Now when i rollover button nr 1 backround`s alpha is set back to 100 and when i rollover button nr 2 alpha is not changed.
All the 4 buttons have to understand that if they have loaded a movie into level10 and i preform rollover on them they wont change alpha back to 100, but for example if button1 loaded a movie into level10 and i rollover button2 the backround`s alpha is set back to 100
Please dont tell me how controll levels
i need controll certain swf.
Download Test movie if can help me
http://www.hot.ee/meediaprojekt/Test.zip
View Replies !
View Related
Controlling Loaded Swf
How can I controll an swf that I've loaded into another movie (with loadMovie())?
I want to be able to go to a different scene in the loaded swf, when I press a menu button in the main swf.
Thanks for any help on this one!
View Replies !
View Related
Controlling Loaded Swf In MX
I am trying to control a loaded swf from the main movie.
I am using :: _root.mc_instance_name.someAction();
Do I somehow need to dig into the loaded clip? The action is just a stop on the main timeline of the loaded movie.
Thanks
Brian
View Replies !
View Related
Controlling A Loaded Swf?
if i'm loading an swf into empty movieclip, is there
any way of sending the loaded mc to a specific framelabel when it loads..
I've tried this on a button but it doesn't seem to work :
on (press) {
loadMovie("test.swf", "holder");
holder.gotoAndStop("testframelabel");
}
any ideas??
View Replies !
View Related
Controlling A Loaded Swf
I'm creating my portfolio and I want to load in each screenshot of work with the loadmovie script.
Here's the problem, if someone clicks a button on the main nav to view a peice of my work (lets call it screenshot1) screenshot1.swf loads and animates in (see attached FLA to see animation and frame/timeline layout), no problem, however when the user wants to view screenshot2 I want to reverse or animate screenshot1.swf so it's no longer visable and then load in screenshot2.swf.
So, how do I do this and how would screenshot2 know when screenshot1 has finished animating out for it to animate in.
Thanks for your help.
View Replies !
View Related
[F8] Controlling Loaded Swf
Hi All! My problem is: After loading an external movie (swf) into root timeline, I''m unable to use any function like gotoAndPlay("frame_label"), play(), stop(), etc.. on the loaded movie.
I tried to load this external movie using regular functions loadMovie(''***''); loadMovieNum(***), and also using Actionscript with createEmptyMovieClip("***",***) - I can access the loaded external movie for counting getBytesLoaded() , getBytesTotal() , and also I can send variables into this movie like _root.loaded_movie.myVar = "smth"; But! I can not send regular flash commands.
Any solutions?
Thank''s for All.
View Replies !
View Related
Controlling Loaded Swf
I've loaded a swf in a loader and I wish to control it. Can I control it like this or should I load it with loadMovieNum() or loadMovie() (the loaded swf will also have a progress bar preloader -so i guess I should use the loadMovie())? I want the loaded swf to play a certain frame for example. Please help.
View Replies !
View Related
Controlling Loaded Swf
I've loaded a swf in a loader and I wish to control it. Can I control it like this or should I load it with loadMovieNum() or loadMovie() (the loaded swf will also have a progress bar preloader -so i guess I should use the loadMovie())? I want the loaded swf to play a certain frame for example. Please help.
View Replies !
View Related
Controlling A Loaded SWF
Hi all- Noob question, hopefully the answer is painless:
I have my main timeline that has an nested MC on it. It's path is this:
root.mcVideo.mcLeftside
I am loading a SWF file into mcLeftside. Works great. Also on the main timeline is an MC that has a button inside of it. The path of the button is this:
root.mcNav.agency
When I click this button, I want to move the playback head on the main timeline of the loaded swf in mcLeftside. I'm having some difficulty targeting that timeline. Here's the code that loads the swf. This code is located on the timeline of mcLeftside:
ActionScript Code:
var imageRequest:URLRequest = new URLRequest("leftside_home.swf");
var imageLoader:Loader = new Loader();
imageLoader.load(imageRequest);
addChild(imageLoader);
imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
function onComplete(event:Event):void {
var ilHeight:Number = imageLoader.height;
imageLoader.x = 0;
imageLoader.y = -ilHeight
MovieClip(parent).gotoAndPlay("leftsideout")
}
And here's the code I was trying to write for the button:
ActionScript Code:
agencymc.addEventListener (MouseEvent.CLICK, agencysect);
function agencysect(e:Event):void{
MovieClip(parent).mcVideo.mcLeftside.cricket.gotoAndPlay("jump");
}
I'm so new to AS 3.0, the last significant coding I did was in MX, so the change has been difficult for a non-coder like me. Thanks in advance for the help.
View Replies !
View Related
Controlling Loaded SWF
Hello to everyone, may this question be too obvious for everyone, but I've been googling for hours without any luck, so don't think I'm just lazy asking the things here. Maybe I'm not able to make a really specific search the thing is that I have seen examples but they are not exactly as my scenario...
Please, I need some help.
I have loaded a SWF and attached to a MovieClip which exist in my current movie (It has to be like this, If I attach the SWF to the stage It appears over all the elements which are currently there, it doesn't matter if I give it an index...) using the following code, and now I just want to access the loaded SWF to send it orders like play() or gotoAndPlay(); I have tried also: container= MocieClip(loader.content); instead adding child, but it throws an error
Code:
var request:URLRequest = new URLRequest("movie"+$trace+".swf");
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
function loadComplete(event:Event):void
{
loader.removeEventListener (ProgressEvent.PROGRESS, loadProgress);
}
loader.load(request);
container.addChild(loader);
Can't somebody point me to the right way?
Thank you in advance
View Replies !
View Related
(AS3) Controlling Loaded SWF
I am trying to control a loaded .swf with the parent .swf. I do not know how to call the loaded .swf. I know how to control the parent with the child, but not the other way around. any suggestions would be great. thanks!
View Replies !
View Related
Controlling Loaded Swf
i'm developing a thumbnail gallery in one swf, and i'm loading it from another swf(a main page), and it works perfect, but i want to control what XML to load from the main page swf.
the question here is how to tell the thumbnail gallery swf to load a xml file from the main page swf?
thanks in advance!
View Replies !
View Related
Help In Controlling A Loaded Swf
first i made an empty movie clip and named it "container"
and then i made a button..
here's the code for the button in main movie..
on (release){
container.loadMovie("movie1.swf");
movie1.play();
}
then i put stop(); on the first frame of the swf to be loaded...
what i want is to play movie1 by pressing the button in the main movie..
View Replies !
View Related
Controlling A Loaded Swf
hi everyone!
well, i have this loaded swf, which i got into a specific layer by loading it right into a movieclip, and it's a voice guided tutorial movie. what i'm finding is that when i navigate to another part of the flash website i'm creating, i've still got the audio narrative from that laoded swf playing.
so pretty much i just want to make it so that when you click the button to go to another part of the website, it makes the movie either completely disappear or stop playing. i guess disappear would be prefferable, although it would be good to understand either.
i've been just reading and reading and it's so silly : i just can't find anything that explains how to actually communicate to your loaded swf from the main timeline.
so here's my loader code :
Code:
var loadRequest:URLRequest = new URLRequest("GaiaCraft.swf");
var swfLoader:Loader = new Loader();
swfLoader.load(loadRequest);
load_mc.addChild(swfLoader);
and here's something i tried off the top of my head to make it work (inside the navigation button function on the main timeline) :
Code:
load_mc.swfLoader.stop();
also set up a completely blank swf file and tried :
Code:
load_mc.swfLoader.source = "blank.swf";
also tried :
Code:
load_mc.removeChild(swfLoader);
it just seems like it should be so simple, but maybe it's not?
View Replies !
View Related
Help Controlling Loaded MC's
Hello all,
I am using the following to load a series of MC's from the library. (obviously this just loads the mc1 clip, once mc1 is done, a next button loads mc2, and so on..)
btn1.onPress = function () {
_root.attachMovie("mc1", "newInstanceName", 1, {_x: 20, _y: 90});
}
My problem now is, once the MC is loaded, I want to allow the user to pause/play, and restart the movie clip. I tried a few options that I found, but so far nothing has 'stuck'. Any help would be appreciated.
Thanks
View Replies !
View Related
Controlling X, Y Of Loaded SWF
Can someone please tell me how to change the X, Y position of a loaded swf. I'm able to loadMovie() but I've tried all different combinations to get that think to move to the right spot.
_root[calendar.swf]._y = 400
_root.["calendar.swf"]._y = 400
a = "calendar.swf"
_root.a._y = 400
Nothing seems to work. I've done this before but I changed my mind and erased the code. Now I need it back. I've even tried the attachMovie() method but I don't think I'm doing something right. Somebody please help my dumbass out. I feel so stupid because this is soooo easy. Any help would be greatly appreciated. Thanks.
Bo
View Replies !
View Related
Controlling The Loaded Swf/jpg
Hi all
I am looking for a tutorial, perhaps you could help cos I didn`t find any!
I want to create web site in flash...that loads bg either swf or pics at Level_0 and upon it another swf. (content)
The trick I would like to know....how do you controll no matter how big you zesize the browser screen the background loaded swf/jps adjusts to browser yet keeping size of loaded swf (content) same.
here is example link
http://www.viesrood.nl/
thanks a lot
reverse
View Replies !
View Related
Controlling A Loaded Movie
ive been makin this really cool music menu, and i wanna set it up like this, i have it load up but on the first fram of the music menu it has a stop command, so that the music starts w/out them havin to open up the menu, but they cant see it. Then when they click to open it i want it to start fading in, so i wanna get past the Stop command, i wanna to have it Goto&Play Frame 2,the problem is i cant really command it from the movie it was loaded onto besides loading it and unloading it, is there any way i could give it a Goto&Play command from the movie it was loaded onto? , i really wanna load this movie up, instead of havin it be part of the whole thing(its laggier if u do that) HELP!
View Replies !
View Related
Controlling Loaded External Swf's
I'm gettin' really frustrated here. I've been working on this pretty big flash website for months now, and wouldn't you know it, it's too big to load all at once on any connection slower than a DSL (it may work on cable). Even though I shouldn't be letting anyone see it yet, it's here http://www.webxinc.com/new_webx13. Keep in mind, it'll probably never load if you're on a 56k modem, but if you're still interested in seeing it, try putting a number lower than 13 after "new_webx" in the adress (like maybe 8). Anyway, my problem....
I've been trying to split this into separate .swf's that'll load into the main one which contains the intro, main page buttons and backgrounds, and content for the top buttons. The "portfolio" and "about us" sections will each be separate .swf's that load into the main one using the "loadMovie" (or "loadMovieNum") commands and be placed in holding MC (or higher level). So I've tried this by making a separate swf out of the portfolio section and deleting the portfolio part out of the main swf (This is not demonstrated in the currently posted version). I put the "loadMovie" command inside of the fisrt client list button inside of the portfolio section, and in that button's object actions, I also tried controlling movie clips that reside inside of the loaded swf. In the Flash 5 Bible, it says that this can be done by specifying the level of the loaded movie and following it with the instance name and then the command, sort of like how the _root command is used. Here's an example:
_level1.pbg.gotoAndPlay(2);
Here, "pbg" is the instance name.
But this doesn't work. For some reason, the MC's within the loaded swf aren't responding to my commands. I need help!!!!!!!!!!!
please
View Replies !
View Related
Controlling Loaded Movie
I'm loading a movie into my 'main' movie. This movie has a stop() in the first frame so I can start it from the main movie... but I can't get it to work. I'm using this actionscript:
var strDemoFilm = "video/demofilm_custom06.swf";
_root.mcVideoHolder.loadMovie(strDemoFilm);
_root.mcVideoHolder.play();
I've also tried this instead of the last line:
_root.mcVideoHolder.gotoAndPlay(100);
Nothing seems to work. If I remove the stop() from the 2nd movieclip it plays just fine, so there doesn't seem to be a problem in the 'loading' part...
Any thoughts???
View Replies !
View Related
Controlling Loaded Movie?
in my movie, i loaded a movie named "DT.swf" into a movie clip with an instance name of "blank". is there anyway to control or tell the movieclip DT.swf, to ..... for example
Code:
gotoAndPlay (11) ;
ive heard people post on it before, but i never listened in for the answer. thanks for any help.
View Replies !
View Related
Controlling Loaded Movies
I have a question which is actually multiple questions which are really one problem. In frame 1, scene 1 of my main movie, I load navigation.swf onto level 1. navigation.swf has my buttons in it. The buttons use tell target to tell the main timeline to load images.swf onto level 4 of the main movie timeline. I need my buttons to check the currentframe in images.swf. And if frame X is loaded, goto scene2 of images.swf. I am a novice who is totally confused by now. Any ideas?
View Replies !
View Related
Controlling Loaded Movies
i loaded some movies (swfs) on top of the main movie (different levels). how can i have such a loaded movie forwarded to a certain frame instead of having it start from the beginning?
any help is appreciated. thank you.
View Replies !
View Related
Controlling Loaded Movies
I realize this have been a past topic and the person who posts seems to always have the ah-ha in the end but for me it;s just not working!!!! I have two buttons one with the is script:
on (press) {
loadMovieNum ("movie01.swf", 31);
}
View Replies !
View Related
Controlling Loaded Swf With Sound?
Hi all...
Im really stuck this time.
I want to load a swf file ( containing music) in my main movie. I then want to control its volume through the sound object. Nothing's happening. My codes are:
On buttton for loading sound:
on (press) {
loadMovie ("music.swf", "_root.sound");
}
on (release) {
global = new Sound();
}
On another for volume setting:
on (release) {
global.setVolume(10);
}
Any help will be appreciated.
MIIZ
View Replies !
View Related
Controlling A Loaded Movie.
OK, here it is. I am currently developing an interactive flash presentation that shows the different sections / departments within our company.
The navigation system is loaded into level0, most of the buttons that reside on this level use the loadmovie command to load other SWF's into level1.
My problem is that I want to navigate though the scenes in my movies at level1 (First, Previous, Next, Last) from navigation buttons at level0.
Anyone Any Ideas?
PS. All my Loaded movies have a different number of scenes.
View Replies !
View Related
Swf Loaded Inside A MC Controlling Other MC
Hi,
I got in a trouble...
I have a MC(thumbs), this MC has a action that loads a swf(thumbs.swf)inside him. When I click in a button that exists in this thumbs.swf I would like controll other MC, like GO TO AND STOP IN FRAME 5.
Can anybody help me??????
Please
Thanks
Thiago
View Replies !
View Related
Controlling Loaded SWFs
Can anyone help?
I'm new to actionscripting.
I am loading several SWFs into a target successively, each one calling the next. Call them MC1-MC4. Each has several scenes.
Here is my challenge:
I need to program a Rewind, Stop, Play, and Foward button on the host movie that control whatever movie is currently loaded in the target.
NOTE: The Rewind and Foward button only need to take the user to the begining of the previous/next scene.
Like I said I'm very new to ActionScripting. Does anyone have an example script I can look at? Can this be done simply?
Thanks!
View Replies !
View Related
Controlling Sound From .EXE, Loaded SWF
I am working on a cdrom and I want to have bkg music in it. I set up a movie clip that controls the volume of my audio and saved it as music.swf. I then loaded it into my main exe file using loadmovie and have it placed on level 9. When the swf file is loaded there is no music playing but my interface works fine. If I listen to it separately it works. Any ideas?
Here is the code for my swf
mySound = new Sound();
mySound.attachSound("bkgmusic");
mySound.start("", 999);
bkgmusic.mp3 is attach via linkage
In my exe all I did was
loadMovieNum ("music.swf", 9);
Thanks for the help
Cracker
View Replies !
View Related
Controlling A Movie Loaded Into Another
I have a flash movie (movie A) that uses a LOADMOVIE command to load an external swf file (movie B). Is it possible to tell movie A to perform an action after movie B has reached a certain frame?
for example, when movie B reaches its 10th frame, movie A displays a text message of some sort.
- Brad
View Replies !
View Related
Controlling A Loaded Movie ...
I currently have a 'main' movie ..and a loaded movie with the main.
In my 'main' movie level 0, ...I have a button. I want this button to flip to the next scene in my level 1 swf movie.
At the moment I have the following action on the button on level 0.
on (release) {
_level1.gotoAndPlay ("start");
}
The above works fine if I have a lable on the level 1 movie. But I don't want to use labels. I want to use 'next scene'.
So I tried the following:
on (release) {
_level1.nextScene ();
}
That doesn't work, ..so what am I doing wrong? Thanks
-Justin
View Replies !
View Related
Controlling Loaded Swf's Externally
i posted this in scripting - backend, and didn't receive any replies. probably because it seemed to be the wrong forum. here it is again, verbatim. also, i'm using flash mx.
---
ok, this is the deal. i'm designing a site and basically what i want to happen is when a section is clicked, i want the previous section to animate out, and the other to animate in. also, i'm loading the sections into a movie clip, using loadmovie.
what i want to happen, ideally, is when a section is clicked, it changes the value of a variable, and then proceeds to play the swf that has been loaded into the movieclip. when it reaches the end of the timeline, i have an function checking the value of the variable (which is located in the main swf), and loading the appropriate swf file.
so, basically, what i'm having trouble with, is controlling the timeline of the loaded movie clip with a button located in a clip in the main swf. i was wondering if this is possible, and also if the function i created to check the value of the variable (for the sections) and also the variable can be passed into the loaded swf file also.
help would be very appreciated, and keep in mind, i'm fairly new to flash. thanks.
View Replies !
View Related
Controlling A Loaded Movie
I there a way to load a movie and have it advance to a frame lable within the movie that is loaded? For example have it load movie (X) with the play head at frame lable (Y)? Any help would be greatly appriciated.
Thanks! Andrew
View Replies !
View Related
Controlling An Externally Loaded Swf
Can anyone help? I have a swf file that I have brought into my main movie using the loadMovie action (it is targeted to a blank movieClip called 'placeholder')
Does anyone know how I can control this loaded movie clip from a button on the main timeline?
When the button is pressed I want the loaded swf to begin playing at Frame X, and when it reaches frame Y, it tells the main movie to goto Scene2. (I think I know how to do the last bit! I'm just struggling with the first bit!!)
Any help/ideas would be much appreciated!!
Ta! :O)
View Replies !
View Related
Controlling A Loaded Movie
Could someone please help me?!?
I have two movies (A & B) I am loading movie B into movie A, and I need movie A to tell movie B to go to a MC in B and stop on frame 2. Sound easy and I'm sure it is, but I'm stuck. Please help!
Thanks, Steve
View Replies !
View Related
Controlling Movieclip With Loaded Img
Hi,
I want to control with an onPress or onRelease handler a movieclip that contains another movieclip which I use to load an image into. This doesn't seem to work. It works without the loaded image though.
this is some of the script :
_loadMovie(nameLargeImage,_root.mask.containerLarg eIMG);
_root.mask._x = -30;
_root.mask._y = -30;
_root.mask.onPress = function(){
startDrag(false)
}
why why why??
View Replies !
View Related
Controlling Movie Loaded In MC
Why is this not working? All I want is the movie that is loaded in the "loadBox" is to "play".
FIRST FRAME OF MOVIE BEING LOADED
==============================
_parent.moviePath = this;
BUTTON
==============================
on (release){
if( _root.loadBox.movieLoaded == 1) {
}else{
_root.loadBox.loadMovie("salesPitch.swf");
_root.loadBox.moviePath.play();
}
}
It worked fine in other applications, but it seems like it quit working after I put the "if" statement in with it. Could there be a conflict? WTF?
Thanks ahead of time!
View Replies !
View Related
Help With Controlling Loaded Swfs
Hey guys,
I'm making a site in mx, and I have got it set up so it loads and external swf when you click on each section. I have an animation coming into each section and going out aswell. I have each swf with a stop at about frame 10, where the page stays for viewing. I want it so that when you are viewing a section, lets say the "about me" section, and you click on say "links", it will play the rest of the about me.swf, when it gets to the end, load links.swf in its place.
View Replies !
View Related
Controlling Loaded Swfs
I have a main clip, and inside of it I'm loading movies externally (into an empty clip called "host".)
I have frames labeled "01", "02" and "03". After I've loaded externalMovieA into the host clip in frame "01", I want externalMovieA to play to its end. When externalMovieA is ended, I want the main clip's root timeline to go to lable "02" and load externalMovieB.
I can't seem to control an externally loaded clips.
Any help? I'll include the main FLA.
Thanks.
View Replies !
View Related
Controlling A Dynamically Loaded MP3
Hi Flashers,
I was hoping someone here could help solve this problem:
I've got an MP3 that I want to load seperate from my swf, so I'm using:
s = new Sound();
s.loadSound("http://www.cubik3d.com/Audio/cubik.mp3", false);
s.start();
That's all well and good, but now I'd like to add some basic user control, (play, pause, stop). Any idea how to set a button to control these functions? I've been trying, say for play:
on (release){
s.stop();
s.start(0, 10000);
}
But no luck. Thanks in advance for taking a look.
Swanz
View Replies !
View Related
Controlling A Loaded Mc From Main Mc
ok, after browsing this forum for a bit, I can't seem to find how to control a loaded mc from a 'main' mc when one uses loadMovie with a target/dummy and not loadMovieNum. My situation is that I have loaded an external .swf into a 'main' .swf and I want a button in the 'main' .swf to control the playback of the loaded .swf. I've tried using dummy_mc.play(), where dummy_mc is the instance name of the target/dummy but it doesn't want to work (it doesn't seem like it would anyways). do I have to use the name of the loaded mc, i.e. ext_mc.swf, instead of the instance name of the target/dummy or am i completely lost here?
ps. if at all possible, i would like NOT to use loadMovieNum, just a personal preference, that's all.
View Replies !
View Related
Controlling Loaded Movies
This may be a silly question, but I've been trying to learn how to control loaded movies in Flash MX, so I can shift the loaded movie's timeline around using a button on the parent level. I am new to this kind of scripting, so I'm a little under par when it comes to dealing with loaded movies and the ins and outs of using this function.
I have successfully loaded the movie and can unload them just fine, but I want to either put a button on the parent level to target a certain frame of the loaded movie OR the other option I can think of, is to target a certain movie clip withing the loaded movie and change it's place in it's own timeline. Either way, I can't get this to work.
The other option is to have a button inside the loaded MC to effect the parent level, but I'm not sure that this is possible.
If anyone could shed light on how to do this and what scripting I need to know, I'd be extremely grateful. I'm going crazy trying to figure this out.
LT Roberts
View Replies !
View Related
Controlling A Loaded Movie
Hi
I have loaded a small animated flash movie ("B" into a main flash movie ("A") using the following script:
on(release){
loadMovie("firmInfo/B.swf",_level0.firmInfo);
gotoAndStop("pause");
}
This plays movie B from within movie A until movie B reaches a stop.
I would like to resume movie B from its stop point with a button located in movie A. I have tried the following script on the button in movie A, but it doesn't work:
_level0.gotoAndPlay("resume");
(resume is the name of the keyframe immediately after the stop in movie B)
also,
_level0.B.gotoAndPlay("resume");
does not work.
any ideas?
thanks!
View Replies !
View Related
|