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




Targeting Images With Buttons



I'm going to dumb this down to the absolute lowest common denominator as I've tried to get help with this on another forum and spent the entire time just explaining what I mean. lol. Here goes:For the sake of argument lets say we're working with:Buttons: A, B, & CSubButtons: a.1, a.2, & a.3Images: 0, 1, 2, & 3Overlay Image: 0.1, 0.2, & 03A brief description of each of the above:Buttons are going to be just that, a button with simple rollover that upon clicking will change a target image.SubButtons are just another set of buttons.Images are the target image that should change.Overlay Images are images that will load "on-top" of the Images to change their appearance slightly. Example; decals on a car.Alright, what I'm looking to do is have buttons A, B, & C below target image 0. If you clicked Button A, target Image 0 would change to Image 1. If you click Button B, Image 2 would load in the same target area above, replacing Image 1. Now at the same time I'd like to incorporate a set of "SubButtons" that upon clicking wouldn't change the main target image, just throw up a new image above the target image to change it's appearance ever so slightly. Say for example I click Button A again which loads Image 1. I click SubButton a.1 and some green stripes overlay ontop of Image 1. If the user clicks Button 2, the green stripes stay there, just the target image below changes.I have some flash experience but it's been a while since I've used the program. I just picked up a student edition of CS3 and the interface is completely different from what I'm used to. Any guidance you guys could give would be greatly appreciated! Thanks in advance, hopefully you can help me.



FlashKit > Flash Help > Flash Newbies
Posted on: 06-08-2008, 06:46 PM


View Complete Forum Thread with Replies

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

Targeting Movies &scrolling Images
Hi there,

Does anyone know how to achieve this example of scolling images across when arrows are pressed and then when the images are chosen,a movie is called i.e. the larger version of the image on the right?? as seen here http://www.melissasweet.com/main.html
-go to "bridal collection".if this link doesnt work copy&paste into a new window.

your help would be very much appreciated.
thanks!!

Targeting Movies &scrolling Images
Hi there,

Does anyone know how to achieve this example of scolling images across when arrows are pressed and then when the images are chosen,a movie is called i.e. the larger version of the image on the right?? as seen here http://www.melissasweet.com/main.html
-go to "bridal collection".if this link doesnt work copy&paste into a new window.

your help would be very much appreciated.
thanks!!

Targeting Only Images/layers For Low Quality Setting...
okay... i know i have another post here basically asking the same question... but I am really desperate in getting this effect... (obviously)

somehow, sites like www.bacardidj.com and www.2advanced.com (as well as others) have targeted their images to use the 'low' quality setting, yet all of the other elements are using the 'high' quality. What this does is preserves the crisp lines and pixels of the original image and avoids the smoothing that flash does by default, but also results in nice, antialiased vectors and type.

Now, if (via the menu) you switch down to low quality, all of the type and vectors go to crap, but the images stay pixelized, as expected......... but changing back to 'high' quality, everything, including the images that on load were pixelized, now gets antialiased.

how in the hell are they doing this? every time I try and target the _quality or _highquality to a specific MC (with image in it) or to a layer, it globally changes the setting, resulting in crappy vectors/type.....

i know it's possible, as its clearly demonstrated byall of these sites.... but none are willing to give up the secret......... PLEASE HELP

Targeting Buttons Within A Mc
pls help a newbie

anyone had this problem??

i have a mc on the main stage which acts as a menu.

within that mc menu has buttons targeting certain markers.

Can't seem to trigger them using
on (release) {
gotoAndPlay("Scene 1", "section_1");
}

what am I doing wrong???

thx

Jim

Targeting Buttons
I'm trying to target an instance of a button (artbtn) within a movieclip that i have loaded into a emptyMovieClip (on level 35) I want this button to load a second movie clip (art.swf) into different emptyclip (navlist_mc) but I can't seem to target the button.

Here is my script. it just loads the movie when the page loads and not on relase of the button.

Any help out there?

