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




Attach To A Form



hi,

does anyone know how i can have a button the would let a user search for a file on their computer to upload.

eg. job application form in flash, with an attach resume button.

thanks if you have any advice.



FlashKit > Flash Help > Flash MX
Posted on: 01-14-2003, 01:35 PM


View Complete Forum Thread with Replies

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

Form With Browse And Attach?
Does anyone know how to create a form that will allow a user to browse, attach and then upload a file, in flash??? I looked through the tutorials and wasn't able to find one that pertains can anyone help? Thanks.

How Do You Attach A File From A Flash Form?
Can anyone help with this? I have a form that works fine, but i want the users to be able to attach files to send to the specified email address as attachments. HOw to do it?
thanks.

Nate Ohayon
nate@webaxe.com
http://www.webaxe.com

Attach A File From Within A Flash Form?
i run a film production company and on my website have a form where talent can fill in info and send for us to database. what i want to provide is the option to attach a file from their hard drive, ie. a headshot. we've all seen this in standard html docs.
[like below in this very page!]
can this be done via a button within flash??

any advice or suggestions would be greatly appreciated.

thanks!
Stephen

Attach File In Form Flash
how can atach file in form flash -php
thanks

Mail Form That Allows User To Attach File
I am trying to make a mail form that allows user to a attach file.

I have the mail form part but im wondering how to go about the part of allowing them to attach a file.

ANY SUGGESTIONS?

Create A Form That Will Allow User To Attach A File.
What ups fellow flasher's.

Having a problem!

Can anyone tell me how I would go about creating a form that would allow the user to attach a file ( resume or photo )

which would be then sent to the email address the rest of the info in the form would be sent to...

anybody help me!

thanks in advance

[F8] Flash Form Email - Attach Document
It's easy to find templates to use a Flash form to send an email but allowing the visitor to add an attachment file such as a .jpg is a lot more challenging.

I encountered a thread either at this board or another Flash resource explaining how to do this in Flash 8 but now I can't find it. Does anyone have experience doing this. The email message is handled by a simple PHP mail script.

Thanks,

John

Attach File In Flash Email Form
I don't know if this is even possible, and I have been searching everywhere I can for this with no luck.

Does anyone know if it would be possible to create a standard email form that has an option in it to attach a file from the users computer?

I have my form - that's the easy part, it's the creating the attach file function that I am stumped on - don't know if it's even possible.

volley... anyone, anyone...

How To Have An Attach File Feature In Your Php Mailer Form?
I was just wondering is there any way to add an attach file in your php mailer form? In case any one wanted to send you a file with a message.

Tutorial On How To Attach Images To A Flash Email Form
Hi everybody,

I would like to create an email form (php?) that would allow the attachments of images.

Do any of you know a good tutorial on this, or have any suggestion?

Thank you very much for your help,
Peace,
Cayo Hueso

How To Attach File When Sending A Mail Via Flash Form?
I know, this one has been already ask, but when I put "aatached file" i"ve got all the thread with file attached... See what I mean?

So I ask again..
Here is my pb. I want the user be able to contact me via my flash form and send me a .zip file and a jpg.

Is there a way to do that?
Thx

Tutorial On How To Attach Images To A Flash Email Form
Hi everybody,

I would like to create an email form (php?) that would allow the attachments of images.

Do any of you know a good tutorial on this, or have any suggestion?

Thank you very much for your help,
Peace,
Cayo Hueso

Tutorial On How To Attach Images To A Flash Email Form
Hi everybody,

I would like to create an email form (php?) that would allow the attachments of images.

Do any of you know a good tutorial on this, or have any suggestion?

Thank you very much for your help,
Peace,
Cayo Hueso

Tutorial On How To Attach Images To A Flash Email Form
Hi everybody,

I would like to create an email form (php?) that would allow the attachments of images.

Do any of you know a good tutorial on this, or have any suggestion?

Thank you very much for your help,
Peace,
Cayo Hueso

Detect A-Attach B-Release B-Attach To C ?
Ok here's something that sounds simple.

I have mc A moving slowly across the screen.
I would like to detect it's position x and y, and then at a certain coordinate(let's say x= 200 and y=300) attach mc B(which is just floating around) to attach itself to and follow mc A movement.
And then at some point attach mc B to attach itself to another mc(C).

Is it also possible to attach mc B to a certain pixel (xy) on mc A (or C).

Any ideas

Cheers

Trinitee

