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




Movie Clip Preloader Not Working With Labels



I'm using Flash MX 2004

I have a movie clip in my timeline, then inside the movie clip I want to check if a frame in my main sequence is loaded;

stop
ifFrameLoaded (scene 1, 50) {
gotoAndPlay(15);}
prevFrame();
play();

This works, but then I try to change the frame (50) to a label name:

stop
ifFrameLoaded (scene 1, "label1") {
gotoAndPlay(15);}
prevFrame();
play();

It's not working! The movie will not wait for the load, but continues to frame 15.

What is wrong? Can't I address a label from within a movie clip? It drives me crazy. Any help highly apreciated.



FlashKit > Flash Help > Flash ActionScript
Posted on: 11-10-2004, 09:48 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Preloader Within Movie Clip Not Working.
Hi,

I need a little help getting a preloader to work from within a movie clip. Reason being I want to have the movie clip (with the preloader inside it) follow the mouse cursor whilst loading. I've created a specific preloader already and because of the way it works i cant just dump it into a movie clip, or maybe i can i just cant get it to work. A little help would be greatly appreciated.


I've attached the source as it's easier to understand than by just pasting all the AS here.

SOURCE HERE

Cheers

External Preloader Causing Movie Clip To Stop Working? Help Please
my external preloader is stoping my swf from working properly it loads up fine but when it comes to clicking on a person every one in the carousel dissapear?

click here to preview

heres my preloader code:


Code:
var mcl:MovieClipLoader = new MovieClipLoader();
var mclL:Object = new Object();
mclL.onLoadProgress = function(target, loaded,total) {
loader.percent.text = Math.round((loaded/total) * 100) + "%";
}
mclL.onLoadInit = function () {
loader._visible = false;
loader.percent.text = "";
}
mcl.addListener(mclL);
mcl.loadClip("Carousel2.swf",holder);
and heres my mainmovie code


Code:
this.createEmptyMovieClip("theScene", 1);
theScene._x = 270;
theScene._y = 140;
objectsInScene = new Array();
//twodimensional array the number is the frame you want goto
var paneArray:Array = [["pane", 5], ["pane1", 10], ["pane2", 15], ["pane3", 20], ["pane4", 25], ["pane5", 30], ["pane9", 35], ["pane7", 40], ["pane8", 45], ["pane10", 50], ["pane11", 55], ["pane12", 60], ["pane13", 65], ["pane14", 70]];
spin = 0;
focalLength = 200;
displayPane = function () {
var angle = this.angle-spin;
var x = Math.cos(angle)*this.radius;
var z = Math.sin(angle)*this.radius;
var y = this.y;
var scaleRatio = focalLength/(focalLength+z);
this._x = x*scaleRatio;
this._y = y*scaleRatio;
this._xscale = this._yscale=50*scaleRatio;
//changed next line so all panes are on a removable depth
this.swapDepths(8000+Math.round(-z));
};
angleStep = 2*Math.PI/14;
for (var i = 0; i<14; i++) {
//get the first element of each array item
attachedObj = theScene.attachMovie(paneArray[i][0], "pane"+i, i);
attachedObj.angle = angleStep*i;
attachedObj.radius = 100;
attachedObj.x = Math.cos(attachedObj.angle)*attachedObj.radius;
attachedObj.z = Math.sin(attachedObj.angle)*attachedObj.radius;
attachedObj.y = 100;
attachedObj.display = displayPane;
//give each pane its id
attachedObj.id = i;
//inside the panes give all the buttons an instancename one
attachedObj.one.onRelease = function() {
_root.gotoAndStop(paneArray[this._parent.id][1]);
//remove the panes
removePanes();
};
objectsInScene.push(attachedObj);
}
function removePanes() {
for (var i = 0; i<14; i++) {
theScene["pane"+i].removeMovieClip();
}
}
panCamera = function () {
spin += this._xmouse/3000;
for (var i = 0; i<objectsInScene.length; i++) {
objectsInScene[i].display();
}
};
// make each figure run backAndForth every frame
theScene.onEnterFrame = panCamera;
anyone have any idea?

Thanks Martin

