Down Load Button
People smarter then myself,
How do i make a button that will allow people to down load a version of my resume in pdf and word doc format?
Thanx
FlashKit > Flash Help > Flash Newbies
Posted on: 08-25-2003, 02:00 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
(mx) Transfering Actions Which Load With Movie To Load When Button Is Pressed
hi,
I have some code which draws a line when the mouse is pressed (to when it is released)
This code is within an object, loads when the movie starts and works fine:
Code:
// ***** Set some opening parameters
onClipEvent (load) {
// Make original line invisible
_root.line._visible = 0;
// Initiate some variables
number_lines = 0;
line_active = 0;
}
// ***** Every time the mouse button is released...
onClipEvent (mouseDown) {
// Get the position of the mouse
origin_x = _xmouse;
origin_y = _ymouse;
// Increase the number of lines by one
number_lines++;
// Generate a new line name
name = "line"+number_lines;
// Duplicate a new line
_root.line.duplicateMovieClip(name,number_lines);
// Position the line's end point at mouse position
_root[name]._x = origin_x;
_root[name]._y = origin_y;
// Update line length / orientation
_root[name]._xscale = _root._xmouse - origin_x;
_root[name]._yscale = _root._ymouse - origin_y;
// If this is the start of a new shape
if (!line_active) {
// Set the line tracking variable
line_active = 1;
// Set the start point of the new shape
start_x = origin_x;
start_y = origin_y;
}
}
onClipEvent (mouseUp) {
line_active = 0;
}
// ***** Every time the mouse is moved
onClipEvent (mouseMove) {
// If there's a line currently being drawn...
if (line_active) {
// Update line length / orientation
_root[name]._xscale = _root._xmouse - origin_x;
_root[name]._yscale = _root._ymouse - origin_y;
updateAfterEvent();
}
}
I want the user to press a button before this code is usable - just as with any drawing program.
How do i go about telling the code only to start when the button has been pressed?
thanks,
jeff
Load Movie...Park/Play...Load A Button Into Level
Okay, I tried the Park/Play tutorial in order to load a movieclip and have a button on the stage that controls the main movie. Problem is that I have a background that covers up my button which is in level0. My movie clip is in level1. How do I bring that button out in front of the background? Do I load it into level2? If so, how do I do this?
Thanks alot,
Roger
Load Mp3 Player To Text Button Or Load Swf
I have my site almost finished using flash mx 2004 pro , I am trying to make text buttons that when clicked opens media player to play mp3.s . I have looked at the other threads and i have tried pasting some of the those actions. To no avail iv ebeen trying this for 4 days. The browser only opens blank screen. Any help im new with coding. Any help I would really appreciate it . Would love to send flash to someone to look it over
pc user
on (release) {
getURL("http://www.blah blah.com/mp3/blah blah.mp3");
}
[help] Load Images And Load AS For Button?
I have successfully dynamically loaded Jpegs into my flash document(using PHP), but then I have another small problem...
When I dynamically load the image (example: image_icon_bluesky.jpg) I then need to tell the MC that is holding the loaded image that it needs to do this...
on (release) {
_root.image_bluesky.alpha = 100;
}
SO basically every time a new image is loaded in my sort of "loop" script. I need to tell the image that it needs to put specific code onto the MC using specific "image" details for that specific image.
I hope this is clear. Basically what I'm trying to do....
On my flash stage I already have MC's that have their alpha properties set to "0". Lets say there are 3 images. One MC is called Blue, other is called Red and the last one is called Yellow.
Now using AS + PHP I have dynamically loaded 3 Jpeg's ....
myData = new LoadVars()
myData.load("theitems.php")
myData.ref = this
myData.onLoad = function(succes){
if(succes){
for(var i=0; i<this.cant; i++){
this.ref["holder_mc"+i].loadMovie(this["item"+i])
}
} else trace("Error loading data")
}
In the PHP script a query takes the info from a database. In this case there are 3 images to load. Let's say they are called 'Blue.jpg', 'Red.jpg' and 'Yellow.jpg'.
Okay now ideally I need to find someway of sending the "link" with the image. So that when 'Blue.jpg' loads on the stage it knows it's AS needs to be
on (release) {
_root.blue.alpha = 100;
}
and so on for each image....I have tried to explain this as well as I possibly can. I just wanna know if this is possible or if there is a simple way of doing it. I am so stressed by this that I might not even be thinking clearly. I appreciate any replies on the subject!
Button To Load MC Or Load SWF
i am making my site at the moment and was wondering which way i should link to other pages in my site. the site is completely in flash.
1. i could make the buttons to say load movie level 1.
2. or i could make it to say load movie clip.
which is the best option, also i dont know how to load a movie clip onto the main stage. could anyone give me a brief answer to how to do this.
thanks
gurdas
Button -> Load?
can someone tell me how my script must look like if i want a clicked button to start playin' another filmsequenze in the same scene???
Load A MC Into A Button?
hi
i noticed in flash MX you can now give buttons instance names...does anyone know if it's possible to load a MC into a button? thanks!
Button To Load Pdf
Need some help on displaying pdfs.
How is the best way?. Would you place a pdf file the same folder as the html and swf? Then place an action on a button like
on release, getURL and how do I specify where that file is.
Thanks for any help.
Button To Load Another .exe
I am working on a CD project (not web) and using Flash MX2004 Pro.
I need a button to load another .exe (projector) file and I cannot find the way to do this, even though it should be simple. I can link to a website (Go to Website) from the behavior menu.
Any suggestions?
Load XML Using Button
Hi guys, i've got a textbox that loads my XML data nicely.
The problem lies with getting the XML to display upon clicking of a button.
My current Actionscript for the XML to load is
//init TextArea component
myText.html = true;
myText.wordWrap = true;
myText.multiline = true;
myText.label.condenseWhite=true;
//load css
TEST = new TextField.StyleSheet();
TEST.load("test.css");
myText.styleSheet = TEST;
//load in XML
TEST = new XML();
TEST.ignoreWhite = true;
TEST.load("projectors.xml");
TEST.onLoad = function(success)
{
if(success)
{
myText.text = TEST;
}
}
I place this chunk of code within the onrelease handler, but it doesnt show in the textbox.
Sorry if i sound stupid. But i'm a newbie when it comes to flash actionscripting.
Hope some kind soul can help.
Thanx!
Want To Have A Ext Txt Pg Load Without Button
I have a bunch of pages that get loaded when you push a button. I want to have one page (home page) load when the movie starts. Im sure this is easy but ive tryed a million things and none seem to work. I finnally got it to load by using onFrameEnter. I ref'd one of the movies that is there at the begining of the movie. so I said
my_mc.onFrameEnter = function(){
(can't rem exact code here but its ok cuz this part works.) htmltext = htmlPageName
}
this worked to load the page i want on mov start but it kept it there and my button wouldn't over write it (even though they all load to level0.)
There's got to be a simpler way!
Someone make feel silly for over complicating this prob.
please!
James
Load Button Into Mc?
Can I load a button from my library into a movie clip?
Basically i want to have an empty MC on stage, when you click a button it will load a JPG into that MC as well as a button that will close that JPG or unload the MC.
Button To Load Flv
hi, all
long time listener first time caller, i need some help with a button, basically the button needs to load a flv through a video instance not a flv player, I know it sounds a bit cheeky to be asking someone to help but I have tried most avenues and Im still stuck.
thankyou
Load Button
How can load a picture in my swf-file but I need it as a button to go to another frame. Is this possible?
Load More Than 1 Swf From A Button
Hi,
Im a bit frustrated, in my way to understand how to load more than one swf with a single button click.
I have the following:
on(press,release){
_root.createEmptyMovieClip("controlador",999);
_root.controlador.destino = _level1;
_root.controlador.onEnterFrame = function()
{
if (this.destino.getBytesLoaded() == this.destino.getBytesTotal())amp;amp;
this.getBytesLoaded>0;
_level1._y=94;
delete this.onEnterFrame;}
loadMovieNum("ZMSlide-bis.swf",1);
}
The first swf on level 0 is 800x450 so I've created 2 swf's to go on the next level which once loaded cover the same dimensions.
Above code allows ZMSlide-bis.swf (800x356) to show at y=94 and of course now what I want to do is zurpaintop.swf (800x94) to load, in this case at x=0; y=0
I hope you get my idea with this explanation.
It took me already lots of time to reach to the above (I heard it can be done with MC's but I guess that is at this time like maybe going too far, unless i got it RIGHT)
I've tried different code variations to try to add two swf calls but...
Here I am. No success yet. Please help!
Swf With Button To Load Over Itself
I have an swf that loads in another swf into a 'holder' using the following code:
_root.holder.loadMovie("index_load.swf")
stop();
The holder is only part of the swf movie.
When this index_load.swf loads in, it has a button which when pressed i want another swf to take it's place within the original swf holder.
Can't seem to get the right code.
Thanx in advance.
How To Load Jpg By A Button?
hi.
i have a button on the stage and wanted to load a picture by it.
i want to know if this code is ok for that (in the case the pic' file in on the same folder as the swf file)
on (release) {
getURL("001.jgp");
}
thanks a lot
As3 Load Swf By Button
...just beginning with as3 and go nuts. i know its a simple problem, but dont get it, ..whats wrong? just wanna load in externel swf by button...thanx in advance.
my code:
media_btn.addEventListener(MouseEvent.CLICK, media);
function media(Event: MouseEvent) {
var newMedia:Loader = new Loader();
var cont:MovieClip = new MovieClip();
newMedia.load(new URLRequest("http://myweb.ch/newmedia.swf"));
cont.x = 400;
stage.addChild(cont);
cont.addChild(newMedia);
}
Help Button Load URL
Hello I feel really stupid.
I'm doing a series of animated banners for a client and I have to add a URL link. They said to use this code (below) but isn't this code for AS2? I've done everything in AS3 so far.
Code:
on (release) {
getURL (_level0.clickTag, ”_blank”);
}
Load More Than 1 Swf From A Button
Hi,
Im a bit frustrated, in my way to understand how to load more than one swf with a single button click.
I have the following:
on(press,release){
_root.createEmptyMovieClip("controlador",999);
_root.controlador.destino = _level1;
_root.controlador.onEnterFrame = function()
{
if (this.destino.getBytesLoaded() == this.destino.getBytesTotal())amp;amp;
this.getBytesLoaded>0;
_level1._y=94;
delete this.onEnterFrame;}
loadMovieNum("ZMSlide-bis.swf",1);
}
The first swf on level 0 is 800x450 so I've created 2 swf's to go on the next level which once loaded cover the same dimensions.
Above code allows ZMSlide-bis.swf (800x356) to show at y=94 and of course now what I want to do is zurpaintop.swf (800x94) to load, in this case at x=0; y=0
I hope you get my idea with this explanation.
It took me already lots of time to reach to the above (I heard it can be done with MC's but I guess that is at this time like maybe going too far, unless i got it RIGHT)
I've tried different code variations to try to add two swf calls but...
Here I am. No success yet. Please help!
Flash Button Won't Load.
Hello,
I still have a problem with a Flash file that is not loading. It should be on my index page above "Touch me if you dare!":
http://www.geocities.com/schipperke_nl/
On the bark.swf on that page it is loading!:
http://www.geocities.com/schipperke_nl/bark.swf
I don't know how to fix it. Sometimes it is loading for instance in NN6 and suddenly it is gone. It isn't loading in IE6 and Opera5. I used publish settings in Flash, both swf and html, non-loop and percent (I adjusted it to 25% I guess) and I copied the script into the index.html, I also changed the background colour.
Regards,
Marc
Load Swf From A Nested Button, Help
Heres the scoop....I have my main movie going, and I have a mc "frame" loaded onto the maintimeline.
Now, this mc, frame, is made up of buttons...I want to click on one of the buttons in frame and have it load the external movie into the target "mcholder", a blank mc on the maintimeline....I have no trouble making a button loadmovie from the maintimeline, but I cant get it to work from inside the clip, I keep searching my pile of manuals hoping to figure it out, I have tried everything I can think of, I am considering bluffing it by loading the buttons over the top of the mc on the root, but I think there must be a way to do this correctly, if you can help it would be greatly appreciated, if not I will understand and just keep pluggin, seems to be the name of the game with flash! Smile! P.S. running flash 5......thank you for your time,
Flash 5 - Load Exe From Cd Via Button?
I have a client that needs to run exe files via buttons in a flash movie. The movie is an autorun projector on a cd, and the exe files are installers for QuickTime and Acrobat Reader in case the viewer needs to install them. How can I accomplish this with a button action? I see a lot of references to this sort of thing using MX, but I'm using Flash 5.
Any advice???
I Need To Load A Movie For Each Button...someone Please Help
I have asked this so many times but with no answers. I am building a site and with each button that is clicked I want a movieclip to load and then another for each one. How should I go about this? I need to have an example of code...thanks
Matt
How To Load PDF Or EXE Files Using A Button?
Hi!
Been trying to load / link a PDF document or EXE file, from a button, but havent been successful. I have been using getURL command. I think its the wrong function to use, what else can I use to load a PDF file once the button is clicked?
Thanks,
kumsworld.
One Button To Load Different Movies
I want to have 1 Next Button and 1 Previous Button in my movie. I want the next button to load movieB if movieA present, movieC if movieB is present and so on. The reverse should be true for the Previous Button. Can I do this with actionscript with only 2 buttons and 10 movies?
thanks,
Powersolo
Button To Load Two Movies
hi!
Does anyone know how to make a button load 2 movies?
Is this possible?
I am using loadmovie's for my cd rom. The main movie stays at the 'bottom' and second menu loads into level 1. The information loads into level 2.
I want to put a button on my main movie that links directly to a section with the level 1 and 2 movies are loaded...
Any ideas?
Thanks for your time...
How To Load A Command Into A Button
Hi friends,
I'm trying to duplicate a movie clip which include a button.i can duplicate the clip. but i want to add different actions in to the button.( i meen if i duplicate Clip "A" 10 times, i want to add 10 different actions to that each button) can i do this... Please help me.
Regards,
Ariya
Just 2 Load Movie Per Button?
Hi!
I want to make a soundboard with the keyboard, like h=(sound starts)"hello", c=(sound)"can you hear me?".
I want to do it with loadmovie, because i just know this one way to do it. But when I create a button with three loadmovie actions (and unload the other two sounds), just the first two sounds (all are .swf files) work. If I create four sounds this way, the button disappears when I activate the loadmovie action.
Do I need to create more buttons for all letters? (thats 13 buttons in all...)
Or is there a better way to solve this problem (I don't know flash that well, because I haven't got an actionscript book)?
Greetings sugarcube
How To Make A Button Load A Jpg?
Hopefully someone can help me out with this?
I have a movie clip on the main stage that within it has a button that upon rollover, plays a fade in/out animation. This part is fine.
I would like have the movie clip on a layer called movie 1 when clicked on, load a jpg into a blank movieclip on a seperate layer called moviebox. How could I do that?
Thanks in advance!
Preloader To Load Jpg Into MC Thru Button,, Please Help
Hi,
I have to load a jpg into a movie clip by clicking the thumbnails. So each jpg loads into the same image holder, what i want is to set a preloader for that movie clip,,i dont want to specify the image file name,,i would be doing it thru button.
Please someone help me out of this,,please give me full code to do that.
Thanx
xs
Button, Set Var And Load Movie?
hi everyone, formula 1 this weekend, can't wait. but now to the fun stuff...
i have a swf (the main movie) which has four buttons that will each load a swf. when a button is clicked an animation clears the stage then loads the movie. seeing as i don't want to repeat the animation 4 times i have a solution but don't know how to do it (as)...
i thought that if a button is clicked it could set a variable, eg. var = 1 then after the animation has played the load movie function will check for the value of the variable and load the right swf (the button is in an mc).
could someone help me out here (code please).
thanks
protocol
Simple Button -> Load AVI
Hi all,
I hope someone can help me with this simple question:
I'd like to place a button that, when clicked, loads a AVI/mpeg/etc file and plays it. Would be nice to have a button to go back to the first screen also.
I can make a button, and I can insert the video, but I have no idea how to link them together, etc.
Thanks,
Mike
Load Text From A Button? Anyone?
Hi people, I know little basic flash so plaese bear with me
**Im trying to load a txt file into flash from a button(onRelease),
instead of loading it onLoad from the first frame.
Here's the script from the first frame that loads the txt file.
myData = new LoadVars();
myData.onLoad = addItems;
myData.load("ScrollBar_Text.txt");
Any help would be much appreciated as this has confused me.
James.
Button Load Movie Help
hey i was wondering if i have one main index page with a bunch of empty movie clips that have external swf files, including the menu. if i could make it so the menu directs pages in the empty movie clip where the content goes, if so can u tell me how
Load And Unload From Same Button?
I am trying to use one button to load and unload a movie, but I can't find any information on how to script for this. I need the button to know if the movie has been loaded, so if it's clicked again it will unload the movie.
Any help please?
Load Text From A Button?
Hi peoples,
I'm stuck trying to figure out how I can get a button in my movie to load a text box....? Can anyone help me out?
Thanks.
Button Load Question?
Hello,
I'm loading a movie into level 5. I have buttons on level 0 that I would like to be inactive while the movie is loading. Then when the movie is loaded the buttons will become active again. Could somebody tell me if this is possible and if so what is the scripting.
Thank you, Liz
Load Movie With Button
hi i like to load/unload movie when the user click on a button, how can i do that, i try to use the search to find some answers but the search didn't work for me
thanks for your help
Xml To Load On Button Release
have some AC loading xml and creating dynamic content in a scrolling movie clip.. no prob it works.
but i cant seem to get it to do the same thing when i initiate it from a button release.. will only work when the movie first loads.
i dont want it to load when the movie starts. just when someone clicks on a button. since i am going to have it end up loading 6-7 different xml files for differnt sections.
any suggestions please?
stop()
//function loadxmlfile(){
var web_xml = new XML;
web_xml.onLoad = startImages;
web_xml.load("downloads.xml");
web_xml.ignoreWhite = true;
//}
//startImages======================================= ==================
function startImages(success){
if (success == true){
rootNode = web_xml.firstChild;
nodes=rootNode.childNodes;
for (i=0; i<nodes.length; i++){
newClip = _root.downbox_mc.toploader_mc.list_mc.attachMovie( "contenttab","tab"+ i, i);
newClip._x = 5;
newClip._y = newClip._y + 15 + (i*35);
newClip.thumb_mc.loadMovie(nodes[i].attributes.jpegURL);
newClip.desc_txt.text = nodes[i].firstChild.firstChild;
newClip.maker_txt.text = nodes[i].firstChild.nextSibling.firstChild;
newClip.rating_mc.gotoAndStop(nodes[i].firstChild.nextSibling.nextSibling.nextSibling.fi rstChild);
trace(nodes[i].firstChild.nextSibling.nextSibling.nextSibling.fi rstChild);
//for (var i=0; i < nodes.length; ++i){
}
}
}
Using A Go To And Load Movie On 1 Button
hi,
i have been working on a large tutorial for the CMS e107 and the menu system i use is a movie clip that expands on mouse over you can see a demo of it at http://spsy.net/e107tut now heres my delema i want to make it diffrent SWF files so it will be easyer to make updates. i use the code
_root.loadMovie("main2.swf", 0);
to load a diffrent swf and it works fine, BUT i need to make it in some cases load main2.swf and go to say frame 14 how would i pass that command to the new swf or is there no way?
OH i use flash MX 2004 Pro and also have flash MX
Button In Down State On Load
I have a gallery with numbers that when clicked load external jpgs. When the movie loads the first jpg is loaded in the movie clip, i want the number 1 button to be in the gray down state when the movie starts.
The swf:
http://christinedesign.com/buttontest.html
The fla:
http://christinedesign.com/buttontest.fla
Txt File Will Not Load Into Mc Through Button...
I have a problem!
I am building a calendar with daily event balloons. Anyway the balloons are supposed to load text lifes, but all I get is undefined or nothing. I have a button that runs the balloon for the daily event and the following code is what I have in it.
on (release) {
tellTarget (days_events) {
gotoAndPlay (2);
loadVariables("calendar.txt", "");
dayEvent.text = this.TextOne;
}
}
The text file is
"calendar.txt"
&TextOne="Texting, ONE, TWO, THREE..."&
can someone please help!
If you want the .fla or .swf just email me.
How Do I Make A Button Load A .swf?
I made a button and added this under action:
on (release) {
_root.contents.loadMovie("locations.swf");
}
now the "locations.swf" is in the same folder as my button, but it doesn't work, so how do I make "locations.swf" open when I click on the button?
Load Bar W/out Play Button
I need Load Bar With no load button so when its done loading it just plays i dontknow the action script to do this any help? thanx
How To Make LOAD BUTTON?
hii ppl,
I am making a flash game and i need to know how to make a load and save button so that ppl can save a file during the game. I have looked at 2 tutorials on this site, about making a save and load button, but they just dont seem to make any sense. Please help me.
thanks in advance ppl!!!
Load Unload With Same Button
Hi I am new with flash and I am trying to load and unload an external swf file with the same button. I looked in the forum and tutorials, but I only find a way with 2 different buttons.
Thanx
|