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




I'm Stumped



i am making this photo gallery, the images are supposed to scroll up and down when buttons are clicked. i have 8 images, all the same size. i have the scrolling working, however when the buttons are pressed, the images scroll and when the MC stops it doesn't stop centered on the mask. it leaves a gap where you can still see part of the image underneath it.here is the code:Code: stop()var currentPosition:Number = contentHold.content1._y;var startFlag:Boolean = false;menuSlide = function (input:MovieClip) {      if (startFlag == false) {            startFlag = true;            var finalDestination:Number = input._y;      var distanceMoved:Number = 0;      var distanceToMove:Number = Math.abs(finalDestination-currentPosition);      var finalSpeed:Number = .5;      var currentSpeed:Number = 0;      var dir:Number = 1;            if (currentPosition<=finalDestination) {         dir = -1;      } else if (currentPosition>finalDestination) {         dir = 1;      }            //      this.onEnterFrame = function() {         currentSpeed = Math.round((distanceToMove-distanceMoved+1)*finalSpeed);         distanceMoved += currentSpeed;         contentHold._y += dir*currentSpeed;         if (Math.abs(distanceMoved-distanceToMove)<=1) {            contentHold._y = maskMovie._y-currentPosition+dir*distanceToMove;            currentPosition = input._y;            startFlag = false;            delete this.onEnterFrame;         }      };   }};b1.onRelease = function() {   menuSlide(contentHold.content1);};b2.onRelease = function() {   menuSlide(contentHold.content2);};b3.onRelease = function() {   menuSlide(contentHold.content3);};b4.onRelease = function() {   menuSlide(contentHold.content4);};b5.onRelease = function() {   menuSlide(contentHold.content5);};b6.onRelease = function() {   menuSlide(contentHold.content6);};b7.onRelease = function() {   menuSlide(contentHold.content7);};b8.onRelease = function() {   menuSlide(contentHold.content8);};here is a link to where you can actually see what i'm talking about:http://www.amy-austin.com/gallery/semcoGallery.swfits 552MB, it takes a second to load, i dont have a preload on it yet.thanks for your help & thoughts as always



Actionscript 2.0
Posted on: Fri Jun 01, 2007 8:21 pm


View Complete Forum Thread with Replies

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

This Has Me Stumped
G'Day all,

I've got a movie that loads other movie clips on top of itself. The problem is that if you roll over the top movie clip the buttons that reside on the bottom movie clip are still active.

What's all that about? How can I stop it

I'm Stumped .. Please Help
I'm trying to attach a movieclip that resides in a .swf that has been loaded into a _level.

// the clip I'm trying to attach is in "ext.swf" and is named "test". .... "ext.swf" is loaded into _level5.

//frame action ...
loadMovieNum("ext.swf",5);

// button action
on(press) {
_level0.preview.attachMovie("_level5.test" ,"untitled",2);
}

Hmmm ... is this even possible?

Thanx a million,
G

Is This Possible, I'm A Little Stumped...
even though i should not be...

anyway... i have a series of buttons and each of them loads a different .swf into the main movie... now, i want to construct a situation where upon release, the movie checks to see if any of the other movies are loaded, and if they are loaded, it directs them to play the "finishing animation" contained in each of them, and then unload that existing movie before loading the new one...

is it possible to control loaded movie timelines like that?

Still Stumped
One more question.

First, the code I'm trying to make would be for a series of buttons contained within three different menus, each menu has a corresponding MC. So If a button in a menu was clicked and the menu's corresponding MC was loaded, there would be no need to change the MC. But if a different button were pressed in a different menu, the MC would have to be unloaded & a new one inserted. Follow?

So, since these buttons & menus are all dynamically created, the code for changing MC's has to be very "impersonal" right?.

Anyway, my question is: If I want to test to make sure that the MC loaded is the one I want, can I use the following snippet of code?
(in _root):

oldMCID; = ""

(inside button):


newMCID = newMC;

if(_root.[oldMCID]._name == newMCID) {
_root.newMCID.gotoAndPlay('whatever")
}else if (_root.[oldMC]._name != newMCID) {
_root[oldMCID].unloadMovie();
_root.attachMovie(newMCID, newMCID, 100);
_root.oldMCID = newMCID;
}


You see what I'm trying to do?, I want the new MC to become the "old" MC as soon as it is loaded. then, if you press another button within the same menu, the "old" MC won't be changed out because it's ._name is the same as the button's "newMCID" . But if you press a button in a different menu, the "old" MC's ._name doesn't equal the new newMCID, so the "old" MC gets unloaded, and a new one is loaded.

Does that make sense? Is my piece of code right?

Stumped
Hi :-)

Can anyone figure out why this small .swf won't run by looking at the source code? It runs fine off my hard drive, but is a no-go online. I've triple checked the code and that all relevant files are uploaded.

I have two other larger .swf files running just fine from the same server--no probs.

http://www.exoticdancer.cc/jaclyn/top.html

Thanks,

ExoDan