Attach, Remove And Re-attach MC's
I've been trying to make three movieclips animate accross the stage. They fade in, move accross and fade out.

I've got it currently set up so that they are attached at runtime - fade in / animate / fade out and are removed. The problem i'm having is getting them to re-attach properly. I can't seem to get the re-attachment loop working correctly.... here's the code as far as i have it:


ActionScript Code:
_global.k = 0;
//max amount ofo clouds allowed on the stage
var cloudsV = 3;
 
    //create an empty clip to house all the clouds
    this.createEmptyMovieClip("CLOUDcontainer", this.getNextHighestDepth());
    //add the clouds
    addCLOUDS()
   
 
    function addCLOUDS(){
 
        do {
            //attaches the clouds from the library
            //possitions them [randomly on the y - within a range]
            //and set the speed randomly
            CLOUDcontainer.attachMovie("cloud", "cloud"+k, k+20)
            CLOUDcontainer["cloud"+k]._x = 900//randRange(50, 900)
            CLOUDcontainer["cloud"+k]._y = randRange(182, 400)
            CLOUDcontainer["cloud"+k].movementV = Math.random(5)+1
           
            k++;
          
        } while (k != cloudsV);
 
       
    }
   
_global.fadeOUT = function(me) {
   
    if(me._alpha>5){
    //simple fade out func
    me._alpha = me._alpha + ((1 - me._alpha)/10);
   
   
     }else {
 
        //removes the cloud after its been faded out
        removeMovieClip(me);
        //deducts one from the amount of clouds on the stage
        --k
        //calls the func to re-attch the clouds
        addCLOUDS()
        
     }
   
}
 
//random number within a range generator//
function randRange(min:Number, max:Number):Number {
    var randomNum:Number = Math.floor(Math.random() * (max - min + 1)) + min;
    return randomNum;
}
//
 



this is on the cloud MC frame 1


ActionScript Code:
this._alpha = 0;
 
this.onEnterFrame = function(){
   
    if(this._alpha<90){
    
    
     this._alpha = this._alpha + ((this._alpha+2)/3);
   
 }
 
    if(this._x>20){
       
        this._x = this._x - (this.movementV);
       
    }
   
    if(this._x<150){
       
        this.gotoAndStop("fadeOUT");
       
    }
 
}
 
stop();


this is on the cloud MC frame "fadeOUT"


ActionScript Code:
this.onEnterFrame = function (){
   
 fadeOUT (this)
 trace(" this = "+this)
 
}



I think its a fairly simple problem - but if anyone can help please let me know, it would be a big help [even if you can suggest a better way of doing this ]

Attach Clips From Xml, Reload Xml Attach Clips Again
i'm trying to figure out how to reset or refresh clips that are dynamically attached to another clip based on records returned through xml.

basically if the user chooses a different filter for the database query I need to be able to refresh a scrolling list made up of clips which will be different based on the filter.

this is what I have for a function. I try to use "attachEmptyMovieClip" but to no avail. any help would be great!


Code:
getAll=function(){


members = getMembers.firstChild.childNodes;

for (var i=0; i<members.length; i++) {
holder.createEmptyMovieClip("new_mc", 10);
item = holder.new_mc.attachMovie("listClip", "listClip" + i, i);
item._y = 23*i;
item.index = i;
trace(item.index);


item.memberName = members[i].attributes.last+", "+members[i].attributes.first;
item.first= members[i].attributes.first;
item.last= members[i].attributes.last;
item.listButton.tabEnabled=false;
item.listButton.onRelease=function(){
_root.triggeredClick="detail";
_root.selectedFirst= members[this._parent.index].attributes.first;
_root.selectedLast= members[this._parent.index].attributes.last;
_root.getDetails();
_root.firstLoad=false;






}
}

}

Flash Form+php(kirupa Tutorial)/messages Sent By Form Show Strange Characters
Flash form+php(kirupa tutorial)/messages sent by form show strange characters - uncorrect stressing for latin languages

I tested flash + php form (http://www.kirupa.com/developer/act...h_php_email.htm) , and noticed message field does not send messages correctly when words stressing is needed (á à , é , í , ó , ão ) ;
I received strange characters when typed stressed words :

á é i ó u ão à pão cão árvore ;

what has to be changed on the code to allow stressing ??

cheers

How To Make A Search Form That Opens A .swf File Form A Text Input ?
I'm working on a CD catalog, that has hundreds of pictures, and i need to create a search form that would open a file by typing its name

please help

Flash Form Question : Sending HTML Form Values...
I'm trying to create a flash form version of an HTML form. It's basically just a voting drop down menu - user chooses "Yes", "no","maybe" from teh drop down and hits a submit buttons which would send the results to a CGI script though POST. I understand the submission aspect, but am not sure how to assign values to the drop down in the same way HTML does:

<option value="yes">
<option value="no>
...

Do I just set the combo box Data array to [yes,no,maybe]? If so, how is it to be sent?

thanks

Form Application, How To Make Not Clickable Thing In Parent Form
I am making a form application and in one form i have some child forms.
When i open (make visible) one of the child objects all the clickable items in the parent form are still working.

how can i "deactivate" them?

i have seen that it happens the same not only with parent-child forms but also with the "brothers" forms, even if the clickable items are not shown.

Pass Variable Form HTML Form To Flash
Hi,

I'm trying to figure out how to send what the user selects from a HTML drop-down menu to the Flash movie.

In this scenario, the user picks an email address from a drop-down list and this is sent to flash as a variable called 'eaddress' which is eventually used in the flash movie to send a message to this address.

Any help is much appreciated!

Glenn

Converting This Basic Login Form To A Flash Form
Last edited by VexxMedia : 2008-02-22 at 10:09.
























posted in wrong forum

Help: Form Mail (CGI-style Email Form) In Flash
Anyone have a nice .FLA file to share so I can get in and play with the AS?

I need to setup a CGI-style email submission (request info, etc) completely within the MX2004 pro environment--for a client.

I'm not completely fluent in AS2.0, but I can run with changing the fields and calls so long as the sample is not too complex.

Much appreciated.

How Do I Set Up Hidden Form Variables For A Flash Form.
Guys, I'm using the flashkit tutorial on "send e-mail in flash the easy way", or something like that. Problem is that I need to set variables for hidden input, but don't know where and how to pass them along to the script?

Thanks

Simple Form Troubleshoot For Form Mail
Hey guys...

I can't get the attached form to work no matter what I do. I have to use my host's form mail script. This file is loaded with a loadmovie command on level 3...if that matters.

thank you so much for your time...this is killing me.

tony

Convert HTML Form Into FLASH Form
http://www.bennyvo.com/test/

can someone look at this site and help me converting html form into flash form? is it possible?

thanks alots.

[F8] Flash Form Pops Up With The Php Url When Submitting Form
Hey guys,

I have a very minor issue here. I've created a contact form that uses a loadVars function to send the information to a php script and then on to my email. I've got everything working perfect except for the fact that when the user clicks submit it pops up a page with the address of my php script in order to run it. This is a bit annoying, so i was wondering if there was anyway to stop this from happening (but still run the script).

At the moment my code is:


PHP Code:



details_lv = new LoadVars ();
details_lv.userName = text2_mc.name_txt.text;
details_lv.userEmail = text2_mc.email_txt.text;
details_lv.userSubject = text2_mc.subject_txt.text;
details_lv.userMessage = text2_mc.message_txt.text;
details_lv.send("contact.php", "POST");





Any help would be appreciated,
Thx

How Can I Attach A Mc To Another Mc?
hey there - i have stupid problem with actionsscript:

actually i have a site where lots of mcs are to attach,
therefore i wrote a mc attachscript like this:

function attach_mc(mc,mctoattach,deepness) {
_root[mctoattach].attachMovie(mc,mc,deepness);
}

so the problem is, it just doesnt work

sometimes i attach an mc:

attach_mc("mc1","",1);

but want attach to it another mc DYNAMICALLY:

atach_mc("mc2","mc1",1);

you get the point?

how should a dynamic _root.attachMovie statement look like
so it works? any ideas or comments?

Attach A PDF?
I have a new web-site that i made completely in flash mx and i have a page for my resume.. i want to put the pdf icon of my resume on my page so that someone can click on it and it will download for them and open up in acrobat reader on their desktop.. How do i make it so that i can place my pdf file on my flash page? Please help me!

Attach A PDF?
I created a site in flash mx and i want to have a page that people can go into and click on a pdf icon and directly download my pdf file to their computer. I don't know how to get it so on my page all you see is the pdf icon.. how do i get the pdf icon onto my page for someone to download.. please help me!

Attach MC
Hey all,

I wanna ask, if it's possible to make that with the action attachmovie all the movie clips don't show up all at once, but each by each from up to down. Thanks for any idea.

Can't Attach
please help!

I can't even seem to attach this file in order to get help!!
I've tried attaching the following types of files (with the designated extensions and their file sizes) and none of them seem to work. I'm not sure how else to save and attach a file in order to get help from the bulletin board... I've tried:
Flash document .fla 20,647 kb
Flash movie .swf 938 kb
Compressed (zipped) folder .zip 939 kb
Is a swi the same thing as a swf? How do I get flash to save in that format? I don't see how attaching a .gif, .jpeg, or .bmp would help see a movie I'm making in flash. Does saving it in those formats work?

Please advise!!

THANK YOU!

Attach MC
Does anyone know how to attach a MC in AS3?
Thanks!

Attach This
Oh man!! This is seemingly basic stuff, but I just can't get it to work. I have a symbol called "Blue Square". which is a movie clip. I have an instance called "Blue". I want to create a second instance at a different x,y location on the stage. So, I try the code below, but nothing appears where Blue2 should be. What am I doing wrong?

G

myPreloadery("x4.jpg",600,20);


function myPreloadery(myMovie,xpos,ypos){

//delete this.Blue2
//this.createEmptyMovieClip("myHolder", 200)
//Blue2.loadMovie(myMovie);
_root.attachMovie("Blue Square","Blue2",200);

Blue2._x=xpos;
Blue2._y=ypos;

Blue2.loadMovie(myMovie);

_root.onEnterFrame = function() {

var myLoadedBytes = Blue2.getBytesLoaded();
var myTotalBytes = Blue2.getBytesTotal()

var myPercent = Math.floor((myLoadedBytes/myTotalBytes)*100);

if (myPercent == 100) {

delete _root.onEnterFrame
trace("Image 100% loaded!!")
trace(Blue2._height)

}
}


};

How To Attach Pdf?
Hi all,

Just wondering if anyone knows how to create a button action that will open a pdf file in a separate window?

Thanks!

How Do I Attach MCs Only Once?
I want to load animated movie clips with a toggle key (a blinking light that indicates something is turned on). Instead, it loads the first frame of the animated clip and when the toggle is shut off, it removes it. I've also tried the gotoAndplay method, and both produce the same "on/off" problem, so I figured I would have more luck with the attach MC.

is there a way to tell the program to detect for that attached movie clip, and if it exists, do not load another one/ or prevent that one from playing?

Attach 2 MCs
How do I attach 2 MCs to each other?

I don't think I want aatachMovieClip because that seems to:

add an instance of the symbol programmatically. The attachMovie() method adds a new instance of the specified symbol as a nested movie clip of the object from which the method is called.

I want to say if MC_A bumps into MC_B, then MC_A should attach itself to MC_B and follow it wherever it goes.

For my fishing game, I've tried just saying when there is a hitTest the second one's _y and _x equal the first one's, but I have some boolean vars that cause probs. The bools say if there is a hitTest, no other MC should have a hitTest.

Is there some special function for this?

Attach MC
Im having some problem attaching a movieclip on stage.
Im having a MovieClip that is laying on stage, and in this movieClip there is 3 other movieClip.
And each movieClip containing a button.
My problem is attaching a movieClip from library on stage when pressing a button.
i do have a movieClip as a container on stage, but nothing happen.
I guess it have something to do with my buttons being inside of a movieClip that is inside of a n other clip?

XML And Attach
Hey all Scripters,

this is the first of some questions i will have to post in the future, due to my lacking programming knowledge.
okay, here we go:

I have a XML picture loader which got the following code

ActionScript Code:
function loadXML(loaded) {
    if (loaded) {
        xmlNode = this.firstChild;
        image = [];
        description = [];
        total = xmlNode.childNodes.length;
        for (i=0; i<total; i++) {
            image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
            description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
        }
        firstImage();
    } else {
        content = "file not loaded!";
    }
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
 
p = 0;
this.onEnterFrame = function() {
    filesize = picture.getBytesTotal();
    loaded = picture.getBytesLoaded();
    preloader._visible = true;
    if (loaded != filesize) {
        preloader.preload_bar._xscale = 100*loaded/filesize;
    } else {
        preloader._visible = false;
        if (picture._alpha<100) {
            picture._alpha += 10;
        }
    }
};
function firstImage() {
    if (loaded == filesize) {
        picture._alpha = 0;
        picture.loadMovie(image[0], 1);
        desc_txt.text = description[0];
        picture_num();
    }
}
function picture_num() {
    current_pos = p+1;
    pos_txt.text = current_pos+" / "+total;
}


some of you might remember the code from the kirupa tutorial.

this script loads a XML file which is formatted this way:

Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<images>
<pic>
<image>test.jpg</image>
<caption>testimage</caption>
</pic>
Now i want to load all pics mentioned in the XML file to be displayed in a stack (a vertical row) and in a frame from the library (via the attachmovie command)

what would I need to do? I'm totally stuck on this.

Thanks a lot in advance guys!

Attach Mc
Could anyone tell me how I can attach a movieclip instead of loading a.jpg from the code below. Any help would be appreciated.


ActionScript Code:
btn39_btn.onRelease = function() {
    loadThenGrow("images/portraits/port_20.jpg");
};
// LoadTheGrow function takes a target image name.
// Targets are hard-coded for the moment because I'm lazy
function loadThenGrow(img) {
    bg_square_mc._parent.holder_mc.removeMovieClip();
    bg_square_mc._parent.createEmptyMovieClip("holder_mc", 1);
    bg_square_mc._parent.holder_mc._visible = false;
    bg_square_mc._parent.holder_mc.onData = function() {
        if (this.getBytesLoaded() == this.getBytesTotal()) {
            this._visible = false;
            // Image fully loaded, grab dimensions and resize
            // background clip
            w = this._width;
            h = this._height;
            bg_square_mc.growTo(w+1, h+1, 10, _root.showHolder);
        }
    };
    bg_square_mc._parent.holder_mc.loadMovie(img);
}
function showHolder() {
    w = bg_square_mc._parent.holder_mc._width;
    h = bg_square_mc._parent.holder_mc._height;
    bg_square_mc._parent.holder_mc._x = bg_square_mc._x-w/2;
    bg_square_mc._parent.holder_mc._y = bg_square_mc._y-h/2;
    bg_square_mc._parent.holder_mc._visible = true;
}

How O Attach A Movie?
I have a problem with attaching the movie. Line looks something like that: attachMovie( "pausa", "p", 100 )
Pausa is the linkage in Library (that should be OK).
When I hit CHECK SYNTAX I GET THIS:

******* You must export your movie as Flash 5 to use this action.
attachMovie( "pausa", "p", 100 );***********

HELP!!

Is It Possible To Attach Files?
Is it possible to attach files in a Flash interface? If not, what's a good alternative?

Attach Movie
Hi

Does anyone know why we choose to use Attach Movie instead of duplicate Movie ? what is the advantage?

Thanks in advance

MKit de HK

Attach Sound
Hello,
Could anyone tell me how to work with sound in flash 5
and how to make a continous background sound
Regards

Attach 2 CGIs To One SWF ? Possible ?
Hey guys, I need help, i'd like to know if there is a possibility to attach 2 CGIs to 1 SWF ?
Well, for one CGI, i use this syntax :
<param name=movie value="http://www.mypage.com/myflash.swf?cgilocation=http://www.mypage.com/mycgi.cgi">

I hope someone could help me ! Many thanks !
See you !

Attach Movie
Hi there,

Ok, I'm new to the multiple swf file idea. I thought it was pretty nice to have all the data in yust one file.......but, offcourse, it got to big.

So I Kicked all the background images in a BGlib.swf and all the pics in a PIClib.swf. Got the TUT about attachMovie and so it worked in my preview mode..........but not online??

Q: do you need loadmovie to use attach?
Q: is it possible to make a big library.swf but load just the MC you need?

oh, the code I used:
placeHolder.loadMovie("library.swf");
placeHolder.attachMovie("bg_ssl", "ssl", 0);

please help......
thanks

Attach Movie
i was wondering if its possible to do this via actionscript:
i have a button and i want to attach a movie from the library in the same position of the button when the button is clicked..and if i duplicate the button in another position it might have the same behaviour...thx

Duplicate Vs Attach
I have a project in which I use the DuplicateMovieClip function. It works, but I think I should have used AttachMovie instead. Is there any way to duplicate a movie into a movieClip? I don't know if I should continue to work with Duplicate or rewrite all the code and switch to Attach. Here are the files:
http://www.trina.net/Test/test2.fla
http://www.trina.net/Test/faces.fla
It is a simple program. I would like to be able to email the created image. To do this I think I need to load the images into a movieClip. Right now they are just duplicated onto the _root level.
Matt

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