Movie Clip Button Animations Stop Working With Preloader
I have a flash movie that has a layer with animated movie clip buttons. The buttons are also the buttons I use to call in the external swfs. I went through Lee's tutorial on external swfs, and my actionscript for that is close to his, though I have more buttons. Now when that actionscript is in place the onrollover for the movieclip buttons does not work. If I remove the external swf actionscript the buttons start to work again. Obviously this needs to be set up different. The movieclip buttons have an onrollover attached, and the main scene calls for a onrelease. How does this need to be setup. I tried moving the onrollover to the main scene but that did not seem to work either. Any suggestions and/or explanation why this is doing what it is doing?

Thanks in advance for any help.
LW

[F8] Targeting Movie Clip Labels From An External Swf File
I'm loading an external swf ("pubsandillos.swf") file from my home page("portfolio.swf"). portfolio.swf has a basic graphic and four buttons, while pubsandillos.swf holds the actual content. I would like each button in portfolio.swf to navigate to the correct position within the pubsandillos.swf file (I made a movie clip within that file for all my buttons which have frame labels to designate when they should be loaded). Right now, the first button works only because it is the first category within the timeline of pubsandillos.swf.

Is there anyway to target the buttons in portfolio.swf to the correct position in the movie clip inside the pubsandillos.swf file? (Again, the buttons in the pubsandillos.swf are contained within their own movie clip symbol, so the frame labels are within than symbol, not on the main stage.)

Thanks in advance!!

Interactive Demo: Navigating Loaded Movie Clip Labels
I'm scrabbling for an answer on this, because it worked, and now it doesn't, and I'm not sure what I did to break it.

Long and short of it: I'm creating an interactive demo with the main interface being its own .swf file, and each of the sub-sections as separate .swf files being loaded into five separate movie clips, one to a frame of the interface. I need the buttons on the interface to navigate to particular labels in each of the frames. Currently, for an example button, my code looks like this:

this.disc_sub1_btn.onRelease = function() {
//rolls the menu out
gotoAndPlay("out");
//goes to Discovery's frame
_root.gotoAndStop("2");
//plays the "process" section of Discovery
_root.disc_mc.gotoAndPlay("process");
}

This is the code on the main interface's second frame:

loadMovie("discovery.swf",this.disc_mc);
stop();

Trouble is, what happens when I click on the button? It goes to the main interface's frame and plays the loaded movie clip from its first frame, not from the label I called.

Help? I need to know how to call the label from the button.. do I need to have all the movie clips loaded in one frame? if so, how do I go about that?

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!

Menu Clip With Labels _up, _over And _down Containing Another Clip That We Can Click To Move To Another Frame
Ok, i have that code in first frame of my main scene:

stop();
mon_clip_mc.onRelease = function() {
mon_clip_mc.smenu1_mc.onRelease = function() {
_root.gotoAndStop(20);
};
mon_clip_mc.smenu2_mc.onRelease = function() {
_root.gotoAndStop(30);
};
};

I have "mon_clip_mc" on the main scene. Then, in that "mon_clip_mc" first frame code i only have a :

stop();

And in that "mon_clip_mc" i have the labels _up, _over and _down. At the _over label starts the movie clips "smenu1_mc" and "smenu2_mc". Those are the one i want to click on to go to frame (20) and (30).

As I did it, it doesn't work. Am I doing it the good way, is my code in the good place, should i use "hitareas", if yes, how ?

Thanks, i'm kind of lost...

[F8] Scrollbar In Movie Clip Not Working, Outside Clip Works
Made one post about this but no answers, i guess this forum used to be more helpful earlier on... Anyhow u see that the scrollbar inside the easing menu doesnt work, when i put it in the movie clip (Click on the INFO button), but when i put it in the Scene 1 on top of everything then it works perfectly. Also the arrows for both work, but it wont scroll down

the flash movie looks like this

is there some way to attach the .fla?

would be VERY grateful for some help!

Why Arent The Labels Working?
im almost finished a site for a client and then it breaks. i built a simple navigation