_level35.artbtn.on (release); {
loadMovie("art.swf","navlist_mc")

Targeting Buttons
OK. Thanks for helping me get my buttons to be a link, but now I have another problem. I have frames on my site (left frame for my navigation br and right frame for everything else) How do I get my the link in my button to target the right frame?

Targeting Mcs In Buttons...
I have a problem when i want to target a mc located in a button and change it's proprieties...it's like the mc's instancename doesn't exist in the button ..is there a different, working way of targetting ?

Help Targeting Buttons
I found a very simple slideshow tutorial and thought I could adapt the next frame and previous frame buttons. So far I've had no luck.

on (release) { if (this._currentframe == this._totalframes) { gotoAndStop(1); } else { nextFrame(); } }

That's the code for the next button (obviously) and I need it to control the .swf on level 2

I've recieved such helpfull replies to all my other questions I hope you can help me out again.

Thanks

Help Targeting Buttons
I found a very simple slideshow tutorial and thought I could adapt the next frame and previous frame buttons. So far I've had no luck.

on (release) { if (this._currentframe == this._totalframes) { gotoAndStop(1); } else { nextFrame(); } }

That's the code for the next button (obviously) and I need it to control the .swf on level 2

I've recieved such helpfull replies to all my other questions I hope you can help me out again.

Thanks

Help With Targeting Buttons In Mc
I duplicate a Movie Clip:

MC names are box1, box2, box3, etc...

Inside button names are number1,number2,number3, etc...

For some reason i cant get the buttons to trace




function createDays(myTarget, spacer) {
for(i = 1; i <= 12; i++) {
myTarget.attachMovie("box" + i, "myBox" + i, i);
myTarget["myBox" + i]._x = spacer * i;

// THIS IS NOT WORKING !!!
var tempName = eval("number" + i);
myTarget["myBox" + i].tempName.onRollOver = function (){
//todaysDay(i);
trace("AAA");
}


}


}

If i do it manually it works:
_root.boxHolder.holder.myBox6.number6.onRelease = function() {
//trace("AAAAAAAAAAAAAAAAAAA");
}


Any ideas?

Targeting Buttons In Mc Within Mc To The Main Swf
I have buttons located in an "submaster_mc" that is in another "master_mc". I want these buttons to control what will be loaded into an empty mc in a swf that we'll call frame.swf. How do I target this to happen? thanks -chris

Targeting Movieclips Within Buttons?
Hey guys,
I have a movie clip within a button that i want to address. The button is called "about" and the movie clip within the button is called "over". Naturally i tried addressing the "over" clip by writing _root.about.over.gotoAndStop(2);
This doesnt seem to work. Am i doing something wrong?
Thanks guys
Don

Buttons Within MC - Problem Targeting
Hey guys-

On my movie, I have a MC called f2 which moves on an x-axis according to the mouse position. No problems there. Inside that MC, I have a few buttons. Now, I need those buttons to be disabled when I click them. However, when I do an
code: on(press){
trace(this)
}
ON the button itself, I get "_level0.f2". Not what I need. I need the button name. I should get "_level0.f2.welcome". Is there a way to get Flash to realize I am clickin on the button and not the MC? Thanks!

Steve

Targeting Buttons In A For Loop
Hi all... I had the following script which worked fine for my buttons which were sitting on the stage and are called 'btn1', 'btn2', etc... However I wanted to animate all the buttons so have put them all into a movie clip called buttons, but now my script doesn't work, I have tried changing all the this targets to _root.buttons.this, but no luck... Any ideas anybody?


Code:
numOfBtn = 5;
stop();
for (i=0; i<numOfBtn+1; i++) {
this["btn"+i].num = i;
this["btn"+i].originalY = this["btn"+i]._y; //stores original position
this["btn"+i].onRelease = function() {
//set the frameNum variable to the same as the number button you selected, i use it again in frame 9
frameNum = this.num;
trace("playhead should be sent to "+frameNum+" by btn"+this.num);
//start playing the movie
play();
};
this["btn"+i].onRollOver = function() {
this.play();
for (var j:Number = this.num+1; j<=numOfBtn; j++) {
var newNum:Number = this._parent["btn"+j].originalY + 25;
this._parent["btn"+j].tween("_y", newNum, .5, "easeOutQuad");
_root.line.tween("_y", _root.line.originalY + 25, .5, "easeOutQuad");
}
};
this["btn"+i].onRollOut = function() {
for (var j:Number = this.num+1; j<=numOfBtn; j++) {
var newNum:Number = this._parent["btn"+j].originalY;
this._parent["btn"+j].tween("_y", newNum, .5, "easeOutQuad");
_root.line.tween("_y", _root.line.originalY, .5, "easeOutQuad");
}
this.onEnterFrame = function() {
if (this._currentframe != 1) {
this.prevFrame();
} else {
delete this.onEnterFrame;
}
};
};
}

[F8] Help With Targeting Buttons In External .swf
Ok, I'm going to try to explain this as thoroughly as possible, so here it goes:

I'm using an external actionscript file to pan an image bigger than the stage.

I have a button on the root that when pressed, goes to a certain spot on the stage and stops the panning motion via the external .as file, and loads in an external .swf into an empty mc. All that works fine, so here's the tricky part.

Inside that external .swf, I have an instance of bah_mc, which is going to be used as a button to resume the motion that the previous button stopped. That's where my problem is. I'm trying to put some action script on the root timeline that tells the button inside the external .swf to start the motion panning.

Is this even possible, or am I wasting my time?

PHP Code:



img.empty_mc.bah_mc.onRelease = function() {
    nMC.startMotion();
}




That is the code. img is the mc that the empty_mc is opening the external mc into. nMC.startMotion is the function that makes the image pan with the movement of the mouse.

Any help would be awesome, thanks.

Targeting Nested Buttons
Hi all
I have some buttons nested in a mc and i want to control them from the main timeline. The reason is that i want to make them active or inactive when entering a frame in the main timeline. The following code when is used inside the mc that holds the button works fine


Code:
bio.onRelease = function() {
_root.gotoAndStop(100);
bio.enabled = false;
};
In the main timeline i have tried many ways achieving this but nothing worked. I also tried to target them with the tool that inserts a target path (the one that looks like a target) but the button instance doesn't appear (in fact only a few elements of my movie appear, isn't it strange?). Anyway if someone can tell me how do i achieve this i would appreciate it since i'm loosing my patient with this. Thanx in advance

