Controlling Swfs Loaded Into An Empty Mc
Can anyone help me out with a script that i can put in a single key frame of my index.swf that can pause / play the swfs that are loaded into an empty mc <eg. movies_mc>.
Thanks.
FlashKit > Flash Help > Flash General Help
Posted on: 04-26-2003, 03:54 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Controlling Loaded Swfs, From Other Swfs....
alright on my site, i have a loaded movie clip with sound, which is the main bg music, and i have a samples page, and i want each sample to load up on press or whatever. now i need to know how to not just unload the mian bg music swf, but make that swf go to and stop on frame 3 (1 is loader, 2 is play, and 3 is stop) thanks alot!!
Controlling Loaded SWFs
Is it possible to control SWFs that you have loaded into your main movie? Like tell it to change frames for example?
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!
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.
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.
Controlling Loaded Swfs
Hi,
Complete noobie here and just getting to grips with AS 3.0 so apologise if this is a dumb question.. Anyway, trying to load and then control an external swf with this code:
var myrequest:URLRequest = new URLRequest("Left.swf");
var myloader:Loader = new Loader();
myloader.load(myrequest);
//check loads completed
function swfLoaded(e:Event):void{
stage.addChild(myloader);
var mycontent:MovieClip = e.target.content;
trace(mycontent);
mycontent.x = 100;
mycontent.y = 100;
mycontent.gotoAndStop(10);
}
//add event to loader class
myloader.contentLoaderInfo.addEventListener(Event. COMPLETE, swfLoaded);
evrything works - x and y of movieclip get set but problem is that the movie doesn't stop at frame 10 - it just keeps playing through?!
Anyone any idea why this could be so??
Controlling Loaded Swfs
Hi All,
I tried yesterday to sort this out, but didn't explain it very well and I think everyone lost interest. So I'll try once more.
What I'm trying to do is create buttons in one swf that load another swf and also give instructions to begin playing from a certain frame in that swf. The target swf has a preloader on frame 1 and then a movie clip that contains a video in frame 2. Depending on which button the user presses the video will be cued up ready to play at different frames.
I think it may need an if statement ie if x=34 then goto frame 34, but I can't seem to pass the variables to the loaded swf.
In the zip file is an example of what I'm trying to do. I would really appreciate any help on this.
Controlling Loaded Swfs
Hi All,
I tried yesterday to sort this out, but didn't explain it very well and I think everyone lost interest. So I'll try once more.
What I'm trying to do is create buttons in one swf that load another swf and also give instructions to begin playing from a certain frame in that swf. The target swf has a preloader on frame 1 and then a movie clip that contains a video in frame 2. Depending on which button the user presses the video will be cued up ready to play at different frames.
I think it may need an if statement ie if x=34 then goto frame 34, but I can't seem to pass the variables to the loaded swf.
In the zip file is an example of what I'm trying to do. I would really appreciate any help on this.
Controlling Externally Loaded Swfs
Hello-
I am using AS 2.0 and MX 2004. I have a movie that loads in external swfs and images using the MovieClipLoader to load the element in to a clip called "container".
Now I've been testing within flash with test movie and it works great. as soon as I export my commands that toggle within different frames of the external swf fail.
what I have is:
container.gotoAndStop(frameLabel);
is there an obvious reason why this would stop working on export? or things I could try to figure this out.
I tried loading on to levels instead so I would have:
_level25.gotoAndStop(frameLabel);
and I still have the problem.
I am exporting as Flash 8 and testing in Flash Player 8.
ideas?
Controlling External Swfs Loaded Into An MC
Hi, quick question.
what actionscript could i use to make an movies loaded into a movieclip play. tried _root.holderMC.play(); holderMC being the movieclip the external swf is loaded into, doesn't seem to work! searched the internet too but no lucky, so any suggestions would be awesome.
Thanks alot
TOM
Controlling External Swfs Loaded Into An MC
Hi, quick question.
what actionscript could i use to make an movies loaded into a movieclip play. tried _root.holderMC.play(); holderMC being the movieclip the external swf is loaded into, doesn't seem to work! searched the internet too but no lucky, so any suggestions would be awesome.
Thanks alot
TOM
Controlling Loaded Swfs From Main Swf?
If I'm loading a swf into a movieclip with loadMovie, is it possible to control the loaded swf from outside it? In other words can I create actions in the main swf (or a movieclip within it) that can control the timeline of the swf that I'm loading into it?
Controlling Three Loaded Swfs With One Keypress
G'day
I hope someone has an idea.
I have a function that controlls zooming and pan of the stage using keys (space bar, backspace and arrow keys). It works fine. I made a swf with some objects on the stage.
I load the swf with the zoom into a base movie thats ok, works fine.
I thought that I could get a better 3d effect with the zooming if I had three of these zooming swfs loaded on top of each other with different objects on them, at different scales, zooming at different rates (the top one faster the next one slower etc.).
The problem is that once all three swfs have loaded, the keypresses only respond to the first swf that flash loads the others are static.
Is there a way around this problem?
Any help would be greatly appreciated.
easy
Controlling MCs Inside Externally Loaded SWFs
I am loading a SWF file on layer1 of my project, and I'm attempting to position it from my _level0 "root" timeline with:
_level1.pledge._x = 256;
_level1.pledge._y = 144;
Alas, I can't make it work. The only MC inside the loaded SWF file has the instance name "pledge", so I figure this should work. What am I doing wrong?
Controlling Loaded Swfs With Action Scrip?
Ok, so I have a master Swf that loads a top menu swf and an animated background swf. On the menu I have a navigation button that once clicked SHOULD play the background.swf and once it is finished, Load another swf on top of it. I am tottaly stumped on how to do this.
this is what the button looks like so far
MM_news.onRelease = function () {
reActivateBtns();
changeOptionColor(this, overColor);
this.enabled = false;
_level2.gotoAndPlay(1);
if (backMorph._currentframe(42)) {
myMCL.loadClip("news.swf", 5);
}
};
Controlling Root With MC Loaded Into Empty MC On Root
I have a movie in which there are 7-8 Empty movieclips put on the stage. I load movieclips into these on load and from some Btns on the main or root movie. Now I'm trying to change out one of these empty MCs from a MC loaded into another empty MC....If that makes any sense?? Here's the code:
code:
onPress = function () {
this.gotoAndPlay(frame);
if (code == "1"){
_parent.getURL(site, target);
}
else if (code == "0"){
fscommand("exec", fs);
}
else if (code == "2"){
_root.clipnmone.loadMovie(movie, clipnmone);
_root.clipnmtwo.loadMovie(movie2, clipnmtwo);
}
}
I'm getting the Vars clipnmone & clipnmtwo But I can't seem to hit the clip on the root movie. It's called clip4. Now, it works if I put the clip name in place of the Vars. If someone could point out what I'm doing wrong, that would be great. Thanks for your help and time on this. Oh, and I'm using Flash vers 6. So, please don't send me 2004 code. Thanks.
Preloader In Externally Loaded Swf Stops Working (loaded Into An Empty Movie Clip)
SEE BOTTOM OF THREAD FOR CURRENT PROBLEM
1. I have my navigation buttons in level0
2. When a button is pressed it loads an external .swf into the highest empty level
3. There is an MC in this loaded .swf called loadmovie and inside that another MC called empty.
4. Inside the 'loadmovie' MC, there is a frame action that loads another external .swf file into the 'empty' MC.
The problem I am having is that the preloader that is on the external .swf that is loaded into the 'empty' MC does not work.
It works fine if you test it on its own. But not when loaded into a Movie Clip.
MY SCRIPT:
iBytesTotal = _root.getBytesTotal();
iBytesLoaded = _root.getBytesLoaded();
iBytes = (iBytesLoaded/iBytesTotal)*100;
percentageNumber = Math.round(iBytes)+"%";
setProperty("progressBar", _xscale, iBytes);
Do I have to refrence it differently? Because of where it is situated?
e.g
iBytesTotal = _level32._root.loadmovie.empty.getBytesTotal();
confesed!
Loading Swfs In Empty Mc's
I've loaded a swf into an empty mc. This works great, but I want to load other swfs as well. In order to load others, do you create an empty mc for each external swf? How do I go about this?
Thanks
Loading SWFs Into Empty Movieclips
I am creating a website to put pics of my son on...an online photo album for the family.
Anyway, I created a polaroid background in photoshop and then created a SWF that has the polaroid background, s button to increase/decrease the size of the SWF, and an empty movieclip to hold the pic.
The part of the project I am working on now, is the 'album' part, where I will use PHP to load in all of the names of the pics that will be in the folder, and then I want to make an instance of the Polaroid.SWF for each of those pics.
But, I can't get it to work:
Code:
var aPics:Array = new Array("test.jpg","test1.jpg");
var nIndex:Number;
for (var i:Number = 0;i < aPics.length; i++){
CreatePolaroid(aPics[i], nIndex);
};
function CreatePolaroid(PicName){
var mc:MovieClip = createEmptyMovieClip("mcPics" + nIndex, nIndex);
var mcLoader:MovieClipLoader = new MovieClipLoader();
nIndex = this.getNextHighestDepth();
Listener = {};
mcLoader.loadClip("Polaroid.swf", mc);
Listener.onLoadInit = function(mc) {
mc.LoadPic(PicName);
};
mcLoader.addListener(Listener);
};
Any ideas?
Best Method/how: Preloading Swfs Before Called By Empty Mc
Hi...
Im having some trouble finding the best way to work this...
I have a main swf with an empty mc. With this empty mc I am calling external swfs.
Somehow in my main swf I would like to be able to preload all of the external swfs -- thus loading all the site early on and avoiding later preloading.
Any recommendations as to how I should proceed.
Sure could use your insight.
Thanks in Advance! :-)
Best Method/how: Preloading Swfs Before Called By Empty Mc
Hi...
Im having some trouble finding the best way to work this...
I have a main swf with an empty mc. With this empty mc I am calling external swfs.
Somehow in my main swf I would like to be able to preload all of the external swfs -- thus loading all the site early on and avoiding later preloading.
Any recommendations as to how I should proceed.
Sure could use your insight.
Thanks in Advance! :-)
Loading 4 Different SWFs With Sound Into 4 Different Empty Movie Clips?
Okay I posted this into the ActionScript 2.0 Forum, but I'm not sure that's the exact category so here it goes again, just in case...
I'll try to make a long story short: I have 4 diffferent SWF files containing music loops activatd via ActionScript inside them. Well, I am doing a music player that:
1) Loads randomly one of those 4 SWFs.
2) After it has been loaded, it makes the music start playing, displays the usual STOP and PLAY buttons, and then starts loading the 3 remaining SWFs.
3) After these 3 remaining music SWFs have loaded, it displays the Previous Track / Next Track buttons.
I've been trying this with two different techniques:
1) Loading the SWF files with loadMovieNum.
Assuming the random number is 3, I would use
loadMovieNum("arriba3.swf",23);
... so these 4 files are loaded into levels 21 to 24.
2) Loading the SWF files into an empty movie clip.
I used a technique explained in http://www.flashguru.co.uk/000044.php
So I create a new empty movie clip; its instance name is holder1 to holder4, and its depth is 1 to 4, both depending on the random number.
These two methods are okay, but when I start loading the other 3 music SWFs, the music that is playing suddenly stops. It happens Whether I use the 1st or 2nd approach, but let's have a look at the second use, which seems more comfortable to use...
... It seems like the empty movie clip that I create is being "overwritten" by the new ones. Here's the code I use to load the first movie randomly:
Code:
// Generate a random number between 1 and 4
pelicula = Math.round(Math.random()*3) + 1;
trace(pelicula);
this.createEmptyMovieClip("holder"+pelicula,1);
contenedor = eval("holder" + pelicula);
contenedor.loadMovie("arriba"+pelicula+".swf");
//check the download status of the external movie once every frame
this.onEnterFrame=function(){
//trace the percentage of the movie that has loaded
percent=(this.contenedor.getBytesLoaded()/this.contenedor.getBytesTotal())*100;
if(!isNan(percent)){
trace(percent+"% loaded");
}else{
trace("0% loaded");
}
if(percent == 100){
delete this.onEnterFrame;
gotoAndPlay(3); // here I make the music start playing
}
}
And here's the moment when I load the other 3 SWFs, and when the music stops playing:
Code:
switch (pelicula) {
case 1:
this.createEmptyMovieClip("holder2",2);
holder2.loadMovie("arriba2.swf");
this.createEmptyMovieClip("holder3",3);
holder3.loadMovie("arriba3.swf");
this.createEmptyMovieClip("holder4",4);
holder4.loadMovie("arriba4.swf");
case 2:
this.createEmptyMovieClip("holder1",1);
holder1.loadMovie("arriba1.swf");
this.createEmptyMovieClip("holder3",3);
holder3.loadMovie("arriba3.swf");
this.createEmptyMovieClip("holder4",4);
holder4.loadMovie("arriba4.swf");
case 3:
this.createEmptyMovieClip("holder1",1);
holder1.loadMovie("arriba1.swf");
this.createEmptyMovieClip("holder2",2);
holder2.loadMovie("arriba2.swf");
this.createEmptyMovieClip("holder4",4);
holder4.loadMovie("arriba4.swf");
case 4:
this.createEmptyMovieClip("holder1",1);
holder1.loadMovie("arriba1.swf");
this.createEmptyMovieClip("holder2",2);
holder2.loadMovie("arriba2.swf");
this.createEmptyMovieClip("holder3",3);
holder3.loadMovie("arriba3.swf");
}
this.onEnterFrame=function(){
//trace the percentage of the movie that has loaded
switch (pelicula) {
case 1:
percenta=(this.holder2.getBytesLoaded()/this.holder2.getBytesTotal())*100;
percentb=(this.holder3.getBytesLoaded()/this.holder3.getBytesTotal())*100;
percentc=(this.holder4.getBytesLoaded()/this.holder4.getBytesTotal())*100;
case 2:
percenta=(this.holder2.getBytesLoaded()/this.holder2.getBytesTotal())*100;
percentb=(this.holder3.getBytesLoaded()/this.holder3.getBytesTotal())*100;
percentc=(this.holder4.getBytesLoaded()/this.holder4.getBytesTotal())*100;
case 3:
percentb=(this.holder1.getBytesLoaded()/this.holder1.getBytesTotal())*100;
percenta=(this.holder2.getBytesLoaded()/this.holder2.getBytesTotal())*100;
percentc=(this.holder4.getBytesLoaded()/this.holder4.getBytesTotal())*100;
case 4:
percentc=(this.holder1.getBytesLoaded()/this.holder1.getBytesTotal())*100;
percenta=(this.holder2.getBytesLoaded()/this.holder2.getBytesTotal())*100;
percentb=(this.holder3.getBytesLoaded()/this.holder3.getBytesTotal())*100;
}
if(!isNan(percenta)){
//trace(percenta+"% loaded, " + percentb+"% loaded, " + percentc+"% loaded, " + );
}else{
trace("0% loaded");
}
if((percenta == 100) && (percentb == 100) && (percentc == 100)){
delete this.onEnterFrame;
gotoAndPlay(11);
}
}
Is that the reason for the music to stop? The first movie being overwritten by the new ones, I mean...
Thanks a lot in advance,
Angel.
Loading External Swfs Into Externally Loaded Swfs.
ive got some buttons on my main timeline that im using to load external swfs into an empty mc. the buttons are coded with the following:
on(release){
if(_root.currMovie == undefined){
_root.currMovie = "1";
emptyMC1.loadMovie("1.swf);
} else if (_root.currMovie != "1") {
if (emptyMC1._currentframe >=
emptyMC1.midframe) {
_root.currMovie = "1";
emptyMC1.play();
}
}
}
1.swf also has some buttons that load external swfs into a second empty mc. those buttons are coded with the following:
on(release){
if(this.currMovie == undefined){
this.currMovie = "2";
emptyMC2.loadMovie("2.swf");
} else if (this.currMovie != "2") {
if (emptyMC2._currentframe >=
emptyMC2.midframe) {
this.currMovie = "2";
emptyMC2.play();
}
}
}
1.swf loads into emptyMC1 ok, and 2.swf loads into emptyMC2 ok.
when i press any of the buttons on the main timeline, the outro animation of 1.swf plays correctly, but the outro animation of 2.swf does not. is there a way to the buttons so that the emptyMC's unload sequentially?
Loading Multiple External .swfs Into Random Empty Movieclips
I have 20 external .swfs im trying to load into 20 blank movieclips .
i am trying to load them randomly into each blanck movieclip without the external .swf's duplicating.
so far I have this code
Code:
// define blank mc array
mcarray = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12",
"13", "14", "15", "16", "17", "18", "19", "20"];
// define external .swf array
swfarray = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12",
"13", "14", "15", "16", "17", "18", "19", "20"];
// calculate random index for blank mc array
randommc = random(mcarray.length);
// calculate random index for external .swf array
randomswf = random(swfarray.length);
//load random swf into random mc
loadMovie((swfarray[randomswf])+".swf",
"_level0.ui_mc.content.win.portfolio.ui_"+(mcarray[randommc]));
But this code only loads 1 random .swf into 1 random empty movie clip.
Im trying to load all the movieclips with all the external .swfs without any
of the .swf's repeating. Any help would be greatly appreciated.
How To Make Sure Randomly Loaded Externals Swfs Are Fully Loaded [F8]
I am randomly loading external swfs into my main movie. I've got the random part working. However, I don't know how to make sure the random swf is fully loaded before jumping to a specific frame in my main movie.
I have a preloader inside each external swf, but I don't know how to make my main movie understand that the random swf is completely loaded before the main timeline should gotoandPlay("start").
What I Have So Far:
I have a blank MC (named "location") on the main stage, which I am using to hold the random swfs. On the first frame inside this MC, I have the following code:
choice = Math.round(Math.random()*2);
switch (choice) {
case 0 :
location.loadMovie("image0.swf");
break;
case 1 :
location.loadMovie("image1.swf");
break;
case 2 :
location.loadMovie("image2.swf");
break;
}
Loading the random swfs is working perfectly. But after the external swf is fully loaded, I want to move onto a frame labeled "start" on the main stage. I just don't know how to make sure the random swfs are completely loaded before I say gotoandPlay("start").
I've tried piecing together bits from so many tutorials, and I just don't know what I need to do to make it work with my current code.
Thanks so much!
Loaded Movie Swf Into Empty MC
ok for the main time line i have a button that loades an swf in to a MC
( for the first button to load the first swf into the MC =vvhost)
on (release){
loadMovie("cars/carsmenu.swf"_root.vvhost");
}
then from that loaded swf i have another button that loads a movie into that same MC =vvhost
on (release){
loadMovie("mycar.swf",_root.vvhost");
}
then from that swf i want another swf loaded into a empty MC inside the"mycar.swf"
that was loaded into the main timline into an empty MC called "vvhost".
thats were iam stuck well for now
-al
thanks for the help
Determining If Empty MC Is Loaded
(using flash MX)
hey guys, i am loading external swfs into empty movieclips. this is what a want to say:
if the empty movieclip is loaded with an external swf
then do this,
if it is empty,
do this.
thanks!
Resizing Loaded .swf's Ono An Empty MC
so i'm pretty stuck trying to get this to work
i'm trying to load an external .swf into an empty mc after an on (release)...but then also need to resize the external load
PHP Code:
on(release) {
loadMovie("youAreHere.swf","youAreMC");
OnEnterFrame=function(){
if(_width>0){
_xscale=10;
_yscale=10;
delete onEnterFrame;
}
}
}
this is the code in which i've been trying to use....but have yet to get anything to work
Loading Other Swfs From Loaded Swfs
Flash - 8 : Above is an example of what I would like to do/have done. I've gotten as far as loading the "loaded.swf" into the "start.swf" but my problem is I'd love to use that little loading action I made earlier without copying and pasting into the new movie the same actions for a different link. So, how do I load "loaded2.swf" into "loaded.swf" via the link in "loaded.swf"?
If you need anything just ask, also, any help is useful.
Thanks
SWFs Controlling Other SWFs?
I am working on a pretty simple menu and have come across a layout issue. As is, I have the buttons display an icon in a "fire circle" at the top of the menu bar when rolled over. It would be great though if I could have 2 SWFs: One which contained all the buttons and another with that "fire circle" (see link). Buttons.swf would of course have to tell FireCircle.swf to "on rollover goto frame x in scene x". Is this possible? So I guess my question is can you have one swf file control another?
Here is an example of the menu bar, as one swf, if you need to visualize it: http://www.blownheadlight.com/menu.swf
Thanks.
Controlling Swfs With Other Swfs
I am trying to make one main SWF movie that calls on other individual SWF movies (one being a "menu" movie). The catch is that I want the main movie to tell the menu movie where it is and have the menu movie button that corresponds to that section of the main movie to show the button in an "over" state.
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?
Finding Out What Movie Is Loaded Into An Empty Mc
How can I find out what movie is loaded into an empty mc? Basically, I have a button that loads a swf. when I click it again, it loads the same swf again and blanks out for a second. Any suggestions? Thanks!
Resize An External Jpg Loaded Into Empty MC
i'm loading a jpg into an empty MovieClip called 'holder_1'. The jpgs are bigger than i want them to be when they are loaded, i've put the following script in the main timeline not attached to any object;
_root.holder_1.loadMovie("liquid_800.jpg","GET");
_root.holder_1._width = 100;
_root.holder_1._height = 75;
But it isn't working!!
I dont want to simply resize the jpg as i want the user to be able to scale them up later without loosing any quality
help pretty please!!
Swf Loaded In Empty Mc Doesn't Show
Hello.
I have a file index.swf with an empty movie clip on which I load a file called scroll.swf.. ... If I run scroll.swf everything is fine but when I call it from index.swf the scroll doesn't show. The scroll.swf loads the scroll text on root (_root.loadVariables("scrolltext.txt") ... I think the empty movie clip on index.swf is on _root too so it prevents the scroll from showing. Any idea?
Empty Text Fields In A Loaded SWF
I had a framework set up in Actionscript 2 that I'm trying to convert into Actionscript 3. I'm not exactly looking for code (though it is helpful!), but theory more.
This is the Actionscript 2 setup:
I have an external SWF file that is a certificate with 3 empty text fields - Name, Score, Course. My main movie holds these variables and when the course is completed it loads in this certificate SWF file (with loadMovie) and the loaded certificate SWF looks for _root.score, _root.course, _root.name to fill in the text fields.
What is the best way to do this in Actionscript 3?
I've tried the Loader Class and can't seem to access variables from the root loader movie. Should I instead create the text fields with AS3 in the main movie and add them as childs to the loaded SWF? I tried this too and was unsuccessful...
Thanks in advance!
Too Many Empty Lines In Loaded Text
when i load text from the database into a textarea, it comes in formatted with four linebreaks instead of two. the text is input into the database by way of an online control panel by non-techy users, is probably pasted word document text and is therefore non-controllable. i've tried re-formatting the code in the asp calling scripts and also in flash, but i don't know what the culprit characters/codes are. does anybody out there?
this is what the output ends up as:
CODEJOB SPECIFICATION
A fully trained, qualified greenkeeper should be capable of:
1. Promoting the Health and Safety of self and others by:
Maintaining healthy and safe working practices, including:
Outlining the club?s Health and Safety policy.
Knowing the location of the Health and Safety Policy Document, first aid boxes and accident book.
Controlling SWFs
My Question:
I have a SWF file (called: home.swf) which contains 3 buttons (button 1, button 2, & button 3).
When you click on button 1, I want home.swf to goto frame 15 and stop. At the same time when clicking on button 1, I want a new SWF (portfolio.swf) to load on top of home.swf.
The above is pretty simple and I have no problem doing that, but here comes the problem..
When you push a button (lets call it exit) in portfolio.swf, I want it (portfolio.swf) to send a message which tells home.swf to go and play frame 5 (remember it was parked at frame 15),(and then portfolio.swf will unload it self).
I am not (yet) very good at variables and how to send and recieve these between SWFs, so please be specific.
Thank you, and I really appreciate the help..
Controlling Different Swfs?
hi
On the main time line i've got a stop and a loadMovie to load a .swf.
Is it possible to let the main timeline carry on, once the loaded .swf is done?
cheers
Controlling Other SWFs
I am working on a flash navigation "shell". I am loading external SWFs onto the stage using the Loader class and AddChild. I have to problem getting the SWF on the stage but I can't control playback. It loads playing and nothing I do stops or pauses it.
I have code on my "menu" button to removeChild. the movie goes away, but the audio continues to play.
Can someone tell me where I'm going wrong?
Attach Code
var myRequest:URLRequest = new URLRequest("myMovie.swf");
var capLoader:Loader = new Loader();
myLoader.load(myRequest);
myMovie_mc.addChild(myLoader);
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, playMov);
pause_btn.addEventListener(MouseEvent.CLICK, pauseMov);
pause_btn.visible = true;
function playMov(event:Event):void
{
event.target.content.y = 0;
event.target.content.x = 0;//(stage.width/2)-(event.target.content.width/2);
//event.target.play(0);
}
function pauseMov(event:MouseEvent):void
{
//resumeTime = event.target.currentFrame;
myMovie_mc.stop();
resume_btn.visible = true;
resume_btn.addEventListener(MouseEvent.CLICK, resumeMov);
pause_btn.visible = false;
pause_btn.removeEventListener(MouseEvent.CLICK, pauseMov);
}
function resumeMov(event:MouseEvent):void
{
//soundControl = sound.play(resumeTime);
myMovie_mc.play();
pause_btn.visible = true;
pause_btn.addEventListener(MouseEvent.CLICK, pauseMov);
resume_btn.visible = false;
resume_btn.removeEventListener(MouseEvent.CLICK, resumeMov);
}
Controlling Other MC's In Ext. Swfs
Hi, I have a question that will take two seconds to answer, but I can't figure it out!
So here goes, I have a main.swf that loads in..... home.swf, ab0ut.swf, contact.swf, etc via a standard loader setup. If I would like to control a MC with an instance of "homeVid" in my home.swf how would I target that from my main.swf? I'm so confused, please help. All I need is pointers, I'll figure the rest out myself. Thank you so much for you help.
Alpha Fade In On Jpegs Loaded Into Empty Mc's
I wanna rollover a button and have a jpeg load from my drive... into an empty movie clip. How can I do this without a tween? I have over 100 of these pics and I don't wanna do separate swfs for each. Thanks - Chris
here's what i got so far?
on (rollOver){
_root.empty_mcA.b1.gotoAndPlay(2);
_root.empty_mcA.pr.loadMovie("BAR~1.jpg");
stop();
Help With Empty Movieclips & Loaded Content Positioning
Hi,
Im having trouble centering my loaded jpegs (in the holder mc) on the stage (the jpeg's are all different sizes). I've attached my folder with the files (in the following post). If anyone's able to offer any good pointers/tutorials relating to this i'll be very gratefull. i.e :Loading content into empty clips /
The significance of registration points
Thanks in advance,
cesca
ps) I'm wondering if i have to put each jpeg in a swf first? I hope not, i have about 80 in total)....but If so can anyone show me example code of what i would put in the first frame of each of my swf's to get it to center on the stage when it loads......many many thanks in advance
Sound Problems With A .swf Loaded To A Empty Clip...
I have a .swf loaded into an empty movie clip, but the sounds don't play through.
I want the sounds to play randomly (and in the original movie, they do). I used this code for the sounds:
code: one_sound = new Sound();
sound_no = Math.round(Math.random()*9);
one_sound.attachSound("Whoa"+sound_no);
one_sound.start();
They are supposed to be played on the release of a button.
Does anybody have any ideas as to how I fix it?
Mx-04-actionscript In Movie Won't Behave When Loaded Into Empty Mc
I'm trying to load an outside movie (through loadMovie) into an empty movie clip into another movie using a simple button to activate the process. However, after it loads, the outside movie doesn't play how it normally does. The outside movie uses mx.transitions all located on only the first frame. The timing and when each new transition occurs becomes completely off from the original when loaded.
note: This is for a portfolio site (based in flash) and i'm just trying to showcase a banner ad design (the loaded movie). It's not a large file at all.
any input is welcomed!
|