on (release) {
_root.gotoAndStop("contact");
}
but its not working right. it sometimes will go to contact and then won't stop. i put the files on my site if anyone wants to take a look. i really need help with this. any suggestions for alternative code? www.rocketinnovations.ca/newsite14.zip

Movie Clip Inside Movie Clip, Not Working Right....
hey,

I am making a button...
This button contains two movie clips, Both for roll over.

One is a arrow animation (>>>) looks like that, when roll over it's soposto light up the arrows one by one. At the end of that movie clip I have "goto and play(1)"

Another one is basically a box, that "highlights" the text, this one has a stop at the end of it.. as I want it to fade in, and stop when rolled over.... (which reminds me I have to make a fade out MC to use for roll out... anyways)

Now the problem is, when your not rolled over the button it should just show the outline of the arrows (>>>) as a img is there, and when ya roll over the animation should play highlighting them. The one Arrow MC don't work, it stays with one (the first) arrow highlighted... and won't move on roll over...

So whats wrong, would it help if I uploaded the file for you to DL and look at?

Ian

Buttons Within Movie Clip, Within A Movie Clip Not Working Right
My buttons are in a movieclip, within a movieclip... which might be my problem to start off with, if this is the case please let me know.

But what my buttons are set to do is skip to the next or previous frame like a picture gallery. They do that right, but my problem is with them functioning properly after they go to the next or previous frame. I have to move the mouse for the button to work right again, I can not just hold the mouse in the same location on the button and click over and over to proceed through the timeline. Although if I click several times kinda fast it will work.

Doesnt make any sense to me... Please help.

Loading A Movie Clip With Preloader Into Empty Clip
OK, stoopid question for those who know the answer:

I am trying to load a movie contac.swf into an empty movie clip "thedmovie" thus:

loadMovie ("http://321webliftoff.net/contac.swf", "thedmovie");

The problem is that the movie contac.swf contains a preloader:

frame 1:
_root.firstloading.percent = int ((this.getbytesloaded() / this.getbytestotal()) * 100);

frame 2:
if (_root.firstloading.percent < 100) {
gotoAndPlay (1);
} else {
gotoAndPlay (5);
}


and I can't work out how to get contac.swf to display in the empty movie clip, "thedmovie".

Loading A Movie Clip With Preloader Into Empty Clip
I am trying to load a movie contac.swf into an empty movie clip "thedmovie" thus:

loadMovie ("http://321webliftoff.net/contac.swf", "thedmovie");

The problem is that the movie contac.swf contains a preloader:

frame 1:
_root.firstloading.percent = int ((this.getbytesloaded() / this.getbytestotal()) * 100);

frame 2:
if (_root.firstloading.percent < 100) {
gotoAndPlay (1);
} else {
gotoAndPlay (5);
}


and I can't work out how to get contac.swf to display in the empty movie clip, "thedmovie".

Loading A Movie Clip With Preloader Into Empty Clip
OK, stoopid question for those who know the answer:

I am trying to load a movie contac.swf into an empty movie clip "thedmovie" thus:

loadMovie ("http://321webliftoff.net/contac.swf", "thedmovie");

The problem is that the movie contac.swf contains a preloader:

frame 1:
    _root.firstloading.percent = int ((this.getbytesloaded() / this.getbytestotal()) * 100);

frame 2:
    if (_root.firstloading.percent < 100) {
        gotoAndPlay (1);
    } else {
        gotoAndPlay (5);
     }


and I can't work out how to get contac.swf to display in the empty movie clip, "thedmovie".

GotoAndPlay Not Working With Frame Labels
--------------------------------------------------------------------------------

Hi. I've read enough to know that frame labels have much more success than frame #s when using GoToAndPlay. I used this, and followed my books to the "t", still no luck.

At frame 100, I want the playhead to return to frame 50. So at both I have created frame labels and key frames. At frame 100, I used the "normal" vs. advanced method to create and this is what I get at frame 100:

gotoAndPlay("start");

Is anything necessary? It behaves correctly in the timeline, but not when I use "test movie" or when I publish and embed in an .html page.

Basic, but highly frustrating. Any advice would be great.

Problems Working With Frame Labels
Hello,

This is my start. I want to make opened menu with frame labels:



**IGNORE the language

