Encoding strings into flash

I have an asp page which sends values into flash using
&var=value
if the value has an & symbol in it then it fails, so i
use server.urlencode
in the asp page to change the & symbol in the string.
This usually works
well, but i now have problems if the string contains any
unicode characters,
which when urlencoded do not get correctly displayed in
flash.
I hope that explains the problem, any pointers would be
greatly appreciated.

It doesn't always work, depending on what the character was
in the first
place
"Marghoob Sulemaan" <[email protected]>
wrote in message
news:eoqer1$eg$[email protected]..
> hi dave...
> did you try
unscape ie.
>
> var s = "%26"
> trace(unescape(s))

Similar Messages

  • Hi, How to save UTF-8 encoded string into Mysql DB with jdbc?

    Mysql doesn't support UTF-8, right? is there any way we can bridge it?

    Hi,
    By using the latest versions of MySql and mm mysql jdbc drivers you can
    read and write unicode characters from/into MySql database. You can download
    mm.mysql jdbc driver from http://mmmysql.sourceforge.net/
    We haven't tested this jdbc driver officially.
    Hope this helps.
    Good Luck.
    Gayam.Srinivasa Reddy
    Developer Technical Support
    Sun Micro Systems
    http://www.sun.com/developers/support/

  • Loading UTF-8 String into CLOB column

    Hello!
    I am trying to load UTF-8 encoded strings into a CLOB column in an Oracle 9i database from VB.Net using ODP.Net (9.2.0.414).
    The strings are XML snippets (Microsoft WordML to be precise). Each corresponds to a record which already exists in the database, therefore I do an update to add the UTF-8 string.
    Some of the XML snippets contain characters which once inserted look like upside down question marks (characters represented by 0x92 and 0x96 for example end up as 0xBF once in the database).
    Setting breakpoints in Visual Studio, I can watch the string values in the 'Locals' window and they appear correct (in fact I can copy from the 'Locals' window and using a tool such as TOAD can paste the strings into the database successfully). Pasting through TOAD, the characters are properly represented in the database (ie 0x92 is 0x92).
    I've tried a number of approaches with no luck.
    Any advice/suggestion are most welcome. Thanks!
    Here is my code:
    strConnectionString = ConfigurationSettings.AppSettings.Item("ConnectionString")
    strComponentsTable = ConfigurationSettings.AppSettings.Item("ComponentsTable")
    objConnection = New OracleConnection(strConnectionString)
    objCommand = objConnection.CreateCommand()
    objCommand.CommandType = CommandType.Text
    objCommand.CommandText = "UPDATE " & strComponentsTable & " SET TEMPLATE_COMPONENT_CONTENT = :p_content WHERE TEMPLATE_COMPONENT_ID = :p_id"
    objConnection.Open()
    For Each strId In objComponents.Keys
    strContent = objComponents.Item(strId)
    objCommand.Parameters.Clear()
    objParameter = objCommand.CreateParameter()
    objParameter.ParameterName = "p_content"
    objParameter.OracleDbType = OracleDbType.Clob
    objParameter.Direction = ParameterDirection.Input
    objParameter.Value = strContent
    objCommand.Parameters.Add(objParameter)
    objParameter = objCommand.CreateParameter()
    objParameter.ParameterName = "p_id"
    objParameter.OracleDbType = OracleDbType.Int32
    objParameter.Direction = ParameterDirection.Input
    objParameter.Value = CInt(strId)
    objCommand.Parameters.Add(objParameter)
    intResult = objCommand.ExecuteNonQuery()
    Next

    Some further research has revealed the following:
    Two of the characters I provided as examples of not being stored properly in the database are (in Unicode) U+2013 and U=2019. These characters, encoded as UTF-8 should each be three bytes (0xE2 80 93 and 0xE2 80 99 respectively). Sent via VB.Net and ODP.Net they both end up in the database as one byte each (0xBF). Copy and Pasted via TOAD they end up as one byte each (0x92 and 0x96 respectively).
    The NLS settings on the server side are:
    NLS_CHARACTERSET = WE8ISO8859P1
    NLS_NCHAR_CHARACTERSET = AL16UTF16
    I have tried using both CLOB and NCLOB column with the results being identical.
    Not sure what else to try...

  • Convert the string-encoded uid into its original object form

    I have written the uid string into a database and when I need it again in my code I need to rebuild the UID from the string in the db, as it was before.
    Does somebody know how this can be done with java?
    Thx in advance

    I have written the uid string into a database and when I need it again in my code I need to rebuild the UID from the string in the db, as it was before.
    Does somebody know how this can be done with java?
    Thx in advance

  • How to put a String into a byte array

    How can i put a String into a byte array byte[]. So that i can send it to the serial port for output to an LCD display. Cheers David

    javadocs for String
    getBytes
    public byte[] getBytes()
    Encodes this String into a sequence of bytes using the platform's default charset, storing the result into a new byte array.
    Returns:
    The resultant byte arraySince:
    JDK1.1

  • Convert XML string into XML

    Hi All,
    Can you please let me know for any sample code in xslt/java mapping for converting XML string into XML. We use SAP Pi 7.0
    My XML string starts like this
    <?xml version="1.0" encoding="UTF-8" ?> 
    - <ns0:MT_ReceiverFileStructure <namespace>"><Output><?xml version="1.0" encoding="ISO-8859-9"?><?xml-stylesheet type="text/xsl" href="<xsl>"?><Tarih_Date Tarih="11.09.2014" Date="09/11/2014>
       Thanks,
       Pavithra

    Thanks Praveen. It worked.
    However, the xml i have is an extract from a exchange rate URL and it has the reference to a xsl in it as below
    <?xml version="1.0" encoding="ISO-8859-9"?><?xml-stylesheet type="text/xsl" href="<ABC.xsl>"?>.
    So there is an error in sxmb_moni. Is it possible to remove this.

  • Embedding HTML Into Flash?

    Let me start with the fact I only know some AS2. AS3 tends to go over my head. So I'm using Flash 8
    If I need FlashCS5 to do this, then, PLEASE, let me know.
    Here's the situration.
    I manage and build a number of sites. Many are parts of a network. The goal is to join them all as one. Both without using php (don't know php), and without having to leave primary page. A Flash Site is the plan. But that is a TON of work to re-create entire sites flash that are already large and established.
    So I got to thinking. What if I embed the HTML/CSS sites into Flash itself? That way they can still make their changes and it'll effect both the HTML version as well as it's mirror/portal via the Flash site?
    In Short:
    I want to embed this page on one frame in Flash:
    http://www.uga-international.com/About.html
    And place a link to another KeyFrame that has this page/site embeded:
    http://www.melholder.com/MAIN.html
    How would I go about doing this?
    ====
    Then it got me thinking even more. If this works, would it be possible to load a SWF video player (Webstunning FLV Player) into Flash and run it as if it's part of the Flash site?
    I thought the Loader Component would do this for me. But it keeps saying it can't locate the "playList.xml" file. The player has outside files it referances. This eoor prevent the player.swf from playing period.
    So how would I go about getting the loader to player external .SWF files that referance external .XML files?
    Here are two sample pages using different .SWF files that referance external .XML files:
    http://www.melholder.com/index.html
    http://www.dovm.org/TEST1a/Test1a.html
    Thanks in advance.

    Thank you for you help and patience.
    But your last statement "copy and paste your frameset encoding" just got me lost.
    In Flash, I know how to use the "MyLoader" to load an outside file (but loading HTML pages in it does not work) But it only has these Parameter options:
    autoLoad:True
    contentPath: "URL goes here
    autoScale:True
    I also know how to point a button's AS2 to open a URL page.
    on (release) {
    getURL("URL Link Goes Here",_blank);
    Those are the only pointing methods I know.
    Now that I think about it. do I change the "_blank"  part of the AS2 code to the name of the Iframe instead?

  • Encoding from UTF-8 encoded String to Microsoft Project default encode

    Hi Expert ...
    I have a problem with encoding a String from UTF-8 String in order to write a MPX (Microsoft Project) file. I used UTF-8 on my Database encoding, and I want to write a MPX file using MPXJ library, but the result is (?) character. I think it's because I didn't encode yet to Shift JIS (a Microsoft Product default encoding). And after that I try to encode the String with Shift_JIS encoding, but the same result is appeared. I try to looking another way, but there is no result.
    I hope some expert would help me to solve this problem.
    Thank you,
    Alfian B.

    Totally wrong. A String doesn't have an encoding.
    Now if you had an array of bytes, which were encoded using one charset, and you wanted to convert that to an array of bytes encoded using a second charset, you would use code like this:byte[] bytes = // the bytes encoded in UTF-8, let's say
    String s = new String(bytes, "UTF-8"); // make that into a String
    byte[] newbytes = s.getBytes("windows-31j"); // encode the String into windows-31j

  • Importing mp4 into Flash 8, converting to FLV

    I just finished taking a Flash Video class where I understood
    I could import an MP4 and convert in to an FLV using encoding tools
    that come with Flash Professional 8. However, I opened a new FLA
    just now and tried to import an MP4 (File -> Import Video),
    Flash would not recognize the sample MP4 I have sitting on my
    desktop.
    I downloaded a demo copy of On2 FlixPro and it did recognize
    the MP4, is converting it to an FLV as I write this.
    Did I misunderstand about importing MP4s into Flash 8
    Professional? Is it in fact not possible. Or might there have been
    something I didn't do or didn't do correctly before importing? If
    so, what might it have been?
    Thanks in advance.

    chris_whalen,
    > I opened a new FLA just now and tried to import
    > an MP4 (File -> Import Video), Flash would not
    > recognize the sample MP4 I have sitting on my
    > desktop.
    The MP4 file extension does not appear in the filetype
    filter of the
    Import dialog, but if you select "All Files (*.*)," that
    should work. I've
    imported MP4s (they're MPGs, after all), but the extension
    doesn't appear
    under the "All Video Formats" choice. (I'm hoping this is
    what you mean by
    "would not recognize," anyway.)
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Get current HTML URL into flash with LoadVars and ColdFusion

    I need to get the current page url and pass it into flash.
    I'm also using ColdFusion. Is there an easy solution?

    I gave up on bringing in the URL and parse it into a string,
    there is too much I don't understand. I put in two commands in the
    HTML where the Flash movie is sitting:
    1. <param name="FlashVars" value="airport=sbn"/>
    2. and in <embed src I put in, Flashvars="airport=sbn"
    "airport" is the variable in Flash (it is called as
    "_level0.airport" in the Flash file) and "sbn" is the variable
    definition for 12 of the files. I will just find "sbn" and replace
    it with the new airport name in the next set. It's not very slick,
    but it's better than having to create a new navigation for every
    airport. Thanks for the help.

  • Pull images from SQL/PHP into Flash

    I have a website that displays images that are stored in a
    SQL database using PHP as a method for pulling and displaying the
    images. These images are stored in the database as text (ex:
    image1), then the PHP looks for the image like this:
    <img src="images/Photograph/<?php echo
    $row_rs_Photos['Image']; ?>.jpg" alt="" width="<?php echo
    $row_rs_Photos['Thumb_Width']; ?>" height="<?php echo
    $row_rs_Photos['Thumb_Height']; ?>" border="0" title="" />
    I want to pull these images into Flash. I've done a bunch of
    ActionScripting, but am no expert. Really don't have the foggiest
    idea where to start.
    -kirk

    I seem to have this one working, kinda. It has an array and
    automatically numbers the buttons, but there are some buttons, that
    ask SQL to return a photo that doesn't exist. For instance, there
    is no 7 or 8 ID in my SQL, so those buttons don't work:
    http://www.lbiphotos.com/Flash/loadImages_finished.html
    PHP Code:
    <?php require_once('my.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "", $theNotDefinedValue = "")
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
    : $theValue;
    $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    "'" : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    return $theValue;
    $colname_rs_Photos = "-1";
    if (isset($_GET['passID'])) {
    $colname_rs_Photos = (get_magic_quotes_gpc()) ?
    $_GET['passID'] : addslashes($_GET['passID']);
    mysql_select_db($database_LBI_Photos_Connection,
    $LBI_Photos_Connection);
    $query_rs_Photos = sprintf("SELECT ID_Photos, Image,
    YearPhotographed FROM Photos WHERE ID_Photos = %s",
    GetSQLValueString($colname_rs_Photos, "int"));
    $rs_Photos = mysql_query($query_rs_Photos,
    $LBI_Photos_Connection) or die(mysql_error());
    $row_rs_Photos = mysql_fetch_assoc($rs_Photos);
    $totalRows_rs_Photos = mysql_num_rows($rs_Photos);
    $imageId = $_GET['passID'];
    //MUST use code below to grab $images
    $images =
    $row_rs_Photos['YearPhotographed'].'/'.$row_rs_Photos['Image'];
    print "image=" . $images;
    ?>
    <?php
    mysql_free_result($rs_Photos);
    ?>
    ACTIONSCRIPT:
    function loadImage(passID:Number) {
    var resultLv:LoadVars = new LoadVars();
    var sendLv:LoadVars = new LoadVars();
    resultLv.onLoad = function(success) {
    if (success) {
    mcLoader.loadClip(imagePath+this.image+".jpg",
    loadContainer);
    trace("passID: "+passID);
    sendLv.sendAndLoad(phpPath+"?passID="+String(passID),
    resultLv);
    function loadInit(target:MovieClip) {
    trace("Begin Loading File");
    trace("imagePath + this.image ; "+imagePath+this.image);
    function assignButtons() {
    for (var i in loadButtons) {
    this[loadButtons
    ].numberTxt.text = String(Number(i)+1);
    this[loadButtons].onRollOver = function() {
    this.gotoAndStop(2);
    this[loadButtons
    ].onRollOut = function() {
    this.gotoAndStop(1);
    this[loadButtons].onRelease = function() {
    trace("String(this).length "+String(this).length);
    if (String(this).length == 16) {
    loadImage(Number(String(this).substring(String(this).length-1)));
    if (String(this).length == 17) {
    loadImage(Number(String(this).substring(String(this).length-2)));
    var loadButtons:Array = new Array('loadBtn1', 'loadBtn2',
    'loadBtn3', 'loadBtn4', 'loadBtn5', 'loadBtn6', 'loadBtn7',
    'loadBtn8', 'loadBtn9', 'loadBtn10', 'loadBtn11', 'loadBtn12',
    'loadBtn13', 'loadBtn14', 'loadBtn15', 'loadBtn16');
    var loadContainer:MovieClip =
    this.createEmptyMovieClip("loadContainer",
    this.getNextHighestDepth());
    var siteUrl:String = "
    http://www.lbiphotos.com";
    var imagePath:String = siteUrl+"/images/Photograph/";
    var phpPath:String = siteUrl+"/Flash/images.php";
    var mcLoader:MovieClipLoader = new MovieClipLoader();
    var mcLoadObj:Object = new Object();
    mcLoadObj.onLoadInit = loadInit;
    mcLoader.addListener(mcLoadObj);
    //below centers called image
    loadContainer._x = (Stage.width/2-100);
    loadContainer._y = (Stage.height/2-100);
    assignButtons();

  • Importing MPEGS into Flash

    Help!
    I am experiencing problems when i bring MPEG movies into
    Flash 8. The video plays but the sound seems to be missing/ no
    sound. Has anyone come across this problem before and how do I
    overcome this??? Should I maybe look at imporing a different type
    of video (AVI)?? File size isn't an issue here as this will be
    played via CDROM.
    Many thanks

    (I think...) This is a muxing issue with the mpeg file. I am
    not an expert but I believe mpeg 1 files are compressed where there
    is only one track for both audio and video. When this is converted
    to FLV the audio track gets dropped. If you re-encode the file to
    Mpeg2 then there is a layer for audio and one for video. These file
    encode to FLV with no audio problems.
    If someone can explain it better I am all ears.
    Also, you can re-encode the Mpeg file using VideoRedo
    software.

  • Retaining transparency in After Effects, to be imported into flash

    Hi
    I have created a sequence in after effects using Illustrator images and the partical system. I want to export/render this out with a transparent background and in a format recognised by Flash. Then I want to bring it into Flash and play it over realtime footage from a webcam.
    Anyway I have tried to:
    render it out using FLV
    render it out using Quicktime with RGB + Alpha and millions of colours+
    Render it out using Targa etc
    I have tried to:
    Export it with SWF
    Export it with XFL
    Ant others I just cant remember.
    Is it possible to bring a transparent backgrounded file from After Effects into Flash?
    If so, how can it be done?
    Any help is greatly appreciated.
    Thanks Mairead

    bogiesan wrote:
    Animation is the one I use most often. I should be using ProRes 4444 for ease of integration into Apple's Motion and Final Cut apps but I keep forgetting it's available.
    ...and here's another candidate: PNG the codec, not the image sequence.  It also supports Alpha Channels, and unless you're making animated lower-thirds, the file sizes are generally smaller than Animation files. 
    Animation uses run length encoding, so in situations with large expanses of transparency as in lower-thirds, the file sizes can be downright compact.

  • Transfer(import) 3d pic (PS5) into flash

    How can I integrate a 3D pic created in PS5 into flash cs5 and keep it spinning (like a Globe) ?
    normal import function in flash is not preserving the 3 d sturture created in ps5

    hi,
    thanks for your reply. I tried your suggestion  but unfortunately it didn’t work. The image is still a kind of postcard with a frozen snapshot of the 3D image. I rendered  the PS5 3 d image into video in PS 5, then transformed this video with the media encoder into a f4v file and imported this into flash which worked out. Can you think of any other possibility or a way how to preserve the 3D data form Photoshop? is there a way to do this via papervison?
    Best regards
    Andreas
    Von: sudeshna sarkar [email protected]
    Gesendet: Freitag, 8. Juni 2012 02:32
    An: Brasil0001
    Betreff: Transfer(import) 3d pic (PS5) into flash
    Re: Transfer(import) 3d pic (PS5) into flash
    created by sudeshna sarkar <http://forums.adobe.com/people/Sudeshnasarkar27>  in Flash Pro - General - View the full discussion <http://forums.adobe.com/message/4475437#4475437

  • Loading Variables from ASP into Flash

    I can find plenty of tutorials detailing how to load
    variables from a defined asp page into Flash, but here's my
    dilemma...
    I have an asp page that is reading a URL with a unique
    identifier in it (www.sampleURL.com?id=123456), and then turns the
    id number from the URL into a variable. On the same page then, sits
    my swf where I need to use LoadVars to pull in that ASP variable
    via Actionscript. If I don't have a static asp page to pull the
    variables in from and I want to pass the variable within the same
    asp page the swf is located on, how do I do it? Many thanks in
    advance...

    "bonzomn65" <[email protected]> wrote in
    message
    news:ej0630$pjh$[email protected]..
    >I can find plenty of tutorials detailing how to load
    variables from a
    >defined
    > asp page into Flash, but here's my dilemma...
    >
    > I have an asp page that is reading a URL with a unique
    identifier in it
    > (www.sampleURL.com?id=123456), and then turns the id
    number from the URL
    > into a
    > variable. On the same page then, sits my swf where I
    need to use LoadVars
    > to
    > pull in that ASP variable via Actionscript. If I don't
    have a static asp
    > page
    > to pull the variables in from and I want to pass the
    variable within the
    > same
    > asp page the swf is located on, how do I do it? Many
    thanks in advance...
    >
    You don't need LoadVars for this at all. You can just pass
    the variable to
    your Flash movie by specifying a query string when you are
    calling the
    movie.
    If you are using the straight object, embed method then it
    would look
    something like this:
    <param name="movie" value="movie.swf?id=11111">
    <embed src="movie.swf?id=11111" ... >
    If you are using the ActiveContent JavaScript for your movie
    then you just
    leave off the .swf... so
    "name", "movie?id=11111"
    Then, in flash you can access the value of id from the _root,
    like
    var idInFlash:Number = _root.id;
    Of course in the above example you would replace 11111 with
    the proper
    syntax for printing a variable's value in ASP.

Maybe you are looking for

  • MacBook Pro retina 13" (late 2013, Haswell) why is the highest resolution rendered in 3360x2100, which the system obviously can't handle?!

    Hey Apple and Apple users, I just recently switched from an MacBook Air (mid 2013) to the new Haswell MacBook Pro retina 13" (late 2013 model). The main reason to do so was the better screen and the option to run higher scaled resolutions, as adverti

  • Calling subscreen in module pool

    Hi friends,                 I am trying to call sub-screen in module pool. but it is giving me an error as  "." or "ID ... FIELD ..." expected after "SUBSCREEN". i am using followning statement CALL SUBSCREEN SUB  INCLUDING SY-REPID '0101'. OR CALL S

  • Nested table for PO Output (Item texts) - trying again.

    Hi experts I posted this question already, but the formatting disappeared, so trying again. I have created a PDF version of the Purchase Order output. Everything works well, except for the last step - a nested table where I want to display Item texts

  • Single Vendor code-imp

    Issue: Presently we have some vendors who have their offices / factories at various locations. Eg: Crompton, ABB etc. Each of these locations have a different vendor code and there is no co-relation between two vendor codes. We would like to use SAP

  • CD\DVD Storage Disconnects

    Hello, I'm using a product that is a Device control. I have two policies for my computers.  One for the Admin group and one for the Users group. When I log in as an Admin my policy allows me to see the Device.  I'll log out and Log in as a User and t