Targeting Buttons In A 'for' Loop
Hello Folks,

I was wondering if anyone can help me.

I have 12 buttons, each assigns a value to a text field when clicked.

The layout is as such, 12 buttons, each named sub1 to 12.

The code that I am attempting to use is,

Code:
function showValue(value:String):Void {
textBox.text = value
}
The value is then set from an array called valueArr that I unfortanutely can't post, basically it's just a list of suburbs though. It's called from this code.

Code:
for (i:Number = 0; i < 12; i++) {
this.sub[i+1].onRelease = function() {
showValue(valueArr[i]);
}
}
Unfortanutely I'm obviously doing it wrong, because nothing happens. If I change it to this.sub1.onRelease It goes through and sets the onRelease appropriately so that the last value in the array is displayed in the text box when I click.

I just can't work out how to refer to the button using the varible 'i' as part of the instance name.

Any assistance would be very much appreciated.

Thanks
JuzzyDee

Targeting Nested Buttons
Ok I might have missed a previous post on this already, but I have my actionscript in a frame on the root time line, and my buttons nested in a movie clip. How does button1 and button2 access functions on the main timeline?


is it:

ActionScript Code:
my_MC.my_btn1.addEventListener(MouseEvent.CLICK, my_function);

Targeting Buttons In A For Loop
Hi all... I had the following script which worked fine for my buttons which were sitting on the stage and are called 'btn1', 'btn2', etc... However I wanted to animate all the buttons so have put them all into a movie clip called buttons, but now my script doesn't work, I have tried changing all the this targets to _root.buttons.this, but no luck... Any ideas anybody?


Code:
numOfBtn = 5;
stop();
for (i=0; i<numOfBtn+1; i++) {
this["btn"+i].num = i;
this["btn"+i].originalY = this["btn"+i]._y; //stores original position
this["btn"+i].onRelease = function() {
//set the frameNum variable to the same as the number button you selected, i use it again in frame 9
frameNum = this.num;
trace("playhead should be sent to "+frameNum+" by btn"+this.num);
//start playing the movie
play();
};
this["btn"+i].onRollOver = function() {
this.play();
for (var j:Number = this.num+1; j<=numOfBtn; j++) {
var newNum:Number = this._parent["btn"+j].originalY + 25;
this._parent["btn"+j].tween("_y", newNum, .5, "easeOutQuad");
_root.line.tween("_y", _root.line.originalY + 25, .5, "easeOutQuad");
}
};
this["btn"+i].onRollOut = function() {
for (var j:Number = this.num+1; j<=numOfBtn; j++) {
var newNum:Number = this._parent["btn"+j].originalY;
this._parent["btn"+j].tween("_y", newNum, .5, "easeOutQuad");
_root.line.tween("_y", _root.line.originalY, .5, "easeOutQuad");
}
this.onEnterFrame = function() {
if (this._currentframe != 1) {
this.prevFrame();
} else {
delete this.onEnterFrame;
}
};
};
}