Now, I made frame labels, like this:

"shiopened":



"taropened":




ALL THE MENU ITEMS ARE MOVIE CLIPS WITH BUTTONS PASTED IN PLACE

Actions:

First Menu Item(on the "closed" Label):


Code:
on (press)
{
gotoAndStop("shiopened");
}
Second Menu Item(on the "closed" Label):


Code:
on (press)
{
gotoAndStop("taropened");
}
Its Not Working. WHY?

Thank you.

[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?

Preloader With Frame Labels
hey, if I put a preloader on frame 1 which loads the entire movie and then a "reference" preloader on frame 6, which each button is directed to before it loads its content, will this be effective in speeding up my website?

I would think that having a preloader in the same scene would be redundant becuase the entire movie has already been loaded by the first preloader, right?

If so, why do I see this in almost all flash movies (where when you click a button a preloader shows up and then the content appears).

Movie Clip Not Working
Heres what i did... i have a movie clip with an animated "banner" so i have this in my library... when i see it as "Symbol" i see all the frames and the animation works perfect, but then i go to scene1, i drag the MovieClip to the first frame and nothing happen... its just a frame with an image of the first frame of the animation, if i create new frames the image remain static and nothing change... so how can i drag the movie clip to the scene and make it animated like its as symbol? i cant make the animation directly in the scene cause i want to be able to move the entire movie clip not frame per frame
sorry im so noob :P
thank you

Preloader Stops The Movie From Working- Can Anyone Help?
hi, i've made a site that consists of a preloader (index.html) that opens up the main.swf which then links to other .swf's.

The site is complete and online at www.harryandbilly.com.
You will notice that some of the .swf's take ages to load. To overcome this problem in the past i have included a small preloader on the first frame of each new .swf. i didn't do that for this site though as i made it quite a while ago (i've only been doing this for 7 months) and didn't think to.
Now when i try and shift the movie along the timeline and put a preloader on the first frame it stops everything from moving.

Does anyone have any ideas? I have to ask on here as nobody at my office has a clue about Flash and i don't know any other designers.

This is the code i've been using-

if (_framesloaded>=_totalframes) {
gotoAndPlay (2);
} else {
gotoAndPlay (1);
}

Preloader Stops Movie From Working
I have a preloader that works well, i have a movie that works well, but when i put them together the content in my crollpane doesn't show up anymore.

The preloader uses the first 3 frames and my movie starts at frame 5 with the flag 'begin'. I used the following script for the preloader:
loadedbytes = getBytesLoaded();
totalbytes = getBytesTotal();
loadedkbytes = Math.ceil(loadedbytes/1000);
totalkbytes = Math.ceil(totalbytes/1000);
if (loadedbytes == totalbytes) {
gotoAndPlay("begin");
}
frame = int(loadedbytes/(totalbytes/100));
tellTarget (_root.loader) {
gotoAndStop(_root.frame);
}When i take away the last part (starting with frame =), the content does show up, but then ofcourse my preloader doesn't work the way i want it to anymore...

Can anybody help me with this? I searched the forums for this kind of problem but didn't help me.

Preloader Working On Movie Elements?
what I am working on: http://www.ctmmedia.com

Hi.............. I setup a basic preloader (start/end) on the main scene which seems to work fine....... however, within the scene I have several HUGE Movie elements dropped in from my library.... so basically, each menu option leads to its own movie which is dropped on the main timeline..... am i making sense? ..... some of these movie elements are made up of 70+ frame movies/still images, etc........... so my question.... is the preloader taking care of these elements too? or would I need to drop separate preloaders for these elements?

Any help appreciated.

Thanks... sample: http://www.ctmmedia.com

Imported SWF Movie W/ Preloader Not Working.
Hello all,

I just created a SWF file today, with a preloader. This file acts as my site's "content" section, as it has the information, scrollbar, preloader, etc. When I import this movie onto my actual site (I left a blank space there where the imported movie would go), the movie would continously flash. I'm not sure what I did wrong, can anyone help me please?


http://www.canucksfanzone.com/images/teamtest.zip


Thanks in advance for the help, I really really need the help :/

Imported SWF Movie W/ Preloader Not Working.
Hello all,

I just created a SWF file today, with a preloader. This file acts as my site's "content" section, as it has the information, scrollbar, preloader, etc. When I import this movie onto my actual site (I left a blank space there where the imported movie would go), the movie would continously flash. I'm not sure what I did wrong, can anyone help me please?


http://www.canucksfanzone.com/images/teamtest.zip


Thanks in advance for the help, I really really need the help :/

Preloader Working For Image But Not Movie.
I'm using this preloader (the mx version) and I tried it before movie clips and it won't load movie clips. For some reason it only works on images for me. Is there something you have to add to make it load mc's?

P.S. if you want to help I can send you the .fla.

How: 2 Get Working Button In Movie Clip
I'm having trouble getting the button inside my movieclip to work.

I working on a draggable menu for a flash piece.

I know it involves actionscript.

I would be greatful for any help.... Thanks!

almightysounds
Michael T.
mtkleven@yahoo.com

Button In Movie Clip Not Working. Help
i have made a popup menu that has for buttons in them and i have made the buttons in the movie clip but when i put actions on them to go to a main scene it does nothing. can some one help me pu somthing on this button to make it work!

Movie Clip Buttons Not Working
Hi I'm trying to load images into the MC called DropZone_mc, the button being used is a Movie clip, I'm just not sure whats wrong with the code

fallenangel_mc.onRelease=function(){
fallenangel_mc.onRelease.DropZone_mc.loadMovie ("portfolio/fallenangel.jpg");
}


Thanks in advance

Help? Button Not Working In Movie Clip
Flash 5

I have attached the file to this thread.

I don't know why I can't figure this out.

I have a file that contains two scenes.
The first scene contains one movie clip.
The movie clip contains a menu.
The menu has one button on it.
Action script on the button is goto scene 2.

Not working?

Thank you for any help you can offer,

--steve2000@excite.com

Preloading A Movie Clip----not Working
on my main time line, let say I have a movie clip instance sitting at frame 10, and I put some script that check to see if the movie clip on frame 10 has been loaded completely on frame 9. But the problem is flash has no idea how big is the movie clip on frame 10, because if the movie clip is too big, the playhead wont even get to frame 10 until its fully loaded, and if the playhead doesn't hit frame 10, flash has no idea about anything sitting on frame 10. So the script on frame 9 would never work.

Anyone has any idea how to fix this problem?

Button In Movie Clip Not Working
I did try the response to the same question that was asked but it didn't work for me, my button is in a movie clip on the main time line but when pressed it doesn't respond (roll over or press down)and of course it doesn't work can anyone help me I tried

on(release){
_root.moviecliponroottimeline.gotoAndPlay("framela bel");
}

and

on (release){
gotoAndPlay("framelabel");
)

did i do something wrong or omit something?

thanks for the help.

Button Not Working In My Movie Clip
Hi there, I need some help.

I have a movie clip with two doors that open. I want the doors to open when the mouse has rolled over the movie clip and close when the mouse rolls off, so i used this code to open and close them:

on (rollOver) {
this.gotoAndPlay("open");
}
on (rollOut) {
this.gotoAndPlay("closed");
}

That works fine.
But I have a button inside the movie clip doors that is revealed when the doors open. The problem is that the button won't work, I'm assuming because of the the "on (rollOver)" event. How can I make this work so the doors open when the mouse rolls over it and the button inside the movie clip will work?

Thanks in advance!

Dave.

Go To Not Working Inside Movie Clip
Hi

Have been searching for answers to this and only finding TellTarget solutions which aren't very clear (I'm an actionscript novice!) and aren't MX actions.

I've got a Level 0 file that has a main nav scene, the buttons in this fire to respective scenes that have animation transitions as Movie Clips inside. After the animation has completed a Level 1 file is opened which then preloads content (basically want all my navigation transitions to load up at start, then pages can be loaded as and when).

But when Level 1 is loaded I want the Movie Clip in Level 0 to then Go back to main nav scene, but the GoTo action inside the Movie clip just seems to loop around scene 'x'. I have specified the scene in my GoTo but it just doesn't work

Any ideas??

Movie Clip Navigaton Not Working
I am having issues wih a movie clip navigation not working outside its own movie clip.

When you click on the button, it just re-loads the movie clip. I have tried specifing to go to the scene and then the label.

the SWF is here
www.cougarmedia.com/test/

If you have any suggestions please let me know!!!

Thanks

Loading Jpg Into Movie Clip - Not Working
Okay I have this working, it calls a jpg jsut fine...
Code:
loadMovie("images/102.jpg", 102);
BUT... It only appears at the top left of the main movie and I want to place it with x and y coordinates. How do I do this?

I've tried this, but it really screws everything up.
Code:
with (102){
_x=50;
_y=50;
}
loadMovie("images/102.jpg", 102);
An even better question, I guess, would be: How do I call a JPG WHILE positioning it at the same time? I have to do this for 12 JPGs on the page.

Thanks!

-spack

Nested Movie Clip Not Working
Could someone please help me out on this small issue? In my flash file, I have a button called health programs (main movie file, underneath Lincoln folder). When a visitor's rolls over this button, all I want is for a nested movie clip to play a specific frame label (lincolnHealth). I wrote a function like this in my first frame of my main movie file (first frame, top of file, very bottom of action script):


Code:
function lincolnsubmenu(){
if(lincolnsub=="lincolnHealth"){
lincolnHealthMenumc.play();
}
}
lincolnsub is the variable, lincolnHealth is the frame label in the nested movie clip. On the button itself, I say this (frame 20, main movie file):


Code:

healthProgramsBtn.onRollOver=function(){
lincolnHealthMenumc.gotoAndStop("lincolnHealth");
}
Then in my nested movie clip, in my first frame of AS, I set the variable and frame label like so:


Code:
_parent.lincolnsub="lincolnHealth";
I know my button fires, my nested movie clip just doesn't play. Surely that makes sense to someone. This same problem has been nagging at me for three days now. Attached in the stripped down version. I done a similiar approach with highlights in this same project and everything worked peachy. If anyone can give a hint, I would be extremely grateful.

http://midwestwebdesign.net/temp/tour.zip

Movie Clip Button Not Working
I have created a moviclip with a button inside it, what i want to do is when the button is clicked make the the movie clips visible property to false, I have tried these 2 methods and they dont work:

on(release){
menu_bar._visible = false;
}

and

on (release){
setProperty("menu_bar", _visible, False);
}

LoadVariablesNum Is Not Working In MOVIE CLIP
Hi

I am loading a textfile in a dynamic text field by putting on the first frame:

loadVariablesNum("txt.txt", 0);

if the dynamic text field is on the root it appears as the VAR name has been set for it in both text file and flash.

Now when i put the same dynamic text field in a movie clip, the text is not getting, can anyone please help telling me that how to use the loadVariablesNum syntax inside the Moive clip?

Thanks.
Fahad

XML Call Not Working Within Movie Clip
Flash Versions: Attempted in 7 & 8

Hey,

I have created a movie clip that I am using to slide content via x/y coordinates. Within this movie clip, I have all of my content laid out, square by square, and with a click of a button on the top layer, these square's x/y coordinates are being called to 0'0'. You get it, simple sliding stuff.

Problem is this:
-One of my "squares" (within the movie clip) uses a dynamic text field that calls an external .xml file for content. When I use this code on a blank .fla document, outside of this movie clip, it works fine, but when I bring it into the movie clip, no text shows up in the field. Why? I've even tried using a .txt variable call instead of .xml and i still get no results within the movieclip, but success on a blank .fla

-This is how it's arranged: Scene 1>SlidingContent>ActualContent (this is where I create two layers, one with the dyn. text field and another with the actionscript)

-*sidenote: I have another "square" that calls .jpgs via code and it works fine.

Some Buttons Not Working In Movie Clip
I'm building a small 'table builder' app for a client. This is my first major project in flash and I've encountered something I cannot figure out for the life of me.

In the .fla below there's a movie clip 'scroller' it has buttons in it which load .png's to the main stage. Some of the buttons work, some don't.... I can't figure out why. Even when I duplicate a button sometimes it doesn't work.??? If I take a button that's not working in the movie clip and cut/paste onto the main timeline it ALWAYS works. I've been pulling my hair out over this for the last two days . I have even started the whole project from scratch just to try and find out where I went wrong... but to no avail..... Any help would be GREATLY appreciated. I'm stuck on a hump and I need some help to get off of it.

Here's a link to my file. I've stripped away all the styling elements so it should be pretty clean cut when you see it. Thanks for any help or guidance!

http://www.buddyscampfire.com/tableBuilder.zip

[CS3] AS 2.0 [loadMovie Is Not Working Within A Movie Clip
Hello All

loadMovie("mypic.jpg", this.targetPic); is not working in a nested movieclip.
but when i add this code in the main movie's first frame it does work
but when i add this code in a nested movie clip which is located in
_root.pageGallery
it doesnt not work

i dont know why am i getting weird result
Please help!

SetTransform Not Working On Movie Clip
html: http://www.roscoecreations.com/main_flash.html
fla: http://www.roscoecreations.com/main_flash.fla

When you rolllover the guy on the left I want the grey to turn to a darker grey but nothing happens. Something must be wrong in my code.

Duplicate Movie Clip Not Working...
Hi all
This is my setup
On the root level i have a movie with the instance name of playlist_btn_obj
Wich i want to duplicate into a movie that is at _root.playlistMc.playlistMc
(Yes that is the same instance name, but they are 2 seperate MC's)
I want to call the duplicated clip "button_"+i where i is the duplication number

My code is:

ActionScript Code:
/* Level that the movie is on */
curentLevel = _root;
playlistLevel = _root.playlistMc.playlistMc;
/* Create mouse listener functions */
/* Populate the actual list */
for (i=0; i<currentLevel.totalSongs; i++) {
    duplicateMovieClip(playlist_btn_obj, "button_"+i, i);
    this["button_"+i]._y = i*24;
}

Can anyone help me out please?
Thank you for your time, and help.
~Gabor

Movie Clip Script Not Working
I'm still new to flash, so this may have a really obvious solution, but it has me completely confused.

Ok, so I wrote some code, and stuck it to a movie clip:

on (press){
if (_root.well == false){
if (_root.rcheck == false){
_root.talk.gotoAndPlay (6);
_root.rcheck = true;
_root.health += 5;}
else if (_root.rcheck == true){ _root.talk.gotoAndPlay (20);
_root.health -= 20;
}
}}
And it worked absolutely fine. So, I put it on another clip, but on this clip it didn't work at all.
It's really odd, because it first I thought that __root.rcheck wasn't being set to true, and that explained it. But then, when I had a second look at it, I realised that _root.health wasn't going up by five either.
The previous code I had on the button was this:


on (press){
if (_root.well == false){
_root.talk.gotoAndPlay (6);
}}

It seems like its still performing that code, dispite that code having been deleted. I can't figure it out. Any help would be incredably useful.

EDIT:
It seems like the gotoAndPlay is working fine, but nothing else is. I put this code on another button:
on(press){
_root.talk.gotoAndPlay (1);
if (_root.breathed == false){
if (_root.compressrib2 <= 10 && _root.compressrib2 > 0) {
_root.health -=10;}}}
And all it did was the gotoAndPlay part. I know the code is right, it worked on another button.

Movie Clip Array Not Working
This is the code thats not working can anyone spot my problem?


ActionScript Code:
MovieClip.prototype.setRGB = function(newColor) {
(new Color(this)).setRGB(newColor);
}
blockArray = new Array();
for (i=0; i<4; i++) {
duplicateMovieClip(block,"block"+i, i);
}

blockArray[i] = _root["block"+i];

var XML_var:XML = new XML();
XML_var.ignoreWhite=true;
XML_var.load("http://ipad.com.au/room.php?floor=1");
XML_var.onLoad = function(success)
                 {
                    if (success)
                    {
                      var i;
                      var xmlRooms = XML_var.firstChild.childNodes;
                      for (i=0; i<xmlRooms.length; i++)
                      {
                        var index;
                        var room_no = xmlRooms[i].firstChild.firstChild;
                        var status  = xmlRooms[i].firstChild.nextSibling.firstChild;
                        trace("Room No : "+room_no+"Status : "+status+".");
                       
                        index++;
                        switch (status)
                        {
                           case "Sold"     : block[i].setRGB(0xfe3333);break;
                           case "Reserved" : block[i].setRGB(0xfbf676);break;
                           case "Available": block[i].setRGB(0x6fd961);break;
                        }

                      }
                    }
                    else
                    {
                      trace("LOAD FAILURE!!!");
                    }
                  }

Buttons On A Movie Clip Not Working
I have created a pull down menu with the help on this board.

Works great but there needs to be buttons on this pulldown.

When it is set up as an MC the buttons don't work.

Is there a work around to have the buttons work.

link
****
http://www.icanmarketyou.com/guys_wo...ontroller.html


code used to make the tab work
**********************

import mx.transitions.Tween;
import mx.transitions.easing.*;

tab1.onRollOver = tab2.onRollOver = OVER;
tab1.onRollOut = tab2.onRollOut = OUT;
tab1.y = tab1._y;
tab2.y = tab2._y;

function OVER(){
this.tw = new Tween(this,"_y",Strong.easeOut,this._y,650,1,true) ;
function OUT(){
this.tw = new Tween(this,"_y",Strong.easeOut,this._y,this.y,1,tr ue);
}


Any help on this would be greatly appreciated

thx

Button Not Working In Movie Clip
I'm building a small 'table builder' app for a client. This is my first major project in flash and I've encountered something I cannot figure out for the life of me.

In the .fla below there's a movie clip 'scroller' it has buttons in it which load .png's to the main stage. Some of the buttons work, some don't.... I can't figure out why. Even when I duplicate a button sometimes it doesn't work.??? If I take a button that's not working in the movie clip and cut/paste onto the main timeline it ALWAYS works. I've been pulling my hair out over this for the last two days . I have even started the whole project from scratch just to try and find out where I went wrong... but to no avail..... Any help would be GREATLY appreciated. I'm stuck on a hump and I need some help to get off of it.

Here's a link to my file. I've stripped away all the styling elements so it should be pretty clean cut when you see it. Thanks for any help or guidance!

http://www.buddyscampfire.com/tableBuilder.zip





























Edited: 06/04/2007 at 02:12:39 PM by Rusty Coan

Button Within A Movie Clip Not Working
Hiya,

I have a movie clip within my swf website that is basically an icon that you roll over to produce the menu. The movie clip has coding inside it to produce the rollover effect. This is as follows:


stop();
this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}
}

this.onRollOut = function(){
rewind = true;
}


Whilst this coding works fine for this movie clip, for some reason the buttons within the movie clip that appear as you rollover them will not work when pressed. I am trying to get them to navigate the main timeline, i.e. coding as follows:


on (release) {
_parent.gotoAndPlay("home")
}


_parent should be correct, I've tried it without and with _parent._parent however still it has no effect. From what I can see everything should be working fine.

Is there some reason why buttons will not work within this sort of roll over effect movie clip?

Thanks for your help.

Button W/in Movie Clip Not Working
I know this question has been raised before and it usually just boils down to using the frame #'s and labels. But, even with that it is not working.

I have a map of the US and when each state is rolled over I would like a menu to appear - this menu is a list with several options and all of the options are buttons. I have it set up so that each state is its own MovieClip and each has an invisible button over it for the hit area and the menu to appear. (i didn't want it to be simply when it rolls over the state movie clip because the hit would be square, covering other states and causing a mess of pop up menus)

Anyway, the menu pops up fine, but the buttons within do not work. Any ideas of what I'm doing wrong? Thanks Much!!!!

wi_mc.stop(); // wi_mc is the state movie clip
wi_btn.onRollOver = function(){ //wi_btn is the invisible button
wi_mc.gotoAndStop(15); //frame 15 is where my menu resides
}
wi_btn.useHandCursor = false;
wi_mc.onRollOut = function(){
wi_mc.gotoAndStop(1);

Copyright © 2005-08 www.BigResource.com, All rights reserved