[MX2004] Setting The Location Of Buttons
it's an easy question but the words may come out wrong.
so I'm loading these 5 pics as buttons
for (i=0; i<=4; i++) {
blur_pic = "pic"+i+"sblur.jpg";
pic = "pic"+i+"s.jpg";
blur_mclevel = i;
createEmptyMovieClip("blur"+i+"_mc", blur_mclevel);
loadMovie(blur_pic, "blur"+i+"_mc");
}
and I want to have them located one below the other plus 10 pixels gap . . . it seems so easy, but then so did opening the MX2004 packaging . . . 3 days later.
any help is really appreciated
PWB.
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 03-13-2005, 08:44 PM
View Complete Forum Thread with Replies
Sponsored Links:
[MX2004] Setting The Location Of Buttons
it's an easy question but the words may come out wrong.
so I'm loading these 5 pics as buttons
for (i=0; i<=4; i++) {
blur_pic = "pic"+i+"sblur.jpg";
pic = "pic"+i+"s.jpg";
blur_mclevel = i;
createEmptyMovieClip("blur"+i+"_mc", blur_mclevel);
loadMovie(blur_pic, "blur"+i+"_mc");
}
and I want to have them located one below the other plus 10 pixels gap . . . it seems so easy, but then so did opening the MX2004 packaging . . . 3 days later.
any help is really appreciated
PWB.
View Replies !
View Related
Setting Mc Back To Location
hi, heres my scripting, i can get the drag and drop to work fine, but if the object is not droped on the mc target i want it to revert to the location on else, which i cant get to work. Please help, Thanks
on (press) {
startDrag ("reda");
}
on (release) {
stopDrag ();
if (getProperty("/reda", _droptarget) eq "/statc") {
tellTarget ("/") {
gotoAndPlay ("A", "atoc");
}
} else if (getProperty("/reda", _droptarget) eq "/statb") {
tellTarget ("/") {
gotoAndPlay ("A", "atob");
}
} else {
tellTarget ("/") {
setProperty (_root.reda, _x, 70);
setProperty (_root.reda, _y, 136);
}
}
}
View Replies !
View Related
Setting The Location Of A Movieclip
I've figured out how to load a movie to a level, but the problem is that it appears in the upper left corner. I've tried to use the _x property to place it where I want it to be but I can't figure out how to make that work. Can someone give me the syntax to use the _x and _y properties to place my movie? Do I have to go to expert mode to do what I'm describing here? I'm using flash 5.
Also if I want to have a single bitmap appear with a button click do I have to make it a .swf and use loadmovie? Or is there a simpler way to do that?
Thanks in advance.
[Edited by orgreeno on 10-28-2001 at 09:33 AM]
View Replies !
View Related
MC Setting Limits On Location
Hi, I am new to actionscripting, but here's what im trying to do. I have an MC that gets bigger and smaller. (the mc is a page with small type so you make it bigger so you can read it.) the problem is that when you make it bigger it expands larger than the movie. I have a mask so it doesnt show. so i added a button so the user can move the MC around. that all works however i want to add limits to how far up and down the user can move it.
basically it all boils down to I have a square MC floating in the movie. the user can push it around (via increments) and resize it. i want to set boundaries so that the user will always see the square and not be able to push it off the screen (under the mask) entirely.
for instance, when the movie is moved up the y axis, i dont want the bottom left corner of the MC to move up past the bottom left corner of the movie .
HELP! i know this isnt that complicated but i cant seem to construct the if statement properly and then i thought, well, maybe there is an easier method...??
thanks thanks thanks
View Replies !
View Related
Setting A Slider Location
I have a site that uses the following scrollbar/slider to scroll content:
on(press){
_parent.dragSlider();
}
on(release, releaseOutside){
_parent.stopSlider();
}
http://www.sbocksolutions.com/flash/ > info-tainment
The info-tainment section consists of a movie clip that jumps along its timeline to different labels for its various sub-sections(speaker topics). The problem is that the slider stays where it is in the clip so that although you jump to a new spot, you may not see the content because it is up above where you have the slider. Does that make sense?
I'd like to be able to return the slider to the top whenever someone clicks on the link to move to a new label in the timeline.
I'm using Flash Pro 8
View Replies !
View Related
Setting The Location Of EmptyMovieClips... Help Please
I'm having trouble placing my emptyMovieClips where I want them.
I've tried this two ways (from the _root.):
this.createEmptyMovieClip("mainHolder", this.getNextHighestDepth());
_root.mainHolder._x =0;
_root.mainHolder._y =61;
and
this.createEmptyMovieClip("mainHolder", this.getNextHighestDepth(), {_x:0, _y:61});
When published, the swf loaded into 'mainHolder' is located at 0,0. What am I not doing right here?
thanks!
View Replies !
View Related
Setting Location Via Flash?
Hello,
time ago I visited a single (probably layered) swf site, made of sections/scenes. Each section would change the browser location address, so that if you typed the location, you would go to that frame/scene/form of the swf file.
Does anybody remember which site is it, and how could it be achieved (with fscommands/javascript?)
thank you in advance
m.
View Replies !
View Related
Setting A Customised Cursor Location
Hey, thanks for looking.
reference: http://www.oksunday.com/flash/map/map.htm
I'm making this flash map, where your cursor changes to a custom graphic.
What I'd like to do is keep the custom cursor only when it is inside the border of my map, but I have no idea how to do it.
Is it possible? And if anyone knows how to please point me to a tutorial or give me some hints. Check out the URL at the top of this post to see what i'm talking about. I havent put a preloader on yet but it will show up after a couple of seconds....Thanks... ^_^
View Replies !
View Related
Setting The Location Of EmptyMovieClip... What Am I Missing?
I'm clearly not caffinated enough (or too much!) because I can't seem to place my emptyMovieClips where I want them. I'm sure I've done this before but I would really appreciate it if someone would shine the light of understanding on me...
I've tried this two ways (from the _root.):
this.createEmptyMovieClip("mainHolder", this.getNextHighestDepth());
_root.mainHolder._x =0;
_root.mainHolder._y =61;
and
this.createEmptyMovieClip("mainHolder", this.getNextHighestDepth(), {_x:0, _y:61});
When published, the swf loaded into 'mainHolder' is located at 0,0. What am I not doing right here?
thanks!
View Replies !
View Related
<---Newb Question: Setting Location Of Imported Movie
I know this is probably a very easy thing to do, but I'm very new to flash and I've gotten most of my knowledge of it from looking at other peoples open source things. I'm making a movie that plays clips of football games. I've already got each video imported into individual movies and they will play in my player. The problem is it plays in the upper left corner of the movie and I'm not sure how to set where it will be placed. Thanks for any help.
View Replies !
View Related
Setting Initial Draggable Mc Location To Reset At End Of Quiz
I'd like to be able to set the initial location of each of my draggable movieclips and then reset them to that initial location with the press of a button.
On each button, I was trying:
_root.xpos1 = _target._x;
_root.ypos1 = _target._y;
and then trying to reset the mc's location from a button for restarting the program like this:
setProperty ("Button1", _x, _root.xpos1);
setProperty ("Button1", _y, _root.ypos1);
But that doesn't work.
Thank you.
View Replies !
View Related
Setting A Variable To Be Executed Later (MX2004)
I'm currently designing an interface and I would like it so when a user clicks a button a variable is stated and then after a short animation, depending on if the variable is true or not, the movie gotoandplay's a different scene.
So for example if a user is currently in the "about" scene and click the link to go to the "contact" (setting a variable goContact to true) page then an animation runs that will close the "about page" and then the movie jumps to the scene with the "contact" animation in it.
Ive been trying something to the effect of:
Code:
if ( goContact = true ) {
gotoAndPlay("load_contact", 1);
}
but its giving me errors when i export.
As you can probably tell im pretty new to action scripting but I have learned alot in the past few days. If you know of a way to do this, tutorial or section in the actionscript refernce guide that would help me a lot.
Thanks
View Replies !
View Related
Script Error Of MX2004 Setting?
Okay guys,
My flash movie keeps loading as it plays, instead of loading while the preloader plays. I've tried 2 simple preloaders, but they are not working. My movie is made up of 2 scenes: 1 is the preloader, 2 is the movie, which is 400 frames.
The preloaders I've tried are as follows:
--First Preloader (very simple):
action 1:
ifFrameLoaded ("Scene 2", 400) {
gotoAndPlay("Scene 2", 1);
}
action 2:
gotoAndPlay("Scene 1", 1);
--Second Preloader:
action 1:
bytes_loaded = Math.round(_this.getBytesLoaded());
bytes_total = Math.round(_this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay("Scene 2", 1);
}
action 2:
gotoAndPlay("Scene 1", 1);
In both cases I never see the preloader. The movie just starts playing and loads as it goes. What am I doing wrong? This is for a client so I would appreciate some help ASAP!
Thanks!
View Replies !
View Related
Script Error Of MX2004 Setting?
Okay guys,
My flash movie keeps loading as it plays, instead of loading while the preloader plays. I've tried 2 simple preloaders, but they are not working. My movie is made up of 2 scenes: 1 is the preloader, 2 is the movie, which is 400 frames.
The preloaders I've tried are as follows:
--First Preloader (very simple):
action 1:
ifFrameLoaded ("Scene 2", 400) {
gotoAndPlay("Scene 2", 1);
}
action 2:
gotoAndPlay("Scene 1", 1);
--Second Preloader:
action 1:
bytes_loaded = Math.round(_this.getBytesLoaded());
bytes_total = Math.round(_this.getBytesTotal());
getPercent = bytes_loaded/bytes_total;
this.loadBar._width = getPercent*100;
this.loadText = Math.round(getPercent*100)+"%";
if (bytes_loaded == bytes_total) {
this.gotoAndPlay("Scene 2", 1);
}
action 2:
gotoAndPlay("Scene 1", 1);
In both cases I never see the preloader. The movie just starts playing and loads as it goes. What am I doing wrong? This is for a client so I would appreciate some help ASAP!
Thanks!
View Replies !
View Related
Setting Properties Of A Movie From A Button Depending On User Location Within The Mov
Hi....
It is a little more complex than this so here goes........
I have a main menu that travels the main timeline,using frame Labels to guide it.... when the user clicks to go to another section I want to have a section closing animation play before the selected section opens.....the sections are color coded (red, blue, yellow, grey) and all use the same enter/leave animations but uses a background that tints to make the section animate in the right color code......
I am guessing the best thing to do is have the sections all close using the same movie but have the button tell the specific variable inside the movie (depending on which section the user is currently in) to be a certain tint property and then go to the user selected section by using "gotoAndPlay (x); variable at the end of the animation defined from the selection from the main menu????
My problem is I dont know how to send the information around flash.....
how would I get the button to play this closing animation with the right tint on the backing ......
any ideas would be greatly appreciated...
Thanks
would be easier using actionscript rather than try to do all the different movies according to the differentials as the animation is a little complicated
View Replies !
View Related
Target Location For Buttons
I have a webpage with Frames... I've made the nessary buttons... I my page is split like this... a banner, contents and main... I put my buttons in the contents section on I want to make them open in the main section. I know how to get to the url and type in _top but I know it's not top anyone know what i need to put in there to open to the main frame? Thanks
View Replies !
View Related
Buttons In MX2004
Hi
Just bought Flash MX2004 and opened my old MX files in it, but I cant work out how to use buttons any more!!
I just want to add an OnPress event to tell an MC to go to a certain frame.
I miss:
on (press) {
tellTarget ("_root.mc") {
gotoAndPlay("frame1");
}
}
Also, is there a normal mode for the actions menu?????
View Replies !
View Related
Problem With Buttons In MX2004?
Am I the only one experiencing a problem with buttons in MX 2004? It seems that I can only have one button per frame. Some buttons behave more like movieclips, but they can't be clicked and do not show the "over" or "down" frames.
Anyone else having this problem or know how to fix it?
View Replies !
View Related
Getting Buttons To Work In Mx2004
Okay, so after a lil' brteak from doing anything with flash, I'm having trouble doing the most basic thing- making a button skip to the next scene. Can't even get it to skip to a frame in the current scene. Not sure what I'm doing wrong, seemed fairly easy in flash MX, can't for the life of me seem to get it working in MX2004.
Sorry for the vagueness, can't get on net with laptop that has the actually .fla file on...
View Replies !
View Related
How To Scroll A MC Using Buttons In MX2004
Hi all,
I'm having a great deal of difficulty doing something that I found pretty easy in old versions of Flash - maybe I'm just too tired!
How do you scroll a movie (up and down) in MX 2004 using both up and down buttons?
Can anyone provide a link to or fla example?
Many thanks!
View Replies !
View Related
Linking Drop-down Menu Buttons To Thier Desired Location
I went through the Drop-Down menu tutorial (created by Brett Taylor, 2000-06-26) and was successful, but now am trying to link those buttons to to the specific place on the time line.
I have created a movie that has 5 frames in it that are text pages only, and I want the drop-down menu button that the user clicks on to go to that movie (which is the 9th frame on the main timeline) and go to frame two which is inside that movie.
I'm farely new at Flash and don't have the "Programmers" though process and I've tried to figure it out but to no avail. Can you help?
View Replies !
View Related
[mx2004 AS2.0] A Faster Way To Get All Buttons On A Frame?
Hello,
I need to get all instances of a Button object onstage in the current frame.
I'm using this:
Code:
// get _root of current frame
var the_frame = CreateModel(get_model()).get_target();
// loop through
for(var prop in the_frame)
{
if(the_frame[prop] instanceof Button)
{
// my code goes here
}
}
which as you can see loops through every object onstage and checks to see if it's a button.
Is there a faster way?
I think I need to do it this way because I would like NOT to have to rewrite the code every time a designer creates new version of this application with fewer or greater buttons or frames.
The application should just be able to search a nominated timeline, isolate the buttons in that frame and dynamically assign functionality.
Anyone got anything better than the way I'm currently doing it?
Thanks
S.
View Replies !
View Related
[MX2004] Linking Buttons To A Slideshow
Note: im a beginner with AS. Im reading (yeah reading! ) the Actionscript Cookbook by Joey Lott to get better and more familiar with this language.
Okay, first of all look at this link
and go to > photo > things
What you get to see is a slideshow which you can browse through by hitting the Next (and / or Back button) button.
Also you see "numberbuttons": 01 02 03 ..... 10 (there need to be 29 buttons since i have 29 photos, but please ignore that..) that are not connected to the Next and Back button at this very moment.
My question:
How can I link the numberbuttons to my slideshow AND next / back button?
Say, I go to 05 by pressing the button and from there I continue viewing the photos by hitting Next: then i would like to have the square around the numbers to follow with me to 06 and so on. Quite obvious if you ask me.
(to get a better idea of what i want, go here > portraits : browse the menu.. notice the moving square. and yes, this nav doesnt have a back nor next button... just an example to show what i want)
Ofcourse, what i want depends on the script that ive been using. I have already tried out different codes but non of them wouldnt work proper (thats because of my lack of Actionscript knowledge). If you look at numberbutton 05 (notice .FLA below) you can see what ive been trying..
Code:
fla with image dir
Ok thats it. I hope someone can help me out on this.
Thanks in advance,
Hamid
View Replies !
View Related
[MX2004] Linking Buttons To A Slideshow
Note: im a beginner with AS. Im reading (yeah reading! ) the Actionscript Cookbook by Joey Lott to get better and more familiar with this language.
Okay, first of all look at this link
and go to > photo > things
What you get to see is a slideshow which you can browse through by hitting the Next (and / or Back button) button.
Also you see "numberbuttons": 01 02 03 ..... 10 (there need to be 29 buttons since i have 29 photos, but please ignore that..) that are not connected to the Next and Back button at this very moment.
My question:
How can I link the numberbuttons to my slideshow AND next / back button?
Say, I go to 05 by pressing the button and from there I continue viewing the photos by hitting Next: then i would like to have the square around the numbers to follow with me to 06 and so on. Quite obvious if you ask me.
(to get a better idea of what i want, go here > portraits : browse the menu.. notice the moving square. and yes, this nav doesnt have a back nor next button... just an example to show what i want)
Ofcourse, what i want depends on the script that ive been using. I have already tried out different codes but non of them wouldnt work proper (thats because of my lack of Actionscript knowledge). If you look at numberbutton 05 (notice .FLA below) you can see what ive been trying..
Code:
fla with image dir
Ok thats it. I hope someone can help me out on this.
Thanks in advance,
Hamid
View Replies !
View Related
Re: Can I Add HTML Links/data To Buttons In Flash 5 Or MX2004?
'best free porn clip'
(http://debemersv.bravepages.com/p/best-free-porn-clip.html) ,
jxws'anime free pornography'
(http://auahtauauryn.angelcities.com/p/anime-free-pornography.html) ,
gyqq'all american barrell'
(http://giainmeiitl.bravepages.com/k/all-american-barrell.html) ,
cyvj'black pumps'
(http://inaatiabilie.bravepages.com/d/black-pumps.html) , boyb
View Replies !
View Related
Re: Can I Add HTML Links/data To Buttons In Flash 5 Or MX2004?
ïðèâåòïèçäó âïåðâûå, 'Ãà éòè ïèçäó'
(http://pizda.rufreeporno.ru/map.html) , ïèçäà âèäåîðîëèêèãîë õóé
îçåðîâ, 'òåëêè ñîñóò õóè' (http://chlen-video.rufreeporno.ru/map.html)
, çà ñóÃóòü õóéñèñüêà Ãþ, 'ñèñüêè à Ãôèñà ÷åõîâà '
(http://siski-zdes.rufreeporno.ru/map.html) , ñèñüêè ôîòî
ëþáèòåëüñêîåâîÃþ÷à ÿ ïèçäà , 'âûëèæó ïèçäó'
(http://pizda-video.rufreeporno.ru/map.html) , äîáà âèòü åáóò ïèçäó ôîòî
View Replies !
View Related
How To Move An Object Slowly And Smoothly From Location 1 To Location 2?
Hi,
I am new to ActionScript. I wish to use ActionScript to move an object slowly and smoothly from location 1 to location 2.
I learned that I can use the following to move an object to location 2 (x2, y2):
mThisObject.x = x2;
mThisObject.y = y2;
However the object just "swift" from location 1 to location 2, not moving slowly and smoothly from location 1 to location 2.
Could some experts here provide a guideline for me?
Thanks and best regards
Alex
View Replies !
View Related
Can Anyone Help Me With Setting Buttons?
in as3 cant directly use action script on buttons can anyone teach me how to set it. i just want to pause the animation on frame one, and hit the button to continue the animation
i got the stop() bit right but like in as2 where you just type on(release) {play()} onto the button, so how will i be able to do it in as3 on the timeline
thx
View Replies !
View Related
Setting Tab Order Of Buttons
* I can set the tab order of text fields.
* I can't set the tab order of buttons.
__________________________________________________ _____
I am trying to make an application where I set the curser focus on the first button of the navigation. Hitting tab then moves you to the second, third, and finally the fourth nav button.
Then the curser should jump to the first text box of a form and move through the form in a specified order until it reaches the last text box. Then the focus should restart at the first button in the nav where it began
(I did notice through testing that the tab order of buttons by default is specific to the location on the stage, which is chaotic)
View Replies !
View Related
Setting Variables W/ Buttons?
Hi all,
I'm new to actionscripting and I humbly ask for any help:
I am building a meu system that has multiple states and will utilize variables to set the 'menu states' here is the plain english version of the code that I'm having trouble
here is a link to the menu I am trying to control: sliding menu
I would like the user to be able to click a letter and have the corresponding menu expand and stop. I would like the user to click any other letter which would cause the currently expanded menu to collapse and in turn expanded the menu that corresponds to the button the user just clicked.
I figure the best way to do this would be to set two variables:
menuState = (which would correspond to a label on the timeline, eg: c_menu_expanded)
and then a button action that would check the current menuState, perform the proper collapse action and then proceed to perform the proper expand action.
I understand setting switch variables and this seems to be the way to go, but it's assigning the variables initially that I'm having trouble with.
Does this make any sense? I have a feeling I'm making this more complicated than it needs to be.
thank you
Adam
View Replies !
View Related
Buttons Setting Variables
I'm not sure what to call it, but I'll do my best to explain. There are three buttons, and when clicked, they all end up at the same frame. Now, on the frame they end up on, how do I make the actions of the frame depend on which button was clicked? For example, if I click the first button, I want the actions of the frame it ends up on to go to Scene 1. If I click button 2, I want the actions of the frame it ends up on to go to Scene 2, etc.
I'm guessing it's something to do with variables. Maybe have button 1 set a variable to 1, button 2 set the variable to 2, etc. Then, when it gets to the frame, I do a little "if" statement, asking if the variable = 1, then go to Scene 1, and if the variable = 2, then go to Scene 2, and so on. The only thing is, I have no idea how to do this. Could anybody write up the actionscript for me on these conditions? Thanks!
View Replies !
View Related
Setting Variable For Buttons
hi, i have 5 menu buttons that are the same. since i am in the process of making the site right now, the buttons are constantly being changed.
for instance, this is my button code(its controlling an mc):
Code:
on (rollOver, dragOver) {
home.gotoAndPlay("_over");
}
on (press) {
home._alpha = 75;
}
on (release) {
home._alpha = 100;
}
on (releaseOutside, rollOut, dragOut) {
if (home._currentframe<=20) {
outframe = 40-home._currentframe;
home.gotoAndPlay(outframe);
home._alpha = 100;
}
}
is there any way that i could take where it says "home" then turn it into a variable and define that it is home in that button, so i only have to edit that every time i paste that button code into each button?
thanks
View Replies !
View Related
[F8] Setting Dynamic Buttons
I an dynamically creating button code through a "for" loop. all of the buttons are active. my problem is, when any button is pressed, it goes to the last number in the array. is there a way to do this so that each button will go to the assigned number
code:
var resourceArr = new Array();
function buildResourceArray() {
for (var i = 0; i < resourceCount; i++) {
var resourceLink = new Array();
resourceNum = resources.childNodes[i].attributes.RESOURCE;
resourceType = resources.childNodes[i].attributes.TYPE;
resourceLink.push(resourceNum);
resourceLink.push(resourceType);
resourceArr.push(resourceLink);
// set available resource buttons
set('_root.resText' + i, '• '+ resourceArr[i][1]);
var myResourceButton = eval('assistant.resourceTAB_mc.resource'+i+'_btn') ;
myResourceButton._visible = true;
//create buttons
myResourceButton.onRelease = function(){
resource_mc.sWindowName = resourceArr[i][1];
resource_mc.gotoAndStop(resourceArr[i][0]);
showResources();
getURL("javascript:window.focus();");
}
}
}
this is the part i am having trouble with
code:
myResourceButton.onRelease = function(){
resource_mc.sWindowName = resourceArr[i][1];
resource_mc.gotoAndStop(resourceArr[i][0]);
showResources();
getURL("javascript:window.focus();");
}
thanks
IMS
View Replies !
View Related
Setting Up Buttons Dynamically...
I have 25 buttons in a game labelled "button1" through to "button25", that all need to call functions when they are pressed, released and rolled over. Rather than go onto each one and add the code one by one actually on the button, I thought I'd be clever and do the following to try and set it all up with one neat bit of code:
ActionScript Code:
// set up the buttons
function intButtons () {
for (i = 1; i <= 25; i++) {
this["button" + i].onPress = function () {
pressBtn (i);
};
this["button" + i].onRelease = function () {
releaseBtn (i);
};
this["button" + i].onRollOver = function () {
rollOverBtn (i);
};
}
}
// function to handle pressing a button
function pressBtn (which) {
trace ("PUSH " + which);
}
// function to handle releasing a button
function releaseBtn (which) {
trace ("RELEASE " + which);
}
// function to handle rolling over a button
function rollOverBtn (which) {
trace ("OVER " + which);
}
But... when I test it, what I get on every button is "PUSH 26", "RELEASE 26", or "ROLLOVER 26", it's always 26, rather than each button's correct number. So what's happening is it's always using the current value of "i" from the for loop, rather than the value it was when I set up each button.... if you get my meaning.
Is there a way to make this work properly without writing it all out one by one for each button?
Cheers.
View Replies !
View Related
Setting Buttons To Preselected States
OK, let me see if I can explain this... I have a group of 8 buttons each takes you to a specific page on my website..Lets say you type in the URL for the homepage in your browsers address bar, it takes yout to the main page and the HOME button is selected(I have this one working, thats the easy part) now if someone were to type in
www.myhomepage.com/aboutus this would skip the main page of course and take you to the aboutus page.. When this happens, how can I make the ABOUT US button show that it is selected.
You can see what I have here:
http://www.onlinegameauctions.com/050203.swf
Notice that the HOME tab is white, meaning that is the current page you are on. I am wondering if what I am asking is possible with some actionscript or would I need 8 different SWF files one for each page.
Thanks!
View Replies !
View Related
Setting Up Link Buttons Outside Of Index.swf
Quick Flash 101 question. I am setting up a portfolio.swf file on my website. The problem is the links work when the file is index.swf and not when it is portfolio.swf. I would like to go to for example www.generalwebsite.com/portfolio.swf and have my portfolio come up, which it does and works fine, but when the button is pressed, I have the _blank screen pop up and instead of getting www.whateverlink.com in the new window, I get www.generalwebsite.com/www.whateverlink.com . Why is www.generalwebsite.com coming up before www.whateverlink.com? Sorry if this is so confusing but it is really simple and I am sure I am forgetting something basic. All suggestions greatly appreciated.
View Replies !
View Related
Setting Buttons To Access Webpages...
I'm having problems with my site (not yet up and running). I have a button that goes to a specific page. I created another button to go to another page, but I just get a "Page cannot be displayed " error when pressing it. I have verified that the page exists and that the spelling is correct (no typos). The main page is set in frames: the flash menu is at the top, and the buttons are supposed to replace the bottom left page or the bottom right page, depending on which button is pressed. How do I do this correctly?
The layout is like this...
Top frame containing flash menu
_________________________________
left frame | right frame
containing page 1 | containing page 2
View Replies !
View Related
Setting Action To Buttons Via Code
Hi there.
I'm working on a drop menu. Since there are few menus with differnt number of buttons I'm Duplicating mcs with buttons inside. I like to set the right action, the right event for eche one of them.
Logiclly it suppose to be someting like:
mc_1.button_2.onClipEvent(release)
{do_something()}
But its not! How can I set action to buttons via code ?
View Replies !
View Related
Setting Variables In Buttons In Flash?
Lets see if I can explain this as simple as possible. I think it has to do with setting a button variable.
I have a flash movie with six buttons and six photos. On rollover of each button creates a rollover button animation highlighting that button, to show what photo the user is on, and then slides in a new photo as the previously selected photo slides out. The new button stays highlighted and is only supposed to roll out or animate back to its default state when a new button is rolled over.
So essentially I need to get flash to detect the last photo that was visible so it knows when to slide that photo away and have the new one slide in. I also need to detect the last button that was rolled over to have it go back to its default state upon rollover of a new button.
I hope I am explaining this well. Any help is appreciated!
Thanks!
View Replies !
View Related
Setting All Buttons In A Movie To _visible=0
Hi, I have a movie which is a map and every country have a button attached to it. I want to set all the buttons at the opening of the movie to ._visible = 0;
And then only activate the one present in an XML file.
I have the XML parsing file sorted now, but was wondering if there is a way to collect all button or all mc instance name (as all buttons are inside their own mc)
Thanks.
View Replies !
View Related
Setting Interval For Dynamic Buttons
Code:
for(i=0;i<folderNamesArray.length;i++){
current_y = this.mc_folderButton._y;
this.mc_folderButton.duplicateMovieClip("mc_folderButton"+i,i);
setProperty ("mc_folderButton"+i, _y, current_y + i*20);
set("mc_folderButton"+i+".folderName", _root.folderNamesArray[i]);
}
ok...i'm making a dynamic folder buttons... the above code i did ran successfully... now i want the dynamic buttons to display like at 1 sec interval between each button.. where and how do i insert the setInterval method..?
thanks...
View Replies !
View Related
Setting Visibility For Next/Prev Buttons
I have pages of info I'm pulling from external files. I want my btn_next to not be visible when the last page loads and my btn_prev to not be visible when the first page loads. The btns are actually moviclips with instance names btn_next and btn_prev Here is my code:
//Stage Scale
Stage.scaleMode = "exactFit";
width_txt.text = Stage.width;
height_txt.text = Stage.height;
// End Stage Scale
//Stage Resize Listener
var resizeListener:Object = new Object();
resizeListener.onResize = function()
{
width_txt.text = Stage.width;
height_txt.text = Stage.height;
}
Stage.addListener(resizeListener);
// End Stage Resize Listener
// Default Page Number Variable
var currrentPage:Number = 0;
// Movie Clip Variable
var myMCL:MovieClipLoader = new MovieClipLoader();
// Total Pages Var and Load
var myPageTotal:LoadVars = new LoadVars();
myPageTotal.load("pages/pageTotal.txt");
//Pages Var
var infoPageTotal:LoadVars = new LoadVars();
// Page Counter Function
function pageCounter():Void
{
txt_pageNumber.text = (currrentPage + 1) + " / " + Number(myPageTotal.totalPages);
}
myPageTotal.onLoad = function(p_success:Boolean):Void
{
if(p_success)
{
pageCounter();
}
else
{
txt_pageNumber.text = "Error loading file.";
}
}
// End Page Counter Function
// Next Page Function
function nextPage(){
infoPageTotal.load("pages/page" + currrentPage + ".txt");
infoPageTotal.onLoad = function(p_success:Boolean):Void
{
if(p_success)
{
txt_page.htmlText = infoPageTotal.info;
}
else
{
txt_page.text = "Error loading file.";
}
}
}
nextPage();
// End Next Page Function
// Next Button Actions
btn_next.onRelease = function():Void
{
if(currrentPage < Number(myPageTotal.totalPages) - 1)
{
currrentPage ++;
gotoAndPlay(2);
}
else
{
currrentPage = 0;
}
nextPage();
pageCounter();
}
// End Next Button Actions
// Previous Button Actions
btn_prev.onRelease = function():Void
{
if(currrentPage == 0)
{
currrentPage = Number(myPageTotal.totalPages) - 1;
}
else
{
currrentPage --;
gotoAndPlay(6);
}
nextPage();
pageCounter();
}
// End Previous Button Actions
stop();
I've tried creating a buttonVisibility function but I'm doing something wrong because it either turns one or the other button off completely. Any help would be greatly appreciate. Thank you in advance.
View Replies !
View Related
Setting Interval For Dynamic Buttons
Code:
for(i=0;i<folderNamesArray.length;i++){
current_y = this.mc_folderButton._y;
this.mc_folderButton.duplicateMovieClip("mc_folderButton"+i,i);
setProperty ("mc_folderButton"+i, _y, current_y + i*20);
set("mc_folderButton"+i+".folderName", _root.folderNamesArray[i]);
}
ok...i'm making a dynamic folder buttons... the above code i did ran successfully... now i want the dynamic buttons to display like at 1 sec interval between each button.. where and how do i insert the setInterval method..?
thanks...
View Replies !
View Related
Setting The Links To Buttons With Animation?
I am a beginer at using actionscript and I have run into a snag with setting up links in my navbar.
I am practicing with a navigation style offered in the FLA section here at utrashock called "Icons." I cant figure out how to get the button to link off to its corresponding section. I am slowly starting to understand how the animation works when the button is clicked, but don't know where or how to get them to link off.
Any insight would be greatly appreciated!!
Thanx!
View Replies !
View Related
[MX04] Building And Setting Dynamic Buttons
here is my problem. I want to crerate an infinite amount of generic buttons and set them all to false. here is my code:
var buttonArray = new Array;
function buildButtonArray(){
for (var i = 0; i < 50; i++) {
var myButton = eval('item'+ i + '_btn');
buttonArray.push(myButton);
}
trace('my button: '+ myButton);
trace('button array: '+ buttonArray);
}
buildButtonArray();
it traces the buttons from 10 to 32, the rest are coming up undefined. which I can understand from 33 to 50 because I havent created the buttons yet. also how get I set these to _visible = false;
thanks
IMS
View Replies !
View Related
Setting Default Buttons (Managing Focus )
I read the live documents (Adobe), and found out that Focus Manager had a bug in Flash Mx 2004, but I see the same issue in Flash 8; Some people suggested:
There are two ways you can ensure that your flash file 'has the focus':
(1) get the user to click on the flash file
(2) use javascript.
In Adobe live documents, I read "The issue not appearing to place focus on the text field is that the SWF file does not have focus in the browser window. This is a browser issue, not one with the ActionScript or SWF file. So to focus the SWF file inside the browser, you can use some JavaScript. "
I used javascript to set the focus to the flash file once the web page is loaded, but still nothing has changed. The problem is still there.
Any ideas?
View Replies !
View Related
|