Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








_root.load.duplicateclip.issues.that.suck


created a duplicate movieclip and put it on the first frame with the other clips I want to work the same way but when I add the same actions for the other clips to the new button it brings up a blank page. I figures since its on the same page the button should work properly with the layers but something isnt right. The move loads but not the enter thing which you see on the other buttons.

Basically I am using a template and deconstructing to add my own flavor. I want the same effects that are on the template buttons on a new button but its not working. I have been trying to figure it out while learning scripting since I feel I have to get it out of the way but this has bee a thorn for like a week and I know it can be fixed simple by someone who fully knows scripting. just trying to get the right actionscrip.

Thanks,




KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 03-04-2005, 12:19 AM


View Complete Forum Thread with Replies

Sponsored Links:

_root.load.duplicateclip.issues.that.suck
created a duplicate movieclip and put it on the first frame with the other clips I want to work the same way but when I add the same actions for the other clips to the new button it brings up a blank page. I figures since its on the same page the button should work properly with the layers but something isnt right. The move loads but not the enter thing which you see on the other buttons.

Basically I am using a template and deconstructing to add my own flavor. I want the same effects that are on the template buttons on a new button but its not working. I have been trying to figure it out while learning scripting since I feel I have to get it out of the way but this has bee a thorn for like a week and I know it can be fixed simple by someone who fully knows scripting. just trying to get the right actionscrip.

Thanks,

View Replies !    View Related
Help With For Oop And DuplicateClip
ok- working on the step over from php to actionscript and trying to learn the syntaxes so I am sure that the reason this is not working is because of a simple error that I hope someone more experienced in the language can spot..

this is located on the layer "actionscript" in the first frame(and only).

Many thnaks in advance!

here is my code:
______________________________________________

textMC.bob = "this is test text";

//duplicate movie clip
for(i = 1; i < 10; i++){
duplicateMovieClip(textMC, i, i);

if(i == 1){

//if this is the first clip, set _y to 45
setProperty(i, _y, 45);

} else {
//set the new MC down 30 pix
//get the number for the previous clip
previousNum = i-1;

trace("previousNum = " + previousNum);
//get the previous MC _y


previousY = getProperty(_root.previousNum, _y);
trace("previous clip = " + previousClip);

//create a new y value
newY = previousY + 45;
trace ("newY = " + newY);
//set the new clip's y equal to previous num y + 45
setProperty(i, _y, newY);

trace("previousY = " + previousY);
trace(i);

}



//set the original clip alpha = to zero
setProperty(textMC, _alpha, 0);
}

View Replies !    View Related
DuplicateClip Question
hey,

I have a movieClip on main stage with instance name ball. In ball I have a clip with instance name square.

Now on main stage I want to get a new clip with the square clip. Is there a way to duplicate the square clip sitting in the ball clip, but have it duplicated to main stage?

I hope this is not too hard to understand

Any help would be apreciated

View Replies !    View Related
_root Issues, Please Help
Hi

I made a button, its inside a movieclip.
This movieclip is then placed on the main stage.

PHP Code:




on (release) {
    gotoAndPlay("scene2", 1);
}







This doesnt work. It wont go to scene2

So I added _root. and that didnt work either.

Like some tips and help

View Replies !    View Related
_root Issues
Hi, for a form application in flash mx 2004, the top for is the root of the form, my problem is if you load a form into a movie, is the reference of _root in the forms the movie that the form was loaded into or the top level of the form.

View Replies !    View Related
Scope Issues And _root
In a thread posted here I was having a probem with loadMovie not working correctly because I was using _root in the movie being loaded.

I resolved the problem by referencing the _root like this:


PHP Code:



var _timeline = this;




My question is, Is this common practice?

If I'm building a flash site in a "module" architecture, with an index.swf and loading swfs into it, should I be referencing the timelines in my swfs like this?

I mean, it worked for this situation, but I'm interested if this is the correct way to resolve the scope issue.

Thanks for any input

View Replies !    View Related
Having Issues With _parent, _root
I'm having a issue:

I have a mc on the main timeline, inside that mc i
have multiple mc's, in one of those mc's--we'll call
it content2_mc--on the actions layer I have:

label="s" + _root.link;
gotoAndPlay(label);

and on the buttons i have:

on (release) {
if (_root.link<>1) {
_parent["item"+_root.link].gotoAndPlay("s1");
_root.link = 1;
_root.play();
}
}

Now this doesn't work how it is, and I think it has
some thing to do with the _root and _parent stuff.
I copied the movie clip and placed it on the
main timeline of a new fla. and it worked.

any idea's.

thanks,
hutch

View Replies !    View Related
Migration Issues With _root And Timers
I am working on migrating an AS2 project to AS3 and have hit a wall. I think that the problem lies in a mouse_over event that is not firing.