Targeting Complex Buttons
Hey All,

I'm using this complex rollover button on my site i found here -->
http://www.kirupa.com/developer/mx20...ton_effect.htm

What i'm looking to do is have this effect trigered when a second button is rolled over as well. Is there a way to target this movie clip effect from the _root timeline? I was able to achieve this halfway by using labels but I am not able to reverse the animation on roll out with this method.

Any ideas?

Thanks.

Targeting Buttons In A For Loop
Hi all... I had the following script which worked fine for my buttons which were sitting on the stage and are called 'btn1', 'btn2', etc... However I wanted to animate all the buttons so have put them all into a movie clip called buttons, but now my script doesn't work, I have tried changing all the this targets to _root.buttons.this, but no luck... Any ideas anybody?


Code:

numOfBtn = 5;
stop();
for (i=0; i<numOfBtn+1; i++) {
this["btn"+i].num = i;
this["btn"+i].originalY = this["btn"+i]._y; //stores original position
this["btn"+i].onRelease = function() {
//set the frameNum variable to the same as the number button you selected, i use it again in frame 9
frameNum = this.num;
trace("playhead should be sent to "+frameNum+" by btn"+this.num);
//start playing the movie
play();
};
this["btn"+i].onRollOver = function() {
this.play();
for (var j:Number = this.num+1; j<=numOfBtn; j++) {
var newNum:Number = this._parent["btn"+j].originalY + 25;
this._parent["btn"+j].tween("_y", newNum, .5, "easeOutQuad");
_root.line.tween("_y", _root.line.originalY + 25, .5, "easeOutQuad");
}
};
this["btn"+i].onRollOut = function() {
for (var j:Number = this.num+1; j<=numOfBtn; j++) {
var newNum:Number = this._parent["btn"+j].originalY;
this._parent["btn"+j].tween("_y", newNum, .5, "easeOutQuad");
_root.line.tween("_y", _root.line.originalY, .5, "easeOutQuad");
}
this.onEnterFrame = function() {
if (this._currentframe != 1) {
this.prevFrame();
} else {
delete this.onEnterFrame;
}
};
};
}

Remote Actions Targeting Buttons Within MCs
I want to avoid having my code in more than one location throughout my movie. So I've placed it all on the first keyframe.
My question is, how do I send button actions to buttons that are nested within movie clips if the buttons aren't on the first frame of those MCs ?

For instance, say I have a MC instance on the stage and it has 10 frames. On frame 10 of that MC is a button called myButton_btn.

If I put this code on frame 1 of my main movie, that button never gets triggered:

myMC_mc.myButton_btn.onRelease = function(){
trace ("button clicked.");
}

[MX] Targeting Flash Buttons To Iframes
I've looked up tutorials and things everywhere, but I still can't figure out why this doesn't work.

I have an Iframe named "bottom". On each button, I put this code:

on(release){
getURL("contact.html", "bottom")
}


but nothing happens. That should work, shouldn't it? Here's a link to what I'm doing if that helps any: http://www.jenni-bage.com/benzephyr/index2.html

MC Targeting To Control Playback From Buttons
What it is that I am trying to achieve is to have say 3 buttons, and a display area, in the display area I want to load MC that play and then stop, and when another button is pressed the current MC will play before going on to the new MC, and if the button is pressed that would go to the current MC, nothing will happen, I have read a bit about doing this with tellTarget, but I want to do it with the 'with' action, if this is noth the way to go, someone please enlighten me.

Buttons In Mc Targeting The Main Movie(_root)
I have a navigation on my site that is a MC placed on the main timeline, I want the buttons in the MC to make the main movie jump to different scenes in the main movie. I have tried

on (release) {
tellTarget ("_root") {
gotoAndPlay ("gather", 1);
}
}

and

on (release) {
gotoAndPlay ("gather", 1);
}
and neither work they just make the movie play from the start, does anyone know how to do this, it should be a simple task.
I will be forveer in your debt.

Dave

Targeting Html Frames With Flash Buttons
I'm developing a site that is a hybrid of flash and html
I've built a frameset in dreamweaver, one frame area that will house the flash navigation and another frame that will hold the various pages of content

