| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9
Comments:
<0> i have recip.text = email; which si obviosuly not working <1> trace(email); <0> what? <1> You want to find out if a variable exists right? <0> yea <0> so i put that in <0> now where does it tell me? <1> in your output window in flash <1> traces will not show up in production <0> well it will definately not have it in the output window as it is loading it from a php file <0> what would be the code to set a textbox named recip to the email variable loaded in? <0> eddie@strongdesigns.com <0> oops <0> thats the email it's sending <2> MrRad -> it is comming from a php scrip <1> does this work?: recip.text = "test data";
<3> .onLoad = function(s) { if(s) { recip.text = this.email; } } <3> ? usin loadvars? <0> nope <0> 1 sec <3> bummer <1> turbano: it will be way easier to take the html elements out on the PHP side of things before flash gets the data <0> what sort of text box does it have to be? or should it work for all of them <0> well it's only sending one thing <0> and its nota big deal <0> well,, getting it done is <1> DocSaintl: one thing that confused me for a while is the difference of ***igning a dynamic text field a variable and ***igning it an instance name <1> which are you doing? <0> well both, i want it to take the variable from the php file, and put it as the text and also ***ign it as the variable the text box is set as <0> basically to help the user, it has a preset email there <0> see what i mean? <0> and then the user sends the form, the preset email is sent because it was automatically set. <1> To best trouble shoot this, are you sure flash recieves the data from the php? <0> nope, and i dont know how to test it because i dont know how to set anything to the variable <0> to show it persay <0> the instance name of the textbox is recip <1> well <0> it's a single line dynamic text <1> try this to make sure you are sending data to your flash text field properly first: <1> try to statically ***ign the text field <0> myVars = new LoadVars();myVars.load("email.php");myVars.email;recip.text = "test data";stop(); <1> myTxtField.text = "hello"; <0> thats what i have under actions, except there are linebreaks <0> just so i wouldn't spam a buncha lines here <1> sure <1> and this work? <0> no <0> it doesn't show anything <4> god damn <4> finally <1> what happens if you copy the line with recip.text = "test data";stop(); <1> <1> myTxtField. out of the function <1> oops <1> recip.text = "test data"; <0> wait, what do you want me to do? <1> never mind I thought you were doing it another way <0> well theres somethin now <0> _level0.form.recip <0> it says that <1> good <1> http://pastebin.sekati.com <1> put your code there <0> from which part? <1> or just the portion you are trying to figure out <0> the flash or the php? <1> I don't know. What ever you want me to see. <1> the flash <0> http://pastebin.sekati.com/?id=Anonymous@fa600-f6afda4-t <1> what is the url for the mail.php <0> www.strongdesigns.com/mail.php <1> is your mail.php supposed to take any arguments? <0> i dont understand what you mean <1> for example if you were normally going to call the mail.php page from a browser would you put anything like this in: mail.php?user=somebody&email=jimmy@hotmail.com <3> doc http://pastebin.sekati.com/?id=Anonymous@fa600-f6afda4-t <1> nice <3> unless you're trying to send email out - but i thought you said 'reading' it
<0> oh yea, when you click a link it goes mail.php?mail=x@x.com <0> yea it is sending mail out <0> and so this is just autosetting the recipient <1> You need to change that load to a sendAndLoad <0> no because the sending is already taken care of <0> it's in a separate script and different part <0> of the flash file that is <3> sounds hoaky - sounds like its already known but... ***uming you need to bring the email back into flash, from php - that would do it <1> well there's your problem <0> ~sigH~ no it shouldn't be a problem because it works fine if i undo the whole recipient thing <0> i'm using a script that had a predetermined recipient that the user never sees <3> ahhh <1> from flash you need to send a request with arguments and wait for the response <0> so how it used to work is that the subject and content would be entered in flash then sent to php <0> then php would sendo ut the email <0> but what i'm doing is that when they click on a contact it auto loads their email into the flash <3> ya - so ... make a loadvars obj, ***ign your onLoad handler ... call a load to it <3> pastebin url should do just that <0> then the flash sends the stuff to the final php file for the email to be sent <3> mm - why dont you just include the email with FlashVars when you initialize the flash obj/emb in browser? <3> and just use it for the final send? <3> :/ <0> i dont understand what you mean <0> you open staff.php and theres a list of people, you click one, then it send you to mail.php with a ?mail=x@x.com at the end to determine recipient <0> and in that mail.php file is the embedded flash email movie <0> www.strongdesigns.com/staff.php <3> <object width=....><param name="FlashVars" value="&sendto="<?=$email?>" /> .....<embed FlashVars="...samething...".../></embed></object> <3> in your html that holds the flash object <3> now you have email on _root.sendto <3> or you could do way you are doing <3> with previous script :/ <3> maybe add a play() to continue the playback after load <3> within the if(complete) statement <0> you're being very indescriptive and it's confusing me :-\ <0> did you go and look at how it is laid out? <1> AFK <3> no, i'm going by what you're saying - and giving alternative approach <3> either is fine <0> can you pelase look at it <0> please* <3> look at what? <0> that way it might make more sense as i might not be explaining it correctly <0> www.strongdesigns.com/staff.php <3> and.. <4> shiznit <4> www.anonybliss.com/eraser.html <4> look choppy to you? <0> click on a contact <3> heh <3> did you type _level0.form.recip in there? <0> what do you mean? <3> or you set .text to "_level0.form.recip"; instead of _level0.form.recip? <3> in the form <3> TO: _level0.form.recip <3> :/ <0> 1 seci ll show u the code <0> recip.text = myVars.email; <0> thats what i have setting recip <0> so something is wrong with the var that it's receiving or something <0> because flash is setting that based on what it recieves, it should be putting the ?who@where.com you see after the php name <5> yo <5> question <3> heh <4> ****in flash <4> 1 thing after another <0> give it a good donkey punch, always works for me ;-) <3> <param name="FlashVars" value="&recip="<?=$_GET['mail']>" /> <3> in your html <3> in object and in embed of flash element <3> .... <0> okay 1 sec <1> DocSaintl: I was pulled away and I haven't been able to catch up with you and SHiZNiT's conversation are you still lost? <3> at your form ..... <0> might be at a resolution
Return to
#flash or Go to some related
logs:
eromaxx #nhl #flash #politics #nhl #windows #delphi #politics #gentoo #unix
|
|