HELP, I'm Stumped
Help, I recently used Xara 3d to make some 3d fonts, exported those as a .swf file. From there I imported the .swf file into Swish to give it motion, which was then exported to a new .swf file. This was then imported into Flash MX, timed with some sound effects, and made to look pretty cool. Now here's my question. Why won't this thing play on my site, I hear sound, but the screen stays black? I click on the saved .fla file and it shows my 3d text coupled with sound. Is there something else I need to upload to my site? HELP!!!!

Ok I'm Stumped.
Ok I'm stumped.
I've done this many times before, so I'm familiar with the functions i'm using... (which makes this even more frustrating!)

Here's what's going on. I have a cfm file that is loaded into flash and gives flash some vars. A viewable demo here:
http://www.dyometry.com/arniemg/coco...g_banner2.html

example of code in cfm file: ( available for dload here: http://www.dyometry.com/arniemg/coco/banner.cfm )

Code:
&no_of_feeds=9
&article_title1=Kaps For Kids April 23rd
&centered1=off
&article_title2, then 3, then 4, etc.
&centered2, then 3, then 4, etc.


Breakdown of vars:
no_of feeds is converted into how many times a loop is to occur.
article_title1=contains string data to be displayed in a dynamic text box that is animated.
centered1=says whether or not to center the dynamic text box.
All of these vars can be successfully loaded and read.

There are 2 MC's that display the article_title var. motiontext1_letter is tweened to slide in from the left and displays the odd numbered article_title's (i.e. article_title1, article_title2, etc). motiontext2_letter is tweened to slide in from the right and displays even numbered article_title's. <- [ this works fine too]

Here's the code that addresses motiontext1_letter. This is placed on a frame.


Code:
// set the variables loaded from CF into their respective locations
motiontext1_clip.motiontext1_content.motiontext1_letter.article_title = eval("article_title"+count);
//if the center switch is on, then center motiontext1 and ''2
_root.pos = eval("this.centered"+count);
//pos = _root.pos;
//_root.pos = "on"; // if this is used, the if statement works!
trace("_root.pos = "+_root.pos);
trace("typeof (_root.pos) "+typeof (_root.pos));
_root.relocate = new Number(15);
_root.no_relocate = new Number(0);
if (_root.pos == "on") {
motiontext1_clip._y = _root.relocate;
test = String("num"+count+" centered");
trace("test = "+test);
} else {//(_root.pos == "off") {
motiontext1_clip._y = _root.no_relocate;
test = String("num"+count+" !centered");
}
// if the counter reaches the max number of articles then reset it
// if not then increment it
if (count == no_of_feeds) {
count = 1;
} else {
count = count+1;
}



After the motiontext1_letter slides from the left to the right, the AS that addresses the motiontext2_letter, which slides from the right o the left, is executed. This AS is exactly like the first block of code, except that the name of the MC is changed appropriately.

I trace _root.pos and the typeof(_root.pos) and they evaluate to the correct data, so I know that it is in the right spot, and has the correct data type. ( "on" or "off", String )

Somehow the if statement cannot tell what the _root.pos contains.

So if the banner.cfm file contains &centered1=on,
then I say _root.pos = centered1 ( to hold the data )
then when the if statement
if (_root.pos == "on")
executes, it should run true, but it fails! Even if the tracing proves that it was ("on", String).

But if I bypass the banner.cfm file, and manually set
_root.pos = "on"
then the if statement
if (_root.pos == "on")
executes to be true.

I am baffled. I am sorry if I couldn't explain the problem clearly enough.

I have uploaded files to my server so that if some helpful individual wants to help me out, he or she can get what they need.

source file: http://www.dyometry.com/arniemg/coco...ng_banner2.fla
banner.cfm: http://www.dyometry.com/arniemg/coco/banner.cfm
example: http://www.dyometry.com/arniemg/coco...g_banner2.html

I Am Stumped
I am trying to figure out a way to animate 5 clips in sequence with actionscript. So they all fall down one after the other. In other words, Clip1 falls and then when it reaches say... 500y Clip 2 starts to fall, when it reaches 500y, Clip 3 starts to fall, etc. I am lost on how to do this. I've been messing with code all day and I don't think my brain can take anymore. Can someone give me some hints.

Thanks.

Stumped As To Why...
I'm trying to adapt an fla (a basic scroll effect) to work with my web site. Since it is going to load into my movie as a swf I've has to make a couple of simple changes:

1- alter the movie size.
2- eliminate the solid background color in the original file for a transparent background effect .

My problem is this:

1- the scroll button won't align to the top
2- it won't scroll through all the content.

I've spent 7 hours trying to figure out the problem... If you'd like to have a go at this, by all means... I'll be here.

I've attached the file that i've created. I'll post the source file in my next post.

err... If you can figure this one out, I'll mail you a box of chocolates!

cheers,
jen

Stumped
I'm trying to get flash to open another window that's formated to specific size with no success can someone help? Here is the code i'm using and im doing it with MX.

on(press){
fscommand(window.open("http://test.html", "_blank", "height=484, width=796, toolbar"));
}

Stumped
Hey flash experts, I'm trying like no other to get this preloader to work the way I want it to. Im using MX and the fla is at www.toddbeaz.com/runelock.fla

I set up markers for each of the 12 symbols so that when my external .swf (runebeaz.swf) is loading it will light them up in sequence as I have them tweened to do so at their marker. And at the end I have a B button in the middle to open up my site (www.toddbeaz.com) in a unresizable window without all the annoying menu/status bars.

If look at the fla, each marker has a smile animation. I dont know the actionscript to make it go to each marker progressively as the page is loading.

I just need your help getting it to work!

Stumped... =p
Hey flash experts, I'm trying like no other to get this preloader to work the way I want it to. Im using MX and the fla is at www.toddbeaz.com/runelock.fla

I set up markers for each of the 12 symbols so that when my external .swf (runebeaz.swf) is loading it will light them up in sequence as I have them tweened to do so at their marker. And at the end I have a B button in the middle to open up my site (www.toddbeaz.com) in a unresizable window without all the annoying menu/status bars.

If look at the fla, each marker has a smile animation. I dont know the actionscript to make it go to each marker progressively as the page is loading.

i could really use some help on this

Stumped
Hi guys,

We are planning a booking system using flash remoting, mySQL and cold fusion.

Ive been trying to come to grips with the calendar component (which for a booking system) is critical to our development path, and im not having much luck.

Its like an events calendar yet it works in reverse, available time needs to be indicated.

Can anyone point me in the right direction for an events calandar using a db backend, or a booking system? Tutorial prefered but i am not opposed to a purchase.

Thanks in advance
Steve

Im Stumped
I have a simple movie clip, and the action on it is:

on (press) {
this.startDrag(false);
}
on (release, releaseOutside) {
this.stopDrag();
}

it works fine, and I named it. Now, if I rename it and test it, it wont drag, wont do anything. I can even put a trace in the press part and it wont trace. Any help would be appreciated

//EDIT: Woah! Even weirder... now (with the original name) it will do any other action in the on (press) but the startDrag...

I Am Soo Stumped With This :(
Right i am totally stumped here

If you follow the link

http://www.spacehouse.tv
Then click on multimedia/video

click on one of the vid links
If your using IE you will be presented with a 404 error. ANY and i mean ANY other browser it works !!

I have absolutly no idea why it does not work on IE.

the popup script i got from here
http://www.flashkit.com/movies/Compo...7036/index.php
this is very strange

cheers
_paul

I'm Stumped
Using Flash 5

Creating a "JukeBox" for my site.

I have 2 layer, 1 frame swf's.
20 files (for now) named song1.swf, song2.swf, etc....

In layer 1; frame 1, I use to following Frame Actions to
"load" and play the sound:
Code:
s = new Sound();
s.attachSound("identifier");
s.start();
In layer 2;frame 1, I have my buttons:

Play
Code:
on (press) {
s.start();
}
Stop
Code:
on (press) {
s.stop();
}
Next
Code:
on (release) {
r = random(20)+1;
filename = "song"+r+".swf";
loadMovie ("URL"+filename, "_root");
}
My question is... Is there a way I can tie it all
together so that 10 sec or so after the attached
sound finishes playing, it will load another random swf?

ie...
Code:
n = get s.length(in seconds) + 10 sec
after n seconds {
r = random(20)+1;
filename = "song"+r+".swf";
loadMovie ("URL"+filename, "_root");
}
I would also need the "Stop" button to cancel the timer.
And the the "Play" button to restart the timer.

Is this possible? Is there an easier method?
Any help would be greatly appreciated.
Thanks.

Please Help Me..I'm Stumped
Hello everyone,

I posted this on the macromedia support forums but for some reason not a single person is replying to it or helping me out. Hopefully the people here are a bit nicer!

This is something that is probably so simple for some of you! I have been attempting to set some button "get URL" commands on a flash banner that came with a template. I'm pretty new to using Flash for my work and I just can't figure this one out. I'll try to explain the problem the best that I can.

There are 4 "Movie clips" with instances. These are named Instance of Symbol 20, Instance of Symbol 20 copy, Instance of Symbol 20 copy 2 and finally Instance of Symbol 20 copy 3.

Now somehow these are supposed to be the buttons. I changed the text to what I wanted and changed some instances for a lightning effect on mouseover. At this point I'm cruisin along with no problems. I click on the first "button" which is the Instance of Symbol 20. I click it again and it shows symbol 20. I then click one more time and it then says Button with an instance of Symbol 28 copy and the "track as button" property set. I simply go in and set the on release get url command and everything works fine.

I then get to the second "button" which is the Instance of Symbol 20 copy. I click as I did on the previous button to expect to see a Button property set somewhere but there is none to be found. The third and fourth are the same way. I have tried converting to button which then messes up the mouse over animation.

I am totally lost at this point. I have read so many articles trying to figure this out for the past 2 weeks. I've finally decided to ask here and hopefully one of you will be kind of enough to help me out At this point it may be most helpful if I send the .fla to someone and they can take a look at it. Then I can look at what was done and slap myself in the forehead for not being able to figure it out on my own. If someone were to fix it for me they would, of course, have a nice .fla for themselves along with a very sincere thank you!

Any ideas that will help me out of this stumped situation?

If I am online you can IM me on AOL Instant messanger. My AIM name is CrzySnowboarder.

Thank you all,
Mark

Stumped,,, Please Help......
I am using Flash MX

I trying to mask with multipul mask options on an object pulled in from a movie clip of which i want the labled area masked only. I have no trouble with one.But when I try to make the second button change to a differnt mask I get blocks.

This is the main masking file code on the keyframe to command the different options

code:
_root.mtClip.carClip.loadMovie(_root.nextCar);
var targetTint = 0;
goldTintSide_mc._alpha = targetTint;
blackTintSide_mc._alpha = targetTint;
MovieClip.prototype.changeTint = function(targetTint) {
this.onEnterFrame = function() {
if (this._alpha == targetTint) {
delete this.onEnterFrame;
} else {
this._alpha = targetTint;
}
};
};
//SideRear Buttons
side1_btn.onRelease = function() {
goldTintSide_mc.changeTint(50);
blackTintSide_mc.changeTint(50);
blackbutt.onRelease = function() {
blackTintSide_mc._visible = true;]
goldTintSide_mc._visible = false;
};
goldbutt.onRelease = function() {
blackTintSide_mc._visible = false;
goldTintSide_mc._visible = true;
};




The mask is in the movie clip being pulled and this is what is there.

_root.mtClip.goldTintSide_mc.setMask(this.windowMa sk1_mc);

The goldTintside works fine. but I can't seem to make the black one work ( shows full mask block, not only masked area from other file) and I'm not sure where my error is or in which swf.I tried adding the black to the other one but then the gold would'nt work.I'm still kinda a noob at some stuff as it took me about 2 days to get this far from trial and error, but i know im close. Thanks

Still Stumped
Hi. After all my attempts I still can't figure out what to do.

I'm trying to emulate a function from http://www.hot-house-music.com/hothousemusic.htm
The function occurs when you click on a button. For example: Click on "Services." Once you click on "Services" the "Services" button itself pushes up the line above it to create a "tab-like" look and feel. From there if you click on "News," the line that was above "Services" goes back down and the"News" button pushes up to recreate the line and tab-like look and feel.
The rollover effect I have fine. The downstate I have fine. It is the onRelease stuff I can't figure out. All the onRelease "button animation" occurs right prior to a quick pre-loader for the next scene/movie. I have tried putting movie clips in my downstates but that doesn't get it either.
Do I need to actually draw the lines and animate the "push-up stuff" in a MC or is it a mathematical/actionscript thing?
Any thoughts, ideas, you name it are greatly appreciated. Best regards...

A Bit Stumped
Hey all,

I've used Flash on and off over the years, but each time I "relearn" it, I am a bit rusty. Such is the case today.

I'm working on a 300 x 352 movie. The first scene has possibly 15 or so objects in it, each "trace bitmapped" from a photo (in case it matters the settings were 5/15/tight/many corners). I'm attempting do do a simple motion tween with them, and it seems like it's running SO SLOW. Also, if I trace bitmapped each of these items, and then converted them to a symbol, why is the file so big (800k with nothing more then the first frame filled it).

Am I missing something? Please help fill in the holes for me.

Thanks,

- MT

Stumped
(Hope this isn't a repeat post... machine freaked out)

http://www.selenasalfen.com/selenawebsite4.html

Ok, when you press the "music" button (top right-hand corner) it takes you to everything else except music! I can't see any reason for it doing this. It was originally coded to go to the frame label "music," and later I changed it to the frame number, but neither work. All the buttons are on the same layer; none of the other buttons misbehave. What's even weirder, when you hit "refresh," you can hit the music button and it works just fine. and on the fading pictures, the music picture also works to take you to the music section...

...any ideas on how to fix this glitch??

Thanks in advance,
Nyema

This Has Me Stumped...
http://www.battleon.com/aq-chardetail.asp?temp=4852407 =example


These webpages use to load a swf. file of people's characters under the name. Now, for some unknown reason on my home comp, the swf. file just sits their "loading" and after waiting a while it slows my internet to a crawl. I then have to clear my cache just to get my pages loading at normal speed. I have ran through this problem over and over.. it's not my firewall, it's not my anti-virus, I've tried reinstalling Flash player.. At work the pages load just fine and the only difference between work and home is the version of Windows I use. At work I use 2000 and at home I use XP Pro. Any help would be greatly appreciated!!!!!

Stumped
I built a flash intro that I thought looked ok, now I need to change it as it was decided rather than the current effect, a "sheem" is wanted. This is for an intro page, where the shiny metal logo will remain, all other effects removed, and a "sheem" is to go across just the logo part, not the back ground or the black parts inside the logo. I know how to make things move on or over an object, but not sure how to go about running a sheem across just the metal parts only on this logo? http://www.niteglo.net/karma/karma_final.html
Any suggestions? Can't find anywhere to learn more about the particular way of doing things. Any help would be hugely appreciated, pulled, nearly all my hair out, and many restless nights the past week.
Regards,
Rob

I Am Stumped
I must be missing something really obvious, but here it is:

I want a button to update the values of a variable (inst). Here's what needs to happen:

The frame action contains an if statement that says "if var inst == 1, do this; if var inst == 2, do this, etc..." When I declare inst=0; or inst=1; the if statements function properly, but I cannot get the buttons to update the values of the variable when pressed.

If you want an example, go to www.wolfband.org. The buttons on the left side play a note. I want the instrument to change when one of the buttons at the bottom are clicked.

I have tried all sorts of things, but no luck. Please tell me what needs to go on the button action and what needs to go in the frame action.

Thanks for your help.

This Ones Got Me Stumped
Heres one for you.....

I'm making a web site with my favourite fashoin models on.

My main site has a thumb nail of the model and wehn you click on it, it opens a new window with her portfolio on it. On the portfolio is a button that takes you back to the main site. My problem is that when I click on the button to go back to my main site, it obviousley leaves me with two open windows with my main site on and because my main site has music, the whole thing goes pear-shaped! I need to have the button on the portfolio pages incase somebody gets to the portfolio pages without going through my main site.

What I need is a button on the portfolio pages that can check to see if I already have the main site open in a window or not. If the main site is already open, then the button would just code the protfolio window leaving me with just the main site. If the main site is not open then it opens a new window with my main site in it.

If you can help (or understand a word of what I just wrote LOL) I would be greatful

Leroy

Stumped
How do I insert a movie clip into a flah page? I am using flash 8 and this program seems to be very confusing of course ive only had the program for 1 day.

I'm Stumped
Is there a way to have a Quicktime movie download from a button on a site?
I've seen it, but can't figure it out. Any help is MUCH appreciated.
Thank you in advance.

Still Stumped
So I've been having this problem with my .fla where many things are not working the way I think they should. I'm at the point of tearing my hair out! I am new to flash, so i'm sure the problem is in the way I'm writing the code. But, I can't figure out how to fix it. I've tried a couple different avenues to accomplish my goal, but to no avail. Specifically, the problem seems like my onEnterFrame functions aren't working. During debugging, I get odd behavior, like skipping lines of code... not calling up the functions, etc. I'm positive the problem is the way I'm going about this, I think there is something underlying that I'm not understanding. Could someone please point me in the right direction with this? I've posted the code for viewers to see, but I have also included the .fla file. I'm hoping someone will download that to get a better idea of what's going here. Thanks in advance, I would appreciate the help!


Code:
// initalize everything for image load into MovieClips
var alaska_obj:Object = new Object; // creates new object so we can move MC
var alaska_mcl:MovieClipLoader = new MovieClipLoader();
var j:Number;
var imageInstance:MovieClip;
var instanceVar;

function imageScrollIn() {
instanceVar = "alaska" + j + "_mc";
_root[instanceVar].onEnterFrame = function() {
trace(_root[instanceVar]._x);
_root[instanceVar]._x = _root[instanceVar]._x + 25
if (this._x == 0) { delete this.onEnterFrame }
}
}

function imageScrollOut() {
instanceVar = "alaska" + j + "_mc";
_root[instanceVar].onEnterFrame = function() {
trace(_root[instanceVar]._x);
_root[instanceVar]._x = _root[instanceVar]._x - 25
if (this._x == -400) { delete this.onEnterFrame }
}
}

_root.next_btn.onPress = function() {
//imageScrollOut();
instanceVar = "alaska" + j + "_mc";
_root[instanceVar].onEnterFrame = function() {
trace(_root[instanceVar]._x);
if (j<=0) { delete this.onEnterFrame }
_root[instanceVar]._x = _root[instanceVar]._x - 25
if (this._x == -400) { delete this.onEnterFrame }
}
j++
instanceVar = "alaska" + j + "_mc";
_root[instanceVar].onEnterFrame = function() {
trace(_root[instanceVar]._x);
_root[instanceVar]._x = _root[instanceVar]._x + 25
if (this._x == 0) { delete this.onEnterFrame }
}
//imageScrollIn();
}

_root.prev_btn.onPress = function() {
//imageScrollOut();
instanceVar = "alaska" + j + "_mc";
_root[instanceVar].onEnterFrame = function() {
trace(_root[instanceVar]._x);
_root[instanceVar]._x = _root[instanceVar]._x - 25
if (this._x == -400) { delete this.onEnterFrame }
}
j--
instanceVar = "alaska" + j + "_mc";
_root[instanceVar].onEnterFrame = function() {
trace(_root[instanceVar]._x);
_root[instanceVar]._x = _root[instanceVar]._x + 25
if (this._x == 0) { delete this.onEnterFrame }
}
//imageScrollIn();
}

function loadAllImages() {
trace("Loading images...");
for (j=0; j <= totalImages; j++) {
imageInstance = _root.createEmptyMovieClip("alaska" + j + "_mc", this.getNextHighestDepth());
alaska_mcl.loadClip(images[j].path,imageInstance);
alaska_mcl.addListener(alaska_obj);
_root.images_txt.text = imageInstance + " loaded."
imageInstance._x = (0-images[j].iwidth);
trace(imageInstance + " Width: " + images[j].iwidth);
imageInstance._y = 27.5;
imageInstance._alpha = 75;
trace(imageInstance + " X = " + imageInstance._x);
trace(imageInstance + " Y = " + imageInstance._y);
trace(imageInstance + " Alpha = " + imageInstance._alpha);
trace(imageInstance + " loaded.");
}
j=0;
//_root.imageScrollIn();
instanceVar = "alaska" + j + "_mc";
_root[instanceVar].onEnterFrame = function() {
trace(_root[instanceVar]._x);
_root[instanceVar]._x = _root[instanceVar]._x + 25
if (this._x == 0) { delete this.onEnterFrame }
}
_root.next_btn.enabled = true;
_root.prev_btn.enabled = true;
}

function checkXMLload() {
if (AlaskaXML.loaded) {
trace((totalImages + 1)+ " images loaded.");
clearInterval(interval);
_root.xml_txt.text = "XML loaded? Yes!"
loadAllImages();

}
}

interval = setInterval(checkXMLload,500);
_root.next_btn.enabled = false;
_root.prev_btn.enabled = false;
stop();
It's might be important to note, this only frame 2 of the .fla file. Frame 1 just loads the XML. Also, the point of button functions is to slide the current image out of view (to the left) and the next picture slides in it's place. Functions "imageScrollIn" and "imageScrollOut" were my attempts and accomplishing the same thing via a different route. Again, any help would be appreciated!

Stumped
2 swf files

Main swf loads in the external component swf using loadMovie()

No code in the main swf except for the load

Component swf has 1 mc named category

Category mc has a text field inside named someText

Component swf loads some XML on the root timeline:-


Code:
XML.prototype.ignoreWhite = true;
var categoryXML:XML = new XML();
var catXML:XML = new XML();
catXML.sendAndLoad("structure.xml", categoryXML);
summaryXML.onLoad = function(success:Boolean){
if(success){
//this is where problem happens
}
}
I have some more code where ive highlighted "this is where the problem happens". The script loops through the XML and gets relevant values. Inside this loop i have this code(simplified in example):


Code:
for(var a:Number=0; a<doesntMatter; a++){
duplicateMovieClip(category, "category"+catId, a+1);
setProperty("category"+catId, _x, 20+(110*a)); // works fine

//but now i want to insert a value to the someText textfield inside each duplicated mc
_root["category"+catId].someText.text = "blah"+a;

//_root[] & _level[] works but this[] doesnt when i run the component swf
}
So now i open up my main swf file and run it. It imports the component swf fine, it duplicates the mc's using the loop fine, it places their positions fine but i cannot for the life of me get the duplicated mc's someText text field to show the values using _root[], _level[] or this[] inside the component swf

I assume its something to do with the fact that the duplication is happening inside a function and somehow is sort of private to it or something....

anyone know a solution before i crack?!

Stumped
Hi everyone,

I'm fairly new to Flash and as a starting point I've been using it (my version: MX 2004, v.7) to create soundboards. I've been getting on okay so far if for one thing.

I've created a button from an image and places it on the main stage. I've selected it and then entered the following Actionscript:

on (rollOver) { imagebutton2.useHandCursor = false; }

The aim is obviously to have the cursor hovering over the button without it changing into a hand pointer. When I export the whole movie, no errors come up, but the cursor still changes. I've been googling for about 45 minutes and haven't found anything that works yet.

Can anyone offer a solution?

I'm Stumped
OK, not only am I stumped but I feel completely stupid for asking this question.

I'm doing the most basic of scripting. I have an empty movie clip that when you roll over a button it loads a movie into the clip, if you click on the button it effects the timeline of the movie inside.

Simple, and when I test it in flash the file works fine, but when I load it onto my server that's when the problem starts. When I roll over the button it just says "Waiting for xxxxx.com" and never loads the movie.

What is causing this problem?

Im Stumped...
Ok, I know you can't pass a parameter calling a function like this...

clipHolder[i].onRelease = buildSub;

But this isn't working.

clipHolder[i].onRelease = function():void
{
buildSub(i);
}

I really want that to be a parameter, and not just a property added on to clipHolder[i].myVar = i (my MC)

They are created dynamically from xml, and its getting ticky for me to keep adding properties, I really need to be able to pass params!...

and why doesn't an onRelease = function work within the for loop?


STUMPED. please help kind souls.

If you need more code I suppose I could post more.

I'm Stumped Does Anybody Else Know?
Ok, I'm sure the forum members do not want to hear another WMODE questions but I've never seen this one before. This goes beyond that. I made a movie (1MB) that requires the flash loading component. No problems, I've used it plenty of times before. What happens in ie7 is that the loader component never disappears after the movie has loaded. It works fine in Firefox, Opera, & Netscape. In case you're wondering why I used WMODE=transparent (or opaque) is that's the only way my menu will display properly in everything but ie. Because of this however, I can't get the words to disappear. Any thought or suggestions? Here is the link...
http://www.nastudios.com/rvweb

I'm Stumped
I have two movie clips, and for each I want certain text to be displayed in a certain area. This is the problem:

if (_root.rah.hitTest(_root.maze.walls.key)) {
_root.text = "Blah blah blah.";
} else {
_root.text = "";
}
}

This script on ONE of the two movie clips, which makes it possibal for only one movie clip to display text because of the "else" command, which makes it display no text if it's not on that movie clip in particular. If the 'else' command is not there, then the text remains where it is. I was thinking of just making multiple text boxes on eachother, but I was wondering if there was an easier way to do this.

Im Stumped,/anyone Help Me Please?
http://www.kirupa.com/developer/mx2...artclipnav2.htm
OK, at the end of this tutorial it talks about adding links to the buttons created. I did what it said to do but the two buttons keep canceling themselves out if I place them on top of eachother. Could some one please shed some light on how to place them.
thanks
CLoak

Stumped...
i'm building my first website in flash, over all it is going well, but i have hit yet another dead end in my quest for success.

www.geocities.com/macneilslt/

notice when you visit, the first thing you see is a window with a nav bar on top, but blank underneath..

the first page is called falloutbmx.swf and it calls the other pages in using the _root.contents.loadMovie("whatever.swf"); script..

so the first thing you see is falloutbmx.swf, how can i put something on the bottom so it isn't blank, when i do, it is over the pages that are called in..


i need help

I'm Stumped HELP?
I'm not sure where I got this from, but this is a modified image viewer that resizes a box around the called image. The problem is that when imbedded in another fla, the buttons appear for a second and then are gone. I've placed a stop on every mc because it's like the movie is playing past the buttons, but this doesn't help. This .fla works fine when not called into a parent mc.

I've attached the .fla for your enjoyment.

The action script is:

loading._visible = 0;
MovieClip.prototype.size = function(wdth, hght, movie) {
host.unloadMovie();
this.wdth = wdth;
this.hght = hght;
this.onEnterFrame = function() {
w = (this.wdth-this._width)/3;
h = (this.hght-this._height)/3;
if (Math.abs(w)<.1 && Math.abs(h)<.1) {
loading._visible = 1;
host.loadMovie(movie);
delete this.onEnterFrame;
} else {
this._width += w;
this._height += h;
}
};
};
this.onEnterFrame = function() {
point = new Object();
point.x = clip.mcHost._x;
point.y = clip.mcHost._y;
clip.localToGlobal(point);
this.mc._x = point.x;
this.mc._y = point.y;
this.host._x = point.x;
this.host._y = point.y;
this.loading._x = point.x;
this.loading._y = point.y;
};
mc.btn1.onRelease = function() {
clip.size(257, 314, "2f.jpg");
};
mc.btn2.onRelease = function() {
clip.size(257, 199, "2a.jpg");
};
mc.btn3.onRelease = function() {
clip.size(257, 165, "2b.jpg");
};
mc.btn4.onRelease = function() {
clip.size(257, 227, "2d.jpg");
};
mc.btn5.onRelease = function() {
clip.size(257, 196, "2c.jpg");
};
mc.btn6.onRelease = function() {
clip.size(257, 206, "2e.jpg");
};

Stumped...
ok, where do i start? ive got this photogallery thats reading pictures off of an xml document thats set up fairly easy with a tag that includes the location of the pic on the server (relative to the flash movie) and a desciption...

ive got the photo gallery to work locally, but for some reason when i put it online it doesnt work?

the site is http://www.blackpulp.com/jason/

and then you goto the photos section and then to live photos...

it loads the description correctly and also puts the location of the image in correctly...i cant figure out what the deal is?

Stumped...
Hi, I have a strange problem.
Im trying to make a movie clip that has alpha fade AS commands, with imbeded button properties.
Everything works fine, the mc fades when moused over, and has the button properties when over and down.

The problem is that when I add a instance name to the MC, the button properties are lost. And I need them to stay.

Maybe im just going about this all wrong...

Please Help!

I'm Stumped
I have two movie clips, and for each I want certain text to be displayed in a certain area. This is the problem:

if (_root.rah.hitTest(_root.maze.walls.key)) {
_root.text = "Blah blah blah.";
} else {
_root.text = "";
}
}

This script on ONE of the two movie clips, which makes it possibal for only one movie clip to display text because of the "else" command, which makes it display no text if it's not on that movie clip in particular. If the 'else' command is not there, then the text remains where it is. I was thinking of just making multiple text boxes on eachother, but I was wondering if there was an easier way to do this.

Im Stumped,/anyone Help Me Please?
http://www.kirupa.com/developer/mx2...artclipnav2.htm
OK, at the end of this tutorial it talks about adding links to the buttons created. I did what it said to do but the two buttons keep canceling themselves out if I place them on top of eachother. Could some one please shed some light on how to place them.
thanks
CLoak

Im Stumped...
Hi, I'm having a problem on my site with pixel fonts. in the first fram they are clear, yet in the second frame they go blurry. I checked to make sure the alias text button is on, and the text is definately the right size.

To see what I mean, click on the link below (it may take a second to load, I havent put a preloader in yet). Once in the site, click on the first button "Twin-Head Stair Router". Everything is clear. Now click on the "specifications" button. Everything goes blurry. What am I doing wrong?

http://www.aurorafxstudios.com/emgst...rproducts.html

[AS2 Help] Stumped
Hi all,

Simple, but too much for me - a bit of code from laco's site modified to be a basic little image gallery

I think the problem may be to do with the fact that the onRelease callbacks are created inside a for loop, rather than before the main code.


ActionScript Code:
ico.onRollOver = function() {
            scaleIcon(this, maxscale);
            colourTrans(this.photo_mc, 10);
            //     
        };
        ico.onRollOut = function() {
            scaleIcon(this, normalscale);
            colourTrans(this.photo_mc, -20);
        };
        //
        ico.onRelease = function() {
            photoTurnOn (this)
        };


The onRelease passes a value to the following function. Everything works great apart from the fact that the relevant mc is not subsequently made visible. I just don't get why. When I trace it, the instance name is as it should be


ActionScript Code:
function photoTurnOn (mc) {
    //
    ico1_mc._visible = false;
    ico2_mc._visible = false;
    ico3_mc._visible = false;
    ico4_mc._visible = false;
    ico5_mc._visible = false;
    photo = mc+"_mc";
    photo._visible = true;
    trace (photo);
}


If anyone willing to help me learn more about ActionScript I'd be very grateful, as I'm about to bin this attempt and try something else altogether.

Here's the .fla. In an effort to make helping me more attractive, I have used photos of my friend Lynsey who's a phenomenally beautiful model!!

http://www.rabmcnab.co.uk/photos.fla

Cheers

Please Help, Stumped
Hello All

I have a movie that pulls in a numeric value from a server (CGI component). I can name and display the variable (dynamic output box)in Flash with no problems. Now I want to manipulate another mc based on that value. The mc has frame labels throughout, and I want the variable to set what frame to display.

The display box that works is named "Start", pulls data like this:


ActionScript Code:
Starts = _level0.point_list[_level0.curComp]["Starts"].loader.value;


Now I want to use this data:

ActionScript Code:
key = Starts
if (key == "0"){
_root.clock.gotoAndPlay("none");



ActionScript Code:
}else {
trace("error");
_root.clock.gotoAndPlay("load");
}


I get an error trace everytime and clock go's to "none" label. I even set the var "key" to a value and get the same reaction:

ActionScript Code:
key = "0"



Anybody have a clue whats going on here? Any help would be really appreciated.

Stumped.. Please Help
Hi All

I have a flash movie (see www.aaronbimpson.co.uk/tunnel) but at the moment, the tunnel is being dragged by the mouse. However, I would like to manipulate the movement of the tunnel (using keyframes or something) so that it doesn't follow the mouse and i can determine it's direction and movement.

(I am hoping to use the effect as part of a plasma screen presentation, and obviously need to have full control over the movement within the movie)

I have played with it for quite some time now and am pretty stumped. If anyone at all can help, I would be MOST appreciative.

The .fla can be downloaded here: www.aaronbimpson.co.uk/tunnel/tunnel.fla

Thanx everyone!!

Aaron

www.aaronbimpson.co.uk/index2.htm

Variables........STUMPED
I have a dynamic textfield with a variable "abcde"

Can I dynamically load a .swf that bears the name of the variable?

on certain frames the variable changes to a new name...so therefore I want it to load a new movie "newname.swf" (the new variable)and i need to add .swf to the end of these variables.

loadmovie?


Cheerzzz

Animated & Stumped
for ref:
http://www.jmrcreative.com/flash/jmr/logo.html

I have 2 pre-built movies playing in this scene.

The movie containing text is behaving as it should.

Problem: The movie of the monitor-looking-thing should continue to loop in a static position--meaning, the art inside the screen should continue to roll--once the object has settled into place (the down-to-up tween of that instance exists not in the movie itself but on the scene).

Any help would be appreciated!

I'm Stumped - This Should Be Simple...
I have a form submission I'm doing in Flash 5. I'm using the Bignosebird CGI script. The script is setup correctly because it works fine with an html form.

This is the script I am using in generic form (for security reasons). I'm using smtp mail in the script. Here is the cgi script... http://bignosebird.com/carchive/bnbform/bnbform.txt

this is what the flash code looks like when it's time to submit the form...

on (release) {
// checking if one or two of the two "must"- textfields are empty. (You can change them if you like!)
if ( other validation that works goes here
" etc....
"
required = "name,submit_by";
automessage = "mymessage";
outputfile = "form2";
countfile = "form2";
emailfile = "form2";
form_id = "Mailing List Form";
data_order = "name, www, submit_by, message";
// calls the CGI formMail script (on my server)
// below is the code in question
loadVariablesNum ("/cgi-bin/bnbform.cgi", 0, "POST");

gotoAndStop ("sendt");
}
} else {
// If "name" and "e-mail" are empty - the movie will go to the label (error)
gotoAndStop ("error");
}
}



As you can see the data_order is being set, but the CGI script tells me it isn't. I've reviewed many Flash CGI apps and it doesn't seem to difficult.

Any help would be greatly appreciated. Thanks in advance for your time.

Paul
[Edited by tzr on 01-08-2002 at 11:16 PM]

Dag And Drop - Stumped >>>>>>>>>>>>>>
Need help! The movie runs and works perfectly on its own.
I drag a movie clip icon into a droptarget area and the movie clip loads into the next level (4).
When I test the file as part of my site...it will not work when loaded into the third level.
here's my code:

on (press) {
startDrag (getProperty(_x, _y));
}
on (release) {
stopDrag ();
}
on (release) {
if (_droptarget eq "/TA1") {
nextFrame ();
} else {
setProperty ("", _y, OrgY);
setProperty ("", _x, OrgX);
}
}

>>>>Any ideas?

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