What I'd like to do is use the buttons in the flash navigation frame to change the page (*.html) in the content frame. So when I press the news button in the flash nav the news.html page will appear in the content frame

Can anyone help or suggest a tutorial?

Thanks in advance

Targeting Movie Clips From Buttons Inside Mc's
I have a movie clip in SCENE 1. The movie clip contains a button. I want to use that button to target a movie clip on SCENE 3?
Or from that same button (in the movie clip, which I use to rotate the buttons on stage)in SCENE 1, how do I target a frame in SCENE 3?
I think the changing of scenes is crossing me up.
Thanks
Anthony

Flash Buttons Targeting Dhtml Layer, HELP
Hey everyone. I'm obviously new to flash and I've redesigned my site to use just some very basic flash techniques (ie buttons and sound). I'm trying to figure out how to add actions to my buttons that will send a page in my site to the content area below the navigation. To see what I mean go here: http://www.digitalmatt.net/index1.htm I need to know what to code in flash and in dhtml.

If you can please help me as soon as possible, it would be appreciated. I'm leaving for Iraq very soon and they pack up my computer tomorrow I believe, so I really wanted to get it done before I leave. Thank you

_Root Buttons Targeting MC Frame Labels
I have a basic menu on the _root level. I dynamically load MC's into an empty MC on the stage, and these loaded MC's have frame labels.

I would like to use the gotoAndPlay function from the _root menu to move the play head within the loaded MC's, but it won't work properly.

This seems so simple, but yet I can't make it happen...suggestions?

Dumb Targeting Question For Buttons In Movieclip
I have a movieclip (menu_mc). in the movieclip are buttons--
example of instance name-- (print_btn)
i'm trying to target the buttons from the maintimeline.

in the actions layer on the maintimeline:

this.menu_mc.print_btn.onRelease = function(){
_root.gotoAndStop("print");
}

i'm getting nothing. any idea of what's wrong with my target?

[F8] Targeting Buttons In Attached Movie Clips
I'm creating a slidshow-type engine and i'm running into problems with targeting buttons in the attached movie from the main timeline of the main movie. Right now there are only two movies clilps to attach. The first movie clip works fine, but when I go to the next movie clilp, it doesn't work. Same when I go back to the first movie clip, the button no longer works. I'm try to keep all my code in one place, I have just added added a few trace commands, so you can tell if the code in the main timeline, or the attached movie is being triggered.

I have attached the file and the code.

I have a feeling that the problem is in either in the "FADE IMAGE AND TEXT" section or the "CONTROL" section.



Code:
/* -----------------------------------------------
-------------- INITIAL SETUP ---------------------
--------------------------------------------------*/
import mx.transitions.Tween;
import mx.transitions.easing.*;
var i = 0;
var sideBarContent = new Array();
var stepTitleContent = new Array();


// Set Movie Title
movieTitle = "XO Communications | How to Read Your Bill";
//--------------------- End Initial Setup




/* -----------------------------------------------
-------------- CONTENT ---------------------------
--------------------------------------------------*/
stepTitleContent[0] = "<b>Remittance Page</b>";
sideBarContent[0] = "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nam suscipit. Cras tristique, lorem sed aliquam volutpat, mauris diam blandit nisi, ut venenatis odio elit eu dui. Donec ullamcorper risus elementum elit. Morbi blandit dolor. Ut leo mi, convallis vel, dapibus et, pellentesque vitae, nisl. ";

stepTitleContent[1] = "<b>Statement of Account</b>";
sideBarContent[1] = "Suspendisse non elit. Pellentesque at ipsum. Suspendisse nisl. Ut fringilla ante a massa. Curabitur cursus, elit fringilla porta blandit, purus nulla dictum sem, eget imperdiet risus augue non nisl. Vestibulum massa mauris, dictum in, luctus ut, ultricies blandit, leo.";
//--------------------- End Content



/* -----------------------------------------------
-------------- FADE IMAGE AND TEXT ---------------
--------------------------------------------------*/
// set text mask-----------
this.sideBarText.setMask(this.sideBarMask);

// define slide-in function
sideTextSlide = function(){
var slideTween = new mx.transitions.Tween(this.sideBarMask, "_x", mx.transitions.easing.Strong.easeIn, -187.9, -14.0, 0.5, true);
}

