External Swf With TellTarget(s) Not Working In Main Movie
I have a nice little drop 'n drag file that works nicely on its own, but doesn't work once I load it into my main movie. I'm loading it via
loadMovieNum("myexternal.swf", 1)
The code on each "drag" button on the external is:
Code: } on (press) { startDrag("/dragme2");
on (release, dragOut) { stopDrag(); if (getProperty("/dragme2", _droptarget) eq "") { /:vardisplay = ""; } if (getProperty("/dragme2", _droptarget) eq "/ball1") { /:vardisplay = "Loop4"; tellTarget ("/ball1") { gotoAndPlay("L2"); } tellTarget ("/dragme2") { gotoAndPlay("play"); } } } The dragging actually works...the relese doesn't...can someone help me out with this?
Greatly appreciated in advance.
bluej2
FlashKit > Flash Help > Flash ActionScript
Posted on: 05-28-2006, 10:27 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
External File's Actionscript Not Working While Loaded In Main Movie-?
This movie is an external swf which is a basic sorta game, the user has to drag and drop the blocks into their correct places to complete the task.
Please have a look at this swf, the fla is too big 2 post.
Basically the problem is: this external file works fine by itself, but when viewed via the main movie when its loaded, it doesn't display the Well Done Clip when all the Drag and Drop buttons are placed in their correct places.
Buttons Actions On External SWF's Not Working When Loaded Into Main Movie
Hello,
Sorry to post 2 in a row, but they are different problems. Here is my problem:
I have a main menu that is set up like Kirupas smooth transition between external .swf tutorial. Everything loads smoothly. The problem occurs when the external .swf loads, the buttons on that .swf do not function. If you could take a peak at the 2 .flas I have them posted at this address, as they are too large to post! Thank you very much!
http://www.ryanhohman.com/problem.zip
External File's Actionscript Not Working While Loaded In Main Movie-?
This movie is an external swf which is a basic sorta game, the user has to drag and drop the blocks into their correct places to complete the task.
Please have a look at this swf, the fla is too big 2 post.
Basically the problem is: this external file works fine by itself, but when viewed via the main movie when its loaded, it doesn't display the Well Done Clip when all the Drag and Drop buttons are placed in their correct places.
Main Mc Loads External Swf, Then Main Swf Buttons Stop Working
I have a portfolio site that I am building. The main site swf has a navigation menu, and a empty movieclip. Each of the buttons on the menu calls up an external swf to load into the main empty mc. When you click on 'home', the 'home' swf loads.. when you click on 'about', the 'about swf loads, I can switch between them, no problem.
This is where my problem comes in... I just created another external swf that has a gallery in it. The gallery consists of thumbnails and a larger image that are calling from an XML file. When this swf loads into the main mc, everything is fine. But then, the buttons on the main swf menu stop working! The buttons all work going between one another, except when you load the gallery and then you can't go anywhere else. Help!
let me know what code you need, if any. MUCH APPRECIATED in advance :)
example of whats happening:
http://christinevanetten.com/index2.html
Edited: 04/18/2008 at 08:30:55 AM by christineski
External .swf Thumnails Not Working In Main.swf
I am working on a photograph application and calling in external .swf's to a main.swf. The external .swf uses scripting to go through a set of photographs via thumbnail and next and previous buttons. The external .swf's function fine on there own, but when when I call the .swf's into the main.swf, the thumbnails no longer work.
Below is the script for the external.swf
back.enabled = false;
back._alpha = 50;
back.onPress = function() {
goPage(-1, 0);
//this controls the back button//
};
forward.onPress = function() {
goPage(1, 0);
//this controls the forward button//
};
numberofThumbs = 5;
// Update this ^^ number to match the number of thumbs.
thumbArray = new Array();
for (i=1; i<=numberofThumbs; i++) {
_root.thumbArray[i-1] = i;
_root[i].onPress = function() {
goPage(0, thumbArray[this._name-1]);
};
}
function goPage(whichWay, thumbNumber) {
if (whichWay != 0) {
slides.destinationFrame = slides._currentFrame+whichWay;
} else {
slides.destinationFrame = thumbNumber;
}
//this goes to controls the MC and the Alpha change//
slides.alphaChange = -50;
//this controls the speed of the alpha change//
forward.enabled = true;
//restores buttons//
forward._alpha = 100;
back.enabled = true;
back._alpha = 100;
forward.gotoAndStop(1);
back.gotoAndStop(1);
if (slides.destinationFrame>=slides._totalframes) {
//controls buttons on beginning and end of MC//
forward.enabled = false;
//makes forward button dim at the end of the MC//
forward._alpha = 50;
}
if (slides.destinationFrame<=1) {
back.enabled = false;
//makes the back button dim at the beginning of the MC//
back._alpha = 50;
}
}
slides.onEnterFrame = function() {
this._alpha += this.alphaChange;
if (this._alpha<0) {
this.alphaChange = this.alphaChange*-100;
//this controls the fade in of the images
this.gotoAndStop(this.destinationFrame);
}
if (this._alpha>100) {
this.alphaChange = 0;
this._alpha = 100;
//this controls the onEnterFrame callback on slides//
}
};
The external.swf is being called into a mc clipped named content with an instance name of "screen" It is called via a button called 1900. The script attached to the button 1900 is
on (release) {
loadMovie("1900.swf", "screen");
}
Any ideas
[MX04] External Swf Loaded Into Main Swf But Not Working
Hi all,
I have use loadmovieclip to load an external swf into my main swf. but the external is not working after loaded into the main.. it is a guestbook that i found on the internet but i got the source files. the guestbook doesn't work BUT it DOES load into my main swf.
Do i have to change anything in the guestbook.swf in order for it to work? their values are all referenced by _root.xxxxxx = xxxxx.
Thanks in advance.
Telltarget And Main Timeline
Ok... i have a preloader which sets the variable loaded = "false" in the first frame... at the last frame it sets it to true...now i have a MC which has the following script.
if (loaded == true) {
tellTarget ("/") {
nextScene ();
}
} else {
gotoAndPlay (1);
}
which is supposed to let the MC continue to do it's fade so it doesn't just jump into the rest of the movie... but the logo repeats indefinately and never advances.... HELP PLEASE!
Can I TellTarget The Main Timeline?
Ok, I'm making a game, and it is essential that I place a certain button inside of a movie clip. However, the button in the movie clip must move the main timeline. I currently have the code as:
on (release) {
gotoAndStop ("plank1");}
with "plank1" being the frame in the main timeline that needs to be advanced to. But when tested, the button does nothing. Is there a way I can do
on (release) {
tellTarget (" ")
{gotoAndStop ("plank1");}}
with something indicating the main timeline?
Please help!!
(I'm using flash 5, if that needs to be known)
[F8] Movie Clip Actions Inside Main Movie Not Working
I know this HAS to have been answered somewhere here before... I've been doing Flash on and off since it's creation, but it's been a while since I used it. I have Flash8 running on this dev machine and I am adding a little accordion to an old project. I have tried calling the accordion swf from the main movie and loading it in, but this is not working for me.
So, I tried copying all of the frames form the external SWF accordion (it's small), along with it's actionscript to a MC inside the main movie and placed that MC on the timeline in the main file. The MC shows up fine, but the action associated with it is not functioning.... basically I want the text button to pop up the accordion MC and allow interaction by the user to click through the slides within it.
A little definition:
KSB_MC = the container MC on the main timeline that displays the first frame of the MC which is: KSBbutton_MC
KSBbutton_MC = the text MC visible from the main timeline that should launch the KSBanimation_MC (which is the accordion)
This is the AS I have so far that is in the MC I placed on the main timeline:
//first we stop both animations inside KSB_MC from running
KSB_MC.KSBbutton_MC.stop();
KSB_MC.KSBanimation_MC.stop();
//then we make conditional, the button action so that if the button_MC is pressed, the button goes to frame 2 and the animation_MC plays or else stop both animations
KSB_MC.KSBbutton_MC.onPress = function(){
if(KSB_MC.KSBbutton_MC._currentFrame ==1){
this.gotoAndStop(2);
KSB_MC.KSBanimation_MC.play();
}
else{
this.gotoAndStop(1);
KSB_MC.KSBanimation_MC.stop();
}
}
.......first of all, the KSBbutton_MC on hover shows a finger cursor as it should, but does not activate when pressed. Nothing happens after that. I get no errors in the AS checker....
my problem is with layering or something st00pyd. Feelin kinda n00bysh.
Help a brothah out will ya guys?
Not Working When Load A Swf To Another Swf(main Movie)
Dear All
both the swf working fine separately but when I load a swf to the main swf then the loaded movie doesn't work for using '_root' here is my code
ActionScript Code:
on (rollOver)
{
if (_root.link != num)
{
gotoAndPlay("s1");
}
}
on (rollOut, releaseOutside)
{
if (_root.link != num)
{
gotoAndPlay("s2");
}
}
on (release)
{
if (_root.link != num && _root.G != 1)
{
_root.scroller.gotoAndStop("s0");
if (_root.link == 4)
{
_root.k = 1;
_root.ph.ch_pics.gotoAndPlay("s1");
}
_parent["item" + _root.link].gotoAndPlay("s2");
_root.link = num;
if (_root.link == 4)
{
_root.k = 11;
_root.ph.ch_pics.gotoAndPlay("s1");
}
_root.gotoAndPlay("s1");
}
}
plz help what can I use instead _root.
Thanks
crescent
Movie Clips Working In The Main Timeline.
I know how to make a movie clip. but what I am confused about is. how do you get the movie clip to animate in the main timeline?
I try just adding the clip by dragging it from the library but it doesnt animate. it just sits there on the first frame of the movie clip.
how do I get it to animate on its own without having to manually do it. because if I do that, what is the point of making movie clips. I am obviously missing some step here. Please advise.
Scripts Not Working By LoadMovie In Main Movie, Help Please
Hi,
I am having problem with the loadMovie, there is a SWF which contains some scripts but when i load them into my main SWF, those script doesn't work corretly, some are working fine but some are not. I tried to change all the _root into this or _parent but no use, still the same problem.
Any body has any idea how can i solve this??
Amir
[F8] Button Not Working When Loaded Into Main Movie
Hello all,
I have an swf which gets loaded into my main movie. in this movie I have a button which opens a slide panel. The slide panel has a close button to close the panel but doesnt work when its loaded into my main movie. It opens and closes fine when i test the fla on its own but when I test the entire movie and then load that swf, it opens but doesnt close. the actions i have for the buttons are:
opens the panel
Code:
btnLaunch_mc.onRollOver = function () {
btnLaunch_mc.gotoAndPlay("over");
}
btnLaunch_mc.onRollOut = function () {
btnLaunch_mc.gotoAndPlay("out");
}
btnLaunch_mc.onRelease = function() {
btnLaunch_mc.enabled = false;
_parent.panel.gotoAndPlay("slideout");
}
closes the panel
Code:
on (release) {
_root.sideCol.btnLaunch_mc.enabled = true;
_root.panel.gotoAndPlay("slidein");
}
this is really driving me crazy. Not sure why everything works when testing on its own but when loaded into my main fla it wont work.
Loading Swfs > Main Movie Not Working In Browse
ok ok
this is probably so blindingly obvious it staring me in the face but i just cant see it.
Why does my loadMovieNum work fine in the flash player, loading and the external swfs fine BUT not when the main movie is embedded within an html page?? help!
Why Do The Main Movie/site Close When I Load External Movie In A New Window?
When i want to load an external movie in a NEW window...why do my main site window close?????
this is how i load a movie in a new window...???
what is wront
_____________________________________________
on(release) {
loadMovie("mymovie.swf", _blank);
}
_____________________________________________
this happens when i test the movie
Thanks
Mirrorman
Buttons Inside Scrollpane Not Working In Main Movie It Is Loaded Into
Caio rigazzi,
I have a scrollpane with a movie that contains a movie clip in it. That movieclip contains buttons which are capable of bringing up a pop-up menu and should display a sample image when "rolled over". The problem is when I use :
on (rollOver) {
_root.rollover.gotoAndPlay ("1FLUX");
}
on (rollOut) {
_root.rollover.gotoAndPlay ("1BACK");
}
The "roll over" function does not work in the main movie this scroll pane is loaded into.
Basically, the scroll bar in a swf named VIDEO, is loaded into a DESIGNWORK1.fla, which is loaded into a main video: INDEX12
(courtesy of the Transitions between External SWFs( 1, 2)
How can I get this scroll bar to work?
aswg
[MX04] Droptarget Action Not Working When MC Imported To Main Movie
Excuse the repost but my last attempt to get some help with this seemed to fall on deaf ears...(hmm guess that phrase doesn't work with forum posts...blind eyes mebbeh?)
This time though I have attached the movie, so maybe this will encourage people to reply and be better able to see where I might be going wrong.
As you can see from the attachment, it's a simple drag and drop interface I am making with just at the moment coloured blocks to represent selections. You drag a coloured square and drop it into the black rectangle and this triggers the movement of the timeline. This all works as a standalone movie, however when I import the .swf into my main movie the drags work but the actions that shift the timeline (and also the MC visibility) stop working.
I surmise that this is due to the target paths I am using to assign the action are fine for the standalone movie, but when imported they are not pointing to the correct MC, thus not triggering. Anybody able to tell me how I should be writing my target syntax, if indeed this is the problem?
Many thanks for any kind replies and help along with any suggestions to optimize or better handle the swap depths too
[CS3] Nested Movie Clips Affecting Main Timeline, Not Working
i have a movie that shows a series of full-size images in succession, but also have a scrolling thumbnail bar below it that i want to be clickable for people to jump to another image if they want. i've got the full-size images working, the scrolling thumbnail bar is working, and i have the buttons in the thumbnail bar connecting to the main timeline where the full-size image movie clips are played, but it's just not working correctly. when i click on the one thumbnail that is currently linked, it will work once or twice and then the second or third time just show a blank 'screen' in the full-size area.
the demo of it is here:
http://beta.candyteria.com/
the .fla is here:
http://beta.candyteria.com/site_reso...me_flash_2.fla
any help would be hot...
Load External Movie Immediatly After Main Movie Loads
I apologize if this is the dumbest question in the world becasue it seems it would be. I know how to load an external movie when you click a button but how do you get it to load immediatly after the main movie finishes loading? I can't figure it out. Is this possible with actionscript 1.0? Thank you.
Instructing An External Movie Clip To Play From The Main Movie
Anyone tell me the easiest way to sort this one?
I have a movie clip that consists of 2 keyframes.
It is loaded onto level1 above my main movie and the first frame is blank (so that it does not come into play until instructed).
The second keyframe is the main part of the loaded movie and this needs to play after receiving instruction from the main movie.
My problem is 'How do I instruct this to happen??'
I have no knowledge of action script so if anyone could advise or tell me if there is an easier way to do this I would be eternally greatful........................................
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.
External Swf Loads In Photos Movie But No The Main Movie.
Alright, if you look at the photos.swf here
www.e-volutionds.com/lasd/photos.htm
you notice all the images load once you click on them with the following code on the image button
on (release) {
_root.loadPhotosMC.loadMovie("zphoto3.swf");
}
however on the real site photos loads into main.swf, so main-->photos-->scrollimages. and the images don't popup on the main site.
www.e-volutionds.com/lasd/dog.htm
Any ideas? Thanks!
Problem With External Swf Var In Main Movie
I'm loading XML news in my external swf, which contains three dynamic text field. Working fine when i export it. But when i try to load that external swf in my Main Movie...No response....
(I have defined some _root variables in my external swf. No result occuring because of that?)
Preloadin External Jpg/swf Fro The Main Movie
in can't get a preloader work....
i want a preloader in the main movie preload the external jpg/swf loaded in the main movie
i tryed using loadmovie() but it sems that getbytestotal and getbytesloaded don't work
making a preloader on each external swf doesn't solve the problem.
any sugestions?
Loading External Swf's Under Main Movie
I have to load a heap of external swf's into the main movie for a
website that has already been created by someone else I have to change a heap of info and pics. They have used this code loadMovieNum ("aust_flash_1_3_09.swf", 1); to load in the swf but when they come into the movie they are on top and cover up the main movie.
I want them underneath Is there a simple way to fix this problem .
External SWF In Main Movie Ideas?
I have a question about loading and stopping external swf so that they do not loop but stop at the end of the movie...Is this possible and how do i do it? I know that it involves actionscript..but i am not sure of the procedure...can anyone assist??
Control Main Movie From External Swf
hello all,
When i load an external swf into my main movie, how would I get a button inside the external MC to back and play something on the main timeline?
for instance if i have a home button in the ext. MC and want it to go play the frame labeled "home" in my main movie?
*note: using FMX2004
Thank you
Resize An External Sfw From Within Main Movie
Hi everyone,
Please, if you could help me with this:
I need to resize a swf file within my main timeline, calling it from a button. The canal.swf file is loaded into an empty movie clip. However, the actionscript I use doesn’t work when I load the swf file into the movie clip from a button (loadmovie_button), but works if I load it into the first frame of a movie (loadmovie_frame1). The script is exactly the same!
I attach here three files for review, the canal.swf file and two flashes files, one calling the resize property from a button and the other directly from frame 1.
My goal is to resize it calling from the timeline from a button. Why is it not working? How can I make it work?
BYW, I use Flash MX.
Thanks,
Patricia
External Movies Within A Main Movie
Hey users whats up. I got a question. I want to do this.....
Main.Swf:
Bio.swf
contact.swf
news.swf
links.swf
beats.swf
So anyways the main.swf will be the main swf in the website and will contain the links. What Im trying to do is when a user clicks on the bio link for example, the main movie in the main.swf will do a nice animation then will load up the bio.swf. So then afterwards when a users decides to view the links.swf, that user clicks on that link then once that happens it will play a nice fading out animation in the bio.swf then it will load the links.swf, so on and so forth...
How can I do that? Does using variables have anything to do with it..
Hittest From External Swf To Main Movie
whats the problem here?
Code:
if(eval(this._droptarget) == _parent.cart_mc){
trace('hit cart');
_level0.stuffBought.push('item name');
}
the movieclip i want to test for the hit is in the main movie as cart_mc. that code is in the external swf in an onRelease function. currently, it drags fine... but traces out 'hit cart' whenever i release it.
thanks in advance for the help.
External .swf Controlling A .swf In Main Movie?
Using Flash MX 2004 Pro--
I currently have a main timeline. On the timeline there is an external .swf which immediately plays--
bluebar_mc.loadMovie("blue_bar.swf");
I have a navigation pop-up menu on the main timeline. When the a certain button is pressed it launches another external .swf into the main timeline.
on (release) {
digital_mc.loadMovie("digital_ill.swf");
}
This .swf has a preloader. When the preloader is completed I want the original bluebar_mc (on the main timeline) to vanish. i know an option is to have _visible property, but I don't need it anymore and want to conserve filespace.
Also, should i not be using the on (release) command for the buttons and instead applying them another way in the actions layer?
Any info is helpful or alternative options for setting up something like this!
How Do You Get The Value Of A Variable From An External SWF Into The Main Movie?
Hi There, I was just wondering how you go about transferring the value of a variable from an external SWF into a main Flash movie. I have a main Flash movie with a variable called curscr (current screen). I want to show screens by loading external SWF into my main movie (this I can do fine). However I want to have the screen number of each screen stored in the external SWFs. So when I load the external SWF I want to know how to gain access to the screen number the external SWF is holding in a variable then display it in the main movie. So in a external SWF I have set up a variable on the root timeline like this
var thisScrNum = 1;
So basically I’m trying to get to this variable in the external SWF to transfer to another variable in the main Flash movie – I’m trying to transfer it to the variable ‘curscr’.
Does anyone know how to do this?
Many thanks
[F8] Control The Main Movie From An External Swf
I have an external .swf loaded into in my main movie and I would like to direct a script that when the external swf is unloaded it goes to a specific frame label in the main movie. Is it possible to control the main movie from an external swf?
Thanks
[F8] Controling Main Movie From External Swf
Hi experts,
I have two files
main.swf and external.swf
i have use the following script on main.swf to do animation
import mx.transitions.Tween;
import mx.transitions.easing.*;
PHP Code:
btn.onRelease = function(){
new Tween(_root.textBox,"_x",Strong.easeOut,_root.textBox._x, 100,1,true);//2 is the num of seconds
new Tween(_root.textBox,"_width",Strong.easeOut,_root.textBox._width,400,2,true)
which work perfectly fine.
Now due some reason i had to place the navigation bar in the external movie clip , in external.swf
Using the same script how can i control the textBox animation which is on the main.swf??
please help.
Loading An External Swf Into Main Movie
Hello All
I am new to flash, I have just purchased cs3 and i am trying to load an external swf into my main movie/site this external swf is a mp3 player which loads the mp3s via xml. Could anyone help me explaining how to load this external swf into my main movie?
Thanks in advance.
Bendeguz
if you need to see the movie i can provide the fla and swf files.
Controling Main Movie From External Swf
Hi experts,
I have two files
main.swf and external.swf
i have use the following script on main.swf to do animation
import mx.transitions.Tween;
import mx.transitions.easing.*;
PHP Code:
btn.onRelease = function(){
new Tween(_root.textBox,"_x",Strong.easeOut,_root.textBox._x, 100,1,true);//2 is the num of seconds
new Tween(_root.textBox,"_width",Strong.easeOut,_root.textBox._width,400,2,true)
which work perfectly fine.
Now due some reason i had to place the navigation bar in the external movie clip , in external.swf
Using the same script how can i control the textBox animation which is on the main.swf??
please help.
Getting External Swf To Talk To The Main Movie
hello,
i'm having bad luck with the forum today! reposting:
i have a question regarding an external swf file talking to the main movie. essentially i want a button residing on an external swf to close the swf file and then send the main movie back to a previous point in it's timeline.
i'm sure i do not have this set up in the most effective way. however currently the button points to an empty frame in the external swf. rather than actually closing it appears to no longer be there.
my main movie is organized into scenes and lables. now that the external swf is not there i want the main movie to be pointed to a specific lable in one of it's scenes.
what code would i need to add to my external swf's button? i've been looking through my reference books but can't seem to find enough information to make it work properly.
as always your help is warmly appreciated!
*thank you*
Aeluv.
Loading External SWF´s Into A Main Movie
Loading external SWF´s into a main movie !
--------------------------------------------------------------------------------
Hi there
1) have a main movie clip with percent preload, where should be loaded some external.swf´s ! How can I preload (with percentage bar) external.swf´s ?
2) How can i target(AS) and [positioning] the external Swf´s that schould be loaded into a specif place on the main movie clip?
Any help? please!
Thanks.
Scale External Swf To Fit Main Movie?
Hi!
Im trying to load a bunch of swf-files into a main swf
nothing special with taht but is it possible to
set the size of the swf that i load?
I mean if i have 5 diffrent swf-files
1. 1.swf that is 320x240
2. 2.swf that is 500x300
3. 3.swf that is 720x576
4. 4.swf that is 1024x768
5. 5.swf that is 1366x1024
the stage widht & hight of main.swf = 1024x768
som i want the external swf's to stretch to this size even if
it means that it's being corpt...
PLEASE all you pro's help me out here
Loading External SWF's Into Main Movie
Hi all,
Ive been trying to find a fix for this problem for the last few days and now its driving me crazy so lets see if anyone else can shed some light on it.
I have a flash movie that has 5 buttons. When each button is rolled-over it loads an external swf into the main movie. This is basically just a large image that replaces a previously loaded movie on the same level. This is the code i use:
Code:
on (rollOver) {
button1.gotoAndPlay(2);
loadMovieNum("image1.swf", 2);
}
on (rollOut) {
button1.gotoAndPlay(16);
unloadMovieNum(2);
}
This all works fine for all the buttons so no problems there. The problem is due to the size of the image1.swf it doesnt quite appear straight away when rolled over - takes a second or two to load. What i would like to do it preload all the external swf's that are used for the rollover on the main movie timeline - ideally when the main movie preloads itself - so when you rollover the buttons the loaded swf appears instantly.
Here is my current preload script:
Code:
onClipEvent (load) {
total = _root.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
percent = int(loaded/total*100);
text = percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay(2);
}
}
Any help is much appricated - this has been driving me mental!
Cheers
JAmes
Controlling Main Movie From External Swf Fi'es
Hi,
Am new to actionscript and not sure how to do this...
I am loading random external swf files into my main movie with this script
choice = Math.round(Math.random()*16);
switch (choice) {
case 0 :
ad.loadMovie("ads/ad1.swf");
break;
case 1 :
ad.loadMovie("ads/ad2.swf");
break;
case 2 :
ad.loadMovie("ads/ad3.swf");
break;
case 3 :
ad.loadMovie("ads/a4.swf");
break;
case 4 :
ad.loadMovie("ads/ad5.swf");
break;
case 5 :
ad.loadMovie("ads/ad6.swf");
break;
case 6 :
ad.loadMovie("ads/ad7.swf");
break;
case 7 :
ad.loadMovie("ads/ad8.swf");
break;
case 8 :
ad.loadMovie("ads/ad9.swf");
break;
case 9 :
ad.loadMovie("ads/ad10.swf");
break;
case 10 :
ad.loadMovie("ads/ad11.swf");
break;
case 11 :
ad.loadMovie("ads/ad12.swf");
break;
case 12 :
ad.loadMovie("ads/ad13.swf");
break;
case 13 :
ad.loadMovie("ads/ad14.swf");
break;
case 14 :
ad.loadMovie("ads/ad15.swf");
break;
case 15 :
ad.loadMovie("ads/ad16.swf");
break;
}
The swf files that I'm loading are buttons and I want them to be able to link to different scenes within my main movie. Is there a way of doing this?
Any help/pointers much appreciated!!Text
Loading External SWF´s Into A Main Movie
Hi there
1) have a main movie clip with percent preload, where should be loaded some external.swf´s ! How can I preload (with percentage bar) external.swf´s ?
2) How can i target(AS) and [positioning] the external Swf´s that schould be loaded into a specif place on the main movie clip? Could you please answer me as clearly you can about this question..Any help? please!
Thanks.
How Do I Reference My Main Movie From An External Swf?
Hi there.
I've learnt from many tutorials and forum questions on Kirupa...
...and have gone along steadily in my task...
...but finally I've found something that I can't find an answer for.
I've loaded a few external swf's into my mainmovie...
...where the external swf's are individual ads.
Each external swf is loaded randomly at the beginning of the "side-ad" movie clip...
...then there are about 90 frames of play...
...then back to frame 1...where the ad is randomly loaded again...
...and so on.
Each external swf has it's own transparent button covering the ad...
...which when moving your mouse over it...stops the movie at it's current frame...
...so that you can click on the ad and be taken to the relevant page.
My issue is this...
...like each individual swf movie...
...I would like to be able to stop the "side-ad" movie clip in the same way as the ads...
...so when moving my mouse over the ad...the "side-ad" clip should then stop at it's current frame...
...but if I put a transparent button over the external swf...to stop the clip when the mouse moves over it...
...the button covering the ad becomes void...
...so the "side-ad" clip stops...but the ad carries on playing...
...and when I click on the ad...it doesn't respond...because of the other button that's now covering the external swf.
My solution appears to be a simple one...
...instead of having this button covering the external swf's...telling "side-ad" to stop...
...I suppose each individual external swf should reference the main movie...
...and the button telling the ad to stop...should also tell mainmovie/"side-ad" to stop.
Is there a way of referencing my mainmovie from inside an external movie?
Controling Main Movie From External Swf
Hi experts,
I have two files
main.swf and external.swf
i have use the following script on main.swf to do animation
import mx.transitions.Tween;
import mx.transitions.easing.*;
PHP Code:
btn.onRelease = function(){new Tween(_root.textBox,"_x",Strong.easeOut,_root.textBox._x, 100,1,true);//2 is the num of secondsnew Tween(_root.textBox,"_width",Strong.easeOut,_root.textBox._width,400,2,true)
which work perfectly fine.
Now due some reason i had to place the navigation bar in the external movie clip , in external.swf
Using the same script how can i control the textBox animation which is on the main.swf??
please help.
External Movie Slow Down The Main Movie
I have a main movie (web site) and a few buttons. Click on the buttons loads external swf movies. Problem is that when i do that (load external swf) , the whole movie becomes slow and i mean really slow.
I don't get it why is that happening. My external movies are not bigger then 50 kb.
Anyway the frame rate of main and external movies is 30 fps.
Does anyone know why is this happening, and maybe have a soulution to resolve the problem.
Thanks!
Controll The Main Movie From The External Movie
hi ,
can i control the main movie gtom the external movie i loaded?
for example , if i have one main movie ,there is a container movie clip, i loaded in external movie , now on the external movie there is a button that loades another external movie to the container of the main movie.
is that possible? how?
Thanks in advance
S
External Movie Controlling Main Movie Help?
Hey guys
Heres the deal, im loading about 6 external swfs onto my main movie...i have buttons on some of the movies that i want to be able to load/change the external movie that is show on my empty clip main_mc within the main movie...
is this possible?
I hope this makes sense...
thanks guys
jim
Loading External Movie ABOVE Main Movie...
Hi All,
I'm following the transitions between external SWF's tutorial found here...
but I'm having problems trying to load an external movie on top of a "frame" in my main movie... I need advice in finding the best method, I am not sure whether to use loadmovie to load it on higher level... I'm not even sure if that is possible here. I have also tried duplicating the "frame" in the external movie and turning turning it off "on press" in the main movie... I'm speculating here, but maybe I have to swap depths or load the movie in a seperate container at a higher level? I would do that but I'm what most of you would call a N00B.
For the sake of demonstrating I've attached a simple example, I have added a green box to section1.fla and section4.fla, but I need the green box in section 4 to be on top of the frame which is located in mainmovie.fla.
I'm doing this for a my own site and I could really use some help here.
Thanks
|