Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-05-2008, 09:51 PM   #1
alsvik
www.alsvik.dk
 
Join Date: Mar 2003
Location: Denmark
Posts: 179
Red face Frustrated...

I just spent hours trying to figure out how to pass textinput from flash to PHP on my Nokia N95. I have a working computer/browser/flash solution, but i want to be able to use it on my Nokia N95, so obviously i need to change something to make i work with Flash Lite 2/3?!

This my my working flash actionscript-code:
PHP Code:
on(click){
    
yourtitle write.yourtitle.text;
    
yourtext write.yourtext.text;
    
yourtags write.yourtags.text;
    if (
yourtitle eq "") {
    
write.gb_status.text "Missing: Title";
    } else if (
yourtext eq "") {
    
write.gb_status.text "Missing: Text";
    } else if (
yourtags eq "") {
    
write.gb_status.text "Missing: Tags";
    } else {
    
write.gb_status.text "Please wait...";
    
newEntry = new LoadVars()
    
newEntry.ref this
    newEntry
.submit "Yes" 
    
newEntry.yourtitle yourtitle
    newEntry
.yourtext yourtext 
    newEntry
.yourtags yourtags 
    newEntry
.sendAndLoad("Blog.php?action=write&r="+random(999), newEntry"POST"
    
newEntry.onLoad = function(success){ 
    if(
success){ 
    
write.gb_status.text this.gb_status;
    
read.loadEntries("Default"1);
    
write.yourtitle.text "";
    
write.yourtext.text "";
    
write.yourtags.text "";
            }
        } 
    }

I have also tried with an absolute path to the php-file. Doesn't work
I have tried changing the "on (click)" to "on (press)". Doesn't work
Nothing happens when pressing the "submit" button, that holds this AS.

__________________
,,`,,`,,`,,

www.alsvik.dk
alsvik is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Frustrated. Can't figure this out. torvum ActionScript 3.0 3 12-23-2007 10:44 AM
Extremely Frustrated with Mouse and Centering - Advise Please RedWombat ActionScript 1.0 (and below) 16 09-16-2005 05:18 PM
PHP/Variables.....I'm tired....and frustrated... mmm..pi..3.14.. ActionScript 2.0 15 02-06-2005 06:17 PM
Need assistance, I am so frustrated nasrm ActionScript 1.0 (and below) 2 08-24-2004 07:55 PM
Print Help (I'm really frustrated)... ba-doyn ActionScript 1.0 (and below) 0 01-20-2003 08:09 PM


All times are GMT. The time now is 12:47 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.