// define fade-in function
allFadeIn = function(){
this.attachMovie("image"+i, "mainImage", this.getNextHighestDepth(), {_x:213.9, _y:53.0});
this.mainImage.setMask(this.imageMask);
var fadeTween = new mx.transitions.Tween(this.mainImage, "_alpha", mx.transitions.easing.Strong.easeIn, 0, 100, 0.5, true);
fadeTween.onMotionFinished = function(){
sideBarText.textArea = sideBarContent[i];
sideTextSlide();
};
}
//--------------------- End Image Fade Mask





/* -----------------------------------------------
-------------- CONTROL ---------------------------
--------------------------------------------------*/

// First actions
allFadeIn();
var movieLength = (sideBarContent.length-1);
this.sideBarText.textArea = sideBarContent[i];
this.stepTitle = stepTitleContent[i];

// Next Button
nextButton.onRelease = function(){
if (i < movieLength){
i++;
stepTitle = stepTitleContent[i];
sideBarText.textArea = " ";
removeMovieClip(mainImage); //dump loaded movie
allFadeIn();
}
}

// Previous Button
prevButton.onRelease = function(){
if (i > 0){
i--;
stepTitle = stepTitleContent[i];
sideBarText.textArea = " ";
removeMovieClip(mainImage); //dump loaded movie
allFadeIn();
}
}


//--------------------- End Navigation Buttons



/* -----------------------------------------------
-------------- MORE INFO -------------------------
--------------------------------------------------*/
this.attachMovie("moreInfo", "moreInfoBox", this.getNextHighestDepth(), {_x:295.5, _y:195.5});
moreInfoBox._visible = false;

loadInfo = function(){
moreInfoBox._visible = true;
var revealInfoW = new mx.transitions.Tween(moreInfoBox, "_width", mx.transitions.easing.Strong.easeIn, 0, 532, 0.5, true);
var revealInfoH = new mx.transitions.Tween(moreInfoBox, "_height", mx.transitions.easing.Strong.easeIn, 0, 285, 0.5, true);
moreInfoBox.moreInfoBlocker.useHandCursor = false;
}

// This button in in the first attached movie
mainImage.payStub_btn.onRelease = function(){
trace("hit buttom from main movie");
loadInfo();
}

// This button is in the second attached movie
mainImage.statementInfo_btn.onRelease = function(){
trace("hit buttom from main movie");
loadInfo();
}

moreInfoBox.moreInfoBlocker.onRollOut = function(){
var hideInfoW = new mx.transitions.Tween(moreInfoBox, "_width", mx.transitions.easing.Strong.easeIn, 532, 0, 0.5, true);
var hideInfoH = new mx.transitions.Tween(moreInfoBox, "_height", mx.transitions.easing.Strong.easeIn, 285, 0, 0.5, true);
}

//--------------------- End More Info

Attach Movie - Broken Buttons - Targeting
Let's say i have a simple movie clip called "navBar" and in that movie clip I have nested another movie clip called "green_btn". I have assigned linkage to both clips the first as "navBar" and the second "green_btn". It is removed from the stage and saved in the library with proper linkage.

Now let's say I return to the stage and create a "holder" for my attached movie. I leave it blank, I call it "myHolder_mc" and assign it linkageand give it a instance name of "myHolder_mc" and move the cross hairs to the upper right hand corner.

Then I create a red button movie clip on the stage of a red circle called "red_btn", and give it a instance name of "red_btn". I will use red_btn.onRelease to load up the attachedMovie. When I press the red_btn, the "navBar" movie attaches fine.

OK, thanks for sticking with me this far - HERE IS THE PROBLEM - I want to be able to target the "green_btn" that is located in the original navBar and assign it a onRelease function. I can't seem to be able to target it, and have tried to find the right target path, but can't seem to do it correctly.

So here is the code so far that isn't working

red_btn.onRelease = function(){
myHolder_mc.attachMovie("navBar","navBar", 0)
};

// the green_btn is nested inside of the navBar movieClip
myHolder_mc.navBar.green_btn.onRelease = function(){
trace("hello")
};

What should I do?

Buttons Within Movie Clips, Targeting The Main Timeline
I have five buttons (1-5), in a movie clip (MC1). I want the buttons to go to frames on my main timeline--NOT within the MC1, but I am having a problem with it.

Currently I use:

on (Press){gotoAndPlay(frame);}

but this plays the frame within the movie clip, not on the main timeline.

