Loading Stuff Via Button
Hi guys,
I've nearly finished with my site but few things i still have to learn befour i can carry on. One thing is the code for the buttons. Can somebody please tell me what code i shoudl use which will load a certin .txt file and also a movie clip at the same time
Any help would be much appreciated
FlashKit > Flash Help > Flash Newbies
Posted on: 04-05-2004, 07:32 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Button In Loaded Swf Controlling Stuff In Loading Swf?
I got a swf that loads various other .swfs. I'm trying to make a button inside the loaded swf that will load another swf in its place.
The script I used is:
ActionScript Code:
this.invbut.onRelease = function() {
loadMovie("pages/frost.swf", "stageloader");
};
I've tried using _root.loadMovie(), _level0.loadmovie()(this replaces everything and dispays just the loaded swf). But neither worked.
Heres an image I made to try and explain things:
http://hundsteg.se/Erik/explain.jpg
thanks!
Button In Loaded Swf Controlling Stuff In Loading Swf?
I got a swf that loads various other .swfs. I'm trying to make a button inside the loaded swf that will load another swf in its place.
The script I used is:
ActionScript Code:
this.invbut.onRelease = function() { loadMovie("pages/frost.swf", "stageloader");};
I've tried using _root.loadMovie(), _level0.loadmovie()(this replaces everything and dispays just the loaded swf). But neither worked.
Heres an image I made to try and explain things:
thanks!
Help With Loading Stuff
Hey i been using flash for a while but i cant seem to do loading bars can some one tell me how to do them?
Thx *ps its best if u aim me or email the answer heh*
Aim: Garoc Tempest
Loading Stuff
I know there must be tons of tutorials for it but i cant seem to get the wording of it right! I want to just be able to when i click a button at the top of a website it replaces a textbox thats a graphic and another graphic at the bottom. How do you do this!
~Thanks
Loading Stuff
Ok, I have a site that I need to put a load bar w/ percentage in for.
However, everytime I try something, it'll load the entire swf, then go to the loading screen (which is thoroughly useless at that point)
So how do I make a loading screen that comes up immediatly and then shows the swf loading?
the site (WARNING: it's like 12 meg or something)
http://ian.janasnyder.com
Uh, Loading Stuff Programatically
I have 2 questions both revolving, I believe, around programming AS is FMX.
1) I would like all my buttons to go to Scene 2 onRelease, as Scene 1 is my 'interface' and Scene 2 is the basic background with a scrollpane into which I want to load content dependant movies, so I want each of my buttons to carry the required info to load the right movie into that scroll pane. How might I do this? I.E., maybe a variable called "goTo" in each button where in one button it equals "paintingForum" and in another it equals "userPhotographs", and when it goes to Scene 2, the scrollpane reads the variable and loads the right movie in...?
2) I have a little movie clip that runs the length of Scene 1, called "login". Ir has a combo box and allows for the option to register, login, or close the whole window. Can I programatically replace this "login" MC based on the choice made in the combo box, to replace "login" with a "doLogin" MC or a "doRegister" MC in the same place, i.e., unload the original "login" MC and REPLACE it programatically without affecting anything else in the timeline except that 'login' MC itself which was originally loaded with the main movie?
I'm sure both of these are possible with AS, but I'm not sure where to start, since I've a hard time wrapping my head around 'levels' and I think that's what's needed for (2)??? --and for (1), I've had success loading movies into scrollpanes, but now there's a variable or something involved because what I'm loading (carrying over into Scene 2)is based on (probably code within) a particular button.
I hope this makes sense, inasmuch as I often make as much sense as peach meatloaf, sometimes
Shawn
Loading Stuff Dynamically...
I understand that one can have an image folder of .jpgs to upload dynamically into their Flash .swf. -- I see that this is to save on file size.
I've been working on a Flash website and already the file is up to just over 1 megabyte.
Aside from the .jpg image galleries I plan to add, I will need to also have an option to show other .swf animations of my work. Some of those are quite big. I was thinking to have a .jpg thumbnails and when clicked, the other .swfs could open in another window or something.
What would be the intelligent way to load them so they won't really add too much more file size to my Flash website?
Any advice?
Thanks!!!!!
Help With Unloading And Loading Stuff...i Think
I have a bios page that contains 3 pictures...when these pictures are clicked the pic should move up and a window of information should fade in all while the other two pics move away
How do i go about this, i need a lot of detail, i attached an .swf so can take a look at the set up.
Thanks a lot
Gallery Loading ...and Other Stuff ....how Do I
Hey All,
Its been quite some time since i even opened flash ...but I need to build myself a portfolio site to get some work up to get a job ...(not as a flasher ...rest easy)
Ok,
Im LOVING this site: http://www.odstyle.com/
and basically id really like to do a similar thing wherby im loading images and video into a 'viewport' or viewing area.
Also, if u go here: http://www.letinmotion.com/left.htm there is an effect on the nav area where text morphs into smoke ...how would i achieve this ??
Cheers for your help!!
Paul
Stuck Loading Stuff In
I have a little problem im stuck on. I'm working on a system that loads images depending on the date of the file. The files are either jpg or swf, so for example:-
08_06_2006.jpg
08_06_2006.swf
There can only be one file(jpg or swf) per date.
So far I can look to see what the date is and load the jpg. My problem is, what if there isnt a jpg and only the swf.
My code so far is:-
months = new Array('01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12');
timedate = new Date();
todaydate = timedate.getDate();
day = timedate.getDay();
month = (timedate.getMonth()+1);
month = months[month-1];
year = timedate.getFullYear();
currentdate = +todaydate+"_"+month+"_"+year;
myVar = "images/large/"+currentdate+".jpg";
holder.loadMovie(myVar);
this.onEnterFrame = function() {
gL = holder.getBytesLoaded();
gT = holder.getBytesTotal();
percent.text = Math.round(gL/gT*100);
if (gL == gT && holder._width>1 && holder._height>1) {
delete this.onEnterFrame;
gotoAndStop(3);
}
};
stop();
If the jpg file doesnt exist I get this message in the output window:-
Error opening URL "file:///F|/site/images/large/8_06_2006.jpg"
How do I get flash to say "oh the jpg file isnt there, load the swf instead"?
Thanks
Help With This Jpeg Loading Stuff...
Basically Ive created a slide show which loads images from a folder which Ive hard coded paths to in my actionscipt.
Heres my problem?
I test the swf and it loads the images, I drag the swf into my browser and again it works fine. BUt when I drop the file and images into a dreamweaver document the swf file isnt loading the image. I havent changed any paths or anything. I simply put the swf file and images into the one directory within my html site.
Can anyone tell me why dreamweaver is having issues which not loading my images??
Its driving me nuts cause it works fine until I put in it dreamweaver?
thanks
Loading Stuff In Loops
hi, i'd like to load a series of jpgs with a for loop. something like a thumb nail gallery. in as2 no probs. the trouble i'm having with this in as3 is best explained with this code (no loop here but you'll get the problem) -
var jpgURL:URLRequest = new URLRequest("05.jpg");
var jpg1:Loader = new Loader();
jpg1.load(jpgURL);
jpg1.contentLoaderInfo.addEventListener(Event.COMP LETE, showJpg);
function showJpg(evt:Event):void {
trace(evt.currentTarget); // no jpg here.... just loaderInfo Obj. how to access Loader
addChild(evt.currentTarget); // not working, of course i could addChild(jpg1) but like i wrote at the top i want to load a array of images in a loop so i must be able to access from the Event.COMPLETE a reference to the image i want to add.
}
hope that's clear, all help appreciated. thanks
WAIT... i got it!
addChild(evt.currentTarget.content);
or
addChild(evt.target.content);
just a quick read through Flash help did the trick. it's actually quite useful after all
Loading Stuff From .txt File
I've gotten Flash to load a bunch of variables from a .txt file so that if I want to give my game up for download people can change the variables in the .txt file to change the .swf without having access to the .fla, but the .swf will not use the updated .txt if I edit the file. I have to re-export the .fla for the changes to take effect. Any help with this? The code I use to load the variables is
ActionScript Code:
#include "variables.txt"
Any help would be greatly appreciated.
Dynamic Loading Stuff Help....
I couldn't find a tutorial on this on the site, so i'm asking herre. At my site on my media section i'm gonna put links to load different movies, and i'm gonna have alot and add more often, so it needs a scrollbar. I read the tutorial on dynamicly loading text, but i need to dynamicly load links now. and i also wanted to put images by the links to show if it has sound or not and what media player it uses. Please don't tell me this is impossible and it can only be done in HTML. i'm begging someone to help me with this. Thank you.
And you can view what my media section looks like from my site:
www.geocities.com/dbzmajinvl
(please give me feedback on what i have so far for my site, and tell me if my preloaders work right also.)
Question About Loading Stuff, Help Fast Please
I am working on a slideshow thing, and It is split into three parts...
Seniors, Children, and Family.
I don't want the people who look at it to have to let the whole entire thing load before they are able to do anything. (for example... If someone clicks the Seniors button, then It will load the seniors page and just that, the children and family page won't load untill clicked on)
OKAY... SO. my first frame is simply something that sais loading and above it in a seperate layer it says slideshow will begin shortly. I dont even really want a % or anything. All I want is for when FRAME 2 is finished loading, for it to continue on. On frame 2 I will put another stop action and repeat this step for when you click one of the other buttons. So what do I do if all I want is on frame to finish loading to continue on, not the whole movie....!)
PLEASE HELP!!!!!
Loading Database Stuff Through PHP/Flash
ok, i have a database with two tables. one table holds the following:
table 1 name: lots
columns: lot_id, number, description, status_id
table 2 name: status
columns: status_id, name, description
i have a php script that goes as follows (i'm ignoring the description fields for now):
PHP Code:
<?php
// database connection variables
$server = "localhost";
$username = "********";
$password = "******";
$database = "***********";
// database connection statement
$connect = mysql_connect($server, $username, $password);
mysql_select_db($database, $connect);
// get values from the database
$query = "SELECT * FROM lots";
$result = mysql_query($query);
$num_results = mysql_num_rows($result);
// loop through database to get the values
for ($i = 0; $i < $num_results; $i++) {
$row = mysql_fetch_assoc($result);
$id .= $row['lot_id'] . "
";
$lot .= $row['number'] . "
";
$lotStatus .= $row['status_id'] . "
";
}
// output the variables so that flash can read them
$output = "" ;
$output .= "id=" . $id . "&" ;
$output .= "lot=" . $lot . "&" ;
$output .= "lotStatus=" . $lotStatus ;
// echo the final output lines
echo $output;
?>
now i'm not 100% sure this script is correct, so if anyone sees problems in it, please do let me know. i know that it needs some additions to pull the linking table (status) to display the status_id, but i have no clue how to write that as im not familiar with php, i just took this script from a user on this forum (i apologize for forgetting your name) and edited it.
anyway, i want to be able to pull out all those fields and load them up in flash so i can use them in the scripts over there. i have a grasp on the LoadVars(); a bit but not sure how to pull all this out and if its correct so that i can use it in flash. the fields im most worried about using is the number field in the lots table and the status_id (in both i guess since its a linking table).
any help would be VERY greatly appreciated. thanks in advance.
Loading Database Stuff Through PHP/Flash
ok, i have a database with two tables. one table holds the following:
table 1 name: lots
columns: lot_id, number, description, status_id
table 2 name: status
columns: status_id, name, description
i have a php script that goes as follows (i'm ignoring the description fields for now):
PHP Code:
<?php
// database connection variables
$server = "localhost";
$username = "********";
$password = "******";
$database = "***********";
// database connection statement
$connect = mysql_connect($server, $username, $password);
mysql_select_db($database, $connect);
// get values from the database
$query = "SELECT * FROM lots";
$result = mysql_query($query);
$num_results = mysql_num_rows($result);
// loop through database to get the values
for ($i = 0; $i < $num_results; $i++) {
$row = mysql_fetch_assoc($result);
$id .= $row['lot_id'] . "
";
$lot .= $row['number'] . "
";
$lotStatus .= $row['status_id'] . "
";
}
// output the variables so that flash can read them
$output = "" ;
$output .= "id=" . $id . "&" ;
$output .= "lot=" . $lot . "&" ;
$output .= "lotStatus=" . $lotStatus ;
// echo the final output lines
echo $output;
?>
now i'm not 100% sure this script is correct, so if anyone sees problems in it, please do let me know. i know that it needs some additions to pull the linking table (status) to display the status_id, but i have no clue how to write that as im not familiar with php, i just took this script from a user on this forum (i apologize for forgetting your name) and edited it.
anyway, i want to be able to pull out all those fields and load them up in flash so i can use them in the scripts over there. i have a grasp on the LoadVars(); a bit but not sure how to pull all this out and if its correct so that i can use it in flash. the fields im most worried about using is the number field in the lots table and the status_id (in both i guess since its a linking table).
any help would be VERY greatly appreciated. thanks in advance.
Button Stuff
I have a movie clip that I want to convert to a button. When I click the button I want it to goto frame label "last" in the movie clip <which is the button too>.
Any tips? would it be easier to leave it as an MC and create an invisible button over it and have that goto frame label "last"? I would need the code for that too if thats the case. Thanks in advance
HH
Button Stuff
how can you make the over, down and hit scenes work with a button while the movie is still playing?!!
need help asap
Button Stuff
how do i make a button take my movie to the next scene? also how do i make it change shape and color on mouseover?
HELP With Button Stuff...
I am trying to make a slide show of pictures for my site. I have made two buttons, a forward and a backwards button. I know there is a way to do it by putting the pictures in different key frames, but I cannot do that because this section of the site is only visible when it is opened, so i could not alter the images alpha and what not if they are on different layers. So my basic question is how do you make the same button go to different pictures? in my case how do i make the forward and back button go to different images?
PLEASE help. Thanks.
HELP With Button Stuff...
I am trying to make a slide show of pictures for my site. I have made two buttons, a forward and a backwards button. I know there is a way to do it by putting the pictures in different key frames, but I cannot do that because this section of the site is only visible when it is opened, so i could not alter the images alpha and what not if they are on different layers. So my basic question is how do you make the same button go to different pictures? in my case how do i make the forward and back button go to different images?
PLEASE help. Thanks.
HELP With Button Stuff...
I am trying to make a slide show of pictures for my site. I have made two buttons, a forward and a backwards button. I know there is a way to do it by putting the pictures in different key frames, but I cannot do that because this section of the site is only visible when it is opened, so i could not alter the images alpha and what not if they are on different layers. So my basic question is how do you make the same button go to different pictures? in my case how do i make the forward and back button go to different images?
PLEASE help. Thanks.
Tearing Ones Hair Out. Loading Multiple Stuff..
Right i'm getting different behavior from a flash movie depending on where I load it from:
http://www.jutsum.co.uk/thinktest/
Right it seems to be working fine here. You click on the names on the left, the thumbnails load. The movies start to load. Click on "Moet" and the thumbnails load and the video starts to load.
no try this:
http://www.think-global-group.com/showcase/
Again click on Moet on the left. Now on my system at least (512kbit connection), the thumbnails and movie dont load until the other 2 movies are loaded.
Why is this working differently?
Any help much appreciated.
J
Dynamic Button Stuff
I need help.
How do I make a button play a movie clip and make the clip start on a certain frame???
Keep in mind, both the button and the clip will be loaded into the main movie dynamically from the outside.
Ok, this is the action script I'm using on the button...
on (press) {
_root.mainmovie.placeholder1.loadMovie("pic1.swf") ;
}
But I need to start pic1 at frame 4. So I tried this...but it doesn't work...
on (press) {
_root.mainmovie.placeholder1.loadMovie("pic1.swf") ;
gotoAndPlay(4);
}
There's gotta be a way, right???
TAB-button Does Weird Stuff
Hi,
I've got the following problem:
I've created a form on my website where people can fill in stuff, like name, e-mail, etc.
Now, if someone presses the "tab-button" to get from one field to another, it somehow selects a nearby button with some weird yellow line!?
Is this a known bug?
If so, or not, how can I fix this?
Thanks in advance,
Death-Ruler
Button Clicking Stuff
Alright here is my dillema. I have a simple flash animation with a button on it. what i want to do is click on the button, and have it start the movie. I know with actionscript 2 you would use GOTO, but since this is 3 i don't know what i am supposed to do. I tried to do as much as i could but i just can't figure it out. I've got my button named Button, and i just want it when i click it to advance to the 2nd frame. what is the easiest way to do this? thanks for all your help
oh and here is my code so far:
Code:
import flash.display.MovieClip;
import flash.events.IEventDispatcher;
Button.addEventListener(MouseEvent.MOUSE_DOWN,startclip);
function startclip(e:MouseEvent):void {
}
Array Stuff Lost After Finish Loading A EventHandler.
array stuff lost after finish loading a eventHandler.
When my EventHandler for the Event.COMPLETE of xml URLLoader()
finish running this:
publicfunction imageLoad(u:String):void{
imgLoader = new Loader();
imgRequest = new URLRequest(u);
imgLoader.load(imgRequest);
// imgLoader.content as MovieClip;
trace(buffer.length);
buffer.push(imgLoader);
}
which load images into array, buffer.
When I get back to constructor, there's nothing in the buffer array.
WHy?
thank you
Loading Inside An Already Loaded Movie... _root N Stuff
2 Questions:
I am making a site and I want to make seperatie directories for the menu, and the content files. I have made a .swf with a menu in it (index.swf). This menu has a little animation that is loaded externally (topanim.swf). I have set up my site maps like this:
Site (Contains mainindex.fla)
||
||=>Menu (Contains index.swf and topanim.swf)
||
||=>Left(Contains content index, leftindex.swf)
||
||=>Content (Contains content pages, example: home.swf)
I have made a little border, and saved this in the leftindex.swf. The content pages should be loaded into this file. So I have made an empty mc (in the leftindex.swf) with the instance name leftcontent. I have only done this with the contentstuff and not with the menu.
I have created a empty page, named mainindex.swf. I've placed 2 empty mc's on this page that load the menu (index.swf) and the content border (leftindex.swf).
The menu loads fine except the little animation. How do I fix this?
And also how do I load the content pages (home.swf) into the border by pressing a button in the menu?
I know it's a little complicated, and it can be done a lot easier, but I want to do it this way. It's too hard for me to explain in english why.
Please help me...
Loading Inside An Already Loaded Movie... _root N Stuff
2 Questions:
I am making a site and I want to make seperatie directories for the menu, and the content files. I have made a .swf with a menu in it (index.swf). This menu has a little animation that is loaded externally (topanim.swf). I have set up my site maps like this:
Site (Contains mainindex.fla)
||
||=>Menu (Contains index.swf and topanim.swf)
||
||=>Left(Contains content index, leftindex.swf)
||
||=>Content (Contains content pages, example: home.swf)
I have made a little border, and saved this in the leftindex.swf. The content pages should be loaded into this file. So I have made an empty mc (in the leftindex.swf) with the instance name leftcontent. I have only done this with the contentstuff and not with the menu.
I have created a empty page, named mainindex.swf. I've placed 2 empty mc's on this page that load the menu (index.swf) and the content border (leftindex.swf).
The menu loads fine except the little animation. How do I fix this?
And also how do I load the content pages (home.swf) into the border by pressing a button in the menu?
I know it's a little complicated, and it can be done a lot easier, but I want to do it this way. It's too hard for me to explain in english why.
Please help me...
How Do U Make The Button Submit Stuff To U?
if i have a field for an email address...and the button called Submit...when i click on the submit button, how do i submit the email to myself as an example?
also...if i wanted to send a bunch of other fields from a form to the same email address...how would i do that?
Some Simple Button Action Stuff
Hey guys,
I feel like this is an easy one. But I've got 2 buttons that have some rollover effects (enlarging/shrinking). Each works fine by itself; it'll enlarge and shrink perfectly. But if I roll over a button to enlarge it while the other is shrinking, suddenly both of them enlarge simultaneously even though one no longer has a mouse over it. I feel like it's something simple that I'm overlooking, or maybe I've just got some bad habits. If anyone could give this a quick look and see if I'm doing anything atypical, that'd be great.
here are my button listeners
Code:
// seventytwo
events.seventytwo.onRollOver = function()
{
enlargePhoto(this);
}
events.seventytwo.onRollOut = function()
{
shrinkPhoto(this);
}
// seventysix
events.seventysix.onRollOver = function()
{
enlargePhoto(this);
}
events.seventysix.onRollOut = function()
{
shrinkPhoto(this);
}
and here are the functions
Code:
function enlargePhoto(target:MovieClip)
{
factor = target.photo._width / target.photo._height;
wDest = 240;
hDest = wDest / factor;
startingX = target.photo._x;
startingW = target.photo._width;
photoEase = 0.12;
target.onEnterFrame = function()
{
trace("enlarge photo " + this);
wInc = (wDest - this.photo._width) * photoEase;
hInc = (hDest - this.photo._height) * photoEase;
this.photo._width += wInc;
this.photo._height += hInc;
this.photo._x -= wInc/2;
if ((Math.abs(this.photo._width - wDest) < 1) && (Math.abs(this.photo._height - hDest) < 1))
{
this.photo._x = startingX - wDest/2 + startingW/2;
this.photo._width = wDest;
this.photo._height = hDest;
trace("delete enlarge photo " + this + " - killed");
delete this.onEnterFrame;
}
}
}
function shrinkPhoto(target:MovieClip)
{
factor = target.photo._width / target.photo._height;
hDest = 32;
wDest = hDest * factor;
startingX = target.photo._x;
startingW = target._photo._width;
photoEase = 0.12;
target.onEnterFrame = function()
{
trace("shrink photo " + this);
wInc = (this.photo._width - wDest) * photoEase;
hInc = (this.photo._height - hDest) * photoEase;
this.photo._width -= wInc;
this.photo._height -= hInc;
this.photo._x += wInc/2;
if ((Math.abs(this.photo._width - wDest) < 1) && (Math.abs(this.photo._height - hDest) < 1))
{
this.photo._x = this.flagpole._width; //this assumes flagpole will always be at 0
this.photo._width = wDest;
this.photo._height = hDest;
trace("delete shrink photo " + this + " - killed");
delete this.onEnterFrame;
}
}
}
Thanks!
Button Push Really Weird Stuff Please Help
Hey guys, doing a site for a friend of mine, and i've placed my code online, I have all the stuff working, the stuff that's not working i already know of. The site is still in early development, but the part that is making me angry, is if you click on about us, support us, and scholarship opportunities, if you notice, there's a small acitonscript that fades a movie clips alpha to 100, and moves it down like 30 spots, and it gets confused you have to click quickly, but it's something i don't want to happen, if you can check this out, i'd appreciate it: http://www.myfoureyes.com/cmef/final.html
the code i used for the button is:
//scholar is the name of the movie clip, that references scholarship opportunities
//loadVariables, loads dynamic text file
//resetall is the function that sets the previous item to alpha 0, and resets it's location to origin
//bringdown is the function that messes up, it's the part that tells you which category you are in
//sidemenu brings down the side menu
_root.scholar.onPress=_root.scholar.onDragOut= function() {
loadVariables("scholar.txt", _root.con.contents);
resetall();
bringdown(_root.scholar, _root.scholartxt);
sidemenuscholar();
};
if you have any idea on why this would be happening, let me know,
or if you notice when you click on about us, the text file i'm using has html tags in it, and i've set the _root.contents.html=true; //contents is the dynamic text box
and it's not displaying the tags, so i don't know what's up wid dat any way, any help is greatly appreciate, thank you guys. I know there are components out there available for loading text, but i'd really like to re-invent the wheel on this part, so i won't stop till i figure it out, which i think i'm very close to doing
Still Learning The Easy Stuff... Button Question
Ok, this seems like it should be super easy, but I can't figure it out... I added a button (pause button) but need it to stay a certain color once someone depresses it, and then change back once they hit it again...
could someone please help?
Load Pictures Into Movie/button And Do Stuff
I have already loaded all the information from an XML file, including text and image locations. I need a navigation bar on the bottom created from thumbnail pictures and when you click on them they display the information on top.
I have this code that I believe should work.
It would be nice to create the movies at runtime and load the pictures, but currently i have the movies created in a movieclip.
for (i=0; i<total; i++)
{
thumb_var[i]="thumbs.Thumb"+i;
loadMovie(Tb[i], thumb_var[i]);
thumb_var[i].onRelease = function()
{
loadAlumni(i);
}
thumb_var[i].onRollOver = function()
{
captionFN(true, Name[i], thumb_var[i]);
thumb_var[i].onRollOut = function()
{
captionFN(false);
}
}
}
Trouble With Downstate For Button (very Basic Stuff)
heres what i've got so far, its from lee's OOP tutorial. i've only added the red lines. there is four buttons, when pressed, i want the button to go to and remain in the rollover state , until another button is pressed. i know that i have to postpone the onRollOut within this function until another button is pressed but i'm a complete novice.. can someone offer a helping hand?
the buttons have instance names b1, b2, b3, b4
on each button, i have a gotoAndStop (frame) action: example below for b1
on(release) {
_root.Main_mc.gotoAndStop(171);
}
external .as file
class ButtonClass extends MovieClip {
public function ButtonClass() {
this.onRollOver = this.over;
this.onRollOut = this.out;
this.onPress = this.down;
}
private function over() {
this.gotoAndPlay(2);
}
private function out() {
this.gotoAndPlay(6);
}
private function down() {
this.gotoAndStop(5);
}
}
Previous Button Without Using PrevFrame() Xposted To Simple Stuff
First off, thank you in advance for looking at this! This post was x-posted in Simple Stuff.. seeing as I haven't had an answer, maybe its not that simple? Or perhaps its easier to find than I've been making it. Or maybe I'm impatient....oops.
I'm making a movie that loads external swfs created by iwork's keynote. Keynote leaves the first frame blank and labels every three slides (starting at frame2) "SlideFrame_1", "SlideFrame_2", etc.
My next button which goes to nextFrame() works just fine. It ends up stopping somewhere in the middle of SlideFrame_whatever. Which is great since its a static frame.
My previous button goes...nowhere with prevFrame() since prevFrame goes right back to where Next took us and stopped.
I don't know how many slides are in each swf I'm loading. I just know how its being run. I need my previous button to look at the current slide's label and then move back to "SlideFrame_x" x=previous slide.
Q: How do I go about writing that?
I'm going to hunt further on the webs and I'll post if I find anything.
Any help is greatly appreciated. I hope this is a "simple stuf" post...
Floating Picture Thinggy... Does Stuff... Stuff I Don't Know How To Do...
Check this out. I'm making a website and at the bottom of the site i want floating pictures. They not only float but they continue to move to the left. Untill you place the mouse over the pictures and then you can either make them go left or right with the speed varying as you go further to each side. Then when you select them there is a loading process and the pictures come up in a cool way and the rest is history. Now here is the problem... how do you do all that stuff. I'm talkin' 'bout all of it. Make them look like they float, make them go left and right and default left, and the... well the selection I can manage. Assistance would be quite nice. Thanx alot whoever answers this.
Why Is My HTML Stuff Messing With My Flash Stuff?
Hi fellas, I have an HTML page that has the regular drop down menues and some buttons in them. Nothing fancy. I also have a Flash banner withing the HTML page. The problem is whenever I go over the buttons in the HTML portion, my Flash banner pauses until I move the mouse away from any HTML buttons. Why would that be?!
Many thanks in advance.
Orbiting Stuff Around Other Stuff
Hi y'all
I've been searching the web for about 2 hours now, hoping to find some actionscript which makes something (eg a planet) around something else (eg another planet), but so far, I haven 't found anything ..
I did find something for Flash 8, but I'm not sure if it's going to work by just pasting it in CS3 ..
The thing is, even if I do get the script working in AS3, how do I make the object do a circular motion at the same time as the orbital motion?
If planet1 starts above planet2, goes down in front of p2, disappears behind p2, than how do I make it shift a bit to the left/right when above p2 again.
Repetig this should then result in a circular + orbital motion.
Does anyone know how to do this, or do you have to see the code (even though it is still AS2 right now)? In that case just ask me
Thanks!
Flash Button In "html Frame1" Triggers Stuff In "html Frame2"
Subject: flash button in "html frame1" triggers stuff in "html frame2"
I have a framebased html site...
I have a flash menu/buttons inserted in my topframe.
When you press one of these buttons a new page should appear in the
mainframe.
Is that possible, and if, how?
thanks
Help With _x And _y Stuff
Id like to have two buttons that could move a movie clip up and down.. I've tried various ways with variables but it seems that there is a scope resolution problem
How would I go about changing the _x and _y value of a movie clip, with another button?
.txt Stuff
First of all i'm not really a newbie. I just don't have too much experience wit flash actionscripting. Ok, so i made this nice website, http://monshu.netfirms.com, it's on a free server until i'm done! Well i have some input text(goto about > test) that i want to edit the corresponding dynamic text on the homepage. So far, as you can see, i does it. But i need it to save as a *.txt file so that it is visible even after refreshing!... I know how to make the dynamic text load the .txt file, but how do i save the input text as a .txt file?... That's my question. Any help would be great!, thnx
Ps: perl, php, c++ scripts to do this is fine, but you have too show me how?
3d Stuff
are there any good free things like swift 3d?
Cgi Stuff
Hey all,
It's me again. I've gotten everything figured out finally on the flash side of my form, but I'm having trouble with my CGI script. I know this isn't the place, but I was wondering if any of you knew where I could go to get help with debugging my Perl CGI script. I do know it is the script because I ran the form through another script and it went beautifully, the script just wasn't made for that form. It will do for now, but I ultimately want to be good at this programming thing. If you know where a good discussion board is or something let me know. Thanks
Fro
Where Did My Stuff Go? %&*()$^&
going crazy here, i have a movie that calls certain object properties to _visible = true, everything was working fine, then, i added some more objects and tried dupilcatemovie command to reproduce these objects dynamicaly. problem is, my objects that were working are no longer visible. property instector says _visible = true, but i dont see them. any clues? its almost like when i was using the duplicatemovie command, they somehow got move down a couple of levels, but at any rate, i can not see them eventhough they show visible in the PI.
thanks in advance for any help you can give!
Jeff
Stuff
"==" means is qual to
where as "=" means becomes qual to
3d Stuff On A Mac
What software do I need to be able to create 3d to use in flash mx on a Mac. and what else do you think i might need to know before i start getting too involved.
I've successfully managed to import stuff from 3d studio max using both illustrate and vecta3d so i guess i'm looking for something similar to that.
cheers guys!!!
|