Flash unescape vs. php urlencode

Hi, the thing is more or less like this: i am sending from some flash app some text to be stored in a database. before i keep it in the database, in the server side, i escape (or in this case i urlencode, the server script is in php). it stores the escaped or url encoded string before attaching it to a sql sentence, hopefully without "s or 's. now to retrieve it, i get it inside an xml node, so it comes just as it was kept in the database (if i have gotten it in a urlvar it would have come unescaped). when i unescape it ant display it, the spaces are replaced by '+'. i have tried trhis page:
http://meyerweb.com/eric/tools/dencoder/
it seems to get it right either in php format (with +), or with flash (with %20), seems to be equivalent. how do i set them to agree, between the flash and php escapes? are there any alternative ways either in flash or in php to url-encode, or does any of those receive parameters?
tnx

decided to implement my own 'flash_compatible_encode' php escape.
var _array_con:String = "$_conv = array(";
var _cont:Number = 0;
var _char:String;
while (_cont<255) {
    _char = String.fromCharCode(_cont);
    _array_con += "\"" + escape(_char) + "\", ";
    _cont += 1;
_array_con += ");";
trace(_array_con);
// remove the last comma, then use 'ord' in php as search index

Similar Messages

  • I have Just Got Flash Builder 4.5 but I wanted Flash Builder for PHP

    I have Just Got Flash Builder 4.5 and I wanted Flash Builder for PHP do I need to buy the the separate product (Flash Builder for PHP) or can I use the Flash Builder Professional 4.5 that I have just purchased?
    And If I can use the Flash Builder Professional 4.5 what do I need to add to it to get it to work with PHP?

    Trial mode expires prematurely
    http://helpx.adobe.com/x-productkb/global/trial-software-expired-early.html

  • Flash Builder for PHP 4.5.1

    So I own Flash Builder 4.5 and upgraded to Flash Builder for PHP 4.5. Yesterday Adobe released an update for Flash Builder 4.5.1 which includes support for delpying for iOS devices.
    So my question is how soon is Zend going to provide and update to Flash Builder for PHP? Past experience tells me it is going to take a while. Can any Adobe/Zend engineers confirm a time line when the upgrade will happen?
    Also if upgrade is not a possibility, is there a Zend PDT Plugin for Adobe Flash Builder 4.5?

    Hello there,
    Flash Builder for PHP is expected to be released very soon, I can confirm it's a matter of week or two. I suggest to wait until the official release is out. 
    Best regards,
    Roy

  • How can I use flash builder for php?

    Hello! I saw a flash banner maker website http://ideal-banners.com/. My question that how can I use a flash builder for php?

    Hi Michael,
    Thanks for your two helpful replies.  The article by V. Brossier looks very useful, and I managed to use SDK 3.3 with FB.  But I had misdiagnosed my problem.  The problem was that the compiler was targetting Flash Player 9 instead of 10.  I've managed to fix that.
    Thanks again,
    Francisco

  • Flash cs3 and php problem (system error)

    Hi All,
    Been checking out a free utility, called Tell A Friend - followed the instructions to a t but still getting system error.
    Here is the php code:
    <?php
    $to = ($_POST['friend']);
    $link = ($_POST['link']);
    $subject = "Tell a friend";
    $message = "Your friend ";
    $message .= $_POST['name'] . " wants advice you the following link: ".$link;
    $headers = "My WebSite Name";
    if(@mail($to, $subject, $message, $headers))
    echo "answer=ok";
    else
    echo "answer=error";
    ?>
    The main swf has a main.as attached:
    * Flash Tell A Friend
    * http://www.FlepStudio.org        
    * Author: Filippo Lughi          
    * version 1.0                      
    package
    import flash.display.*;
    import flash.events.*;
    import flash.utils.*;
    import flash.external.*;
    import flash.net.*;
    public class main extends MovieClip
      private const PHP_URL:String="sendMail.php";
      private var checker:CheckEmail;
      private var timer:Timer;
      public function main()
       addEventListener(Event.ADDED_TO_STAGE,init);
      private function init(evt:Event):void
       removeEventListener(Event.ADDED_TO_STAGE,init);
       stage.frameRate=31;
       checker= new CheckEmail();
       addInputListener();
       addSendListener();
      private function addInputListener():void
       clip_mc.name_txt.background=true;
       clip_mc.name_txt.backgroundColor=0x999999;
       clip_mc.name_txt.addEventListener(FocusEvent.FOCUS_IN,onFocusIn);
       clip_mc.name_txt.addEventListener(FocusEvent.FOCUS_OUT,onFocusOut);
       clip_mc.email_txt.background=true;
       clip_mc.email_txt.backgroundColor=0x999999;
       clip_mc.email_txt.addEventListener(FocusEvent.FOCUS_IN,onFocusIn);
       clip_mc.email_txt.addEventListener(FocusEvent.FOCUS_OUT,onFocusOut);
      private function onFocusIn(evt:Event):void
       evt.target.background=true;
       evt.target.backgroundColor=0xFFFFFF;
      private function onFocusOut(evt:Event):void
       evt.target.backgroundColor=0x999999;
      private function addSendListener():void
       clip_mc.send_mc.mouseChildren=false;
       clip_mc.send_mc.buttonMode=true;
       clip_mc.send_mc.addEventListener(MouseEvent.MOUSE_DOWN,onSendDown);
      private function onSendDown(evt:MouseEvent):void
       if(clip_mc.name_txt.text!="")
        if(checker.initCheck(clip_mc.email_txt.text))
         sendEmail();
        else
         displayPhrase("Invalid Email");
       else
        displayPhrase("Invalid name");
      private function sendEmail():void
       clip_mc.send_mc.mouseEnabled=false;
       var variables:URLVariables=new URLVariables();
       variables.name=clip_mc.name_txt.text;
       variables.friend=clip_mc.email_txt.text;
       variables.link=ExternalInterface.call('window.location.href.toString');
       var request:URLRequest=new URLRequest();
       request.url=PHP_URL;
       request.method=URLRequestMethod.POST;
       request.data=variables;
       var loader:URLLoader=new URLLoader();
       loader.dataFormat=URLLoaderDataFormat.VARIABLES;
       loader.addEventListener(Event.COMPLETE,onMessageSent);
       try
        loader.load(request);
       catch (error:Error)
        trace('Unable to load the document.');
      private function onMessageSent(evt:Event):void
       var vars:URLVariables=new URLVariables(evt.target.data);
       if(vars.answer=='ok')
        displayPhrase("Message Sent!");
       else
        displayPhrase("System Error!");
       clip_mc.send_mc.mouseEnabled=true;
       clip_mc.name_txt.text="";
       clip_mc.email_txt.text="";
      private function displayPhrase(s:String):void
       clip_mc.display_txt.text=s;
       resetPhrase();
      private function resetPhrase():void
       timer=new Timer(1500,1);
       timer.addEventListener(TimerEvent.TIMER,hidePhrase);
       timer.start();
      private function hidePhrase(evt:TimerEvent):void
       clip_mc.display_txt.text="";
    Any help appreciated. This is a great viral marketing tool, when it ever works
    Kind Regards,
    Boxing Boom

    Never seen such an error, but if it's in the status bar of the browser then it shouldn't be Flash problem. You can check what's happening in your swf by creating a dynamic text field and setting it's text in every major action, that is: requesting PHP and getting back response, to what's just happened.
    So, on the Flash side you can see whether the browser error stops the PHP script and immobilizes further actions.
    What I'd do is create a new Flash file and PHP file and just send 1 variable to PHP, change it somehow and send it back to Flash and print it in a text field. That way you can check whether it's the method you're using to request PHP or just PHP or something else. Step by step adding complexity and checking on which of these steps the error occurs.
    I wish you good luck.
    Ps. It's probably a very rookie problem, we just don't know the source.

  • Flash video in php page

    Hi
    i insert flash video to php page and it's ok but.
    i want to ask if i could i insert any video to it liek avi or
    mpg or any and it will be converted when upload automatically
    thanks in advance.

    macnux wrote:
    > Hi
    > i insert flash video to php page and it's ok but.
    > i want to ask if i could i insert any video to it liek
    avi or mpg or any and it will be converted when upload
    automatically
    >
    > thanks in advance.
    >
    It can be done, since youtube does it. But that requires
    heavy-duty programming and I suspect some
    special server components (maybe Flash Server must be
    installed too or something).
    In any case that's not something you can do with Dreamweaver
    or without a thorough knowledge of
    server-side programming.
    An alternative is to create a swf file in Flash that will
    import linked media. You can link
    quicktime videos dynamically and play them in the swf.
    I'm not sure what other video formats are supported. You
    might want to look into the Flash Media
    Player component.
    seb ( [email protected])
    http://webtrans1.com | high-end web
    design
    An Ingenious WebSite Builder:
    http://sitelander.com

  • Dreamweaver and Flash Builder for PHP

    I have created a php database in Dreamweaver, can this database be imported or converted to Flash Builder for PHP?

    MySQL has nothing to do with Dreamweaver or any other development software. It's a DBMS (which stands for DataBase Management System). More simply, it's a way to store data. Other DBMS are PostgreSQL, Oracle, and so on..., as mentionned above.
    To use your existing MySQL database with FlashBuilder for PHP, simply specify where you store your PHP services on your computer when you create your project. Then FB will attempt to connect to MySQL with the help of your PHP code.
    And you'll be able to retrieve your data in the brand new Spark Datagrids !
    Hope it'll help.
    Julien.

  • Issue: Flash radio buttons & Php form

    I have a flash form which all of the fields are sending
    correctly
    through the php code. The flash radio buttons I added with
    the
    groupname == topic, doesnt send with the rest of the
    information that is being sent to the email. My question is
    how do I get
    the flash radio button info to submit with the rest of the
    form.
    The code for the send button on my flash file:
    on (release) {
    // send variables in form movieclip (the textfields)
    // to email PHP page which will send the mail
    form.loadVariables("form.php", "POST");
    ===============================================
    ===============================================
    Form.php:
    <?php
    $to = "[email protected]";
    $subject = "Contact Page Information for Today";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $message .= "\n\n";
    $message .= "Subject: " . $_POST["topic"] . "\r\n";
    $message .= "Email: " . $_POST["email"] . "\r\n";
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "Address: " . $_POST["address"] . "\r\n";
    $message .= "City: " . $_POST["city"] . "\r\n";
    $message .= "State: " . $_POST["state"] . "\r\n";
    $message .= "Zip Code: " . $_POST["zip"] . "\r\n";
    $message .= "Phone: " . $_POST["phone"] . "\r\n\n";
    $message .= "Message: " . $_POST["message"] . "\r\n";
    mail($to, $subject, $message, $headers);
    ?>
    Text

    Do you mean like this:
    <?php
    var topic;
    var listenerObject:Object = new Object();
    listenerObject.click = function(eventObj:Object) {
    topic = eventObj.target.data;
    trace(topic)
    groupTopic1_rb.addEventListener("click", listenerObject);
    groupTopic2_rb.addEventListener("click", listenerObject);
    groupTopic3_rb.addEventListener("click", listenerObject);
    groupTopic4_rb.addEventListener("click", listenerObject);
    groupTopic5_rb.addEventListener("click", listenerObject);
    groupTopic6_rb.addEventListener("click", listenerObject);
    groupTopic7_rb.addEventListener("click", listenerObject);
    groupTopic8_rb.addEventListener("click", listenerObject);
    groupTopic9_rb.addEventListener("click", listenerObject);
    groupTopic10_rb.addEventListener("click", listenerObject);
    groupTopic11_rb.addEventListener("click", listenerObject);
    groupTopic12_rb.addEventListener("click", listenerObject);
    groupTopic13_rb.addEventListener("click", listenerObject);
    groupTopic14_rb.addEventListener("click", listenerObject);
    $to = "[email protected]";
    $subject = "Contact Page Information for Hope Today";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $message .= "\n\n";
    $message .= "Subject: " . $_POST["topic"] . "\r\n";
    $message .= "Email: " . $_POST["email"] . "\r\n";
    $message .= "Name: " . $_POST["name"] . "\r\n";
    $message .= "Address: " . $_POST["address"] . "\r\n";
    $message .= "City: " . $_POST["city"] . "\r\n";
    $message .= "State: " . $_POST["state"] . "\r\n";
    $message .= "Zip Code: " . $_POST["zip"] . "\r\n";
    $message .= "Phone: " . $_POST["phone"] . "\r\n\n";
    $message .= "Message: " . $_POST["message"] . "\r\n";
    mail($to, $subject, $message, $headers);
    ?>

  • Issue with getting flash variables into PHP to mail

    Hi there,
    Is anyone able to take a look at this forum post and assist
    please?
    http://www.actionscript.org/forums/showthread.php3?t=193471
    Really at a loose end on this one!
    Many thanks.

    Hey Nasia.A.
    Sending information from flash to php, then from php to
    flash is simple once you get the hang of it.
    Tut1
    tut2
    There are thousands of tutorials on the internet. Just google
    -> send data to php from flash or vice versa.
    Good luck!

  • Flash Builder resets php include_path?

    Hi,
    using the data services of flash builder 4, I run into the following problem:
    we gathered all our include directories in one php file, that sets the include_path (ini_set('include_path')). The service classes include that file as a very first statement so the include_path points to several directories spread over the project, that contain further code.
    the benefit of this is that we do not need to bother about any directory trees when putting together our project. Due to the complexity of the project this still seems to be a good idea...but nevertheless...
    Now when I call a service via the Fb context menu in order to configure the returned data types I always get error messages saying some files could not be found. The error message dumps the include_path var as well and for some reasons all it contains at that point are the pathes to MAMP/php and the ZendFramework/library path.
    I dumped the include_path at several locations to check. Looks fine in the services when I dump right behind the include statement for the paths. But in any other class/function it seems to be reset.
    Calling the services over amfphp browser seems to work fine.
    I might be just pretty blind, so please make me see
    THX!

    Not sure what could be the cause of this failure, we will need you complete setup to reproduce, if it is Ok with you.
    If you would like do debug what could be the cause, let me explain how the amf calls are made from Flash Builder.
    You pointed out that Flash Builder is changing the include_path, but that cannot be done by Flash Builder directly.
    The way it works is that whenever you try using PHP Service from the Data Service view, Flash Builder first installs Zend Framework on your server if it is not present already. Then it puts gateway.php and amf_config.ini files in the output folder of the flex project on your server.
    Now this gateway.php actually becomes the endpoint to make amf requests, and can be used by Flash Builder or any other client like a Flex application running on Flash player.
    The gateway.php file does contain a modification of include_path, where it adds the Zend library in the path, but it does not remove anything.
    You make try to dump the path in gateway.php file to debug the cause of this issue.
    Thanks,
    - Gaurav

  • Flash Builder Mobile PHP Publishing

    I have zend server community edition running on my Mac. I have created a Flex Mobile and PHP Project using localhost as the Root URL and htdocs as the Web Root. After that, I have connected to a couple of php dataservices to my SQL database in Zend and added my components to view and change the data.
    When I test the app locally, everything runs perfectly, which is awesome. However, the time has come to publish to my mobile phone and I would like to connect the app to a mirrored database on my web server so that I may use it online rather than local and this is where I cannot get it to work. I assume I would have to change the php database connection properties, but no luck.
    Does anyone know what settings/code I must adjust in order to get my app to talk to my sql database hosted online?

    Hello Skant,
    I did get Flash Builder working using a remote database, but used a HTTPService request instead on cofiguring Zend. It looked like this:
    <s:HTTPService id="saveHole1Score" url="http://yourdomain.com/your.php" useProxy="false" method="POST">
                                  <s:request xmlns="">
                      <scorecard_id>{scorecard_id.text}</scorecard_id>
                      <hole1post>{hole1post.text}</hole1post>
                 </s:request>
    </s:HTTPService>
    However, I eventually gave up on Flash Builder as a method to build my mobile app because the published version for iOS of my app was 29MB, which is too large to download over the cellular network. This was problematice for the type of app I was creating. Plus with the announcement of the lack of ongoing support for Flash Builder was the cherry on top. I have since switched to HTML5 and Phonegap to publish my apps. So far it has made a better product and significantly lighter.
    Good Luck with your app.

  • Flash files using php

    I'm working on a site using php. When I place flash files in
    the page, I can view it with no problems. It's another story when I
    load everything up on a server. All I see is a white box where the
    flash movie is. I'm using Dreamweaver CS3 on a MacBook Pro. Any
    advice I can get would be much appreciated.

    You have a number of problems on that page.
    1. The Flash in the banner appears but the Flash in the body
    does not. I'm
    not sure why, but will examine further.
    2. The menu will fall behind the Flash element in the body
    when it expands.
    This will render your site non-navigable.
    3. Because you have used all-javascript menus, your site will
    not be
    spiderable by search engines, since they cannot find the
    links in the
    submenus when it is embedded in the javascript.
    4. Also, because of those menus, you render your page
    non-accessable, since
    screen assistive devices do not render javascript. In
    addition, anyone
    coming to your site with javascript disabled will not be able
    to navigate
    it.
    You can maybe deal with #1 by reading this -
    All Active content on a page will always rise to the top, so
    to speak,
    including Flash, certain form elements, Java applets, and
    Active X controls.
    This means that each of these will poke through layers. There
    is not a good
    cross-browser/platform reliable way to solve this issue, but
    if you can be
    confident in your visitors using IE 5+ or NN6+, then you can
    use the Flash
    wmode parameter (however, Safari does not support this
    properly!).
    Adobe articles:
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15523
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_14201
    As for the rest, you should always have redundant, plain text
    navigation
    available on your site (or a plain text link to a sitemap
    page). But there
    are ways to do those menus where none of this is a problem -
    I'd rather see
    you use those methods than this one (which is also a ton of
    code).
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "jeremygouine" <[email protected]> wrote in
    message
    news:[email protected]...
    > Here is the link:
    >
    >
    http://glowingtreeproductions.com/BCS/media.php
    >
    > This is not the particular page it is going on, but it
    should suffice for
    > the
    > moment. I have a friend who got it working, but he said
    he didn't do
    > anything
    > I wasn't already doing. So, I have no clue. The biggest
    problem for me
    > is I
    > can't get any Flash files to work when they are uploaded
    on my server. I
    > appreciate all the help I can get.
    >

  • Flash Video in PHP page wont load/play.

    I have a page that I have inserted a Flash Video into using
    the INSERT > MEDIA > FLASH VIDEO tool. I have done this
    before with success and no problem.
    I have been reading other threads on this forum and have
    noted other things to be careful of. In particular, I have already
    turned off the option to "Prompt Users to Download. . . " and this
    solved the first problem I had. I have also checked to make sure
    that I have the Scripts folder in the proper directory. The odd
    part is that it has always made that folder before, but it is not
    making that folder for me. I copied one from another project I did
    and put it in the directory, but it still does not work.
    Does this have to do with the fact that it is on a PHP
    include page in a CSS container? Any thoughts or suggestions would
    be appreciated.
    Thanks!

    >
    > I have opened the access restrictions on the page so it
    is open for viewing
    > at:
    http://mstproductions.com/customer_data/accela.php
    Home « Error 404
    Error 404
    Oops! It look's like you might be lost. :(
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Flash header in PHP includes module site issues

    Is there any way to get my flash header not to reload
    eachtime in php inludes?
    This is a php module website with music controller in flash
    header. I don't like the music restarting everytime I click on a
    link in the page.
    I hear frames is not a good idea.
    any ideas?
    below is the website mock
    http://www.point1music.com/test
    Jeff
    Website in
    question

    The requested URL
    /clients/One_Pensacola/Scripts/AC_RunActiveContent.js was
    not found on this server.
    You must upload the Scripts folder that DW creates when you
    insert the Flash
    header.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "MelBLott" <[email protected]> wrote in
    message
    news:gfs7ov$1no$[email protected]..
    > I've created a flash header located below the menu bar.
    The menu bar is
    > within
    > an include. I've built a few sites with this same basic
    format, but only
    > this
    > time when publishing to the live site, the flash file
    will not appear. I
    > can
    > test in browser and it works and once published I can
    right click and view
    > source. It is including the file in the code, but it
    just will not play.
    > I've
    > tested the flash file separately from the html page and
    it's working fine
    > by
    > itself. Any suggestions as to what I've done wrong? The
    file has a
    > transparent
    > background so that the css built background tiling shows
    through in areas
    > of
    > the flash file. I didn't know if this might've affected
    it. Here is the
    > link to
    > the test site/page -
    >
    http://marketingallianceinc.com/clients/One_Pensacola/plans_test.php.
    >

  • Flash banners and PHP...

    Hey Flash ppl... LOL, I have a nice flash banner I did for my
    gaming clans website. The issue is that it reload everytime anyone
    goes to a new topic, post something or does anything that reloads
    the page. Is there a script out there that I can place to get
    around that? I know PHP is different then HTML... so I don't know
    if there's a work around? Any help would be appreciated! Thanks!
    http://www.shadowops.org/Forums/index.php

    Hi James,
    That is one awesome looking banner! Good job!. I think you
    hit the key about multiple platforms making one single page. You
    noticed that when the page reloaded the flash reloads. This is
    normal. One trick to get around that is by using a PHP equivalent
    of an <IFRAME></IFRAME> in your php code. You develop a
    way to reload the Iframe rather than the whole page. Or you could
    go back to the older days and use the <FRAME> tag and only
    reload the frame element.
    Another way would be to develop an entire site in flash and
    you only play the elements that need data to change. I am sure
    there are other ways but this is a quick way out.
    Again, great job on the banner!
    Doug

Maybe you are looking for

  • I have CS6 on one computer and CC on another, how do I change CS6 to CC

    I have Computer 1 loaded with CS6. I have Computer 2 with CC and membership loaded. How can I change Computer 1 with CS6 to join Computer 2 with the CC membership?

  • Include

    hi guyz, when include is included  in a program iam getting an error saying 'report or program already exists'. plz advise regards

  • Import iPhoto library into Bridge (in mac Elements )

    Hi, I am looking for a way to bring my iPhoto library into Elements 8 for Mac so that I can browse them in Bridge. The only way I saw to do that here in this forum is 'in PSE 8.0 File>Open. From the side panel of the "Open" window, select Photos unde

  • Problem using external mic with imovie

    My internal mic does not work; Ihave bought a logitech external mic that shows up as working but imovie does not record my voice.

  • [SOLVED] Set keyboard property through the console

    Hi, in the GNOME Keyboard properties, there is the option "Key presses repeat when key is held down" option. How can I set this option without GNOME, Any Xorg pros here that can help me? Maybe with setxkbmap? But I don't see what option I must use th