I am sure there is a simple solution to this. Any help would be greatly appreciated.

Thanks,
shotbot

[F8] Firefox Blocks Flash Buttons Targeting _blank
I have a simple frames website I'm helping a client update.

They have a flash menu.

For two of the links in the flash menu, I'm using target="_blank".

The links work when tested - however in Firefox, when you click on one of these links that targets "_blank" firefox blocks the links.

Is there a workaround for this? Internet Explorer does not block the links.

I'm guessing Firefox thinks my links are "pop ups" so the site isn't functioning correctly and I'm concerned people won't know how to unblock the site, so that the links will work.

Thanks

FOO

BUTTONS & IMAGES
Hey

hope you guys and girls can help again! i am trying to create...and not getting very far!

ok, i have imported a gif image into flash, i want the image as a small icon which you would then 'hover' over and the image would cover the page.... to do this the image is a 'button'...have i doen this right so far?
problem...the image quality is CRAP when you hover over the smaller image, the original file sizes and resolution of the images are really high....when i try doing this with a jpeg or a tiff on the .swf file where the images are supposed to be....its blocks of bright colours....!

am i going mad...should i give up now!

Buttons And Images
Hey

hope you guys and girls can help again! i am trying to create...and not getting very far!

ok, i have imported a gif image into flash, i want the image as a small icon which you would then 'hover' over and the image would cover the page.... to do this the image is a 'button'...have i doen this right so far?
problem...the image quality is CRAP when you hover over the smaller image, the original file sizes and resolution of the images are really high....when i try doing this with a jpeg or a tiff on the .swf file where the images are supposed to be....its blocks of bright colours....!

am i going mad...should i give up now

Using Images And Buttons
Hi,

Im not sure how to do this, basically I want a button once clicked to be replaced by a picture, if that makes sense, so if there was a blank square, once that blank square is clicked, it reveals a picture, without appearing like a new image has appeared instead..

I have the image file in my library
and I have the squares which I have converted into buttons,

but in the code how do I specify that upon selecting a particular button, a particular picture appears?

if I go about it by saying for example:

on (release) {

if x != true && y != true) {

SetProperty ()

if (turn == "x") {

x= true
}

else {

y = true
}


how do I ensure that if x=true then an image of x will be shown, and if y=true then an image of y is shown.


sorry if this is basic :/ im trying to follow a book, but its not helping much

When Buttons And Images Go Bad
here's the page ref:

http://home.comcast.net/~jwjwjw/lyrics.htm

here's the issue:
if you roll over on "the only god or kiss and tell" the images come in fine from the rollovers, but when you roll over "all the money in the world" the img is blurry.  WHY!!!

what's wierd, is all the images are the exact same size (600x450) and when i'm in the "all the money.." text and on the OVER frame and drag the img to the stage, it comes in larger than the stage and blurry.  but still says it's the correct size in properties.

if i drag the img to the stage in the scene field it looks fine and publishes fine.  but then it's not part of a button.

i've thought of doing the layout in dreamweaver with frames, but have heard nightmares about that. and cant figure out why only two of the buttons keep the image focused and all others dont.
 
hope this made sense.


Why Are My Buttons Just Images?
iv done the down, over hit frame designs and specified on release to jump to a url.
i go to scene and drag the button from the library onto the scene page,
i export the movie as flash and also tried publish, but i just find the original still image and mouse events have no effect.
i go back to button, edit and check the 4 down, over frames have my new designs still there, and yeh they are.
so i dont know what im doing wrong.
i cant find any info in any tutorials on why its being like this,
i know iv probably missed something obvious.
so.. its your turn now, please enlighten me¬!

Using Transparent Buttons On Top Of Images.
hey all. heres a problem that maybe somebody can help me out with :

on my main stage, i have two layers: one layer is a an imported quicktime file, and another layer is a still image. the image in on top of the movie. what i want to do is this:

when the file starts, i want the image to be completely transparent (thus, you can see the movie playing underneath it). then, when you mouseover the image, i want that small section of the image to appear. thus, as your mouse moves around the image, it appears in those areas where your moust moves across it. im sure this has something to do with creating a bunch of transparent square buttons and overlaying them on top of the image, as well as using masks in a creative way. however, i cannot think of the exact actionscript to implement this idea. can anybody please help me out? thanks so much.

peace
john

Buttons Linking To Images
i have 15 buttons. that i want to link to 15 images. the images are named like picture0.jpg picture1.jpg picture2.jpg all the way up to picture14.jpg.

i want when a user clicks one of the 15 buttons the image above loads. say he choose button 5, picture4.jpg would show above.

any ideas how to go about this?
Any help, script, fla appreciated.

oliver

Buttons To Change Images
What I want to do is have some buttons down the left side (4) and when they are clicked the picture on the right changes. I tried but am doing something wrong.

Buttons, Links, Images Etc.
I'm working on a flash website. I first was trying to make little submenus, but they weren't working. What I've discovered is flash doesn't let you have a button within a button. I started off by making a single button that I had made do all of the color changes and general visual part of the button and then I used a bunch of copies of that for all the different buttons on the menu and made them all buttons of their own that I put the actionscript on to make them go to the correct pages. I started out making submenues off of those buttons, but I got frsturated by that not working so I decided not to use them. But one of my problems here is that when I say test movie the buttons don't go to the pages they are programmed to go to. They do change colors and stuff. So the button within is working, but the more important one isn't. Obviously a solution to this would be to make it all one button that does the visual part and the actual changing of pages, but I'm wondering if there is an easier way to do it. Something to note is that when I just select "Enable Simple Buttons" they work, and they go to the pages and change color.
My other issue is that I've got a lot of pictures I would like to have on this site and I realized it would make the end file size pretty big just putting them all in there, so I was wondering if there is a way I can make flash link to images that are hosted on the internet and display them regularly within the page like they aren't. Or, if each page could load individually that would be nice, instead of the whole thing loading at the beginning. If anyone can help me with any of this that would be much appreciated.

MOVING IMAGES With Buttons
Hi.. I'm sure this question has probly been answered before but I was wondering how to make an image move to the left or to the right with a click of a button... for example if there was one long HORIZONTAL image... how could I make it so that once I clik a button the image will scroll from one side to the other...
IF ANYONE COULD HELP ME WITH THIS I WOULD GREATLY APPRECIATE IT.

P.S: I know how to do this with Tweens.. I was wondering how to do it with actionscripting

I am going to be using this effect for the "ALBUMS" part of this website
COLD4LIFE RECORDS

MOVING IMAGES With Buttons
Hi.. I'm sure this question has probly been answered before but I was wondering how to make an image move to the left or to the right with a click of a button... for example if there was one long HORIZONTAL image... how could I make it so that once I clik a button the image will scroll from one side to the other...
IF ANYONE COULD HELP ME WITH THIS I WOULD GREATLY APPRECIATE IT.

P.S: I know how to do this with Tweens.. I was wondering how to do it with actionscripting

I am going to be using this effect for the "ALBUMS" part of this website
COLD4LIFE RECORDS

Photohop Images In Buttons
Hello there
Can anyone help me with the following:
I want to create a button that consists of a Photoshop Image of a Circle that changes to another Photoshop Image of a Circle when the mouse hovers over it.

The image would obviously have white edges/background in Photoshop so how would I make the white transparent when it gets imported into Flash?

Thanks in advance.

Images Into Frame With Buttons
I wanted to have 10 or so buttons and by clicking each button It would bring up
a different picture from the library (Or a folder on my pc) onto the movie.

But I would like this to be done with one frame (If Possible)
Sort of like a dress up game but adding the pics with buttons instead of dragging them around.

I have tried different codes but nothing works

Anyone know how I can do this ?
Thanks

[F8] Buttons Interactiong With Images.
I got this site.
My problem is that i don't really know how to make the main images change when a user goes over the buttons. So it's like ... you put the mouse over Home and it changes the main image to a sandwich. you put the mouse over Our Company and it changes to a lettuce or something like that.
Any ideas?
Thanks in advance
P.S.: I have absolutely NO clue about actionscript but i have quite a lot of experience from other programming languages.

[CS3] Help Making (PNG) Images Into Buttons.
Hi all, I am very new to using flash and I'd like to use some icons (PNG) I have to insert into my flash in the form of buttons.

Could anyone point me in the direction of an understandable tutorial or perhaps give me some help?

I've imported the graphic and then converted into a button, I have then assigned the over/hit etc properties and then i go to add the actual actionscript and it tells me 'actionscript cannot be added to this'.

I know I am abviously missing something so any advice would be appreciated.

Many thanks

Sliilvia

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