I was using _root in my old script. Does this migrate to AS3?

My next problem is a little more complicated. I am using Timers and I think that is messing me up pretty good. My mouse_over event calls a times, which calls a function that changes a variable to the name of the movieclip that triggered the mouse_over event. If that makes any sense.

Here is a bit of code to clarify further:

code:

function bgover(event:TimerEvent):void {
trace("bgover fired");
accordionTrigger = true;
over = this.parent.name;
trace("over: " + over);
}

function setTimer(event:MouseEvent):void {
trace("setTimer fired");
tTimer.addEventListener(TimerEvent.TIMER, bgover);
trace("this.parent.name: "+ this.parent.name);
tTimer.start();
}

function stopTimer(event:MouseEvent):void {
trace("stopTimer fired");
tTimer.stop();
}

function allActions(param:Number) {
trace("all actions fired");
if (param == 1) {
for (i=1; i<=numOfMenu; i++) {
root["slice"+i].bg.buttonMode = false;
root["slice"+i].bg.addEventListener(MouseEvent.MOUSE_OVER, setTimer);
root["slice"+i].bg.addEventListener(MouseEvent.MOUSE_OUT, stopTimer);
root["slice"+i].addEventListener(Event.ENTER_FRAME, Enter);
}
trace("MainMovieParam =" + param);
mainEnterTimer();
} else {
trace("stopped");
mainEnterTimerStop();
}// end if
};



Thanks in advance for any help!

View Replies !    View Related
Help - _root Issues In A Loaded Movie
Please help, this is my first post so be kind!
Im working on a learning environment, My main movie loads several other movies into it depending on user button clicks. For the lectures, a seperate lecture.fla loads into a movie clip holder on the main timeline, and when completed this links to a quiz which has been created using a flash template.The quiz is supposed to load into the holder, replacing the original .fla file. The quiz wont work past the third frame when loaded into this holder. i have managed to get it to load into its own seperate window which is fine, this works but i then have the problem of sharing data between the two seperate .fla files. I use shared objects so that when the user goes back to the lectureChoice screen they are told what lectures have been completed.
I am asking for help on either of two options.
OPTION 1 - Help with loading this quiz into holder on original timeline. i have tried "_lockroot = true;" which doesnt work, and also loading into level1 which doesnt work.
OPTION 2 - Help with communication between the quiz and original movie, so that when quiz is complete, i can store shared object to reflect this in main movie, and also when quiz is complete, it triggers the main movie to load another movie into the holder.
I have no idea if this is possible so please help. Please contact if my info given is rubbish! and i will attemtp to give better details.

View Replies !    View Related
Flash Issues With _root.nextPlace
i was sent here by gfx-arena, so you can blame them.

okay, here's what i have:

on button 'home', i have

on (release) {
_root.nextPlace = "home";
play ();
}

and the corresponding buttons have their corresponding locations, ie, music, media, contact.

at the end of the scene, i have

gotoAndPlay (_root.nextPlace);

but no matter what button i press when i test the movie, i move to the next scene. the reason i'm doing this in this manner is because i have a fade out transition.

i made a MUCH more simple version of this, and of course it worked. so, there's nothing different about the actionscript, just more content on the original. here's the original and the simplified version, respectively:

original
simplified

thanks so much for your help.

-- Cm

View Replies !    View Related
Load In _root Quicky
How can you do a loadmovie in the _root ?


It wants a target but how can you tell it to go to the _root to find the target ? Basically the target is not in the current movie...but in the absolute root. or at least that is where I would like it.

Thanks

View Replies !    View Related
Load Swf _root Problem
for presentation I want to show some already finished swfs in my master.swf, just like the little preview.swfs here in flashkit are shown in a master.html

No problem with the loadMovie-function! But then the [COLOR=dark-blue]_root[/color] of the master.swf will become the [COLOR=dark-blue]_root[/color] of the loaded.swf, which kills the functionality of the loaded.swf. Is there anyone who knows a solution for that???

thanx very much for any help

View Replies !    View Related
Load Swf _root At Start
the answer to this question is probley already on here, but there are alot of posts ! LOL

any way, i have no problem loading external swf's from buttons
but for the life of me i cant get a external swf to load when
the main swf starts up

eg i have a site.swf file embedded in in a html doc.
and when i go to www.whatever.com and the site.swf file loads
i want it to load content.swf into a empty movie clip ive called
window.

ive tried
on the mc itself, loadmovie, and on the frame window

onload loadmovie window.swf _root.window

no luck
could one of you flash experts out there, give a fulla a hand?
would be great !

thanks

View Replies !    View Related
Load Vars From _root
i have a root movie in which i have specified some variables:

var mc_array = ["1.swf", "2.swf", "3.swf", "4.swf"];
var counter = 0;

then i load the first .swf into a container. inside the swf is the following buttoncode:

on (press) {
loadMovie(mc_array[counter],mc1);
counter++;
}

how can i tell flash to look for the variables mc_array and counter in the root movie?

View Replies !    View Related
How To Use _root To Load File From HDD
I have main moviclip.Inside this movieclip I have 2 layers. On the 1st keyframe of layer1 I have _root to moviclip to load
[ _root.section != "a.swf"; {
_root.section = "a.swf";
_root.transition.gotoAndPlay("closing"); ]

thing is this is not leading me to the a.swf. I need to know the road to that a.swf.


P.S. If I have the 2 layers on scene1 the path, shown above, works

View Replies !    View Related
Load _root (269) When MC Loads (40)
I don't know why this doesn't work:

scrollMC.back_3.onPress = down3;

function down3() {
figure_1.gotoAndPlay(21);
ifFrameLoaded(figure_1,40) {
_root.gotoAndPlay(269); };
figure_2.gotoAndStop(1);
}

I want the root to wait until the MC (figure_1) gets to frame 40 to jump to frame 269, but when I click on scrollMC.back_3 it just jumps immediately to 269 without figure_1 playing frames 21-40.

View Replies !    View Related
[f8] Page Flip Load/pre-load Issues.
Hi all

I designed a page-flip in flash8 using actionscript, but ihave some problem
because while it is opening in browser it showing some prob..

i.e. in browser the images are taking lot of time to load, in that mean while the default pages are flipping, but i want to apply preloading can any one help me in this..

what is preload and what is the code for that

i am calling images from external folder and the flip book is dynamic..

View Replies !    View Related
//loadVariablesNum In External .swf (does _root Load)?
I have A main.swf that loads form.swf in one of its movie clips. and I am having troble w/ the submit button on that form.

I believe my problem lies somewhere between using externally loaded .swf's and maybe having the submit button inside of a movie clip inside of a movie clip. How does the loadvariableNum actually work,will it only submit that swf's variables or will it also send the variables of the _root time line. I am very confused. like I said my url is sdginteractive.com/fh02
the asp page is
sdginteractive.com/fh02/whatever.asp

scroll all the way2the bottom and hit submit. that SUBMIT button is inside of an externally loaded movie and it is using:
on (release) {
loadVariablesNum ("http://www.sdginteractive.com/fh02/verify_s.asp", 0, "POST");
}



Now the question is:
half of the form are radios setting variables to the _root. timeline.
on (release) {
_root.radio1 = "1";
}

with a value of 0 or 1. when I hit submit which is located in the ext swf does it send the variables from the _root timeline? (the parent swf)
does it just grab all variables from any of the two seperate swf's?
Or will it only load the variables from the ext .swf

View Replies !    View Related
_root Load Movie And Levels Help
I've got an SWF named 'external.swf' with some actionscript that allows you to control the timeline and play the movie backwards and forwards. this is done using a movieclip named 'code'.
The movieclip 'code' contains the following actionscript:

function CtrlLoop() {
var NextFrame;
if (_root.direction == "fwd") {
nextFrame = _root._currentFrame + 1;
if (nextFrame > _root._totalFrames) {
nextFrame = 1;
}
} else {
nextFrame = _root._currentFrame - 1;
if (nextFrame < 1) {
nextFrame = _root._totalFrames;
}
}
_root.goToAndStop(nextFrame);
}

The following actionscript is attached to the movieclip 'code':

onClipEvent (enterFrame) {
_root.code.CtrlLoop();
}


There are two buttons in the main timeline that control the moie and allow it to be played backwards or forwards. The following actions are attached to the buttons:

on (release) {
// play reverse function in the code clip
_root.code.PlayRev();
}

on (release) {
// play fowrard function in the code clip
_parent._root.code.PlayFwd();
}


The movie works fine as a standalone movie but when loaded into another movie it doesnt work???. I'm trying to load this movie into a blank movieclip with the following target name 'scrn_2_loader' this blank movieclip is itself in another movieclips timeline that is placed on the main timeline of the base movie.

Can anyone please help me with this problem. Why doesn't the 'external.swf' movie work when it's loaded into the main movie??? Thanks in advance.

View Replies !    View Related
_root + Load Movie + Levels HELP
I've got an SWF named 'external.swf' with some actionscript that allows you to control the timeline and play the movie backwards and forwards. this is done using a movieclip named 'code'. The movieclip 'code' contains the following actionscript:

function CtrlLoop() {
var NextFrame;
if (_root.direction == "fwd") {
nextFrame = _root._currentFrame + 1;
if (nextFrame > _root._totalFrames) {
nextFrame = 1;
}
} else {
nextFrame = _root._currentFrame - 1;
if (nextFrame < 1) {
nextFrame = _root._totalFrames;
}
}
_root.goToAndStop(nextFrame);
}

The following actionscript is attached to the movieclip 'code':

onClipEvent (enterFrame) {
_root.code.CtrlLoop();
}


There are two buttons in the main timeline that control the moie and allow it to be played backwards or forwards. The following actions are attached to the buttons:

on (release) {
// play reverse function in the code clip
_root.code.PlayRev();
}

on (release) {
// play fowrard function in the code clip
_parent._root.code.PlayFwd();
}


The movie works fine as a standalone movie but when loaded into another movie it doesnt work???. I'm trying to load this movie into a blank movieclip with the following target name 'scrn_2_loader' this blank movieclip is itself in another movieclips timeline that is placed on the main timeline of the base movie.

Can anyone please help me with this problem. Why doesn't the 'external.swf' movie work when it's loaded into the main movie??? Thanks in advance.

View Replies !    View Related
Load Movie In Between Layers On _root?
Hi there,

Can someone help?

Is there a way that you can load a movie.swf in between layers on the root movie?

I have a shadow border on the root movie on the top layer, and i wish to load a captivate.swf using the load movie action, but i want to load it into a layer under the shadow on the root swf file.

Can this be done?

Thanks.

View Replies !    View Related
Making The _root Invisible When Load A Swf
My homepage loads swf through the menu. On load, the homepage has to be invisible. Here is the part concerned :

this.createEmptyMovieClip("container",this.getNext HighestDepth)
Galleriehotel_mc.onRelease=function(){
loadMovie("travelgallerymiddletrial.swf","containe r")
};
How do I have to proceed ?
Thank you .

View Replies !    View Related
AS 2 Load Variables Or _root Issue
I used the tutorial from kirupa on passcodes to implement a PHP/Flash login but am having problems with making it work... I have a index.swf that my login.swf page loads into.. the login works when I use it by itself, but when I use the index page and the login loads into that file, then it won't work..anybody know if I'm not configuring my paths correctly or what? not sure... thanks in advance for any help at all!!

this is the code on the button:::

on (release, keyPress "<Enter>") {
if (pass != "") {
loadVariablesNum("newlogin.php", 0, "POST");
}
}

this is code from login.swf timeline:::::

stop();
Selection.setFocus(passinput);
this.onEnterFrame = function () {
if(_root.checklog == 1){
_root.gotoAndStop(122);
}
if(_root.checklog == 2){
_root.gotoAndStop(124);

}

}

View Replies !    View Related
Instance Problems & The "_root" Issues
Ok...so I already did a search for instance problems, b/c I know thats probably what my problem is, but I haven't come up with a working solution.

I have a main movie swf that loads numerous external swf's into it's main container. One of them is a gallery swf movie that has a thumbnails, a next and previous button and an invisible scroller. (BTW I used the Kirupa XML Gallery Tutorial as a base for my gallery.)

Everything works fine when I test the movie by itself. In fact I am very pleased with the look. However, when it is loaded into the main movie swf the invisble scroller doesn't work. You can still move through the slides with the next and previous buttons but the scroller doesn't move.

I'm guess that it has something to with the instance names and the "_root" coding. But I dont know how to fix it. Can anyone help???!

Below is the entire code for the gallery:


ActionScript Code:
function loadXML(loaded) {
    if (loaded) {
        xmlNode = this.firstChild;
        image = [];
        description = [];
        thumbnails = [];
        total = xmlNode.childNodes.length;
        for (i=0; i<total; i++) {
            image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
            description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
            thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
            thumbnails_fn(i);
        }
        firstImage();
    } else {
        content = "file not loaded!";
    }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
    if (Key.getCode() == Key.UP) {
        prevImage();
    } else if (Key.getCode() == Key.DOWN) {
        nextImage();
    }
};
Key.addListener(listen);
previous_btn.onRelease = function() {
    prevImage();
};
next_btn.onRelease = function() {
    nextImage();
};
/////////////////////////////////////
p = 0;
this.onEnterFrame = function() {
    filesize = picture.getBytesTotal();
    loaded = picture.getBytesLoaded();
    preloader._visible = true;
    if (loaded != filesize) {
        preloader.preload_bar._xscale = 100*loaded/filesize;
    } else {
        preloader._visible = false;
        if (picture._alpha<100) {
            picture._alpha += 10;
        }
    }
};
function nextImage() {
    if (p<(total-1)) {
        p++;
        if (loaded == filesize) {
            picture._alpha = 0;
            picture.loadMovie(image[p], 1);
            desc_txt.text = description[p];
            picture_num();
        }
    }
}
function prevImage() {
    if (p>0) {
        p--;
        picture._alpha = 0;
        picture.loadMovie(image[p], 1);
        desc_txt.text = description[p];
        picture_num();
    }
}
function firstImage() {
    if (loaded == filesize) {
        picture._alpha = 0;
        picture.loadMovie(image[0], 1);
        desc_txt.text = description[0];
        picture_num();
    }
}
function picture_num() {
    current_pos = p+1;
    pos_txt.text = current_pos+" / "+total;
}
function thumbNailScroller() {
    // thumbnail code!
    this.createEmptyMovieClip("tscroller", 1000);
    scroll_speed = 7;
    tscroller.onEnterFrame = function() {
        if ((_root._xmouse>=thumbnail_mc._x) && (_root._xmouse<=thumbnail_mc._x+thumbnail_mc._width)) {
            if ((_root._ymouse>=(hit_down._y-20)) && (thumbnail_mc.hitTest(hit_down))) {
                thumbnail_mc._y -= scroll_speed;
            } else if ((_root._ymouse<=(hit_up._y+20)) && (thumbnail_mc.hitTest(hit_up))) {
                thumbnail_mc._y += scroll_speed;
            }
        } else {
            delete tscroller.onEnterFrame;
        }
    };
}
function thumbnails_fn(k) {
    thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
    tlistener = new Object();
    tlistener.onLoadInit = function(target_mc) {
        target_mc._y = hit_up._y+(target_mc._height+5)*k;
        target_mc.pictureValue = k;
        target_mc.onRelease = function() {
            p = this.pictureValue-1;
            nextImage();
        };
        target_mc.onRollOver = function() {
            this._alpha = 50;
            thumbNailScroller();
        };
        target_mc.onRollOut = function() {
            this._alpha = 100;
        };
    };
    image_mcl = new MovieClipLoader();
    image_mcl.addListener(tlistener);
    image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}

View Replies !    View Related
Can You Load A _root Targeted Movie Into Another Without Hassles?
Quick question,

is there any quick and dirty way to load one swf into another, that is full of _root targeted actionscripts, without having to go in and retarget it all?

Anyone else with this problem? Is there a way to self contain the movie so it doesn't target the parent swf's timeline?

Thanks...

View Replies !    View Related
Load Multiple Movies Into _root.holder
i need to load 2 or more movies into the _root.holder
if this cant be done then where can i pop them so thay are still dragable not using _root.holder?
example: goto my website and open the 1024 x 768 (Beta Version)
using the menu to open small windows uses

ActionScript Code:
on (release) {
    loadMovie("../_movies/portfolio_eng.swf", "_root.holder");
}
but how do i keep this mc up and open another using the menu?
when a new mc is loaded it replaces whatever is in the _root.holder
Please help
Adam

View Replies !    View Related
Actionscript To Enable _root.ProgressBar To Load New Movie
I know i've been posting a lot about this but i'm ALMOST there it seems. This code is being executed from an external .SWF inside of the loader component. it loads the movie, but the progress bar isn't working for this.... anyone gotta tip?

basically: main.swf has 2 loader components ("loader" and "loader2" in seperate locations, and a progress bar ("Pbar") component on the timeline. main.swf loads movie2.swf into "loader", and "pBar" shows the loading status just fine. there is a button inside of movie2.swf that triggers main.swf to load movie3.swf into "loader2". it shows up fine, but the progress bar doesnt work for this second loading action.


Code:
on (release) {
_root.pBar.source = _root.loader2;
_root.loader2.contentPath = "movie3.swf";
}

View Replies !    View Related
Actionscript To Enable _root.ProgressBar To Load New Movie
I was stupid and forgot to put quotes under the pbar source. duh.



on (release) {
_root.pBar.source = "loader2";
_root.loader2.contentPath = "team_tcurran_video.swf";
}








I know i've been posting a lot about this but i'm ALMOST there it seems. This code is being executed from an external .SWF inside of the loader component. it loads the movie, but the progress bar isn't working for this.... anyone gotta tip?

basically: main.swf has 2 loader components ("loader" and "loader2" in seperate locations, and a progress bar ("Pbar") component on the timeline. main.swf loads movie2.swf into "loader", and "pBar" shows the loading status just fine. there is a button inside of movie2.swf that triggers main.swf to load movie3.swf into "loader2". it shows up fine, but the progress bar doesnt work for this second loading action.


Code:
on (release) {
_root.pBar.source = _root.loader2;
_root.loader2.contentPath = "movie3.swf";
}

View Replies !    View Related
Load Movie On Level1 Play Instance On Level2 From _root
Hi,
I have a 'main' swf time line and a 'control' swf which is loaded onto level2 when the main movie starts.

On frames 10 to 20 of the main timeline are for eg.

loadMovieNum("01_purpose.swf",1);
stop();

...which loads the content swfs on level 1 of the root timeline.

This is controlled by buttons on my control swf. (ie goto and stop ,10)
This all works fine.

I want to be able to highlight my buttons on the 'control' swf so that I can see where I am in the timeline of the presentation.
I have an instance of 'colour' in my control swf and I want to action this from the root timeline so that a next and previous button on the control will also highlight the correct button. 'colour is just a movie clip the moves a block of colour from one label to another eg 'one', ';two' etc.

Am I close with this syntax in my main (root) timeline?

loadMovieNum("01_purpose.swf",1);
_level2.colour.gotoAndStop(one);
stop();

Would appreciate any help!!

View Replies !    View Related
Xml Load Issues
Ok I used the wonderful xml tute you have here and it's great but i slightly altered it for my needs and have this method

private function loadXML(p_page:String){
__page = p_page;
__us_txt = new XML;
__us_txt.ignoreWhite = true;
__us_txt.load("http://www.uselesskillz.co.uk/usv2/classes/index.php?page=Home");
__us_txt.onLoad = function(success){
if (success){
trace(this);
}
}

}
in the above code traceing this outputs the xml file as expected, but I can't access this.firstChild... etc
I assume I am doing something wrong can anyone point out what that was and help.

Phil

View Replies !    View Related
Load Movie Issues
Hi all,

I am having problems loading a movie onto the main timelime as it plays. I want to load two external movies. One is a music movie that already loads and works fine, but for some reason I cannot get the other movie to automatically load. Is there some sort of bug in Flash that doesnt let 2 movies automatically load in the originating timeline. The funny thing too, is when I refresh the movie in the browser...it loads fine? I cant figure it out. I have tried like 3 or 4 different ways of doing it but it still wont load. Any help or insight or ides would be appreciated. Thanks in advance for any help.

-Bob

View Replies !    View Related
Load Movie Issues
I have a movie that has dynamic text. It works fine when I test that movie, but when I load that movie into another, the dynamic text is missing.

I know this is a very general question, but is there a major concept I am missing about dynamic text and loading movies into other movies?

gamist

View Replies !    View Related
LoadVars.load Issues?
I hope some flash guru out there can help me with this…
Here it goes.

Im trying to have the users input send (POST) to a .txt when the user clicks a button.

So far I have worked out how to display parts of a txt file in a dymatic text box and the idea in the long run is to make a simple web log.

Any help would be greatly appreciated.

View Replies !    View Related
Load Movie Issues
So I've but in load movie for each button on the site to bring up content, etc. when you click on it it over laps the main .swf

Ex. The About Us - button is a loadmovie to load over the .swf so you can read about us. Etc.

But the about us .swf loadmovie is on layer 5 so you if you click another button you cant because they are in loadmovie layers 2-4 and the about us over laps them.

What actionscript would I use to takecare of this problem.

Would it be a: GotoAndStop or Play code?

This is the basic of what each movie has the actionscript as pluging in the proper name and layer number of course.

on (release) {
loadMovieNum("ContactESV3.swf", 1);
}


Thanks for your time.
JT

View Replies !    View Related
Load Time Issues
2 questions...

1 how do i import a txt file with the whole dynamic text thing

2 why are my load up times so ridiculously long. what are some methods of reducing this

View Replies !    View Related
Onclip Load Issues
I have an issue where I have a site with buttons that load different clip movies when button is pressed. I have 5 now but when I get to the sixth one it loads the same one as button 5. For some reason it will not load the correct frame. Here is the code I am using now for button five. I just change the num = 5; to num = 6; should work but does not. what am I missing. Please help.

onClipEvent (load) {
num = 5;
num_menu = num;
}
on (rollOver) {
if (_root.link != num) {
this.gotoAndPlay("s1");
_parent.b.item1.gotoAndPlay("s1");
}
}
on (releaseOutside, rollOut) {
if (_root.link != num) {
_parent.b.item1.gotoAndPlay("s2");
}
}
on (release) {
if (_root.link != num and _root.animation == 1) {
_root.animation = 0;
_root.link_prev = _root.link;
_parent[("item" + _root.link)].gotoAndPlay("s2");
_parent.b[("item" + _root.link)].gotoAndPlay("s2");
_root.link = num;
_root.the.the.play();
_root.scroller.scroller.gotoAndStop(3);
}
}

Full code I use for button six:

onClipEvent (load) {
num = 6;
num_menu = num;
}
on (rollOver) {
if (_root.link != num) {
this.gotoAndPlay("s1");
_parent.b.item1.gotoAndPlay("s1");
}
}
on (releaseOutside, rollOut) {
if (_root.link != num) {
_parent.b.item1.gotoAndPlay("s2");
}
}
on (release) {
if (_root.link != num and _root.animation == 1) {
_root.animation = 0;
_root.link_prev = _root.link;
_parent[("item" + _root.link)].gotoAndPlay("s2");
_parent.b[("item" + _root.link)].gotoAndPlay("s2");
_root.link = num;
_root.the.the.play();
_root.scroller.scroller.gotoAndStop(3);
}
}

Thanks Much

View Replies !    View Related
[MX] Load Movie Issues
Hi I have a couple of load Movie Issues which I would appreaciate help with!!


1.If I had a Symbol called A that was a 50*50 Cube in width and height and Red in color and I wanted to load another movie into it whilst still retaining its attributes,is this possible.Basically I want the new movie to appear inside the red cube BUT NOT REPLACE IT.I have tried to do it and can not find a way.All that happens is that the new movie replaces the od. do not want that. I want
the new film to appear inside the read cube as part of its background.
2.I am tring to load 5 seperate .swfs into a movie by using a for loop.
Can anyone give me the basic structure
alan

View Replies !    View Related
Flash 9 Load Issues
I have been trying to download Flash 9 for the last week, I have followed every instruction for IE and still can't get Flash 9. I check program add/delete and it shows "adobe flash player 9 activex" and "adobe flash player activex" yet every thing I try tells me to download flash 9, even the Adobe site. Can someone direct me to a solution.

View Replies !    View Related
Flash 9 Load Issues
I have been trying to download Flash 9 for the last week, I have followed every instruction for IE and still can't get Flash 9. I check program add/delete and it shows "adobe flash player 9 activex" and "adobe flash player activex" yet every thing I try tells me to download flash 9, even the Adobe site. Can someone direct me to a solution.

View Replies !    View Related
Load Movie Issues
Ok I am having a serious forgetful spell...
Im am loading a movie into the main swf

The man question is how do i control button swf loaded into the main swf

how can it goto play the next frame on a load movie

View Replies !    View Related
Linkage And Movie Load Issues
I have a movie with a basic "loading..." animation at the beginning. However, I also have linked audio files (I have linked them in order to control them - start, stop, volume).

The problem is, with those sounds linked, the "loading" animation doesn't show up on the screen until the 80-90% of the entire movie is loaded.

If I unlink them and drag them to the stage (which diminishes the level of control I have over their playback), the "loading" animation pops up immediately.

Is this a known problem? Is there a workaround? Any help is greatly appreciated!!!

View Replies !    View Related
Load Movie Finishing Issues
ok I got the movie to go on the top layer, but my problem now is that when I use the symbol for the top left corner, it doesnt work. it instead just uses up almost the entire screen!


Does anyone have any ideas. The Kirupa site doesnt say anything about this

View Replies !    View Related
Actionscript Load Text Issues
I am tearing my hair out here. somebody kindly gave me the script to load text into a dynamic text field using a button. the fla he sent me included a component button which activated the load txt command. i have made my own button and now the scipt doesnt work. i get theo loaded output but the text i want to display isnt coming up. please plase help this site is going live today.

thanks very much

Nik

here is the script:

================================================== ===================
onRelease = function() {
myVar = new LoadVars();
myVar.load("load_var.txt");
myVar.onLoad = function(success) {
if (success) {
load_txt.htmlText = this.load_txt;
trace("loaded");
} else {
trace("not loaded");
}
};
};
================================================== ====================

View Replies !    View Related
Issues With Getting A Swf To Load In The Background While Another Swf Is Playing
Hi,

I'm having major issues with getting a swf to play (site.swf) just after it has been loading in the background while another swf file has been playing (intro.swf).

Here are the 3 files involved:

mainMovie.swf
intro.swf
site.swf

"mainMovie.swf" is the parent clip that the other two swf files load into. The first thing that the "mainMovie.swf" file instructs to do is to load the "intro.swf" file. Once the intro starts to play it triggers a '_root.gotoAndStop' to frame 2 on the main timeline of the "mainMovie.swf". Here are the actions on frame 2:


Code:
siteClip.loadMovie("site.swf");
_root.introDone = false;
stop();


The "site.swf" begins loading (while the "intro.swf" is playing). Once the intro has finished playing, it triggers another '_root.gotoAndStop' to frame 3. Here are the actions on frame 3:


Code:
_root.introDone = true;
stop();


On the first frame of the "site.swf" is the following actions:


Code:
totalBytes = this.getBytesTotal();
loadedBytes = this.getBytesLoaded();
kloaded = int(loadedBytes/1000);
remainingBytes = totalBytes - loadedBytes
percentDone = int((loadedBytes/totalBytes)*100);
bar.gotoAndStop(percentDone);
if (percentDone >= 100) {
stop();
} else if (_root.introDone == true){
this.gotoAndPlay(3);
}


Now that code should begin to play the "site.swf" file considering that frame 3 of the "mainMovie.swf" is saying that "introDone = true". Correct? Well... it's not working. The "site.swf" clip ends up getting 'stuck' at frame 1. Even if you take the "stop();" out of the script on the first frame of "site.swf" it still gets stuck on frame 1.

Anybody know what the issue is?

Huge appreciations to anybody who can help me resolve this!!

Kind regards,

Blastbum

View Replies !    View Related
Button Load Movie Issues
I have 5 buttons for my navigation on my main "page"

Each button is contained inside it's own mc. I have it set up so that on roll over the button goes through my animations w/ in it's mc.

Here's the thing. I also want that button (w/ in) the movie clip to load or unload .swf mc's to the main scene using a "holder" mc.

I can load or unload movies w/ in the mc buttions using unloadNum (1) etc etc. However I prefer to load to a holder clip.

I hope I am being clear enough.

I am attaching the .fla.. Ideally that will help


Thank you in advance for any help..

View Replies !    View Related
[CS3] Server Load Issues & Best Practice
Hello all,
Not sure if this is the correct forum to post my question.

I currently have the choice to deliver content in two ways.
Option 1
I can convert a bunch of jpgs & mp3s into a flv using XML
and final cut pro to export a movie and then covert to flv.

Option 2
Or I can keep the jpgs & mp3 and produce a slideshow using flash.

What is the best practice here? What has less server load issues
and would give a better user experience.

Any advice greatly appreciated!

View Replies !    View Related
Load/Unload MC Depth Issues
Hey Folks - Currently, I've got a main movie into which I'm loading multiple external .swfs. onto different levels using loadMovieNum. From within the loaded mcs, I've got the button overlaying in the exact position as on the main mc - to unload the loaded mc. Each mc that's loaded has captions that appear upon rollover. My major problem is that, based on each mcs level, many of the captions will appear 'underneath' an mc that's loaded-in on a higher level.
Any suggestions on how best to load these mcs without running into this layering issue?
The buttons on the main mc are considered toggle switches that the user can turn on and off. they can have them all on to view all, which will create huge problems with the way I'm currently doing it. So thanks a ton for any help or alternative methods for loading/unloading these nuggets.

View Replies !    View Related
MX Perspective & Load Movie Issues
I am trying to create a starfield effect. I have gone through the tutorials here and elsewhere and come so far. I am attaching the fla file along with the code.

The motion as you can see is jerky. Cant figure out what am i doing wrong. I had a look at every conceivable stuff available. The catch in my problem (i think) is that the starting point is inside the screen which emulates the perspective effect. Other stuff like snow flakes ,etc are 2D effects and can start of out side the screen.

I tried to set _alpha = 0 at the duplication point and then make it brighther as it enlarges but still of no use.

I created the duplication process into a function and tried to call it through the onenterframe event handler of the instance star - but that was horrible. felt like my televeision screen gone bad.

isnt there a way that I can check at the star coordinates and set it to its original position if it goes beyond the screen limits. I tried to add that code earlier but it wouldnt work. I guess i must have been using the wrong conditions.

sigh!


Another thing. I am trying to load this swf into a main movie using the following script:



ActionScript:--------------------------------------------------------------------------------
loadMovie("starfield.swf",_root.movies);
movies._x = 227;
movies._y = 145;
movies._width = 250;
movies._height = 245;

--------------------------------------------------------------------------------


However the the stars in the child movie do not respect the width and height restrictions. So I have those stars running all around the place in the main movie. Is there a way to curtail these stars besides using a mask (actually havent tried the mask so far, but i am assuming it would work)

View Replies !    View Related
OnClipEvent(load) Scope Issues
Im using a universal button - in which I define a new instance name when I use it - however, I need to pass its instance name when the button loads and I am running into scope issues..


For now, I have just been applying the onClipEvent code onto the movieclip that then contains a button (a hitbox) which then detects the onRollOver and onRelease. I would like to do it more OOPy - meaning defining all the event handlers/functions on the first keyframe of the movie - but - just need help on the scope issue for now... Got to move on to the next project.


Thanks

View Replies !    View Related
Flashmx-Im Trying To Make It So That When _root.lazer Collides With _root.bad It Goto
Im trying to make it so that when _root.lazer collides with _root.bad it gotoandplays("Explode"); im using this script

onClipEvent (load) {
if (this.lazer(_root.bad)) {
this.gotoandplay("Explode");

My fla is attached.

View Replies !    View Related
I SUCK...
I seem to totally suck at this thing. I just started but i have no idea as to what i'm doing. I don't even know how you get that thing saying loading before you site or movie loads. I would really appreciate it if someone could tell me how they got started. Thank you for your time.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved